/*
  FinanzPilot landing pages (/finanzpilot/ and /finanzpilot/en/): one stylesheet for
  both, so they stay in step. Navy and emerald, always dark. No external requests:
  system fonts, local images and videos only.
  Contrast: every text colour is >= 4.5:1 on the background it sits on (--muted on
  --navy-800 is the lowest pair, about 5.2:1).
  Motion: /assets/motion.js sets html.motion (never with "reduce motion" or without
  JavaScript). Every rule that hides or moves content needs that class; see the end.
*/
:root {
  color-scheme: dark;
  --navy-900: #0A1628; --navy-800: #0F1D32; --navy-700: #13243D; --navy-600: #1B2D4A; --navy-500: #243B5C;
  --emerald: #00C48C; --emerald-ink: #5EE0B5; --gold: #FFD700; --text: #E5E7EB; --body: #CBD2DC; --muted: #8B96A5;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { background: var(--navy-900); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; overflow-wrap: break-word; }
img, video { max-width: 100%; }
a { color: var(--emerald); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 20px; } }
.skip { position: absolute; left: 16px; top: -200px; z-index: 40; background: var(--text); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { position: fixed; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header bar: sticky and translucent (solid without backdrop blur) ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--navy-900); border-bottom: 1px solid var(--navy-600); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bar { background: rgba(10, 22, 40, .76); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.bar header { display: flex; align-items: center; gap: 8px 20px; min-height: 60px; padding: 8px 0; }
.logo { font-size: 20px; font-weight: 750; color: var(--text); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo b { color: var(--emerald); font-weight: 750; }
.by { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; margin-left: -10px; padding: 8px 0; }
.by:hover { color: var(--text); text-decoration: underline; }
.nav { display: flex; align-items: center; gap: 0 20px; margin-left: auto; }
.nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 0; white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--emerald); }
.nav .wide { display: none; }
@media (min-width: 760px) { .nav .wide { display: inline; } }
@media (max-width: 399px) { .by { display: none; } .nav { gap: 0 14px; } .bar header { gap: 8px 14px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 9vw, 96px) 0 32px; text-align: center; }
.flag { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 9.6vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 span { color: var(--emerald); }
.hero p.sub { margin: 18px auto 0; max-width: 660px; font-size: clamp(17px, 2.3vw, 20px); color: var(--body); text-wrap: pretty; }
.hero p.sub a { color: var(--emerald-ink); }
.hero p.sub2 { margin: 12px auto 0; max-width: 600px; font-size: 15px; color: var(--muted); text-wrap: balance; }
/* The three promises right under the headline (privacy first, 30 Oct 2026) */
.pledges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 24px auto 0; max-width: 640px; }
.pledges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(0, 196, 140, .1); box-shadow: inset 0 0 0 1px rgba(0, 196, 140, .38); color: var(--text); font-size: 15px; font-weight: 650; white-space: nowrap; }
.pledges li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--emerald)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230A1628' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 24px; border-radius: 12px;
  background: var(--text); color: var(--navy-900); font-weight: 700; text-decoration: none; font-size: 16px; }
