/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  /* ---- Color System ---- */
  --midnight: #111144;
  --brand-blue: #0052D3;
  --pure-white: #FFFFFF;
  --bg-light: #F7F7F7;
  --text-dark: #0A0A0A;
  --text-primary: #1a1a1a;
  --text-body: #444444;
  --text-muted: #666666;
  --text-light: #888888;
  --text-faint: #999999;
  --warm-gray: #6B6560;
  --border: #E5E5E5;
  --border-light: #F0F0F0;

  /* Button hover colors */
  --btn-hover-midnight: #1a1a6e;
  --btn-hover-blue: #0046b3;
  --btn-hover-white: #f0f0f0;

  /* Nav colors */
  --nav-blue-dark: #002866;
  --nav-blue-hover: #003a99;
  --nav-bg-hover: #e8eef7;

  /* Semantic colors */
  --green-teal: #00695C;
  --orange: #E65100;

  /* ---- Font Families ---- */
  --font-display: 'Aspekta', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'GeistMono', monospace;

  /* ---- Typography Scale ---- */
  --text-display: 58px;
  --text-h2: 42px;
  --text-h3: 36px;
  --text-h4: 28px;
  --text-h5: 20px;
  --text-subline: 17px;
  --text-base: 16px;
  --text-body-sm: 14px;
  --text-cta: 13px;
  --text-eyebrow: 12px;
  --text-small: 11px;

  /* ---- Line Heights ---- */
  --lh-display: 1.02;
  --lh-heading: 1.15;
  --lh-body: 1.65;

  /* ---- Letter Spacing ---- */
  --ls-display: -1.5px;
  --ls-heading: -0.5px;
  --ls-eyebrow: 0;
  --ls-cta: 1.2px;

  /* ---- Color System: Blue Scale ---- */
  --blue-950: #001033;
  --blue-900: #001A4D;
  --blue-800: #002266;
  --blue-700: #002E80;
  --blue-600: #003A99;
  --blue-500: #0046B3;
  --blue-400: #0052D3;
  --blue-300: #1A6AE4;
  --blue-200: #4D8EF0;
  --blue-100: #99C2FA;
  --blue-50:  #E8F0FE;

  /* ---- Color System: Midnight Scale ---- */
  --midnight-900: #06062A;
  --midnight-800: #0A0A50;
  --midnight-700: #0D0D88;
  --midnight-600: #111144;
  --midnight-500: #1A1A6E;
  --midnight-400: #24249A;

  /* ---- Color System: Semantic ---- */
  --success: #2E7D32;
  --warning: #E5940B;
  --error: #C62828;

  /* ---- Spacing (8px system) ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* ---- Border Radius ---- */
  --radius-sm:   7px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.08);
  --shadow-glass: 0 8px 32px rgba(17,17,68,0.10), inset 0 1px 0 rgba(255,255,255,0.70);

  /* ---- Layout ---- */
  --max-width: 1300px;
  --section-pad: 120px;

  /* ---- Transitions ---- */
  --transition: 200ms ease;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--pure-white);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--brand-blue);
  color: var(--pure-white);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

/* Ghost-Span utilities for two-line headings (e.g. "Was unsere Kunden sagen") */
.ghost-light { color: rgba(13,15,26,0.30); font-weight: inherit; }
.ghost-dark  { color: rgba(255,255,255,0.55); font-weight: inherit; }

/* ================================================
   PILL BUTTON (StandardFleet style)
   ================================================ */
.cta-btn {
  display: inline-flex;
  align-items: stretch;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0;
  overflow: visible;
  gap: 4px;
  min-height: 44px;
  will-change: filter;
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn__label {
  display: flex;
  align-items: center;
  background: var(--midnight);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: var(--text-cta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-cta);
  padding: 10px 24px;
  border-radius: 999px;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--midnight);
  color: var(--pure-white);
  align-self: center;
  width: 36px;
  height: 36px;
  border-left: 1px solid transparent;
  border-radius: 50%;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), align-self 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn__icon svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.cta-btn:hover {
  gap: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.cta-btn:hover .cta-btn__label {
  background: var(--btn-hover-midnight);
  border-radius: 999px 0 0 999px;
}
.cta-btn:hover .cta-btn__icon {
  background: var(--btn-hover-midnight);
  border-radius: 0 999px 999px 0;
  align-self: stretch;
  width: 40px;
  height: auto;
}
.cta-btn:hover .cta-btn__icon svg {
  transform: translateX(3px);
}
.cta-btn:focus-visible {
  gap: 0;
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 999px;
}
.cta-btn:focus-visible .cta-btn__label {
  border-radius: 999px 0 0 999px;
}
.cta-btn:focus-visible .cta-btn__icon {
  border-radius: 0 999px 999px 0;
  align-self: stretch;
  width: 40px;
  height: auto;
}
/* Blue variant */
.cta-btn--blue .cta-btn__label,
.cta-btn--blue .cta-btn__icon {
  background: var(--brand-blue);
}
.cta-btn--blue:hover .cta-btn__label,
.cta-btn--blue:hover .cta-btn__icon {
  background: var(--btn-hover-blue);
}
/* White variant */
.cta-btn--white .cta-btn__label,
.cta-btn--white .cta-btn__icon {
  background: var(--pure-white);
  color: var(--text-dark);
}
.cta-btn--white:hover .cta-btn__label,
.cta-btn--white:hover .cta-btn__icon {
  background: var(--btn-hover-white);
}
.cta-btn--white:hover .cta-btn__icon {
  border-left-color: transparent;
}
/* Glass variant — used on dark/colored backgrounds (Hero, Solution) */
.cta-btn--glass .cta-btn__label,
.cta-btn--glass .cta-btn__icon {
  background: rgba(255,255,255,0.15);
  color: var(--pure-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
}
.cta-btn--glass .cta-btn__icon { border-left: none; }
.cta-btn--glass .cta-btn__icon svg { stroke: var(--pure-white); }
.cta-btn--glass:hover .cta-btn__label,
.cta-btn--glass:hover .cta-btn__icon {
  background: rgba(255,255,255,0.28);
}
/* Small variant (nav) — engeres Padding + kleinere Schrift */
.cta-btn--small {
  gap: 3px;
}
.cta-btn--small .cta-btn__label {
  padding: 10px 18px;
  font-size: var(--text-small);
  height: auto;
}

/* ================================================
   FLAT BUTTON — Hero/Solution/CTA/Nav (matches Figma)
   Title Case, dünner Border, kein Split-Pill, kein Arrow-Icon.
   ================================================ */
.btn-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.btn-flat:hover { transform: translateY(-1px); }
.btn-flat:active { transform: scale(0.97); }
.btn-flat:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.btn-flat--glass {
  background: rgba(255,255,255,0.10);
  color: var(--pure-white);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-flat--glass:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.28);
}

.btn-flat--white {
  background: var(--pure-white);
  color: var(--nav-blue-dark);
}
.btn-flat--white:hover { background: var(--btn-hover-white); }

.btn-flat--blue {
  background: var(--brand-blue);
  color: var(--pure-white);
}
.btn-flat--blue:hover { background: var(--btn-hover-blue); }

.btn-flat--small {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 10px;
}

/* ================================================
   EYEBROW — Mono uppercase, no bullet (Figma 687:891 style)
   ================================================ */
.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
}
.eyebrow__text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
/* On dark/colored backgrounds */
.eyebrow--white .eyebrow__text,
.eyebrow--on-dark .eyebrow__text {
  color: rgba(255,255,255,0.85);
}
.eyebrow--light { margin-bottom: 16px; }
/* Verstecke leere Eyebrow-Container automatisch */
.eyebrow:empty,
.eyebrow:has(.eyebrow__text:empty) { display: none; }

