/* ==========================================================================
   Zahly Landingpage — Stylesheet
   Design-System laut PROJEKTSTATUS-WEBSITE.md, Abschnitt 6
   ========================================================================== */

:root {
  --green: #1f7a4d;
  --green-dark: #17603c;
  --green-light: #e8f4ee;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --border: #e3e8e5;
  --text: #1f2a24;
  /* War #6b7a72 (4.27:1 auf --bg — verfehlt WCAG AA 4.5:1 für normalen Text,
     da fast überall auf der Seite auf --bg statt reinem Weiß eingesetzt).
     Leicht abgedunkelt auf 4.78:1, optisch praktisch identisch. */
  --text-muted: #64726a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 2px 10px rgba(20, 40, 30, 0.05);
  --shadow-medium: 0 10px 28px rgba(20, 40, 30, 0.09);

  /* Dunkle Vollbild-Sektionen (Revolut-artiger Kontrastwechsel) */
  --surface-dark: #101a14;
  --surface-dark-2: #0a120d;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-dark-border: rgba(255, 255, 255, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Grid/flex tracks default to a min-content size, which lets a nowrap
   button or long word force the whole track wider than its container
   (classic 1fr overflow). Reset to 0 so tracks honor the container width
   and wrap their content instead. */
.compare,
.feature-grid,
.feature-showcase-grid,
.trust-grid,
.pricing-grid,
.footer-grid,
.law-card,
.hero-cards,
.mosaic-grid,
.compare > *,
.feature-grid > *,
.feature-showcase-grid > *,
.trust-grid > *,
.pricing-grid > *,
.footer-grid > *,
.law-card > *,
.hero-cards > *,
.mosaic-grid > * {
  min-width: 0;
}

section { padding: 112px 0; }
@media (max-width: 640px) {
  section { padding: 72px 0; }
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.6rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); margin-bottom: 8px; }

/* ==========================================================================
   Dunkle Vollbild-Sektionen — abwechselnder Kontrast wie bei Revolut
   ========================================================================== */