/* Install: Apple's badge (own artwork, clear space = 1/4 of its height on every side), a QR code from 900 px, one facts line */
.install { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; margin-top: 18px; }
.badge { display: inline-block; margin: 13px; line-height: 0; }
.badge img { display: block; height: 52px; width: auto; }
.qr { display: none; }
@media (min-width: 900px) {
  .qr { display: flex; align-items: center; gap: 12px; text-align: left; }
  .qr img { display: block; width: 92px; height: 92px; border-radius: 6px; }
  .qr figcaption { max-width: 120px; font-size: 13px; line-height: 1.4; color: var(--muted); }
}
.facts { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.cta { text-align: center; padding: 4px 0 18px; }
.cta .badge { margin: 13px; }
.note { font-size: 13px; color: var(--muted); }
.phone-stage { margin: 44px auto 12px; width: min(300px, 74vw); }
.hero-phone { padding: 10px; border-radius: 46px; background: #05080F;
  box-shadow: 0 0 0 1px #22324A, 0 30px 80px rgba(0,0,0,.5), 0 0 120px rgba(0,196,140,.14); }
.hero-video { display: block; width: 100%; height: auto; border-radius: 37px; background: #fff; }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; text-align: center; margin-bottom: 10px; text-wrap: balance; }
.lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 16px; padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card h3 em { font-style: normal; margin-right: 8px; }
.card p, .card li { font-size: 15px; color: var(--muted); }
.card ul { margin: 8px 0 0 18px; }
.price-grid .card li { font-size: 14.5px; line-height: 1.45; }
.price-grid .card li + li { margin-top: 3px; }
.more-features { margin-top: 18px; }
.more-features > summary { display: block; width: max-content; max-width: 100%; margin: 0 auto; padding: 12px 22px; border: 1px solid var(--navy-500); border-radius: 12px;
  background: var(--navy-800); color: var(--text); font-weight: 650; text-align: center; cursor: pointer; list-style: none; }
.more-features > summary::-webkit-details-marker { display: none; }
.more-features > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 12px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.more-features[open] > summary::after { margin-bottom: 0; transform: rotate(-135deg); }
.more-features > summary:hover { border-color: var(--emerald); }
.more-features > .grid { margin-top: 16px; }
.price { font-size: 28px; font-weight: 750; color: var(--text); margin: 4px 0 2px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pro { border-color: var(--emerald); }
.pro b { color: var(--text); }
.prices-note { text-align: center; margin-top: 12px; }

/* Gallery (captioned App Store images) */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 14px; -webkit-overflow-scrolling: touch; }
.gallery img { width: 230px; height: auto; border-radius: 18px; flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--navy-600); }

/* Walkthrough videos */
.videos figure { margin: 0; padding: 12px; }
.videos video { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--navy-900); }
.videos figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.videos figcaption b { color: var(--text); }
/* Phones: the three videos sit in a row you swipe, like the gallery, instead of one long column */
@media (max-width: 719px) {
  .videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px 2px 12px; -webkit-overflow-scrolling: touch; }
  .videos figure { flex: 0 0 84%; scroll-snap-align: start; }
  .phone-stage { margin-top: 28px; width: min(250px, 66vw); }
  section { padding: 34px 0; }
  .lead { margin-bottom: 20px; font-size: 16px; }
  .goes > li { padding: 11px 13px 12px; }
  .guide-card { padding: 16px 16px 14px; }
  .guide-title { margin: 6px 0 4px; }
  .guide-more { margin-top: 8px; }
}

/* ---------- Story: four steps, one phone ----------
   Default (no JS, reduced motion, narrow screens): each step shows its own screen.
   Wide screens with motion: the phone sticks and the screen follows the step in view. */
.story-steps { list-style: none; display: grid; gap: 64px; margin-top: 44px; }
.step { display: grid; gap: 24px; justify-items: center; text-align: center; }
.step-text { max-width: 460px; }
.step-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-ink); }
.step h3 { margin: 6px 0 10px; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.step p { color: var(--muted); font-size: 17px; }
.step p + p { margin-top: 8px; }
.step-shot { width: min(260px, 68vw); }
.step-shot img, .device-screen img { display: block; width: 100%; height: auto; }
.step-shot, .device { padding: 9px; border-radius: 44px; background: #05080F; box-shadow: 0 0 0 1px #22324A, 0 24px 60px rgba(0,0,0,.45); }
.step-shot img { border-radius: 36px; }
.story-device { display: none; }
@media (max-width: 899px) {
  .story-steps { gap: 36px; margin-top: 28px; }
  .step { gap: 16px; }
  .step-shot { width: min(230px, 64vw); height: 150px; overflow: hidden; padding: 9px 9px 0; border-radius: 34px 34px 0 0; }
  .step-shot img { border-radius: 26px 26px 0 0; }
}
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; text-align: left; justify-items: start; align-items: center; }
  .step-shot { justify-self: center; width: 270px; }
}