/* ================================================
   NAVIGATION — Logo links + Pill rechts (Figma 691:7677)
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: padding 0.4s ease;
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ------------------------------------------------
   Logo — Sign + Wordmark (Reference: docunite-website)
   ------------------------------------------------ */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  gap: 0;
  text-decoration: none;
  margin-right: auto;
}
.nav__logo-sign {
  height: 64px;
  width: auto;
  transition: opacity 0.4s ease;
  margin-left: -10px;
}
.nav__logo-sign--dark {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  margin-left: 0;
}
.nav__logo-wordmark {
  height: 22px;
  width: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Wordmark variants — same on/off pattern as the sign */
.nav__logo-wordmark--light { opacity: 1; }
.nav__logo-wordmark--dark  { opacity: 0; position: absolute; pointer-events: none; }

/* Logo defaults: white sign + wordmark visible */
.nav__logo-sign--light { opacity: 1; }
.nav__logo-sign--dark  { opacity: 0; }

/* Scrolled state: both wordmarks fade out */
.nav--scrolled .nav__logo-wordmark {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}
/* Light theme: sign wechselt zu primary blue */
.nav--theme-light .nav__logo-sign--light { opacity: 0; }
.nav--theme-light .nav__logo-sign--dark  { opacity: 1; }
/* Dark theme: sign bleibt weiß */
.nav--theme-dark .nav__logo-sign--light { opacity: 1; }
.nav--theme-dark .nav__logo-sign--dark  { opacity: 0; }

/* ------------------------------------------------
   Pill — Glass container, spannt die GESAMTE Nav-Breite
   (Logo + Menu + CTA), damit der Glass-Hintergrund durchgängig
   bis links unter das Logo reicht.
   3 States (Figma 691:7677):
     · Default      — pill transparent, white logo + wordmark
     · scroll       — light glass, blue logo (über hellen Sections)
     · scroll dark  — dark glass, white logo  (über dunklen Sections)
   Theme wird per JS via [data-nav-theme] auf den Sections gesetzt.
   ------------------------------------------------ */
.nav__pill {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  padding: 0 6px 0 24px;
  border-radius: 15px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
/* Scrolled + dark theme (default Hintergrund) */
.nav--scrolled.nav--theme-dark .nav__pill {
  background: rgba(80, 80, 95, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* Scrolled + light theme (über weißen Sections) */
.nav--scrolled.nav--theme-light .nav__pill {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ------------------------------------------------
   Menu Items
   ------------------------------------------------ */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__item {
  position: relative;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}
.nav__link:hover {
  color: rgba(255, 255, 255, 0.7);
}
/* Light theme: dunkle Texte für Lesbarkeit auf hellen Sections */
.nav--theme-light .nav__link {
  color: var(--text-dark);
}
.nav--theme-light .nav__link:hover {
  color: var(--brand-blue);
}
/* Dark theme: weiße Texte (default) */
.nav--theme-dark .nav__link {
  color: #ffffff;
}
.nav--theme-dark .nav__link:hover {
  color: rgba(255, 255, 255, 0.7);
}
.nav__link .chevron {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__link .chevron svg {
  display: block;
}
.nav__item:hover .chevron {
  transform: rotate(180deg);
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: -16px;
  /* Glas-Werte 1:1 von .nav__mega gespiegelt, damit Produkt- und
     Erfolgsgeschichten-Panel visuell identisch wirken. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(13, 15, 26, 0.08);
  border-radius: 20px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown-link:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ------------------------------------------------
   MEGA-MENU (Produkte Hover, Figma "Flyout lang")
   Konfiguriert über Brand → Navigation Tab.
   Menu ist Sibling von .nav__menu innerhalb .nav__pill —
   anchored an Pill (left:0 → right:0), öffnet also genau unter
   der Nav-Pill, nicht breiter und nicht außerhalb.
   Hover-Trigger via :has() Selektor auf .nav__item--mega
   oder .nav__mega selbst (für Hover-Brücke).
   ------------------------------------------------ */
.nav__mega {
  /* .nav__mega ist DIREKTER Child von <nav>, NICHT von .nav__pill —
     .nav__pill bekommt im Scroll-Zustand backdrop-filter, das einen
     neuen Containing Block für position: fixed erzeugt und das
     Viewport-Anchoring kaputt macht.
     position: fixed → anchored zum Viewport. Horizontal zentriert via
     left: 50% + translateX(-50%), damit die drei Spalten in der Breite
     symmetrisch atmen koennen statt rechtsbuendig zum Trigger anzu-
     stossen. Width-Cap bei 1200px, mit 24px Viewport-Margin als Safety.
     JS setzt --mega-top (knapp unter der Nav). */
  position: fixed;
  top: var(--mega-top, 84px);
  left: 50%;
  width: min(1200px, calc(100vw - 48px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(13, 15, 26, 0.08);
  border-radius: 20px;
  /* oben 35px (bis zur docuspine-Card), links/rechts 45px, unten 32px */
  padding: 35px 45px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 100;
}
.nav:has(.nav__item--mega:hover) .nav__mega,
.nav:has(.nav__item--mega:focus-within) .nav__mega,
.nav__mega:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.nav__mega::before {
  /* Hover-Brücke unterhalb des Panels — gilt nur wenn Panel bereits sichtbar
     (visibility: visible). Hält das Menu offen wenn die Maus zum Panel kommt. */
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* Bridge unter dem Trigger — IMMER da, auch wenn das Mega-Panel hidden ist.
   Schließt die 4-14px Lücke zwischen Trigger-Bottom und Panel-Top, damit
   eine natürliche Mausbewegung den Hover nicht zwischenzeitlich verliert. */
.nav__item--mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 22px;
}
.nav__mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.nav__mega[data-columns="1"] .nav__mega-inner { grid-template-columns: 1fr; }
.nav__mega[data-columns="2"] .nav__mega-inner { grid-template-columns: repeat(2, 1fr); }

.nav__mega-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
/* Dritte Spalte (docuspine) als eigenstaendige Card — Rahmen, Radius,
   Schatten + eigene Innenabstaende (oben 33px, unten 40px, seitlich 26px).
   margin-left vergroessert den Abstand zur mittleren Spalte auf 45px
   (24px Grid-Gap + 21px). */
.nav__mega-column:nth-child(3) {
  border: 1px solid rgba(13, 15, 26, 0.08);
  border-radius: 16px;
  padding: 33px 26px 40px;
  margin-left: 21px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.35);
}
.nav--theme-dark .nav__mega-column:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.nav__mega-product {
  display: block;
  font-family: var(--font-display, var(--font-body));
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin: 0 0 8px;
  text-decoration: none;
  line-height: 1.1;
}
/* Leere Title-Slots reservieren trotzdem eine Zeile Höhe, damit
   Spalten ohne Produkttitel mit denen mit Titel oben sauber alignen. */
.nav__mega-product:empty::before {
  content: "\00a0";
}
a.nav__mega-product:hover { color: var(--brand-blue); }

.nav__mega-eyebrow {
  display: block;
  font-family: var(--font-mono, var(--font-body));
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 16px 0 4px;
}
.nav__mega-eyebrow:first-child { margin-top: 0; }

.nav__mega-entry {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, padding 0.15s ease;
}
.nav__mega-entry:hover {
  background: rgba(0, 82, 211, 0.04);
  padding-left: 8px;
  padding-right: 8px;
}
.nav__mega-entry-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.nav__mega-entry-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Visual-Card (Promo) — Figma "Security" / "API & MCP" */
.nav__mega-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}
.nav__mega-visual:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.nav__mega-visual--blue {
  background-color: #0052d3;
  background-blend-mode: overlay;
  color: var(--pure-white);
}
.nav__mega-visual--dark {
  background-color: #0a1228;
  background-blend-mode: overlay;
  color: var(--pure-white);
}
/* Wenn ein Visual-Image gesetzt ist (inline background-image via PHP), die
   Theme-Farbe + Blend-Mode neutralisieren — sonst tinted die Blau-/Dark-Farbe
   das Bild. Die ::after Bottom-Gradient bleibt fuer Text-Lesbarkeit. */
.nav__mega-visual[style*="background-image"] {
  background-color: transparent;
  background-blend-mode: normal;
}
.nav__mega-visual::after {
  /* Lesbarkeits-Overlay über dem Bild */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
  border-radius: inherit;
}
.nav__mega-visual > * { position: relative; z-index: 1; }
.nav__mega-visual-title {
  font-family: var(--font-display, var(--font-body));
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.nav__mega-visual-desc {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.nav__mega-visual-cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pure-white);
}

/* Mega-Menu on-light variant: Pill ist im Light-Theme transparent,
   Mega bleibt aber Light Glass (kontrastreich auf Hero-Bildern) */
.nav--theme-dark .nav__mega,
.nav--theme-dark .nav__dropdown {
  background: rgba(20, 22, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav--theme-dark .nav__mega-product { color: var(--pure-white); }
.nav--theme-dark a.nav__mega-product:hover { color: #66a0ff; }
.nav--theme-dark .nav__mega-eyebrow { color: rgba(255, 255, 255, 0.55); }
.nav--theme-dark .nav__mega-entry-title { color: var(--pure-white); }
.nav--theme-dark .nav__mega-entry-sub { color: rgba(255, 255, 255, 0.65); }
.nav--theme-dark .nav__mega-entry:hover { background: rgba(255, 255, 255, 0.06); }
/* Dropdown-Links in Dark-Theme — analog zu .nav__mega-entry */
.nav--theme-dark .nav__dropdown-link { color: var(--pure-white); }
.nav--theme-dark .nav__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pure-white);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CTA-Button in nav (Figma: 156×50, blue, radius 12) */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  background: #0052d3;
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.nav__cta:hover {
  background: #003fb3;
}

/* Sprach-Umschalter: Menü-Eintrag mit Dropdown — nutzt .nav__item /
   .nav__link / .nav__dropdown wie die übrigen Menüpunkte, öffnet
   rechtsbündig (sitzt am rechten Nav-Rand neben dem CTA). */
.nav__item--lang .nav__dropdown {
  left: auto;
  right: -16px;
  min-width: 130px;
}
.nav__lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav__lang-option.is-active {
  font-weight: 600;
}
.nav__lang-check {
  color: var(--brand-blue);
  flex-shrink: 0;
}
.nav__mobile-lang {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: 8px;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pure-white);
  padding: 32px 40px;
  z-index: 999;
  overflow-y: auto;
}
.nav__mobile.active { display: block; }
.nav__mobile-group { margin-bottom: 0; }
.nav__mobile-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 20px 0 8px;
}
.nav__mobile-link {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile-link--sub {
  padding-left: 16px;
  font-size: 16px;
}
.nav__mobile-link--product {
  font-family: var(--font-display, var(--font-body));
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px 0 4px;
  border-bottom: none;
}
.nav__mobile-eyebrow {
  display: block;
  font-family: var(--font-mono, var(--font-body));
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 12px 0 4px 16px;
}
.nav__mobile-cta {
  margin-top: 24px;
}

/* ================================================
   NAV VARIANT: ON LIGHT BACKGROUND
   Logo: dark sign + blue wordmark; Pill stays transparent until scroll
   ================================================ */
.nav--on-light .nav__logo-sign--light {
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
}
.nav--on-light .nav__logo-sign--dark {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  opacity: 1;
  margin-left: -10px;
}
/* Light theme: switch to blue wordmark variant — only while NOT scrolled.
   Scrolled-state rule above must always win, so wordmark fades on ANscrollen
   regardless of theme (matching home behavior). */
.nav:not(.nav--scrolled).nav--theme-light .nav__logo-wordmark--light,
.nav:not(.nav--scrolled).nav--on-light    .nav__logo-wordmark--light { opacity: 0; position: absolute; pointer-events: none; }
.nav:not(.nav--scrolled).nav--theme-light .nav__logo-wordmark--dark,
.nav:not(.nav--scrolled).nav--on-light    .nav__logo-wordmark--dark  { opacity: 1; position: static; pointer-events: auto; }
.nav--on-light .nav__pill { background: transparent; }
.nav--on-light .nav__link { color: var(--text-dark); }
.nav--on-light .nav__link:hover { color: var(--brand-blue); }
/* Hamburger-Farbe folgt dem Marken-Logo: weiß auf dunklen Sektionen, dunkel auf hellen */
.nav--theme-dark  .nav__hamburger span { background: var(--pure-white); }
.nav--theme-light .nav__hamburger span,
.nav--on-light    .nav__hamburger span { background: var(--text-dark); }

/* When scrolled AND on-light: scrolled state (dark glass) wins */
.nav--scrolled.nav--on-light .nav__pill {
  background: rgba(80, 80, 95, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav--scrolled.nav--on-light .nav__link { color: var(--pure-white); }
.nav--scrolled.nav--on-light .nav__link:hover { color: rgba(255, 255, 255, 0.7); }
.nav--scrolled.nav--on-light .nav__logo-wordmark { filter: none; }

/* ================================================
   HERO — Centered text + customer logos (Figma 687:944)
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #003899 0%, #001f5e 35%, #000a2a 70%, #00081f 100%);
  color: var(--pure-white);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero > .container > .hero__body {
  margin-block: auto;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -15%;
  background:
    radial-gradient(50% 45% at 20% 90%, rgba(0, 100, 220, 0.30) 0%, transparent 60%),
    radial-gradient(40% 35% at 80% 30%, rgba(50, 80, 180, 0.20) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-orb { position: absolute; }
.hero__bg-orb--1 {
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  bottom: -20%; left: -10%;
  background: radial-gradient(ellipse at center, rgba(0,120,255,0.28) 0%, transparent 65%);
  filter: blur(40px);
}
.hero__bg-orb--2 {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  top: -15%; right: -10%;
  background: radial-gradient(ellipse at center, rgba(50,80,200,0.30) 0%, transparent 65%);
  filter: blur(40px);
}
.hero__bg-orb--3 {
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(10,30,80,0.40) 0%, transparent 65%);
  filter: blur(50px);
}
/* Sphere + Shell-Network Canvases — Pixel-Animation rechts-unten. JS in
   assets/js/hero-sphere.js zeichnet rotierende Sphäre (back) und Flicker-
   Highlights (front). Mask blendet unten weich aus damit der Übergang zur
   nächsten Section sauber wird. */
.hero__sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}
.hero__sphere--back  { opacity: 0.42; }
.hero__sphere--front { opacity: 1; }

.hero__body {
  position: relative;
  padding: 32px 0 0;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero__eyebrow {
  margin: 38px auto 40px;
  justify-content: center;
}
.hero__eyebrow .eyebrow__text {
  color: rgba(255,255,255,0.85);
}
.hero__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.28px;
  color: var(--pure-white);
  margin: 0 auto;
  max-width: 748px;
}
.hero__sub {
  max-width: 474px;
  margin: 50px auto 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}
.hero__cta-row {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

/* Customer Logos integriert im Hero — direkter .hero-Kind (1:1 wie docuspine),
   damit Marquee die volle Section-Breite nimmt und das Mask-Fade an den
   Viewport-Kanten greift statt am Container-Rand. */
.hero__logos {
  position: relative;
  margin: 0;
  padding: 0 0 60px;
  width: 100%;
  text-align: center;
}
.hero__logos-label {
  justify-content: center;
  margin: 0 auto 24px;
}
.hero__logos-label .eyebrow__text {
  color: rgba(255,255,255,0.65);
}
/* Endlos-Marquee — Logos werden zwei Mal im Markup gerendert für nahtlosen Loop */
.hero__logos-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero__logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: heroLogosScroll 36s linear infinite;
  will-change: transform;
}
.hero__logos-marquee:hover .hero__logos-track { animation-play-state: paused; }
.hero__logos-track img {
  flex: 0 0 auto;
  max-height: 36px;
  width: auto;
  opacity: 0.95;
}
@keyframes heroLogosScroll {
  /* Track wird 4-mal gerendert (siehe hero.php / product.php / docuspine.php).
     Animation translatiert um 1/4 = 25% nach links, was genau 1 Set entspricht.
     Bei dieser Distanz ist die naechste Iteration visuell identisch zum Start —
     seamless loop. 4 Sets statt 2 verhindern dass auf breiten Screens (>= 2.5K)
     die rechte Track-Kante sichtbar wird, falls 1 Set schmaler als der
     Viewport ist. */
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ================================================
   TESTIMONIAL (01 — Referenzen, Figma 687:884)
   ================================================ */
.testimonial {
  padding: var(--section-pad) 0;
  background: var(--pure-white);
  overflow: hidden;
}
.testimonial__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.testimonial__header-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: var(--ls-heading);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial__heading-ghost {
  color: rgba(13,15,26,0.22);
  font-weight: 600;
}
.testimonial__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 6px;
}
.testimonial__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: none;
  background: #F2F2F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.testimonial__nav-btn:hover {
  background: var(--brand-blue);
  color: var(--pure-white);
}
.testimonial__nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.testimonial__track-wrapper {
  overflow: hidden;
  padding: 12px 0 20px;
  margin: -12px 0 -20px;
  /* Negativer rechter Margin: Cards ragen rechts über den Container raus
     (peek), bis zum Viewport-Rand. */
  margin-right: calc(-1 * (50vw - 50%) + 0px);
  padding-right: 40px;
  /* Harter Fade-Out ab der Content-Max-Breite (--max-width): innerhalb von
     50px komplett transparent — markiert die übliche Inhaltsbreite klar.
     Auf Viewports ≤ Max-Width klemmt max(0px,…) den Fade-Start auf 0
     → kein Fade nötig. */
  -webkit-mask-image: linear-gradient(
    to right,
    black 0,
    black calc(100% - max(0px, (100vw - var(--max-width)) / 2)),
    transparent calc(100% - max(0px, (100vw - var(--max-width)) / 2) + 50px)
  );
  mask-image: linear-gradient(
    to right,
    black 0,
    black calc(100% - max(0px, (100vw - var(--max-width)) / 2)),
    transparent calc(100% - max(0px, (100vw - var(--max-width)) / 2) + 50px)
  );
}
.testimonial__track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.testimonial__stat-card {
  flex: 0 0 300px;
  background: var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 409px;
}
.testimonial__stat-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  color: var(--pure-white);
  letter-spacing: -2px;
}
.testimonial__stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}
.testimonial__card {
  flex: 0 0 420px;
  background: var(--pure-white);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 409px;
}
.testimonial__card-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.testimonial__card-quote {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  flex: 1;
  margin: 0;
}
.testimonial__card-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial__card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial__card-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial__card-author-info strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
}
.testimonial__card-author-info span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* ================================================
   SOLUTION — "Struktur trifft Intelligenz" (Figma 687:817)
   2 statische Blöcke side-by-side, kein Tab-System.
   ================================================ */
.solution {
  position: relative;
  background: linear-gradient(180deg, var(--brand-blue) 30%, #141d39 100%);
  color: var(--pure-white);
  padding: 120px 0 200px;
  isolation: isolate;
  overflow: hidden;
}
.solution::before {
  content: '';
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(45% 50% at 80% 20%, rgba(0,120,255,0.30) 0%, transparent 65%),
    radial-gradient(50% 60% at 20% 80%, rgba(0,40,120,0.40) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.solution > * { position: relative; z-index: 1; }

.solution__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.solution__eyebrow {
  margin: 0 auto 16px;
  justify-content: center;
}
.solution__eyebrow .eyebrow__text { color: rgba(255,255,255,0.65); }
.solution__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--pure-white);
}
.solution__sub {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.solution__block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 0 0;
  display: grid;
  grid-template-columns: 578fr 510fr;
  gap: 80px;
  align-items: center;
}
.solution__block--reverse {
  grid-template-columns: 510fr 578fr;
  padding-top: 157px;
}
.solution__block--reverse .solution__media { order: 2; }
.solution__block--reverse .solution__text  { order: 1; }

.solution__media {
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 578 / 433;
  background: rgba(0,0,0,0.30);
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.solution__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solution__text { padding: 0 12px; }
.solution__block-eyebrow {
  margin: 0 0 37px;
}
.solution__block-eyebrow .eyebrow__text { color: rgba(255,255,255,0.65); }
/* Eyebrows in der Lösungs-Section etwas größer als der globale Default — die
   11px wirken im dunklen, weit gespreizten Layout sonst zu zart. */
.solution__eyebrow .eyebrow__text,
.solution__block-eyebrow .eyebrow__text {
  font-size: 13px;
  letter-spacing: 1.6px;
}
.solution__block-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--pure-white);
  margin-bottom: 37px;
}
.solution__block-copy {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-bottom: 37px;
}

/* ================================================
   TRUST — "Gebaut für die Immobilienwirtschaft" (Figma 687:774)
   3 alternierende Rows. Markup ist immer text-then-media,
   --reverse dreht via order/grid.
   ================================================ */
.trust {
  background: #141d39;
  color: var(--pure-white);
  padding: 128px 0 140px;
}
.trust__head {
  max-width: 1236px;
  margin: 0 auto 128px;
  text-align: center;
}
.trust__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--pure-white);
}
.trust__row {
  max-width: 1200px;
  margin: 0 auto 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.trust__row:last-child { margin-bottom: 0; }
/* Markup ist immer text-then-media — reverse setzt media nach links */
.trust__row--reverse .trust__media { order: 1; }
.trust__row--reverse .trust__text  { order: 2; }

.trust__media {
  border-radius: 40px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 578 / 410;
  /* min-width:0 nötig: sonst zieht ein groß aufgelöstes Bild über das
     Grid-Auto-Minimum den Track auf und überragt den Container. */
  min-width: 0;
}
.trust__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trust__eyebrow {
  margin-bottom: 43px;
}
.trust__eyebrow .eyebrow__text { color: rgba(255,255,255,0.85); }
.trust__block-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--pure-white);
  margin-bottom: 37px;
  /* Lange deutsche Komposita (z.B. "Immobilienerfahrung") sonst breiter
     als der Grid-Track → sprengen die Spalte. Silbentrennung + harter
     Umbruch als Fallback. */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
.trust__block-text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  max-width: 578px;
}

/* ================================================
   DISCOVER — "Lösung zwei Produkte" (Figma 708:2012)
   2 klickbare Produkt-Karten side-by-side mit Hover-Lift.
   ================================================ */
.discover {
  background: linear-gradient(180deg, #0a1530 0%, #0d1d3f 35%, #ffffff 100%);
  padding: 70px 0 121px;
  color: var(--pure-white);
}
/* Reverse-Variante (z.B. Über-uns-Seite): einfacher weißer Hintergrund,
   Text dark damit lesbar. */
.discover.discover--reverse {
  background: #ffffff;
  color: var(--text-dark, #0d0f1a);
}
.discover--reverse .discover__heading { color: var(--text-dark, #0d0f1a); }
.discover--reverse .discover__eyebrow .eyebrow__text { color: rgba(13,15,26,0.55); }
.discover--reverse .discover__subline { color: rgba(13,15,26,0.65); }
.discover--reverse .discover__heading .ghost-light { color: rgba(13,15,26,0.22); }
.discover__head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.discover__eyebrow { margin: 0 auto 16px; }
.discover__eyebrow .eyebrow__text { color: rgba(255,255,255,0.65); }
.discover__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--pure-white);
}
.discover__subline {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

.discover__grid {
  max-width: 1128px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.discover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* aspect-ratio statt fixed height — Card skaliert mit Container-Breite
     mit. Bild-Empfehlung: ratio 528:517 (≈1:1) hochauflösend (Retina
     ~1056×1034), dann füllt cover ohne Crop. */
  aspect-ratio: 528 / 517;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: var(--pure-white);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  box-shadow: 0 6px 24px rgba(0, 20, 60, 0.18);
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Bei gesetztem Card-Image die Theme-Gradients neutralisieren, damit nur
   das Bild als Bg sichtbar ist (Gradient wuerde sonst drueberblenden). */
.discover-card--has-image.discover-card--blue,
.discover-card--has-image.discover-card--dark {
  background-color: transparent;
}
.discover-card--has-image::before { display: none; }
.discover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 30, 100, 0.35);
}

/* Blue Theme — docunite Datenraum */
.discover-card--blue {
  background: linear-gradient(135deg, #003fb3 0%, #0052d3 35%, #0048bf 100%);
}
.discover-card--blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 55%, transparent 70%);
  z-index: 0;
}

/* Dark Theme — docuspine */
.discover-card--dark {
  background: linear-gradient(150deg, #0a1230 0%, #050a20 60%, #02060f 100%);
}
.discover-card--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 60% 30%, rgba(0, 80, 200, 0.30) 0%, transparent 60%),
    radial-gradient(40% 40% at 30% 70%, rgba(0, 120, 255, 0.20) 0%, transparent 60%);
  z-index: 0;
}

.discover-card__content {
  position: relative;
  z-index: 2;
  padding: 55px 31px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.discover-card__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--pure-white);
  margin-bottom: 16px;
  /* Volle Breite (Parent ist align-items:flex-start) — sonst schrumpft die
     Headline auf ihre Textbreite und bricht nicht. So bricht sie normal am
     Leerzeichen um (z.B. "dataroom" wandert in die 2. Zeile). */
  align-self: stretch;
}
.discover-card__subline {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  max-width: 320px;
}
.discover-card__btn {
  pointer-events: none;
}

.discover-card__visual {
  position: absolute;
  left: 32px;
  right: -10%;
  bottom: -8%;
  z-index: 1;
  height: 60%;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.discover-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.30);
}
.discover-card:hover .discover-card__visual {
  transform: translateY(-8px);
}