.section-dark {
  background: linear-gradient(175deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  color: #fff;
}
.section-dark .eyebrow { background: rgba(255, 255, 255, 0.1); color: #a9e0c2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-dark .compare-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--on-dark-border);
}
.section-dark .compare-card.is-solution {
  background: rgba(31, 122, 77, 0.22);
  border-color: var(--green);
}
.section-dark .compare-card li { color: var(--on-dark-muted); }
.section-dark .compare-card.is-solution li { color: #fff; }
.section-dark .icon-x { color: #e08a8a; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color .15s ease;
  text-align: center;
}
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-medium); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Blur/background live on a pseudo-element rather than the header itself:
   backdrop-filter on the header would establish a containing block for its
   position:fixed descendants (the mobile nav overlay), trapping it inside
   the header's own box instead of covering the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 249, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled::before {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 7px; }

/* Dezente Vertrauens-Zeile (ISO 27001/DSGVO) direkt über der Eyebrow-Pille
   im Hero-Textblock — bewusst NICHT am Logo/Header (las sich dort wie ein
   Firmenzertifikat statt Hosting-Hinweis) und bewusst kein Grafik-Siegel
   mehr (Bruder-Feedback: sah optisch nicht gut aus). Einzeilig per
   white-space:nowrap, gleicher flacher Pill-Stil wie der Rest der Seite. */
.hero-trust-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hero-trust-line:hover, .hero-trust-line:focus-visible { border-color: var(--green); color: var(--green); }
.hero-trust-line svg { color: var(--green); flex-shrink: 0; }
/* Sehr dezenter Puls-Ring ums Schild-Icon, damit das Vertrauens-Signal
   auffällt ohne aufdringlich zu wirken — langsam (2.8s), niedrige
   Deckkraft, kein Blinken/Farbwechsel. Respektiert reduzierte Bewegung. */
.hero-trust-line-icon {
  position: relative;
  display: inline-flex;
}
.hero-trust-line-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  opacity: 0;
  animation: trust-pulse 2.8s ease-out infinite;
}
@keyframes trust-pulse {
  0% { transform: scale(0.65); opacity: 0.5; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-trust-line-icon::after { animation: none; content: none; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Sprachumschalter: EIN einziges Dropdown-Element (Globus + Code + Chevron),
   identisch auf Mobile UND Desktop sichtbar (liegt in .nav-cta, die auch bei
   engem Viewport neben dem Hamburger-Menü stehen bleibt) — kein separates
   Duplikat-Markup mehr, siehe BAUBERICHT.md „Update: Sprachumschalter-Fix". */
.lang-switch {
  position: relative;
  margin-right: 2px;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch-btn:hover, .lang-switch-btn:focus-visible { border-color: var(--green); color: var(--green); }
.lang-switch-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lang-switch.is-open .lang-switch-btn { border-color: var(--green); color: var(--green); }
.lang-switch-icon { width: 16px; height: 16px; flex-shrink: 0; }
.lang-switch-code { letter-spacing: 0.02em; }
.lang-switch-chevron { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.2s ease; }
.lang-switch.is-open .lang-switch-chevron { transform: rotate(180deg); }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.lang-switch.is-open .lang-switch-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switch-item:hover, .lang-switch-item:focus-visible { background: var(--green-light); color: var(--green-dark); }
.lang-switch-item.is-active { color: var(--green); font-weight: 600; }
.lang-switch-check { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }

@media (max-width: 480px) {
  .lang-switch-btn { padding: 0 9px; }
  /* Auf sehr schmalen Viewports berührten sich Wortmarke und Sprach-Pill
     sonst ohne jeden Zwischenraum (Inhalt füllte die Zeile exakt aus) —
     etwas weniger Container-Padding und ein garantierter Mindestabstand
     schaffen wieder Luft, ohne horizontales Overflow zu erzeugen. */
  .nav { gap: 8px; }
  .nav-cta { gap: 8px; }
}
@media (max-width: 400px) {
  /* Nur die Kopfzeile bekommt weniger Innenabstand (nicht die ganze Seite) */
  .site-header .container { padding-inline: 16px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero + Scroll-Morph (1:1 Revolut-Muster, siehe BAUBERICHT.md)
   Ein einziger Pin-Bereich: Ausgangszustand zeigt Hero-Text (links) UND eine
   hohe, über den Viewport-Rand hinausragende Foto-Karte (rechts) GEMEINSAM
   auf grünem Verlaufshintergrund. Beim Scrollen wandert/schrumpft die Karte
   zur mittleren von drei gleich großen Karten auf hellem Hintergrund, während
   links/rechts zwei weitere Karten einblenden. Fortschritt (0..1) wird per JS
   aus der Scrollposition berechnet und als direkte px-Werte (Position/Größe)
   bzw. Opacity gesetzt — siehe script.js. Das Foto selbst wird bewusst NICHT
   per transform:scale() skaliert (verzerrt/verwäscht bei starker Skalierung),
   sondern über echte Breiten-/Höhenänderung des Karten-„Fensters“ +
   object-fit:cover, damit der Bildausschnitt sauber und unverzerrt bleibt.
   ========================================================================== */
.hero-scroll {
  position: relative;
  height: 380vh;
  /* Überschreibt die generische `section { padding: 112px 0; }`-Regel — diese
     Sektion pinnt direkt unter dem 68px hohen Header (siehe
     .hero-scroll-sticky, top:68px) und braucht ihren eigenen Abstand nicht,
     sonst rutscht die Sticky-Box um 112px zu tief und die Höhen-Rechnung
     (calc(100vh - 68px)) stimmt nicht mehr mit der tatsächlichen Position
     überein. */
  padding: 0;
}
.hero-scroll-sticky {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
.hero-scroll-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(115% 85% at 20% -15%, #cdeedb 0%, var(--green-light) 34%, var(--bg) 68%);
}
.hero-scroll-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---- Hero-Text: liegt im Ausgangszustand links auf dem grünen Hintergrund,
   verblasst früh im Scroll-Verlauf (siehe script.js). ---- */
.hero-text-layer {
  position: absolute;
  left: 0;
  top: 104px;
  max-width: 460px;
  z-index: 2;
}
.hero-text-layer h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-text-layer h1 .accent { color: var(--green); }
.hero-text-layer .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.hero-text-layer .hero-actions { justify-content: flex-start; margin-bottom: 16px; }
.hero-text-layer .platform-strip { justify-content: flex-start; margin-top: 26px; }

/* ---- Kurze Sektions-Headline über der fertigen Kartenreihe (Endzustand) ---- */
.hero-cards-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  opacity: 0;
}

.hero-cards {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.hero-card {
  border-radius: var(--radius-lg);
  min-width: 0;
}
.hero-card--side {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.hero-card--side .hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
/* .hero-card-title statt <h3>: rein visuelle Karten-Überschrift, keine echte
   Dokument-Gliederungsebene — stünde im DOM sonst vor dem ersten <h2> der
   Seite (Sprung h1->h3, siehe BAUBERICHT.md). Übernimmt die Kernwerte der
   globalen h1..h4-Regel (font-weight/letter-spacing/line-height) manuell,
   da <p> davon nicht profitiert. */
.hero-card--side .hero-card-title { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-size: 1.05rem; margin-bottom: 8px; }
.hero-card--side p { color: var(--text-muted); font-size: 0.92rem; }

/* Unsichtbarer Platzhalter: reserviert nur die Grid-Zelle/Endgröße für die
   mittlere Karte (script.js misst daran ihre Zielposition). */
.hero-card-center-wrap {
  aspect-ratio: 3 / 4;
  min-width: 0;
  visibility: hidden;
}

/* Heller, größerer Rahmen HINTER dem Foto (siehe script.js): animiert
   zeitversetzt zur Foto-Größe, sodass beim Scroll-Übergang ein deutlich
   sichtbarer weißer Rand um die Karte aufblitzt, bevor beide am Ende wieder
   exakt bündig zusammenfallen. Position/Größe werden jeden Frame direkt
   als px-Werte gesetzt (kein CSS-Inset). */
.hero-card-frame {
  position: absolute;
  z-index: 2;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-medium);
}
.hero-card--center {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border-radius: 22px;
  /* Dünner, heller Rand (siehe Bild 1 der Referenz) statt kräftigem
     Markenrahmen — bündig mit der Fotokante im Ruhezustand. */
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-medium);
  background: var(--surface-dark);
}
/* ---- CLS-Fix: Auf Desktop-Breiten ohne reduzierte Bewegung (= wo der
   Scroll-Morph-Effekt tatsächlich läuft) bleiben Rahmen + Foto-Karte bis zum
   ersten von script.js gesetzten Rechteck unsichtbar. Ohne das zeigt der
   Browser sie beim allerersten Paint kurz an ihrer CSS-Default-Position
   (position:absolute ohne left/top = statische Flussposition, irgendwo im
   Dokumentfluss von .hero-scroll-inner), bevor das synchron ausgeführte
   script.js sie an die berechnete Startposition verschiebt — ein klassischer
   Layout-Shift (CLS, siehe BAUBERICHT.md „Performance/Accessibility-Fixes").
   Layout-Shifts unsichtbarer Elemente zählen nicht für CLS, daher
   verschwindet der Sprung komplett; script.js setzt `visibility: visible`
   im selben Zug wie die erste Positionierung (applyProgress()), und
   clearInlineStyles() setzt es für den Mobile-/Reduced-Motion-Fallback
   zurück (dort greift diese Media Query ohnehin nicht). ---- */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-card-frame,
  .hero-card--center {
    visibility: hidden;
  }
}
.hero-card-photo { position: absolute; inset: 0; }
.hero-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; }
/* Position/Größe werden jeden Frame von script.js gesetzt (analog zu
   Rahmen/Foto) — knapp am unteren Sticky-/Viewport-Rand, horizontal
   zentriert unter der jeweils aktuellen Kartenposition. transform:
   translateX(-50%) übernimmt nur die Zentrierung um den gesetzten
   left-Wert, keine Skalierung. */
.hero-card-peek-pill {
  position: absolute;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  z-index: 4;
}
.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(15, 30, 22, 0) 0%, rgba(10, 20, 15, 0.86) 78%);
}
.hero-card-overlay .hero-card-title { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.hero-card-overlay p { color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; margin-bottom: 14px; }

/* Mobile/Tablet: kein Scroll-Jacking — einfache, gestapelte Karten mit
   normalem Scroll-Reveal-Fade (siehe script.js, isDesktopHeroEffect()). */
@media (max-width: 899px) {
  .hero-scroll { height: auto; }
  .hero-scroll-sticky { position: static; top: auto; height: auto; overflow: visible; }
  .hero-scroll-bg { display: none; }
  /* .hero-card-frame/--center liegen im Markup AUSSERHALB von .hero-cards
     (siehe FLIP-Technik in script.js) — auf Desktop kein Problem, da sie
     dort frei/absolut positioniert werden. Für den gestapelten Mobile-
     Fallback wird .hero-scroll-inner selbst zur Flex-Spalte gemacht, damit
     alle Blöcke (Text, Headline, Center-Karte, Karten-Zeile) EIN gemeinsames
     `order` bekommen können, statt sich auf das (hier wirkungslose) `order`
     innerhalb von .hero-cards zu verlassen. */
  .hero-scroll-inner {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-inline: 24px;
    max-width: 640px;
  }

  /* Soll über das padding-inline:24px von .hero-scroll-inner hinausragen und
     bis an den Viewport-Rand reichen (grüner Verlaufshintergrund edge-to-
     edge), daher negatives Margin. Als Flex-Column-Kind wird die `width`
     dabei aber NICHT automatisch mitgestreckt (align-items:stretch bemisst
     die Kreuzachsen-Größe hier an der reinen Content-Breite des
     Elternelements, nicht an margin-box) — ohne explizite width bleibt die
     Box 48px zu schmal und dadurch sichtbar nach links verschoben (Bug,
     siehe BAUBERICHT.md). Fix: width explizit auf "Containerbreite + 48px"
     setzen, plus eigenes horizontales Padding, damit der Text trotz voller
     Breite wieder denselben 24px-Randabstand wie der Rest der Seite hat. */
  .hero-text-layer {
    order: 0;
    position: static;
    max-width: none;
    width: calc(100% + 48px);
    text-align: center;
    padding: 56px 24px 8px;
    margin: 0 -24px 8px;
    background: radial-gradient(120% 90% at 50% -20%, #d9f2e3 0%, var(--bg) 70%);
  }
  .hero-text-layer .hero-actions { justify-content: center; }
  .hero-text-layer .platform-strip { justify-content: center; }

  .hero-cards-heading { order: 1; }

  /* Sichtbare Center-Karte: bewusst `position: relative` statt `static`,
     damit ihre absolut positionierten Kinder (Foto, Overlay) weiterhin an
     IHRER eigenen Box hängen statt an .hero-scroll-inner "durchzuschlagen"
     (sonst würden sie auf volle Sektionsgröße aufreißen). */
  .hero-card--center {
    order: 2;
    position: relative;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto 20px;
  }
  .hero-card-frame { display: none; }
  .hero-card-peek-pill { display: none; }
  .hero-card-center-wrap { display: none; }

  .hero-cards { order: 3; display: flex; flex-direction: column; gap: 20px; padding: 0 0 64px; height: auto; }
  .hero-card--side { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* Reduced motion: kein Pin/Scroll-Jacking, Endzustand direkt zeigen (gleiche
   Layout-Regeln wie der Mobile/Tablet-Fallback oben). */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero-scroll-sticky { position: static; top: auto; height: auto; overflow: visible; }
  .hero-scroll-bg { display: none; }
  .hero-scroll-inner {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-inline: 24px;
    max-width: 640px;
    margin-inline: auto;
  }
  /* Gleicher Fix wie im @media (max-width: 899px)-Block oben — siehe
     Kommentar dort. */
  .hero-text-layer {
    order: 0;
    position: static;
    max-width: none;
    width: calc(100% + 48px);
    margin: 0 -24px 8px;
    text-align: center;
    padding: 56px 24px 8px;
    background: radial-gradient(120% 90% at 50% -20%, #d9f2e3 0%, var(--bg) 70%);
  }
  .hero-text-layer .hero-actions { justify-content: center; }
  .hero-text-layer .platform-strip { justify-content: center; }
  .hero-cards-heading { order: 1; }
  .hero-card--center {
    order: 2;
    position: relative;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto 20px;
  }
  .hero-card-frame { display: none; }
  .hero-card-peek-pill { display: none; }
  .hero-card-center-wrap { display: none; }
  .hero-cards { order: 3; display: flex; flex-direction: column; gap: 20px; padding: 0 0 64px; height: auto; }
  .hero-card--side { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ---- Product screenshot preview (below hero) ---- */
.product-preview { padding: 8px 0 96px; }
@media (max-width: 640px) { .product-preview { padding: 0 0 64px; } }
.product-preview .hero-visual { margin-top: 0; }
.product-preview-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 20px;
}
.hero-visual {
  margin-top: 64px;
  position: relative;
}
/* Dezenter "Spotlight"-Glow hinter dem App-Screenshot (Apple-Produktseiten-
   Stil) — hebt die Karte sanft vom Seitenhintergrund ab, ohne aufdringlich
   zu wirken. Liegt hinter dem Frame (z-index), stört daher nie den Text. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px -24px -40px;
  z-index: 0;
  background: radial-gradient(60% 70% at 50% 38%, var(--green-light) 0%, rgba(232, 244, 238, 0) 72%);
  pointer-events: none;
}
/* ---- Gestapelte Produkt-Collage: Dashboard-Screenshot (groß, hinten) +
   Startseite-Screenshot (kleiner, vorne, überlappend unten rechts) — im
   Stil der vom Nutzer gelieferten Feature-Mockup-Bilder (leicht versetzte,
   gegeneinander rotierte Fenster mit Tiefe/Schlagschatten). ---- */
.mockup-stack {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto 56px;
}
.mockup-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Etwas kräftigerer, weicherer Schlagschatten als der Standard-
     --shadow-medium — lässt der Screenshot wie ein freigestelltes
     Produktfoto über der Seite "schweben" statt nur wie eine normale Karte. */
  box-shadow: 0 24px 60px -20px rgba(20, 40, 30, 0.22), 0 8px 20px -8px rgba(20, 40, 30, 0.12);
  border: 1px solid var(--border);
  background: var(--surface);
}
.mockup-frame img { width: 100%; height: auto; display: block; }

.mockup-frame--back {
  position: relative;
  width: 86%;
  transform: rotate(-3deg);
}
.mockup-frame--front {
  position: absolute;
  right: 0;
  bottom: -9%;
  z-index: 2;
  width: 56%;
  transform: rotate(3deg);
  border: 5px solid var(--surface);
  box-shadow: 0 30px 70px -18px rgba(20, 40, 30, 0.28), 0 10px 24px -8px rgba(20, 40, 30, 0.16);
}
@media (max-width: 640px) {
  .mockup-stack { margin-bottom: 44px; }
  .mockup-frame--back { width: 92%; transform: rotate(-2deg); }
  .mockup-frame--front { width: 60%; bottom: -7%; transform: rotate(2deg); border-width: 4px; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Gestaffeltes Einblenden in Grids */
.feature-grid > *:nth-child(2), .feature-showcase-grid > *:nth-child(2), .trust-grid > *:nth-child(2), .mosaic-grid > *:nth-child(2), .pricing-grid > *:nth-child(2), .compare > *:nth-child(2) { transition-delay: .08s; }
.feature-grid > *:nth-child(3), .feature-showcase-grid > *:nth-child(3), .trust-grid > *:nth-child(3), .mosaic-grid > *:nth-child(3), .pricing-grid > *:nth-child(3) { transition-delay: .16s; }
.feature-grid > *:nth-child(4), .feature-showcase-grid > *:nth-child(4), .trust-grid > *:nth-child(4) { transition-delay: .24s; }
.feature-grid > *:nth-child(5), .feature-showcase-grid > *:nth-child(5) { transition-delay: .32s; }
.feature-grid > *:nth-child(6) { transition-delay: .4s; }

/* ==========================================================================
   Logos / platform badges strip
   ========================================================================== */
.platform-strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.platform-strip span { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Problem/Solution
   ========================================================================== */
.problem-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin: 0 0 48px;
}
.problem-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.problem-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 96, 60, 0) 45%, rgba(15, 30, 22, 0.78) 100%);
}
.problem-photo figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  max-width: 85%;
}
@media (max-width: 640px) {
  .problem-photo figcaption { font-size: 0.92rem; left: 16px; bottom: 14px; max-width: 90%; }
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 780px) {
  .compare { grid-template-columns: 1fr; }
}
.compare-single {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin: 0 auto;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-card.is-solution {
  border-color: var(--green);
  background: var(--green-light);
  position: relative;
}
.compare-card h3 { display:flex; align-items:center; gap: 10px;}
.compare-card ul { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.compare-card.is-solution li { color: var(--text); }
.compare-card svg { flex-shrink: 0; margin-top: 3px; }
.icon-check { color: var(--green); }

.compare-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.compare-card-thumb {
  width: 84px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
@media (max-width: 420px) { .compare-card-thumb { width: 64px; } }

/* ==========================================================================
   Features
   ========================================================================== */
.feature-grid {
  display: grid;
  /* 4 gleich hohe Karten in einer Reihe (keine Bild-Karte mehr darunter,
     die eine andere Spaltenzahl/Höhe nötig gemacht hätte) — stretch
     (Grid-Default) sorgt zusätzlich dafür, dass alle 4 Karten trotz
     unterschiedlich langem Fließtext exakt gleich hoch sind. */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--border);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---- Showcase: fünf Kernfunktionen mit echten App-Mockup-Fotos ---- */
.feature-showcase-head { margin-top: 64px; margin-bottom: 36px; }
.feature-showcase-head h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); margin-bottom: 0; }

/* 5 Karten in einem 3-Spalten-Grid: die 2 Karten der zweiten (unvollständigen)
   Reihe sollen zentriert stehen statt linksbündig unter Spalte 1+2. CSS Grid
   hat dafür keinen direkten "letzte Reihe zentrieren"-Mechanismus, daher der
   klassische Kniff: doppelt so viele (6) Subspalten, jede Karte spannt 2 davon
   (= optisch weiterhin 3 Spalten), und die letzten beiden Karten bekommen
   einen expliziten grid-column-Start, der sie mittig unter den 3 Spalten
   platziert (Spalte 2–3 und 4–5 von 6, Spalte 1 und 6 bleiben frei). */
.feature-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: start;
}
.feature-showcase-grid > * { grid-column: span 2; }
.feature-showcase-grid > *:nth-child(4) { grid-column: 2 / span 2; }
.feature-showcase-grid > *:nth-child(5) { grid-column: 4 / span 2; }

@media (max-width: 960px) {
  /* Optisch 2 Spalten (4 Subspalten) — letzte, alleinstehende Karte (5.)
     ebenfalls zentriert statt linksbündig. */
  .feature-showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-showcase-grid > *:nth-child(4) { grid-column: auto; }
  .feature-showcase-grid > *:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 620px) {
  .feature-showcase-grid { grid-template-columns: 1fr; }
  /* Die nth-child(4)/(5)-Regeln von weiter oben (Zeile ~812f. und die
     960px-Query) haben höhere Spezifität (Klasse + :nth-child) als ein
     einfaches ".feature-showcase-grid > *" — die brauchen hier eigene,
     ebenso spezifische Resets, sonst "gewinnt" trotz späterer Position im
     Stylesheet die ältere, spezifischere Regel und reißt bei nur 1
     Explizit-Spalte ungewollt eine implizite 2./3. Spalte auf. */
  .feature-showcase-grid > *,
  .feature-showcase-grid > *:nth-child(4),
  .feature-showcase-grid > *:nth-child(5) { grid-column: auto; }
}

.feature-showcase-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-showcase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.feature-showcase-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.feature-showcase-card figcaption { padding: 20px 22px 24px; }
.feature-showcase-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-showcase-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   E-Rechnung banner section
   ========================================================================== */
.law-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--on-dark-border);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.law-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 24px;
}
.law-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 56px;
}
@media (max-width: 860px) {
  .law-card { grid-template-columns: 1fr; padding: 48px 28px; gap: 28px; }
}
.law-card .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #a9e0c2;
}
.law-card h2 { color: #fff; }
.law-card p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 24px; }
.law-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.law-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.law-fact strong { display: block; margin-bottom: 2px; }
.law-fact span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.law-visual {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px -16px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto 4px;
}