/* ---------- Guides teaser ---------- */
.guides { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.guide-card { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 18px; text-decoration: none; color: var(--text);
  background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 16px;
  transition: transform .5s var(--ease-out), border-color .25s ease, box-shadow .5s var(--ease-out); }
.guide-card:hover { transform: translateY(-4px); border-color: var(--navy-500); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 196, 140, .25); }
.guide-card:active { transform: translateY(-1px) scale(.99); transition-duration: .1s; }
.guide-topic { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-ink); }
.guide-title { display: block; margin: 8px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.guide-text { font-size: 15px; color: var(--muted); flex: 1; }
.guide-more { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--emerald); }
.guide-card:hover .guide-title { text-decoration: underline; text-decoration-color: var(--emerald); text-underline-offset: .16em; }
.guides-foot { text-align: center; margin-top: 22px; font-weight: 700; }

/* ---------- «Was bleibt, was geht» (right under the hero) ----------
   Two columns from 900 px: what stays (sticky) and what leaves. Narrower: one after the other.
   The «when» chips use the same three kinds as /privat: by itself, if you switch it on, if you do it. */
.ledger { padding-top: 40px; }
.ledger-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .ledger-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; } }
.ledger-col { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 20px; padding: 24px 20px; }
@media (min-width: 720px) { .ledger-col { padding: 28px 28px 26px; } }
.stays-col { border-color: rgba(0, 196, 140, .45); background: linear-gradient(180deg, rgba(0, 196, 140, .08), rgba(0, 196, 140, 0) 240px), var(--navy-800); }
@media (min-width: 900px) { .stays-col { position: sticky; top: 76px; } }
.ledger-h { display: flex; align-items: center; gap: 10px; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.2; letter-spacing: -0.02em; }
.ledger-h svg { width: 26px; height: 26px; flex: none; color: var(--emerald); }
.ledger-sub { margin-top: 6px; color: var(--body); font-size: 15px; }
.keep { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.keep li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.keep li b { color: var(--text); font-weight: 650; }
.keep li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 196, 140, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.4l2.9 2.9 5.9-6.1' fill='none' stroke='%2300C48C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(0, 196, 140, .55); }
.ledger-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--navy-600); font-size: 14px; color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.when { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 750; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.when-auto { background: rgba(255, 215, 0, .12); color: #FFE27A; }
.when-opt { background: rgba(0, 196, 140, .14); color: var(--emerald-ink); }
.when-tap { background: rgba(126, 168, 255, .14); color: #B4CBFF; }
.goes { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.goes > li { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: 14px; padding: 14px 16px 15px; }
.go-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.go-top h4 { font-size: 16.5px; line-height: 1.3; }
.goes p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.goes p b { color: var(--text); }
.goes dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin-top: 8px; font-size: 14px; }
.goes dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.goes dd { color: var(--body); }
.ledger-end { margin-top: 16px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ledger-next { max-width: 720px; padding: 12px 16px; border: 1px dashed var(--navy-500); border-radius: 14px; font-size: 14.5px; color: var(--muted); }
.ledger-next b { color: var(--text); }
.ledger-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-weight: 700; }
@media (max-width: 719px) {
  .ledger-col { padding: 20px 14px 18px; }
  .ledger-col > .ledger-h, .ledger-col > .ledger-sub, .ledger-col > .keep, .ledger-col > .legend, .ledger-col > .ledger-foot { margin-left: 4px; margin-right: 4px; }
  .goes { gap: 8px; }
  .goes > li { padding: 10px 12px 11px; }
  .goes p { margin-top: 4px; font-size: 14px; line-height: 1.45; }
  .goes dl { margin-top: 6px; font-size: 13.5px; line-height: 1.4; }
  .go-top h4 { font-size: 16px; line-height: 1.25; }
  .keep { gap: 7px; }
  .keep li, .ledger-foot { line-height: 1.5; }
}

/* ---------- FAQ, footer ---------- */
.faq { max-width: 740px; margin: 0 auto; }
.faq details { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--navy-500); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--muted); }
footer { padding: 36px 0 48px; text-align: center; font-size: 13px; color: var(--muted); }
footer b { color: var(--text); }
footer a { color: var(--muted); margin: 0 7px; display: inline-block; }
footer .home { margin: 0; }
footer p { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .guide-card, .faq details { transition: none; }
  .guide-card:hover, .guide-card:active { transform: none; }
}

/* ---------- Motion (only with html.motion and no reduced-motion preference) ----------
   Only opacity, transform and clip-path change, so nothing shifts the layout. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .motion [data-reveal] {
    opacity: 0; transform: translate3d(0, 32px, 0);
    transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion [data-reveal].in { opacity: 1; transform: none; }

  /* Hero entrance */
  .motion .hero-intro > * { animation: fp-rise 1.1s var(--ease-out) both; }
  .motion .hero-intro > :nth-child(2) { animation-delay: .08s; }
  .motion .hero-intro > :nth-child(3) { animation-delay: .2s; }
  .motion .hero-intro > :nth-child(4) { animation-delay: .32s; }
  .motion .hero-intro > :nth-child(5) { animation-delay: .42s; }
  .motion .hero-intro > :nth-child(6) { animation-delay: .5s; }
  .motion .hero-intro > :nth-child(7) { animation-delay: .58s; }
  .motion .hero-phone { animation: fp-phone 1.5s var(--ease-out) .35s both; }

  /* Scroll: the phone grows to full size as it comes up, the copy drifts away */
  .motion [data-hero] .phone-stage { transform: scale(min(1, calc(.9 + var(--hero-p, 0) * .3))); transform-origin: 50% 0; }
  .motion [data-hero] .hero-intro { transform: translate3d(0, calc(var(--hero-p, 0) * -48px), 0); opacity: calc(1 - var(--hero-p, 0) * 1.2); }

  /* Sticky story on wide screens */
  @media (min-width: 900px) {
    .motion .story.is-live .story-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
    .motion .story.is-live .story-device {
      display: flex; align-items: center; justify-content: center;
      position: sticky; top: 61px; height: calc(100vh - 61px); grid-column: 2; grid-row: 1;
    }
    .motion .story.is-live .story-steps { grid-column: 1; grid-row: 1; margin-top: 0; gap: 0; }
    .motion .story.is-live .step { display: flex; align-items: center; min-height: 78vh; }
    .motion .story.is-live .step:first-child { min-height: 64vh; }
    .motion .story.is-live .step-shot { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); box-shadow: none; }
    .motion .story.is-live .step-text { border-left: 2px solid var(--navy-600); padding-left: 26px; transition: border-color .5s ease; }
    .motion .story.is-live .step h3, .motion .story.is-live .step p { transition: color .5s ease; }
    .motion .story.is-live .step:not(.is-active) h3 { color: var(--muted); }
    .motion .story.is-live .step.is-active .step-text { border-color: var(--emerald); }
    .motion .story.is-live .step.is-active p { color: var(--body); }
    .device { width: min(300px, calc((100vh - 140px) * .44)); }
    .device-screen { position: relative; aspect-ratio: 560 / 1216; overflow: hidden; border-radius: 36px; background: #F3F4F6; }
    .device-screen img { position: absolute; inset: 0; height: 100%; object-fit: cover;
      opacity: 0; transform: scale(1.04) translate3d(0, 12px, 0); transition: opacity .7s var(--ease-out), transform 1s var(--ease-out); }
    .device-screen img.is-active { opacity: 1; transform: none; }
  }
}
@keyframes fp-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes fp-phone { from { opacity: 0; transform: translate3d(0, 60px, 0) scale(.96); } }
@media print { .motion [data-reveal] { opacity: 1 !important; transform: none !important; } .bar { position: static; } }
