/* =====================================================================
   Steuern in Vermögen · Bewegungsschicht
   Wirkt nur mit html.motion-on (gesetzt von motion.js). Ohne JavaScript oder
   bei „Bewegung reduzieren“ bleibt die Seite vollständig statisch lesbar.
   ===================================================================== */

/* ---------- Intro-Vorhang (nur Startseite, einmal je Sitzung) ---------- */
html.intro-pending body::before, html.pt-pending body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--logo-navy);
  animation: introNotfall .4s ease 3.6s forwards;   /* falls motion.js nicht lädt */
}
@keyframes introNotfall { to { opacity: 0; visibility: hidden; } }
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 70% 20%, rgba(var(--accent-rgb),.16), transparent 60%),
              radial-gradient(800px 500px at 20% 90%, rgba(224,72,53,.18), transparent 60%), var(--logo-navy);
  cursor: pointer;
}
.intro .logo-svg { width: min(620px, 78vw); height: auto; overflow: visible; }
.intro .lg-w1 { fill: #fff; }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.intro-line { position: absolute; left: 50%; bottom: 72px; width: 180px; height: 2px; margin-left: -90px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.intro-line i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--logo-coral), var(--logo-gold)); }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Hero startet unsichtbar, GSAP blendet ein (Notfall: nach 2,6 s sichtbar) ---------- */
html.js:not(.rm) .hero-xl .hero-copy > *, html.js:not(.rm) .hero-xl .hero-stage, html.js:not(.rm) .hero-xl .hero-rechnung { opacity: 0; animation: zeigen .01s linear 2.6s forwards; }
html.intro-pending .hero-xl .hero-copy > *, html.intro-pending .hero-xl .hero-stage, html.intro-pending .hero-xl .hero-rechnung { animation-delay: 4.2s; }
html.motion-on .hero-xl .hero-copy > *, html.motion-on .hero-xl .hero-stage, html.motion-on .hero-xl .hero-rechnung { animation: none; }
@keyframes zeigen { to { opacity: 1; } }
.hero-title.is-split .accent { background: none; color: inherit; }
.hero-title.is-split .accent .w { background: linear-gradient(100deg, var(--accent-light) 0%, var(--logo-gold) 45%, var(--logo-coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Seitenübergang: zwei Logo-Flächen wischen diagonal ---------- */
.pt { position: fixed; inset: 0; z-index: 9990; pointer-events: none; overflow: hidden; }
.pt i { position: absolute; left: -25%; width: 150%; height: 75%; }
.pt .pt-c { top: -12%; background: var(--logo-coral); }
.pt .pt-g { bottom: -12%; background: var(--logo-gold); }
.pt .pt-n { inset: 0; left: 0; width: 100%; height: 100%; transform: none; background: var(--logo-navy); opacity: 0; }

/* ---------- Fortschrittsbalken, Körnung ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--logo-coral), var(--logo-gold)); pointer-events: none; }
html.motion-on body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .045;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: korn 1.2s steps(6) infinite;
}
@keyframes korn { 0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); } 100% { transform: translate(0,0); } }

/* ---------- Eigener Cursor (nur Maus) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--logo-coral); }
.cursor-ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1.5px solid rgba(var(--accent-rgb),.75);
  display: grid; place-items: center; transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1), background .35s, border-color .35s; }
.cursor-ring span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--logo-navy); opacity: 0; transition: opacity .2s; }
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--accent-rgb),.14); border-color: var(--logo-gold); }
.cursor-ring.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--logo-gold); border-color: var(--logo-gold); }
.cursor-ring.is-label span { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input, html.has-cursor select, html.has-cursor label { cursor: none; }
html.has-cursor input[type="text"], html.has-cursor input[type="email"], html.has-cursor input[type="tel"], html.has-cursor textarea { cursor: text; }

/* ---------- Header: ein- und ausblenden ---------- */
html.motion-on .site-header { transition: transform .45s cubic-bezier(.2,.7,.2,1), background var(--transition), box-shadow var(--transition); }
html.motion-on .site-header.is-hidden { transform: translateY(-110%); }
.brand .lg-mark path { transform-box: fill-box; transition: transform .5s cubic-bezier(.3,1.6,.4,1); }
.brand:hover .lg-c { transform: translate(-6%, -5%); }
.brand:hover .lg-g { transform: translate(6%, 5%); }

/* ---------- Kacheln: 3D-Neigung mit Glanz ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), transparent 45%); }
.tilt:hover::after { opacity: 1; }

/* ---------- Startseite: großer Hero mit Partikelbühne ---------- */
.hero-xl { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; isolation: isolate; padding-top: calc(var(--header-h) + 28px); padding-bottom: 44px; }
.hero-xl .hero-sub { font-size: 1.08rem; margin-bottom: 26px; }
.hero-xl .hero-cta { margin-bottom: 26px; }
.hero-xl > .container { width: 100%; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-aurora span { position: absolute; border-radius: 50%; opacity: .8; will-change: transform; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; right: -10vw; top: -14vw; background: radial-gradient(circle, rgba(226,195,106,.32), transparent 65%); animation: orb1 18s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(2) { width: 40vw; height: 40vw; left: -12vw; bottom: -16vw; background: radial-gradient(circle, rgba(224,72,53,.5), transparent 65%); animation: orb2 22s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(3) { width: 26vw; height: 26vw; left: 38vw; top: 30vh; background: radial-gradient(circle, rgba(52,92,190,.38), transparent 65%); animation: orb1 26s ease-in-out infinite alternate-reverse; }
@keyframes orb1 { to { transform: translate(-6vw, 8vh) scale(1.15); } }
@keyframes orb2 { to { transform: translate(8vw, -6vh) scale(1.1); } }
/* Raster: links Botschaft + Knöpfe, rechts Partikelbühne + Kurzrechnung; am Handy: Botschaft, Rechnung, Knöpfe, Bühne */
.hero-xl .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "kopf stage" "aktion rechnung"; column-gap: clamp(32px, 5vw, 80px); row-gap: 26px; align-items: end; }
.hero-kopf { grid-area: kopf; }
.hero-aktion { grid-area: aktion; align-self: start; }
.hero-stage { grid-area: stage; }
.hero-rechnung { grid-area: rechnung; }
.hero-xl .hero-sub { max-width: 560px; margin-bottom: 0; }

/* Plakativer Vergleich: wofür ist welche Geldanlage gedacht */
.hero-wege { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; max-width: 600px; }
.hero-wege li { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: baseline; font-size: 1.08rem; line-height: 1.4; color: rgba(255,255,255,.6); }
.hero-wege b { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 12px; border-radius: 999px; font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: .82rem; letter-spacing: .02em; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.hero-wege li.ist { margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(100deg, rgba(196,174,99,.2), rgba(224,72,53,.14)); border: 1px solid rgba(196,174,99,.45); color: #fff; font-weight: 600; }
.hero-wege li.ist b { color: var(--logo-navy); background: linear-gradient(100deg, var(--accent-light), var(--accent)); border-color: transparent; }
.hero-title { font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-title .accent { display: inline-block; }

/* Kurzrechnung aus dem Musterbeispiel */
.hero-rechnung { position: relative; z-index: 2; padding: 22px 24px 18px; border-radius: 22px; background: rgba(9,20,40,.72); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.hr-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
.hr-kopf span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .74rem; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.55); }
.hr-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; color: rgba(255,255,255,.8); }
.hr-zeile b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.12rem; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-alt { position: relative; color: rgba(255,255,255,.62) !important; }
.hr-alt::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--logo-coral); transform-origin: 0 50%; transform: scaleX(var(--strich, 1)); }
.hr-plus b { color: var(--accent-light); }
.hr-ergebnis { margin-top: 2px; padding: 12px 14px; border: 0; border-radius: 14px; background: linear-gradient(100deg, rgba(196,174,99,.22), rgba(224,72,53,.18)); color: #fff; font-weight: 600; }
.hr-ergebnis b { font-size: 1.5rem; color: var(--accent-light); }
.hr-verm { border-top: 0; }
.hr-verm b { color: var(--accent); }
.hr-note { margin: 8px 0 0; font-size: .74rem; line-height: 1.45; color: rgba(255,255,255,.52); }
.hr-note a { color: var(--accent-light); }
.hero-title .accent { background: linear-gradient(100deg, var(--accent-light) 0%, var(--logo-gold) 45%, var(--logo-coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stage { position: relative; min-height: min(420px, 46vh); }
.stage-fallback { position: absolute; inset: 8% 10%; display: grid; place-items: center; }
.stage-fallback img { width: 70%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
html.motion-on .stage-fallback { opacity: 0; }
.stage-caption { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: grid; text-align: center; z-index: 2; }
.stage-caption span { grid-area: 1 / 1; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); opacity: 0; }
.stage-caption span.is-on { opacity: 1; }
html:not(.motion-on) .stage-caption span:first-child { opacity: 1; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--logo-gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 1080px) {
  .hero-xl { min-height: 0; padding-top: calc(var(--header-h) + 22px); padding-bottom: 28px; }
  .hero-xl .hero-grid { grid-template-columns: 1fr; grid-template-areas: "kopf" "rechnung" "aktion" "stage"; row-gap: 20px; }
  .hero-rechnung { max-width: 560px; }
  .hero-stage, .hero-particles { display: none; }   /* am Handy zählt die Botschaft; Partikel nur am großen Bildschirm */
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(2.3rem, 10.6vw, 2.9rem); }
  .hero-xl .hero-sub { font-size: 1.02rem; line-height: 1.5; }
  .hero-wege { gap: 8px; }
  .hero-wege li { display: block; font-size: .98rem; }
  .hero-wege b { display: inline-flex; margin-right: 8px; padding: 3px 10px; vertical-align: 1px; }
  .hero-wege li.ist { padding: 10px 12px; }
  .hero-xl .eyebrow { margin-bottom: 12px; letter-spacing: .12em; }
  .hero-rechnung { padding: 16px 16px 14px; border-radius: 18px; }
  .hr-zeile { font-size: .88rem; padding: 8px 0; }
  .hr-zeile b { font-size: 1.02rem; }
  .hr-ergebnis { padding: 10px 12px; }
  .hr-ergebnis b { font-size: 1.32rem; }
  .hero-xl .hero-cta { margin-bottom: 18px; }
  .hero-xl .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Laufband ---------- */
.marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; background: var(--logo-navy); border-top: 1px solid rgba(255,255,255,.06); }
.marquee-row { display: flex; white-space: nowrap; will-change: transform; }
.marquee-row + .marquee-row { margin-top: 6px; }
.marquee-row span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 8vw, 7.5rem); line-height: 1; letter-spacing: -.04em; padding-right: .5em; }
.marquee-row.outline span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.marquee-row.outline span em { font-style: normal; -webkit-text-stroke: 0; color: var(--logo-coral); }
.marquee-row.solid span { color: var(--logo-gold); }
.marquee-row.solid span em { font-style: normal; color: #fff; }

/* ---------- Hebel als Scroll-Geschichte ---------- */
.story { position: relative; background: linear-gradient(180deg, var(--logo-navy) 0%, #0A1830 100%); color: #fff; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.story h2 { color: #fff; }
.story .eyebrow { color: var(--accent-light); }
.story-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.story-step { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.story-step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; display: flex; gap: 12px; align-items: baseline; }
.story-step h3 b { font-size: .8rem; color: var(--logo-coral); letter-spacing: .1em; }
.story-step p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }
.story-num { display: block; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--accent-light); margin-top: 8px; }
.story-visual { position: relative; min-height: 460px; border-radius: 28px; padding: 34px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.sb { position: relative; height: 130px; }
.sb-val { position: absolute; left: 0; top: 0; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; letter-spacing: -.04em; color: var(--logo-coral); font-variant-numeric: tabular-nums; }
.sb-cap { position: absolute; left: 2px; top: 104px; font-size: .9rem; color: rgba(255,255,255,.65); }
.sbars { margin-top: 26px; display: grid; gap: 12px; }
.sgrid { position: absolute; left: 34px; right: 34px; top: 196px; display: grid; grid-template-columns: repeat(20, 1fr); gap: 6px; opacity: 0; visibility: hidden; }
.sgrid i { display: block; aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.12); }
.sgrid-cap { grid-column: 1 / -1; margin-top: 10px; font-size: .85rem; color: rgba(255,255,255,.65); }
.sbar { display: grid; grid-template-columns: 120px 1fr 84px; gap: 12px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.75); }
.sbar i { display: block; height: 14px; border-radius: 999px; transform-origin: 0 50%; }
.sbar.plus i { background: rgba(255,255,255,.75); }
.sbar.minus i { background: var(--logo-coral); }
.sbar b { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.shouse { position: absolute; right: 34px; bottom: 34px; width: 46%; display: flex; flex-direction: column-reverse; gap: 6px; }
.shouse i { display: block; height: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-dark), var(--logo-gold)); transform-origin: 50% 100%; }
.sroof { width: 0; height: 0; margin: 0 auto; border-left: 120px solid transparent; border-right: 120px solid transparent; border-bottom: 56px solid var(--logo-coral); align-self: center; }
html.motion-on .story-num { display: none; }
@media (min-width: 1024px) and (min-height: 640px) {
  html.motion-on .story-grid { min-height: 100vh; padding-top: 80px; padding-bottom: 40px; }
  html.motion-on .story-step { opacity: .38; transition: opacity .45s, border-color .45s, background .45s, transform .45s; }
  html.motion-on .story-step.is-on { opacity: 1; border-color: rgba(196,174,99,.55); background: rgba(196,174,99,.08); transform: translateX(8px); }
}
@media (max-width: 1023px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  html.motion-on .story-num { display: block; }
}

/* ---------- Ohne-Steuer-Test: Balken starten bei 0 ---------- */
html.motion-on .ost-bar i { transform-origin: 0 50%; }

/* ---------- Großer Abschluss im Footer ---------- */
.footer-claim { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; }
.footer-claim p { margin: 0; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 9vw, 8.5rem); line-height: .95; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); white-space: nowrap; }
.footer-claim p em { font-style: normal; -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--logo-coral), var(--logo-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Unterseiten-Hero: Zeichen als Wasserzeichen ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero .ph-mark { position: absolute; right: -6%; top: 50%; width: min(520px, 46vw); transform: translateY(-50%); opacity: .14; z-index: -1; pointer-events: none; }
@media (max-width: 680px) { .page-hero .ph-mark { right: -30%; width: 80vw; opacity: .1; } }

/* ---------- SplitText-Masken ---------- */
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

@media (prefers-reduced-motion: reduce) {
  html.motion-on body::after, .hero-aurora span, .scroll-cue span { animation: none !important; }
}
.hero { isolation: isolate; }