@media (max-width: 1100px) {
  .discover__grid { grid-template-columns: 1fr; gap: 24px; }
  /* width:100% nötig, sonst leitet der Browser die Breite aus
     height + aspect-ratio ab (460 × 528/517 ≈ 470px) und sprengt
     den Grid-Track auf Viewports < 500px. */
  .discover-card { height: 460px; width: 100%; }
}

/* ================================================
   ERFOLGSGESCHICHTEN / SUCCESS — 3 cards (Figma 687:697)
   ================================================ */
.success {
  background: var(--pure-white);
  padding: 128px 0 128px;
}
.success__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.success__eyebrow {
  margin: 0 auto 20px;
  justify-content: center;
}
.success__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-dark);
}
.success__grid {
  max-width: 1236px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
}
.success-card {
  position: relative;
  height: 480px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 40px;
  overflow: hidden;
  background: var(--brand-blue);
  cursor: pointer;
  display: block;
  transition: flex 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Wenn ein Element der Grid gehovered wird, schrumpfen die anderen */
.success__grid:hover > .success-card { flex: 0.55 1 0; }
.success__grid > .success-card:hover,
.success__grid > .success-card.is-expanded {
  flex: 1.7 1 0;
}

.success-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.success-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
  z-index: 1;
  transition: background 0.4s ease;
}
.success-card:hover::after,
.success-card.is-expanded::after {
  /* Helleres Blue-Stack an Figma 586:2200 angelehnt, aber mit niedrigerer
     Opacity (0.55) damit das Bild deutlich durchschimmert. */
  background: linear-gradient(157deg, rgba(57, 137, 254, 0.55) 0%, rgba(29, 109, 233, 0.55) 50%, rgba(0, 62, 161, 0.60) 100%);
}
.success-card:hover .success-card__img,
.success-card.is-expanded .success-card__img { opacity: 0.7; }