/* ==========================================================================
   Trust section
   ========================================================================== */
.trust-visual {
  max-width: 320px;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.trust-visual img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.trust-visual figcaption {
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
}
.trust-card .feature-icon { margin-inline: auto; }
.trust-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
}
.trust-card p { color: var(--text-muted); font-size: 0.92rem; }
.trust-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ==========================================================================
   Foto-Mosaik ("Für alle, die ihr eigenes Ding machen")
   ========================================================================== */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 780px) { .mosaic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mosaic-grid { grid-template-columns: 1fr; } }
.mosaic-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--on-dark-border);
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 96, 60, 0) 55%, rgba(15, 40, 28, 0.72) 100%);
}
.mosaic-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-visual {
  position: relative;
  max-width: 360px;
  margin: 0 auto 40px;
}
/* Dezenter grünlicher Glow hinter dem freigestellten App-Fenster, analog
   zum Hero-Screenshot (.hero-visual::before) — lässt das Mockup wie ein
   freigestelltes Produktfoto wirken statt wie ein rohes Bildschirmfoto. */
.pricing-visual::before {
  content: "";
  position: absolute;
  inset: -28px -20px;
  z-index: 0;
  background: radial-gradient(60% 65% at 50% 42%, var(--green-light) 0%, rgba(232, 244, 238, 0) 72%);
  pointer-events: none;
}
.pricing-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(15, 40, 28, 0.35), 0 8px 20px -8px rgba(15, 40, 28, 0.25);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
.save-badge {
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---- Pill-Segmented-Control (Revolut-artig) ----
   Grid statt Flex: Die beiden Buttons sind inhaltlich unterschiedlich lang
   ("Monatlich" vs. "Jährlich" + Sparen-Badge). Mit `display:flex` und
   `flex: 1 1 0` verhindert das `white-space: nowrap` auf den Buttons das
   Schrumpfen unter die eigene Inhaltsbreite (klassisches min-width:auto-
   Problem) — der "Jährlich"-Button blieb dadurch spürbar breiter als
   "Monatlich". Der gleitende Thumb ist aber fest auf `calc(50% - 4px)`
   berechnet und ging von zwei gleich breiten Buttons aus: im inaktiven
   Zustand überlappte der grüne Thumb dadurch bis zu 60px in den
   "Jährlich"-Button hinein (grauer Text auf Grün = kaum lesbar), im aktiven
   Zustand deckte der Thumb den Button nicht vollständig ab (weißer Text
   ragte auf den weißen Hintergrund hinaus = quasi unsichtbar). Fix: echte
   gleich breite Spalten per `grid-template-columns: repeat(2, minmax(0,1fr))`
   — beide Buttons bekommen exakt dieselbe Breite (bemessen an der breiteren
   "Jährlich"-Spalte), der Thumb passt danach wieder exakt. */
.pill-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-soft);
}
.pill-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--green);
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.pill-toggle.is-yearly .pill-toggle-thumb { transform: translateX(calc(100% + 0px)); }
.pill-toggle-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
  background: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.pill-toggle-btn.is-active { color: #fff; }
.pill-toggle-btn:not(.is-active) .save-badge { background: var(--green-light); color: var(--green); }
.pill-toggle-btn.is-active .save-badge { background: rgba(255,255,255,0.25); color: #fff; }
@media (max-width: 480px) {
  .pill-toggle-btn { padding: 9px 14px; font-size: 0.85rem; }
  .pill-toggle-btn .save-badge { display: none; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  perspective: 1400px;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; perspective: none; } }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:nth-child(1) { transform: rotate(-2.5deg) translateY(14px); }
.price-card:nth-child(3) { transform: rotate(2.5deg) translateY(14px); }
.price-card:hover { transform: rotate(0deg) translateY(0); box-shadow: var(--shadow-medium); z-index: 3; }
.price-card.is-featured {
  border-color: var(--green);
  box-shadow: var(--shadow-medium);
  position: relative;
  transform: translateY(-10px) scale(1.05);
  z-index: 2;
}
.price-card.is-featured:hover { transform: translateY(-14px) scale(1.07); }
@media (max-width: 960px) {
  .price-card, .price-card:hover,
  .price-card.is-featured, .price-card.is-featured:hover { transform: none; }
}
.price-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; }
.price-card .plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 42px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price-amount .num { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.price-amount .unit { color: var(--text-muted); font-size: 0.95rem; }
.price-yearly-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; min-height: 18px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 28px; flex-grow: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.price-features svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }
.pricing-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding: 30px 36px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  list-style: none;
}
.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 32px;
  position: relative;
}
.pricing-trust-item + .pricing-trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 1px;
  background: rgba(31, 122, 77, 0.18);
}
.pricing-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.pricing-trust-item span:last-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
@media (max-width: 780px) {
  .pricing-trust-bar { flex-direction: column; align-items: stretch; padding: 24px; }
  .pricing-trust-item { padding: 10px 4px; justify-content: center; }
  .pricing-trust-item + .pricing-trust-item::before {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 1px;
    width: 60%;
  }
}
.pricing-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-question .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item.is-open .faq-question .chevron { transform: rotate(180deg); color: var(--green); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.96rem; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  text-align: center;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }
.final-cta .hero-actions { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
/* War <h4>, sprang ohne dazwischenliegendes <h3> direkt von den Sektions-
   <h2>-Überschriften (z. B. "Bereit für Rechnungen ohne Kompromisse?") auf
   Ebene 4 — Fix: Tag im HTML auf <h3> geändert (siehe index.html), Selektor
   hier entsprechend nachgezogen, Optik unverändert. */
.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-size: 0.95rem; }
.footer-col a:hover { color: var(--green); }
.footer-desc { color: var(--text-muted); font-size: 0.92rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-legal-note {
  background: var(--green-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ==========================================================================
   Simple pages (Impressum/Datenschutz)
   ========================================================================== */
.legal-page {
  padding: 56px 0 96px;
  max-width: 720px;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 40px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 12px; }
.legal-page li { margin-left: 20px; list-style: disc; }
.legal-notice-box {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 36px;
}
.legal-notice-box p { color: var(--text); margin-bottom: 0; font-size: 0.95rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 32px;
}

/* ==========================================================================
   FAQ portal page (de/en/es faq.html)
   ========================================================================== */
.faq-page { padding: 56px 0 96px; }
.faq-page .container { max-width: 900px; }
.faq-page-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.faq-page-header h1 { font-size: 2.1rem; margin-bottom: 12px; }
.faq-page-header p { color: var(--text-muted); font-size: 1.05rem; }

.faq-search { position: relative; max-width: 480px; margin: 0 auto 40px; }
.faq-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.faq-search input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.98rem; font-family: inherit; color: var(--text);
}
.faq-search input:focus { outline: 2px solid var(--green); outline-offset: 2px; }

.faq-category-nav {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 56px;
}
.faq-category-nav a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 0.88rem; font-weight: 600; color: var(--text);
}
.faq-category-nav a:hover { border-color: var(--green); color: var(--green); }

.faq-category { margin-bottom: 48px; scroll-margin-top: 90px; }
.faq-category h2 { font-size: 1.3rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.faq-category .faq-list { max-width: none; }
.faq-no-results { text-align: center; color: var(--text-muted); padding: 40px 0; display: none; }
.faq-no-results.is-visible { display: block; }

.faq-contact-cta {
  text-align: center; margin-top: 56px; padding: 40px; background: var(--green-light);
  border-radius: 16px;
}
.faq-contact-cta h2 { font-size: 1.3rem; margin-bottom: 8px; }
.faq-contact-cta p { color: var(--text-muted); margin-bottom: 20px; }

/* ==========================================================================
   Ideensammlung (de/en/es ideensammlung.html)
   ========================================================================== */
.ideas-page { padding: 56px 0 96px; }
.ideas-page .container { max-width: 760px; }
.ideas-page-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.ideas-page-header h1 { font-size: 2.1rem; margin-bottom: 12px; }
.ideas-page-header p { color: var(--text-muted); font-size: 1.05rem; }

.ideas-login-card {
  max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
}
.ideas-login-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.ideas-login-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.ideas-login-card .field { margin-bottom: 14px; }
.ideas-login-card label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.ideas-login-card input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.95rem; font-family: inherit; color: var(--text); background: var(--bg);
}
.ideas-login-card input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.ideas-login-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.ideas-login-tabs button {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted);
}
.ideas-login-tabs button.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.ideas-error { color: #c0392b; font-size: 0.88rem; margin-top: 10px; }
.ideas-hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 14px; }

