/* ==========================================================================
   Jannik Danger — Home / Hero (handgeschrieben, build-unabhängig)
   --------------------------------------------------------------------------
   Wird NACH tailwind.css geladen. Bewusst kein Tailwind-Utility-Bedarf:
   Der Volume-npm hängt, tailwind.css ist ein eingefrorener Build.
   Alle Animationen laufen nur über transform/opacity (GPU-freundlich).
   Alle Startzustände leben in den Keyframes (fill-mode: both) — dadurch
   genügt bei prefers-reduced-motion ein einziges `animation: none`.
   ========================================================================== */

/* ---------- Bühne ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.75rem);
  min-height: calc(100svh - 4.75rem);
  background:
    radial-gradient(1100px 700px at 78% 28%, rgba(201, 162, 39, 0.13), transparent 62%),
    radial-gradient(900px 620px at 10% 88%, rgba(201, 162, 39, 0.05), transparent 60%),
    linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
}

@media (min-width: 640px) {
  .hero {
    min-height: calc(100vh - 4.75rem);
    min-height: calc(100svh - 4.75rem);
  }
}

/* Vertikale Hairlines — ruhiges, editoriales Raster */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 247, 244, 0.05), rgba(246, 247, 244, 0.05)),
    linear-gradient(rgba(246, 247, 244, 0.04), rgba(246, 247, 244, 0.04)),
    linear-gradient(rgba(246, 247, 244, 0.05), rgba(246, 247, 244, 0.05));
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
}

/* Feines Korn gegen Gradient-Banding — Papier-Haptik auf Tinte */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Riesiges Outline-Wort als Hintergrund-Textur */
.hero-word {
  position: absolute;
  right: -2%;
  bottom: 4.75rem;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(6.5rem, 21vw, 19rem);
  line-height: 0.8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.15);
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation: hero-fade 2.2s ease 0.8s both;
}

/* ---------- Layout ---------- */

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: grid;
  /* minmax(0,…): verhindert, dass die max-content-Breite der Headline den Track sprengt */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    padding-top: 3rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

/* Headline läuft bewusst asymmetrisch in die Orb-Spalte hinein */
@media (min-width: 1024px) {
  .hero-copy {
    margin-right: -28%;
  }
}

/* ---------- Typografie ---------- */

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(201, 162, 39, 0.9);
  animation: hero-fade-up 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.08s both;
}

.hero-eyebrow-rule {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, #c9a227, transparent);
  transform-origin: left center;
  animation: hero-rule 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.25s both;
}

.hero-title {
  margin-top: 1.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  /* Untergrenze klein genug, dass „Vermögen aufbauen —“ auch bei 320px einzeilig bleibt */
  font-size: clamp(1.7rem, 0.35rem + 6.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #f6f7f4;
}

/* Maskierte Zeilen: overflow-hidden-Container, Inhalt fährt von unten hoch.
   Padding/Margin-Trick, damit Unterlängen nicht beschnitten werden. */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.13em;
  margin-bottom: -0.13em;
}

.hero-line-inner {
  display: block;
  animation: hero-rise 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.18s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.3s; }
.hero-line:nth-child(3) .hero-line-inner { animation-delay: 0.42s; }

.hero-accent {
  font-style: italic;
  color: #c9a227;
}

/* Champagner-Verlauf, nur wo Text-Clipping unterstützt wird */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-accent {
    background: linear-gradient(100deg, #e8c766 0%, #c9a227 48%, #8f741b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-sub {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(246, 247, 244, 0.72);
  animation: hero-fade-up 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.55s both;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  animation: hero-fade-up 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.68s both;
}

/* ---------- Orb (geometrisches Metall-Motiv) ---------- */

.hero-visual {
  position: absolute;
  top: -1.5rem;
  right: -32%;
  z-index: 0;
  width: 24rem;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  animation: hero-fade-dim 1.4s ease 0.5s both;
}

@media (min-width: 1024px) {
  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    max-width: 34rem;
    justify-self: end;
    margin-right: -4%;
    animation-name: hero-fade;
  }
}

.hero-orb {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 70px rgba(201, 162, 39, 0.12));
}

.orb-rotor {
  transform-origin: 200px 200px;
  animation: hero-spin 26s linear infinite;
}

.orb-rotor--slow {
  animation-duration: 80s;
  animation-direction: reverse;
}

.orb-draw {
  stroke-dasharray: 1;
  animation: hero-draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.35s both;
}

.orb-draw--d2 {
  animation-delay: 0.55s;
}

.orb-fade {
  animation: hero-fade 1s ease 0.9s both;
}

.orb-pulse {
  transform-origin: 200px 200px;
  animation: orb-pulse 3.2s ease-in-out 1.8s infinite;
}

.hero-meta {
  margin-top: 1.5rem;
  display: none;
  text-align: right;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 2;
  color: rgba(246, 247, 244, 0.4);
  animation: hero-fade-up 0.8s ease 1s both;
}

@media (min-width: 1024px) {
  .hero-meta {
    display: block;
  }
}

/* ---------- Fußzone: Scroll-Cue + Ticker ---------- */