/* Compact view: logo zentriert + Pfeil unten-rechts */
.success-card__compact {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.success-card:hover .success-card__compact,
.success-card.is-expanded .success-card__compact { opacity: 0; }
.success-card__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 100px;
  filter: brightness(0) invert(1);
}
.success-card__arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.20);
  display: grid;
  place-items: center;
  color: var(--pure-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.success-card__arrow svg { width: 18px; height: 18px; }

/* Expanded view: structured content overlay (only visible on hover).
   Default state (=leave): kurzer Fade-Out ohne Delay, sodass beim Schliessen
   der Text zuerst verschwindet, bevor die Card schrumpft.
   Hover state (=enter): Fade+SlideUp mit 0.45s Delay, damit der Card-Expand
   (0.45s Flex-Transition) vollstaendig abgelaufen ist, bevor der Text auftaucht.
   Verhindert dass die Headline beim Aufgehen umbricht und der Text rumfliegt. */
.success-card__expanded {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  color: var(--pure-white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.success-card:hover .success-card__expanded,
.success-card.is-expanded .success-card__expanded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease 0.45s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
  pointer-events: auto;
}
.success-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  height: 56px;
}
/* Weisser Logo-Container an Figma 586:2220 angelehnt. */
.success-card__logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--pure-white);
  overflow: hidden;
}
.success-card__head-logo {
  max-height: 32px;
  max-width: 44px;
  width: auto;
  object-fit: contain;
}
.success-card__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.success-card__headline {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  color: var(--pure-white);
  margin-bottom: 28px;
  max-width: 280px;
}
.success-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: auto;
}
.success-card__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.success-card__col-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
/* Icon-Box + Text in einer Row, Box ist nicht-shrinkbar (Figma 691:7584). */
.success-card__col-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.success-card__col-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
}
.success-card__col-icon svg { width: 14px; height: 14px; }
.success-card__col-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
.success-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  /* Bottom-right — User-Wunsch (Figma hat es links). Sitzt am selben Spot
     wie der Pfeil im compact-State (right/bottom 28px). */
  align-self: flex-end;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-transform: none;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}