.ideas-budget-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--green-light); border-radius: 12px; padding: 16px 20px; margin-bottom: 28px;
}
.ideas-budget-bar .label { font-weight: 600; font-size: 0.95rem; }
.ideas-budget-bar .track {
  flex: 1; height: 8px; border-radius: 999px; background: rgba(31, 122, 77, 0.15); overflow: hidden;
}
.ideas-budget-bar .fill { height: 100%; background: var(--green); border-radius: 999px; transition: width 0.2s ease; }
.ideas-budget-bar .amount { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.ideas-logout-link { font-size: 0.82rem; color: var(--text-muted); }

.idea-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.idea-card-body { flex: 1; }
.idea-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.idea-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.idea-card-score { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-top: 8px; }
.idea-card-vote { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.idea-card-vote-controls { display: flex; align-items: center; gap: 8px; }
.idea-card-vote button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--text); line-height: 1;
}
.idea-card-vote button:hover { border-color: var(--green); color: var(--green); }
.idea-card-vote button:disabled { opacity: 0.35; cursor: not-allowed; }
.idea-card-vote .points { min-width: 24px; text-align: center; font-weight: 700; }
.idea-card-vote .my-label { font-size: 0.72rem; color: var(--text-muted); }

.idea-new-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin-top: 32px;
}
.idea-new-form h2 { font-size: 1.05rem; margin-bottom: 14px; }
.idea-new-form input, .idea-new-form textarea {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.95rem; font-family: inherit; color: var(--text); background: var(--bg); margin-bottom: 12px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Mobile mailto fallback toast
   ========================================================================== */
.email-fallback-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  background: var(--text);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
}
.email-fallback-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Footer social links (LinkedIn etc.)
   ========================================================================== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.footer-social-link--linkedin:hover {
  color: #fff;
  background: #0a66c2;
  border-color: #0a66c2;
}
.footer-social-link--instagram:hover {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
}
.footer-social-link svg { width: 17px; height: 17px; }