.hero-foot {
  position: relative;
  z-index: 2;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  animation: hero-fade 0.9s ease 1.15s both;
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 3rem;
  background: rgba(246, 247, 244, 0.15);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1.1rem;
  background: #c9a227;
  animation: hero-scroll-run 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-scroll-label {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(246, 247, 244, 0.4);
}

.hero-ticker {
  overflow: hidden;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  background: rgba(10, 10, 10, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: hero-fade 1s ease 1.05s both;
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  animation: hero-marquee 44s linear infinite;
}

.hero-ticker-group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}

.hero-ticker-group span {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  white-space: nowrap;
  color: rgba(246, 247, 244, 0.55);
}

.hero-ticker-group .hero-ticker-dot {
  font-size: 9px;
  letter-spacing: 0;
  color: rgba(201, 162, 39, 0.75);
}

/* ---------- Keyframes ---------- */

@keyframes hero-rise {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-fade-dim {
  from { opacity: 0; }
  to   { opacity: 0.3; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes hero-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}

@keyframes hero-scroll-run {
  0%        { transform: translateY(-1.1rem); }
  60%, 100% { transform: translateY(3rem); }
}

@keyframes hero-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Dimensionen: asymmetrisches Bento ---------- */

.dim {
  background: #f6f7f4;
  color: #111111;
  padding: 6rem 0;
}

@media (min-width: 640px) {
  .dim { padding: 8rem 0; }
}

.dim-head {
  max-width: 42rem;
}

.dim-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #c9a227;
}

.dim-eyebrow-rule {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, #c9a227, transparent);
}

.dim-title {
  margin-top: 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.dim-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.7);
}

.dim-bento {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

@media (min-width: 1024px) {
  .dim-bento {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .dim-cell[data-dim="vermoegen"] {
    grid-row: 1 / 3;
    border-right: 1px solid rgba(17, 17, 17, 0.12);
  }

  .dim-cell[data-dim="absicherung"] {
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  }
}

.dim-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 1.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  color: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

@media (min-width: 1024px) {
  .dim-cell {
    padding: 2.5rem;
    border-bottom: none;
  }

  .dim-cell[data-dim="zukunft"] {
    border-bottom: none;
  }
}

.dim-cell:last-child {
  border-bottom: none;
}

.dim-cell:hover {
  background: rgba(201, 162, 39, 0.04);
}

.dim-cell.is-active {
  box-shadow: inset 0 0 0 1px #c9a227;
  background: #fff;
}

.dim-num {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a227;
}

.dim-cell h3,
.dim-name {
  display: block;
  margin-top: 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}

.dim-cell[data-dim="vermoegen"] h3,
.dim-cell[data-dim="vermoegen"] .dim-name {
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.35rem);
}

.dim-kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #111111;
}

.dim-copy {
  display: block;
  font-size: 0.975rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.7);
}

.dim-panel {
  margin-top: 1.1rem;
}

.dim-panel p {
  font-size: 0.975rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.7);
}

.dim-cell:not(.is-active) .dim-panel {
  display: none;
}

.dim-more {
  margin-top: 2rem;
}

.dim .btn-ghost {
  color: #111111;
}

.dim .btn-ghost:hover {
  color: #111111;
}

/* ---------- Sprungband: eine Breite, Hairline-Split ---------- */

.jump {
  background: #f6f7f4;
  color: #111111;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.jump-split {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .jump-split { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .jump-split {
    grid-template-columns: 1fr 1fr;
    padding: 0 3rem;
  }
}

.jump-cell {
  display: block;
  padding: 3.5rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.jump-cell:hover,
.jump-cell:hover h3,
.jump-go {
  text-decoration: none;
  color: inherit;
}

@media (min-width: 1024px) {
  .jump-cell {
    padding: 4.5rem 3rem 4.5rem 0;
    border-bottom: none;
  }

  .jump-cell + .jump-cell {
    padding-left: 3rem;
    padding-right: 0;
    border-left: 1px solid rgba(17, 17, 17, 0.12);
  }
}

.jump-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a227;
}

.jump-meta::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: #c9a227;
}

.jump-cell h3 {
  margin-top: 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.15rem);
  line-height: 1.15;
}

.jump-cell p {
  margin-top: 0.85rem;
  max-width: 28rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.68);
}

.jump-go {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111111;
}

.jump-go i {
  font-size: 10px;
  color: #c9a227;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.jump-cell:hover .jump-go i {
  transform: translateX(5px);
}

/* ---------- Abschlussband ---------- */

.close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 20%, rgba(201, 162, 39, 0.1), transparent 60%),
    linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  color: #f6f7f4;
  padding: 5.5rem 0;
}

@media (min-width: 640px) {
  .close { padding: 7rem 0; }
}

.close-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
}

.close-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .close-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
  }
}

.close-copy {
  max-width: 42rem;
}

.close-title {
  margin-top: 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 1rem + 4.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.close-sub {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(246, 247, 244, 0.68);
}

.close-cta {
  flex-shrink: 0;
  padding-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .jump-go i {
    transition: none;
  }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero *::before,
  .hero *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Endzustände, die sonst die Keyframes liefern */
  .hero-visual { opacity: 0.3; }

  @media (min-width: 1024px) {
    .hero-visual { opacity: 1; }
  }
}