.success-card__cta svg { width: 14px; height: 14px; stroke: currentColor; }
.success-card:hover .success-card__cta { background: rgba(255, 255, 255, 0.42); }

/* ================================================
   CTA SECTION — Person photo + headline + button (Figma 687:656)
   ================================================ */
.cta-section {
  position: relative;
  background-color: var(--brand-blue);
  /* Bild ist 9000 px breit (WebP) → cover croppt immer auf die Mitte,
     ohne dass das Bild gestreckt wird. Keine Side-Fade-Hack mehr noetig. */
  background-image: url('/assets/images/backgrounds/bg_cta_demo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--pure-white);
  height: 600px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 900px) {
  .cta-section {
    height: auto;
    padding: 100px 0;
    display: block;
  }
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,40,140,0.15) 0%, rgba(0,40,140,0) 30%, rgba(0,40,140,0) 70%, rgba(0,40,140,0.20) 100%);
  z-index: 0;
  pointer-events: none;
}
.cta-section > * { position: relative; z-index: 1; }

.cta-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 254px 1fr;
  gap: 76px;
  align-items: center;
}

.cta-section__person {
  position: relative;
  width: 254px;
  /* Frame matching Figma 928:22879 — transparent overlay + blue border + shadow.
     Freigestellte Portraits zeigen die CTA-BG durch die transparenten Bereiche. */
  background: rgba(255,255,255,0.18);
  border: 2.4px solid #1769ea;
  border-radius: 40px 40px 15px 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}