/* ==== Feature-Showcase: 6 Kacheln, 2 Reihen a 3, alle gleich gross ==== */
.feature-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.feature-showcase-grid > *,
.feature-showcase-grid > *:nth-child(4),
.feature-showcase-grid > *:nth-child(5),
.feature-showcase-grid > *:nth-child(6) { grid-column: auto; }
.feature-showcase-card { display: flex; flex-direction: column; height: 100%; }
.feature-showcase-card img { width: 100%; aspect-ratio: 644 / 800; object-fit: cover; display: block; }
.feature-showcase-card figcaption { flex: 1 1 auto; display: flex; flex-direction: column; }
@media (max-width: 960px) {
  .feature-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-showcase-grid > *,
  .feature-showcase-grid > *:nth-child(4),
  .feature-showcase-grid > *:nth-child(5),
  .feature-showcase-grid > *:nth-child(6) { grid-column: auto; }
}
@media (max-width: 620px) {
  .feature-showcase-grid { grid-template-columns: minmax(0, 1fr); }
}

.feature-showcase-grid { grid-auto-rows: 1fr; }

/* ==== Zahly Scan: Hinweiskasten im Startseiten-Abschnitt ==== */
.scan-status { max-width: 760px; margin: 40px auto 0; padding: 22px 26px; background: var(--green-light); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; color: var(--text); }
.scan-status strong { display: block; margin-bottom: 6px; }
.scan-status span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* ==== Zahly Scan: Bild und Punkte nebeneinander ==== */
.scan-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.scan-shot { margin: 0; display: flex; justify-content: center; }
.scan-shot img { display: block; width: 100%; max-width: 430px; height: auto; }
.scan-points { display: flex; flex-direction: column; gap: 30px; }
.scan-point { display: flex; gap: 20px; align-items: flex-start; text-align: left; }
.scan-point .feature-icon { flex: 0 0 auto; }
.scan-point h3 { margin: 0 0 6px; }
.scan-point p { margin: 0; color: var(--text-muted); }
@media (max-width: 900px) {
  .scan-split { grid-template-columns: 1fr; gap: 40px; }
  .scan-shot img { max-width: 320px; }
}

.scan-cta { margin-top: 20px; }

.footer-badge { display: inline-block; line-height: 0; margin-top: 4px; }
.footer-badge svg { display: block; width: auto; height: 40px; }
.footer-badge:hover { opacity: .85; }
.footer-col li.footer-badge-item { margin-top: 10px; }

.footer-badge-note { display: block; margin: 0 0 8px; max-width: 210px; font-size: 0.78rem; line-height: 1.4; color: var(--text-muted); }

.footer-app { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-app .footer-badge-note { max-width: 280px; margin-bottom: 12px; }