.cta-section__person-img {
  width: 100%;
  height: 271px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cta-section__person-card {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.18);
  color: var(--pure-white);
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
}
.cta-section__person-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--pure-white);
}
.cta-section__person-role {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.cta-section__content {}
.cta-section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--pure-white);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-section__heading-line1 { color: var(--pure-white); }
.cta-section__heading-line2 { color: rgba(255,255,255,0.40); }
.cta-section__sub {
  font-size: 17px;
  font-weight: 500;
  color: var(--pure-white);
  margin-bottom: 28px;
  max-width: 474px;
  line-height: 1.5;
}
.cta-section__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-section__note {
  font-size: 12px;
  font-weight: 400;
  color: var(--pure-white);
  max-width: 160px;
  line-height: 1.45;
  opacity: 0.88;
  white-space: pre-line;
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 2;
  background: var(--pure-white);
}
.faq__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}
.faq__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 72px);
  color: var(--text-dark);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 24px;
}
.faq__items {
  width: 100%;
  border-top: 1px solid var(--border);
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 31px 0;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq__question-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}
.faq__question-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}
.faq__question-icon::before,
.faq__question-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__question-icon::before { width: 22px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__question-icon::after  { width: 1.5px; height: 22px; transform: translate(-50%, -50%); }
.faq__item.active .faq__question-icon::after,
.faq__question[aria-expanded="true"] .faq__question-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
/* Versteckter +-Text (PHP-Markup hat ein <span>+</span> Fallback) */
.faq__question-icon { font-size: 0; line-height: 0; }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq__answer-inner {
  padding: 0 80px 30px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq__item.active .faq__answer { max-height: 600px; }

/* ================================================
   FOOTER — 3-column nav + legal (mit Gradient-Orbs Background)
   ================================================ */
.footer {
  position: relative;
  background-color: var(--brand-blue);
  background-image: url('/assets/images/backgrounds/bg_footer.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  color: var(--pure-white);
}
.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 72px 0 64px;
  gap: 80px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.footer__logo {
  display: flex;
  align-items: center;
  /* SVG has ~8% inner whitespace on the left edge — pull the wordmark flush with the tagline */
  margin-left: -24px;
}
.footer__logo img {
  height: 110px;
  width: auto;
  display: block;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.footer__cols {
  display: flex;
  gap: 80px;
  flex-shrink: 0;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--text-cta);
  font-weight: 600;
  text-transform: none;
  letter-spacing: var(--ls-eyebrow);
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
}
.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}
.footer__col-link:hover { color: var(--pure-white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 24px 0;
  gap: 24px;
}
.footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}
.footer__legal-links {
  display: flex;
  gap: 32px;
}
.footer__legal-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__legal-link:hover { color: var(--pure-white); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1080px) {
  /* Pill bleibt sichtbar (traegt jetzt das Logo) — nur Menu + CTA aus,
     und der Glass-Hintergrund wird auf Mobile abgeschaltet. */
  .nav__menu,
  .nav__right { display: none; }
  .nav__pill {
    padding-left: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .nav__hamburger { display: flex; }
  .nav__logo-sign { height: 48px; }
  .nav__logo-wordmark { height: 18px; }
}

@media (max-width: 1100px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 32px; }
  .nav__inner { padding: 0 32px; }

  .solution__block,
  .solution__block--reverse,
  .trust__row,
  .trust__row--reverse,
  .faq__grid,
  .cta-section__inner,
  .footer__main {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .solution__block,
  .solution__block--reverse { padding-top: 64px; }
  .discover__grid {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .success__grid {
    flex-direction: column;
    gap: 16px;
  }
  /* Touch hat kein Hover — der Hover-Expand entfaellt. Cards werden gestapelt
     und zeigen ihren Inhalt direkt (kompakte mobile Variante: Logo + Name +
     Headline + CTA). flex:1 1 0 wuerde im Column-Layout auf 0 Hoehe
     kollabieren — daher feste flex-basis + height:auto. */
  .success-card,
  .success__grid:hover > .success-card,
  .success__grid > .success-card:hover,
  .success__grid > .success-card.is-expanded {
    flex: 0 0 auto;
    height: auto;
    min-height: 200px;
  }
  .success-card__compact { display: none; }
  .success-card__cols { display: none; }
  /* Blaues Overlay dauerhaft (wie im Desktop-Hover-State) — fuer Textkontrast. */
  .success-card::after {
    background: linear-gradient(157deg, rgba(57,137,254,0.62) 0%, rgba(29,109,233,0.62) 50%, rgba(0,62,161,0.68) 100%);
  }
  .success-card__expanded {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 28px;
  }
  .success-card__headline {
    max-width: none;
    margin-bottom: 22px;
  }
  .solution__block--reverse .solution__media,
  .trust__row--reverse .trust__media { order: 0; }
  .solution__block--reverse .solution__text,
  .trust__row--reverse .trust__text { order: 0; }

  .hero__heading { font-size: 44px !important; }
  .cta-section__heading { font-size: 38px !important; letter-spacing: -1px; }
  .testimonial__heading { font-size: 36px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 24px; }
  .discover-card__heading { font-size: 28px; }
  .hero { padding-top: 112px; }
  .hero__body { padding: 32px 0 0; }
  .hero__eyebrow { margin: 32px auto 48px; }
  .hero__heading { font-size: 36px !important; }
  .hero__logos-row { gap: 28px; }
  .hero__logos-row img { max-height: 28px; }

  .testimonial__header { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .testimonial__stat-card { flex: 0 0 260px; min-height: 300px; padding: 36px 28px; }
  .testimonial__card { flex: 0 0 300px; min-height: 300px; padding: 28px; }
  .testimonial__stat-number { font-size: 52px; }
  /* Mobile: natives Touch-Swipe statt JS-Pfeil-Transform.
     transform:none !important neutralisiert die per JS gesetzte Inline-
     Transform; Pfeile entfallen, da nativ gewischt wird. */
  .testimonial__nav { display: none; }
  .testimonial__track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonial__track-wrapper::-webkit-scrollbar { display: none; }
  .testimonial__track {
    transform: none !important;
    transition: none;
  }
  .testimonial__stat-card,
  .testimonial__card { scroll-snap-align: start; }

  .solution { padding: 80px 0; }
  .solution__head { margin-bottom: 56px; }
  .solution__block,
  .solution__block--reverse { padding-top: 0; margin-bottom: 56px; }
  .solution__block-eyebrow,
  .solution__block-heading,
  .solution__block-copy { margin-bottom: 20px; }
  .trust { padding: 80px 0; }
  .trust__head { margin-bottom: 56px; }
  .trust__row { margin-bottom: 80px; }
  .trust__eyebrow { margin-bottom: 20px; }
  .trust__block-heading { margin-bottom: 20px; }

  /* FAQ: min-width:0 lässt das Grid-Item unter seine min-content-Breite
     schrumpfen — sonst ziehen per &nbsp; verklebte Wortketten in den
     (eingeklappten) Antworten den 1fr-Track auf und das +-Icon der
     Fragen ragt rechts raus. */
  .faq__items { min-width: 0; }
  .faq__answer-inner {
    padding-right: 0;
    overflow-wrap: break-word;
  }
  .faq__question-text { overflow-wrap: break-word; }

  .success { padding: 80px 0; }
  .success-card { height: 360px; }

  .cta-section { padding: 80px 0; }
  .cta-section__person { width: 200px; }
  .cta-section__person-img { height: 220px; }
  .cta-section__heading { font-size: 32px !important; }

  .faq__title { font-size: 48px; }

  .footer__main { gap: 48px; padding: 56px 0 48px; flex-direction: column; }
  .footer__cols { gap: 48px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }

  .hero__heading { font-size: 32px !important; letter-spacing: -1px; }
  .hero__sub { font-size: 15px; }
  .hero__logos-row { gap: 20px; }

  .faq__title { font-size: 40px; }
  .cta-section__heading { font-size: 28px !important; }
  .footer__cols { gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ================================================
   HERO ENTRANCE ANIMATIONS
   ================================================ */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(var(--hero-entrance-distance, 16px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero__eyebrow,
.hero__heading,
.hero__sub,
.hero__cta-row,
.hero__logos {
  opacity: 0;
  will-change: opacity, transform;
}
.hero__eyebrow {
  --hero-entrance-distance: 16px;
  animation: heroFadeInUp 400ms cubic-bezier(0.0, 0.0, 0.2, 1) 0ms both;
}
.hero__heading {
  --hero-entrance-distance: 24px;
  animation: heroFadeInUp 500ms cubic-bezier(0.0, 0.0, 0.2, 1) 100ms both;
}
.hero__sub {
  --hero-entrance-distance: 16px;
  animation: heroFadeInUp 400ms cubic-bezier(0.0, 0.0, 0.2, 1) 200ms both;
}
.hero__cta-row {
  --hero-entrance-distance: 16px;
  animation: heroFadeInUp 400ms cubic-bezier(0.0, 0.0, 0.2, 1) 300ms both;
}
.hero__logos {
  --hero-entrance-distance: 24px;
  animation: heroFadeInUp 600ms cubic-bezier(0.0, 0.0, 0.2, 1) 400ms both;
}

/* ================================================
   BUTTON ACTIVE STATES
   ================================================ */
.cta-btn:active {
  transform: scale(0.97);
  transition: transform 80ms ease, gap 80ms ease;
}

/* ================================================
   ACCESSIBILITY
   ================================================ */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__eyebrow,
  .hero__heading,
  .hero__sub,
  .hero__cta-row,
  .hero__logos {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
  }
  .hero__logos-track { animation: none !important; }
  .cta-btn:hover,
  .btn-flat:hover {
    transform: none !important;
    filter: none !important;
  }
  .cta-btn,
  .cta-btn__label,
  .cta-btn__icon,
  .btn-flat {
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   GRAIN TEXTURE UTILITY
   Subtiles feTurbulence Film-Grain für --bg-light Sections.
   ================================================ */
.grain-bg { position: relative; }
.grain-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 -7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.03;
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .grain-bg::before { transition: none; }
}
