/* ==========================================================================
   Empalia — Marketing-Website
   Design-System: Tokens, Layout-Primitive, Komponenten, Responsive
   Reines CSS, kein Build-Schritt.
   ========================================================================== */

/* ============================== FONTS (self-hosted) =======================
   Bewusst lokal ausgeliefert statt über das Google-Fonts-CDN: ein CDN-Embed
   überträgt die IP jedes Besuchers an einen Drittanbieter — genau das, was
   Empalia auf dieser Seite als "DSGVO-konform" bewirbt.
   ========================================================================== */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ================================= TOKENS ================================= */
:root {
  /* Markengrün — --brand-600 ist exakt der Ton der Empalia-Bildmarke */
  --brand-950: #042116;
  --brand-900: #072c1f;
  --brand-800: #0b3a29;
  --brand-700: #0f4a35;
  --brand-600: #156144;
  --brand-500: #1b7a55;
  --brand-400: #2f9c72;
  --brand-300: #6fb59a;
  --brand-200: #b3e0ce;
  --brand-100: #dcf0e6;
  --brand-50: #eef7f2;

  /* Akzent für KI-Funktionen (sparsam einsetzen) */
  --accent-600: #b8792c;
  --accent-500: #d99640;
  --accent-200: #f3ddba;
  --accent-100: #fbf1de;

  /* Statusfarben */
  --info-600: #2f7796;
  --info-100: #e6f0f5;
  --danger-600: #b4462f;
  --danger-100: #fbeae6;

  /* Neutrale Skala */
  --ink-900: #0b1512;
  --ink-800: #16241f;
  --ink-700: #24312c;
  --ink-600: #3d4b45;
  --ink-500: #4d5b55;
  /* --ink-400 ist der hellste Ton, der auf Weiß noch WCAG AA (4.5:1)
     für normalen Text erreicht — alles Sekundäre nutzt ihn. */
  --ink-400: #6a7872;
  /* --ink-300 (≈3.6:1) ist ausdrücklich nur für dekorative Mikro-Beschriftungen
     in den Produkt-Attrappen gedacht, nicht für Fließtext. */
  --ink-300: #7d8a84;
  --ink-200: #b9c3be;

  --line: #e4ebe7;
  --line-soft: #eef3f0;
  --line-strong: #cfded6;

  --surface: #ffffff;
  --surface-2: #f7fbf9;
  --surface-3: #eef4f1;
  --surface-app: #eef2f4;

  /* Typografie */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* Radien */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Schatten */
  --sh-xs: 0 1px 2px rgba(11, 58, 41, 0.06);
  --sh-sm: 0 2px 8px rgba(11, 58, 41, 0.06);
  --sh-md: 0 10px 26px -8px rgba(11, 58, 41, 0.14);
  --sh-lg: 0 24px 56px -16px rgba(11, 58, 41, 0.2);
  --sh-xl: 0 44px 90px -28px rgba(4, 33, 22, 0.42);
  --sh-glow: 0 0 0 1px rgba(179, 224, 206, 0.35), 0 20px 60px -20px rgba(4, 33, 22, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --gutter: clamp(20px, 4.5vw, 44px);
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --maxw-text: 760px;
  --header-h: 72px;
}

/* ================================= RESET ================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(21, 97, 68, 0.12);
}

h1,
h2,
h3,
h4,
p,
li,
a,
dd,
dt {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
a:hover {
  color: var(--brand-800);
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }
}

/* ============================ LAYOUT-PRIMITIVE ============================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap--wide {
  max-width: var(--maxw-wide);
}
.wrap--narrow {
  max-width: 900px;
}

.section {
  padding-block: clamp(60px, 8vw, 112px);
  position: relative;
}
.section--tight {
  padding-block: clamp(44px, 6vw, 76px);
}
.section--soft {
  background: var(--surface-2);
}
.section--tinted {
  background: linear-gradient(180deg, var(--brand-50) 0%, #ffffff 100%);
}
.section--dark {
  background: radial-gradient(120% 120% at 50% 0%, var(--brand-800) 0%, var(--brand-950) 78%);
  color: #fff;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

/* Sprungziele nicht unter dem klebenden Header verstecken */
[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--brand-600);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 180ms var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ================================ TYPOGRAFIE ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-500);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.section--dark .eyebrow {
  color: var(--brand-200);
}

.h1,
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 1.2rem + 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}
.h2,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 0.9rem + 2.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: var(--ink-900);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 0.8rem + 1.2vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}

.lede {
  font-size: clamp(16.5px, 0.8rem + 0.6vw, 20px);
  line-height: 1.62;
  color: var(--ink-500);
}
.section--dark .lede {
  color: #c7ded4;
}

.muted {
  color: var(--ink-400);
}
.small {
  font-size: 14px;
  line-height: 1.55;
}
.tiny {
  font-size: 12.5px;
  line-height: 1.5;
}
.accent-text {
  color: var(--brand-500);
}

.section-head {
  max-width: var(--maxw-text);
  margin-bottom: clamp(34px, 4.5vw, 58px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow {
  justify-content: center;
}
.section-head p {
  margin-top: 18px;
}

/* Text-Utility für Fließtextseiten (Legal, Über uns) */
.prose > * + * {
  margin-top: 18px;
}
.prose h2 {
  font-size: clamp(23px, 1rem + 1vw, 30px);
  margin-top: 46px;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
  margin-top: 32px;
}
.prose p,
.prose li {
  color: var(--ink-500);
  font-size: 16.5px;
  line-height: 1.7;
}
.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-300);
}
.prose strong {
  color: var(--ink-800);
  font-weight: 700;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================= BUTTONS ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
    color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn svg {
  flex: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(21, 97, 68, 0.75);
}
.btn--primary:hover {
  background: var(--brand-700);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn--secondary:hover {
  color: var(--brand-800);
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.btn--ghost {
  color: var(--brand-700);
  padding-inline: 12px;
}
.btn--ghost:hover {
  color: var(--brand-900);
  background: var(--brand-50);
}

/* Auf dunklem Grund */
.btn--light {
  background: #fff;
  color: var(--brand-900);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
}
.btn--light:hover {
  color: var(--brand-900);
  background: var(--brand-50);
}
.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.44);
}

.btn--lg {
  font-size: 16.5px;
  padding: 17px 28px;
  border-radius: var(--r-md);
}
.btn--sm {
  font-size: 14px;
  padding: 10px 16px;
}
.btn--block {
  display: flex;
  width: 100%;
}

@media (hover: hover) {
  .btn--primary:hover,
  .btn--light:hover {
    transform: translateY(-2px);
  }
}

/* Kurzform eines Button-Labels für sehr schmale Viewports */
.btn .label-short {
  display: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-600);
}
.link-arrow svg {
  transition: transform 200ms var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}
.section--dark .link-arrow {
  color: var(--brand-200);
}

/* ============================== KLEINTEILE ================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  white-space: nowrap;
}
.badge__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  flex: none;
}
.badge--onDark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #d8ece3;
  backdrop-filter: blur(8px);
}
.badge--onDark .badge__dot {
  background: rgba(179, 224, 206, 0.22);
  color: var(--brand-200);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  white-space: nowrap;
}
.tag--ai {
  background: var(--accent-100);
  color: var(--accent-600);
  border-color: var(--accent-200);
}
.tag--new {
  background: var(--info-100);
  color: var(--info-600);
  border-color: #d3e5ee;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.5;
}
.check-list li > svg,
.check-list .tick {
  flex: none;
  margin-top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.section--dark .check-list li {
  color: #cfe3da;
}
.section--dark .check-list .tick {
  background: rgba(179, 224, 206, 0.16);
  color: var(--brand-200);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  flex: none;
}
.icon-box--ai {
  background: var(--accent-100);
  color: var(--accent-600);
  border-color: var(--accent-200);
}
.icon-box--dark {
  background: rgba(179, 224, 206, 0.12);
  border-color: rgba(179, 224, 206, 0.2);
  color: var(--brand-200);
}
.icon-box--sm {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}

/* ================================= HEADER ================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  /* Die Trennlinie ist ein Inset-Schatten statt eines Rahmens: so ist der
     Kopf exakt --header-h hoch und der Hero kann sich passgenau darunter
     schieben (siehe .hero). */
  transition: box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.site-header.is-stuck {
  box-shadow: inset 0 -1px 0 var(--line), 0 6px 24px -18px rgba(11, 58, 41, 0.5);
}
body.nav-open .site-header {
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--line);
}

/* --- Kopfzeile über dem dunklen Hero: transparent, bis gescrollt wird ---
   `is-over-hero` setzt das Skript nur auf Seiten mit dunklem Hero; sobald
   `is-stuck` (ab dem ersten Scroll) oder das Mobilmenü aktiv ist, greift
   wieder die helle Variante darüber. */
body:not(.nav-open) .site-header.is-over-hero:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .logo__word {
  color: #fff;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .main-nav a,
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-trigger,
body:not(.nav-open) .is-over-hero:not(.is-stuck) .link-signin {
  color: #cfe3da;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .main-nav a:hover,
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-trigger:hover,
body:not(.nav-open) .is-over-hero:not(.is-stuck) .link-signin:hover,
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-item:hover .nav-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-toggle {
  color: #fff;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .btn--primary {
  background: #fff;
  color: var(--brand-900);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .btn--primary:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}
/* Das Dropdown bleibt eine helle Karte — Textfarben zurücksetzen */
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-panel a {
  color: var(--brand-600);
  background: none;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-panel a:hover {
  background: var(--brand-50);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
  box-shadow: 0 6px 16px -6px rgba(21, 97, 68, 0.6);
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}
.logo--onDark .logo__word {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.main-nav a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink-700);
  padding: 9px 13px;
  border-radius: var(--r-xs);
  border: none;
  background: none;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.main-nav a:hover,
.nav-trigger:hover,
.nav-item:hover .nav-trigger {
  color: var(--brand-700);
  background: var(--brand-50);
}
/* Nur die Links der obersten Ebene — nicht die im Dropdown */
.main-nav > a[aria-current="page"] {
  color: var(--brand-700);
}
.main-nav > a[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-400);
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .main-nav > a[aria-current="page"] {
  color: #fff;
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .main-nav > a[aria-current="page"]::after {
  background: var(--brand-200);
}
.mobile-nav a[aria-current="page"] {
  color: var(--brand-700);
}

/* Mega-Dropdown */
.nav-item {
  position: relative;
}
.nav-trigger svg {
  transition: transform 200ms var(--ease);
}
.nav-item:hover .nav-trigger svg,
.nav-item.is-open .nav-trigger svg {
  transform: rotate(180deg);
}
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(660px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
    visibility 200ms;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-panel a {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: none;
}
.nav-panel a:hover {
  background: var(--brand-50);
}
.nav-panel .np-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-panel a:hover .np-icon {
  background: #fff;
}
.nav-panel .np-title,
.nav-panel .np-sub {
  display: block;
}
.nav-panel .np-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
}
.nav-panel .np-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-400);
  margin-top: 3px;
  font-weight: 400;
}
/* Auch über dem dunklen Hero bleibt das Dropdown eine helle Karte */
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-panel .np-title {
  color: var(--ink-900);
}
body:not(.nav-open) .is-over-hero:not(.is-stuck) .nav-panel .np-sub {
  color: var(--ink-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.header-actions .link-signin {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-700);
  padding: 9px 12px;
  border-radius: var(--r-xs);
}
.header-actions .link-signin:hover {
  background: var(--brand-50);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  color: var(--brand-700);
}
.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 21px;
  height: 15px;
}
.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease), opacity 160ms var(--ease);
}
body.nav-open .nav-toggle__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilmenü */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav__inner {
  padding: 10px max(var(--gutter), env(safe-area-inset-left))
    calc(22px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-right));
}
.m-group + .m-group {
  border-top: 1px solid var(--line-soft);
}
.m-group__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 18px 2px 8px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-800);
  padding: 13px 2px;
}
.mobile-nav a .m-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-400);
  display: block;
  margin-top: 1px;
}
.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 44, 31, 0.4);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
body.nav-open .nav-backdrop {
  opacity: 1;
}

/* ================================== HERO ================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(115% 120% at 78% 0%, #14543d 0%, var(--brand-900) 46%, var(--brand-950) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 96px) clamp(64px, 9vw, 128px);
  /* Der Hero schiebt sich unter die klebende Kopfzeile, damit diese oben
     transparent über dem dunklen Verlauf liegen kann. Der Kopf hat z-index 50
     und bleibt dadurch sichtbar. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(52px, 7vw, 96px));
}
.hero::before {
  /* Aurora-Verlauf */
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(47, 156, 114, 0.42), transparent 70%),
    radial-gradient(closest-side, rgba(179, 224, 206, 0.22), transparent 72%);
  background-position: 12% 0%, 82% 22%;
  background-size: 62% 100%, 54% 88%;
  background-repeat: no-repeat;
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  /* feines Raster */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.hero .wrap {
  max-width: var(--maxw-wide);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr);
  gap: clamp(38px, 4.5vw, 64px);
  align-items: center;
}
.hero h1 {
  color: #fff;
  margin: 22px 0 0;
}
.hero h1 .hl {
  color: var(--brand-200);
  position: relative;
  white-space: nowrap;
}
.hero .lede {
  margin-top: 22px;
  color: #bfd9cd;
  max-width: 560px;
}
.hero-cta {
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #a9c8bb;
}
.hero-trust svg {
  color: var(--brand-300);
  flex: none;
}

/* Hero-Variante für Unterseiten */
.hero--page {
  padding-block: clamp(48px, 6vw, 84px) clamp(52px, 7vw, 96px);
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 68px));
}
.hero--page .wrap {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}
.hero--page .hero-copy {
  max-width: 820px;
}
.hero--page h1 {
  font-size: clamp(30px, 1.1rem + 3.4vw, 52px);
}
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #8fb2a3;
  margin-bottom: 22px;
}
.hero-breadcrumb a {
  color: #bfd9cd;
}
.hero-breadcrumb a:hover {
  color: #fff;
}

.hero-copy {
  animation: heroIn 620ms var(--ease-out) both;
  min-width: 0;
}
.hero-mock {
  min-width: 0;
  animation: heroIn 820ms var(--ease-out) 120ms both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-mock {
    animation: none;
  }
}

/* =========================== SPRUNGNAVIGATION ============================ */
.jumpnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.jumpnav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 10px;
}
.jumpnav ul::-webkit-scrollbar {
  display: none;
}
.jumpnav a {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.jumpnav a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.jumpnav a.is-active {
  background: var(--brand-600);
  color: #fff;
}
/* Mit Sprungnavigation braucht das Sprungziel mehr Abstand nach oben */
body:has(.jumpnav) [id] {
  scroll-margin-top: calc(var(--header-h) + 68px);
}
@media (max-width: 640px) {
  .jumpnav a {
    font-size: 13.5px;
    padding: 7px 12px;
  }
}

/* ============================= PRODUKT-MOCKS ============================== */
.mock {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-app);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-xl);
}
.mock--light {
  border-color: var(--line);
  box-shadow: var(--sh-lg);
}
.mock--float {
  animation: floatY 9s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--brand-950);
  padding: 11px 16px;
}
.mock__bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: #fff;
  flex: none;
}
.mock__brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.mock__pills {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.mock__pills span {
  font-size: 11.5px;
  color: #9dbcb0;
  padding: 5px 9px;
  white-space: nowrap;
  border-radius: 999px;
}
.mock__pills span.is-active {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.mock__bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.mock__avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand-500);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  color: #fff;
}
.mock__body {
  padding: clamp(12px, 2.6vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Karte: Liegenschaft */
.m-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.m-property {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.m-property__photo {
  position: relative;
  min-height: 168px;
}
.m-property__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-property__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.m-chip {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(7, 44, 31, 0.82);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.m-chip--solid {
  background: var(--brand-600);
}
.m-property__info {
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.m-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.m-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-900);
  margin: 3px 0 5px;
}
.m-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-400);
  font-size: 12px;
  margin-bottom: 14px;
}
.m-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.m-meta__k {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.m-meta__v {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  margin-top: 3px;
}

/* Karte: KI-Zusammenfassung */
.m-ai {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.m-ai::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-500), var(--brand-400));
}
.m-ai__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 11px;
}
.m-ai__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-900);
}
.m-ai__title svg {
  color: var(--accent-500);
}
.m-ai__stamp {
  font-size: 10px;
  color: var(--ink-400);
}
.m-ai ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-ai li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.45;
}
.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: none;
  margin-top: 5px;
  background: var(--brand-400);
}
.m-dot--amber {
  background: var(--accent-500);
}
.m-dot--info {
  background: var(--info-600);
}

/* Kacheln */
.m-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.m-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.m-tile__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--brand-50);
  color: var(--brand-600);
}
.m-tile__icon--amber {
  background: var(--accent-100);
  color: var(--accent-600);
}
.m-tile__t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-900);
}
.m-tile__s {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 1px;
}

/* Mini-Mock (Showcase-Tabs) */
.mini-mock {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.mini-mock__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mini-mock__head .count {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
}
.mm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mm-row:last-child {
  border-bottom: none;
}
.mm-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mm-main {
  flex: 1;
  min-width: 0;
}
.mm-t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-800);
}
.mm-s {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 1px;
}
.mm-meta {
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 500;
  flex: none;
}
.mm-num {
  flex: none;
  width: 40px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-500);
}
.mm-foot {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-400);
}

.pill {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill--warn {
  background: var(--accent-100);
  color: var(--accent-600);
}
.pill--info {
  background: var(--info-100);
  color: var(--info-600);
}
.pill--ok {
  background: var(--brand-50);
  color: var(--brand-600);
}
.pill--neutral {
  background: var(--surface-3);
  color: var(--ink-500);
}

/* Chat */
.mm-chat {
  padding: 16px 16px 8px;
}
.chat-row {
  display: flex;
  margin-bottom: 10px;
}
.chat-row.out {
  justify-content: flex-end;
}
.chat-wrap {
  max-width: 82%;
}
.chat-bubble {
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.45;
}
.chat-row.out .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: var(--brand-600);
  color: #fff;
}
.chat-row.in .chat-bubble {
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-3);
  color: var(--ink-700);
}
.chat-time {
  font-size: 10.5px;
  color: var(--ink-400);
  margin-top: 3px;
}
.chat-row.out .chat-time {
  text-align: right;
}
.mm-input {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.mm-input .fake {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.mm-send {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Datums-Chip */
.date-chip {
  flex: none;
  width: 46px;
  text-align: center;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 10px;
  padding: 5px 0;
}
.date-chip .d,
.date-chip .m {
  display: block;
}
.date-chip .d {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--brand-800);
  line-height: 1.1;
}
.date-chip .m {
  font-size: 9.5px;
  color: var(--brand-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================== LOGO-BAND =============================== */
.trustband {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.trustband .wrap {
  padding-block: 30px;
}
.trustband__label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 20px;
}
.trustband__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}
.trustband__items li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
}
.trustband__items svg {
  color: var(--brand-500);
  flex: none;
}

/* ================================= STATS ================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 28px);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 1rem + 2.2vw, 42px);
  letter-spacing: -0.03em;
  color: var(--brand-600);
  line-height: 1.05;
}
.stat__label {
  font-size: 14px;
  color: var(--ink-400);
  margin-top: 8px;
}
.section--dark .stats-grid {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--dark .stat {
  background: rgba(255, 255, 255, 0.03);
}
.section--dark .stat__num {
  color: var(--brand-200);
}
.section--dark .stat__label {
  color: #9dbcb0;
}

/* =============================== SEGMENTED =============================== */
.segmented {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar {
  display: none;
}
.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: none;
  color: var(--ink-500);
  white-space: nowrap;
  transition: all 220ms var(--ease);
}
.segmented__btn:hover {
  color: var(--brand-700);
}
.segmented__btn[aria-selected="true"] {
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--sh-sm);
}
.segmented--center {
  display: flex;
  margin-inline: auto;
  width: max-content;
  max-width: 100%;
}
.section--dark .segmented {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--dark .segmented__btn {
  color: #a9c8bb;
}
.section--dark .segmented__btn[aria-selected="true"] {
  background: #fff;
  color: var(--brand-800);
}

/* ============================= FEATURE-GRIDS ============================= */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease),
    border-color 240ms var(--ease);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--ink-900);
  margin: 18px 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-500);
}
.card__list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-300);
  margin-top: 8px;
}
@media (hover: hover) {
  .card--hover:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-3px);
    border-color: var(--line-strong);
  }
}
.card--flat {
  background: var(--surface-2);
  border-color: var(--line-soft);
}
.card--dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.card--dark .card__title {
  color: #fff;
}
.card--dark p {
  color: #b6d0c5;
}
.card--dark .card__list {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.card--dark .card__list li {
  color: #a9c8bb;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.bento > * {
  grid-column: span 2;
}
.bento .span-3 {
  grid-column: span 3;
}
.bento .span-4 {
  grid-column: span 4;
}
.bento .span-6 {
  grid-column: span 6;
}

/* Split-Layout (Text + Mock) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media {
  order: -1;
}
.split__media {
  min-width: 0;
}
.split + .split {
  margin-top: clamp(56px, 8vw, 104px);
}

/* Modulliste */
.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.module-list__item {
  background: #fff;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 200ms var(--ease);
}
.module-list__item:hover {
  background: var(--surface-2);
}
.module-list__item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink-900);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.module-list__item p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--ink-400);
}

/* ============================== SHOWCASE-TABS ============================ */
.showcase-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
  margin-top: 34px;
}
.showcase-view {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
.showcase-view.is-active {
  display: grid;
  animation: fadeUp 420ms var(--ease-out) both;
}
.showcase-view__text {
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-view__text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 0.8rem + 1.6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  margin: 20px 0 14px;
}
.showcase-view__text > p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.showcase-view__media {
  background: linear-gradient(160deg, var(--brand-50), var(--surface-2));
  border-left: 1px solid var(--line-soft);
  padding: clamp(24px, 3.4vw, 48px) clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ================================= STEPS ================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(22px, 3vw, 34px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-50%);
  background: #fff;
  padding-right: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brand-500);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-500);
}
.section--soft .step::before {
  background: var(--surface-2);
}

/* =============================== VERGLEICH ============================== */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.compare__col {
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
}
.compare__col--before {
  background: var(--surface-2);
}
.compare__col--after {
  background: linear-gradient(155deg, var(--brand-600), var(--brand-800));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-md);
}
.compare__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}
.compare__col--before .compare__head {
  color: var(--ink-500);
}
.compare ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.compare li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.compare__col--before li {
  color: var(--ink-400);
}
.compare__col--after li {
  color: #d5e9df;
}
.compare li svg {
  flex: none;
  margin-top: 2px;
}

/* =============================== KUNDENSTIMME ============================ */
.testimonial {
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-50) 100%);
}
.quote {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.quote__mark {
  color: var(--brand-200);
  margin: 0 auto 22px;
}
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 0.8rem + 1.5vw, 29px);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink-800);
}
.quote blockquote strong {
  font-weight: 600;
  color: var(--brand-700);
}
.quote__by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 20px 10px 10px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-align: left;
}
.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex: none;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-800));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.quote__name,
.quote__role {
  display: block;
}
.quote__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-900);
}
.quote__role {
  font-size: 13.5px;
  color: var(--ink-400);
  margin-top: 1px;
}

/* ================================== FAQ ================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.faq-item[data-open="true"] {
  border-color: var(--brand-200);
  box-shadow: var(--sh-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.faq-q .chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 240ms var(--ease), background 200ms var(--ease);
}
.faq-item[data-open="true"] .chev {
  transform: rotate(180deg);
  background: var(--brand-100);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.faq-item[data-open="true"] .faq-a {
  grid-template-rows: 1fr;
}
.faq-a__inner {
  overflow: hidden;
}
.faq-a p {
  padding: 0 22px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-500);
}
.faq-a p + p {
  padding-top: 0;
}

/* ================================= PREISE ================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card--featured {
  border-color: var(--brand-300);
  box-shadow: var(--sh-md);
  position: relative;
}
.price-card--featured::before {
  content: attr(data-flag);
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--brand-600);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-900);
}
.price-card__desc {
  font-size: 14.5px;
  color: var(--ink-400);
  margin-top: 7px;
  min-height: 44px;
}
.price-card__price {
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
}
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--brand-700);
  line-height: 1.1;
}
.price-card__unit {
  font-size: 13.5px;
  color: var(--ink-400);
  margin-top: 6px;
}
.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-600);
}
.price-card li svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand-500);
}
.price-card li.is-muted {
  color: var(--ink-400);
}
.price-card li.is-muted svg {
  color: var(--ink-200);
}
.price-card .btn {
  margin-top: auto;
}

/* Ein Preis statt Pakete */
.pricebox {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: #fff;
}
.pricebox__main {
  padding: clamp(28px, 4vw, 48px);
}
.pricebox__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 22px;
}
.pricebox__figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  align-items: flex-start;
}
.pricefig__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 1rem + 3.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brand-700);
}
.pricefig__unit {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-400);
  margin-top: 10px;
}
.pricebox__note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-400);
}
.pricebox__side {
  background: linear-gradient(165deg, var(--brand-50), var(--surface-2));
  border-left: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.pricebox__side-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
  margin-top: 9px;
}
.pricebox__side-item strong {
  color: var(--ink-800);
}

@media (max-width: 860px) {
  .pricebox {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricebox__side {
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }
}

/* Vergleichstabelle */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.matrix th,
table.matrix td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.matrix thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-800);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.matrix tbody th {
  font-weight: 600;
  color: var(--ink-800);
  width: 40%;
}
table.matrix td {
  color: var(--ink-500);
}
table.matrix tr:last-child th,
table.matrix tr:last-child td {
  border-bottom: none;
}
table.matrix .yes {
  color: var(--brand-600);
}
table.matrix .no {
  color: var(--ink-200);
}
.matrix-group td {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-800);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================================ FORMULAR =============================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--sh-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}
.field .req {
  color: var(--brand-500);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 15.5px;
  font-family: var(--font-body);
  color: var(--ink-900);
  transition: border-color 180ms var(--ease), background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234d5b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(47, 156, 114, 0.16);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-400);
}
.field .hint {
  font-size: 12.5px;
  color: var(--ink-400);
}
.field .error {
  font-size: 13px;
  color: var(--danger-600);
  font-weight: 600;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger-600);
  background: var(--danger-100);
}
.field.has-error .error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--brand-600);
}
.checkbox.has-error {
  color: var(--danger-600);
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.form-status.is-visible {
  display: block;
  animation: fadeUp 300ms var(--ease-out) both;
}
.form-status--ok {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-800);
}
.form-status--err {
  background: var(--danger-100);
  border-color: #f0cec6;
  color: var(--danger-600);
}

/* Kontakt-Sidebar */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-tile__t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.contact-tile p,
.contact-tile a {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-500);
}
.contact-tile a {
  color: var(--brand-600);
  font-weight: 600;
}

/* ================================== CTA ================================== */
.cta {
  padding-bottom: clamp(60px, 8vw, 108px);
  background: #fff;
}
.cta__box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: radial-gradient(120% 130% at 20% 0%, var(--brand-700) 0%, var(--brand-950) 72%);
  padding: clamp(40px, 6vw, 78px) clamp(24px, 5vw, 68px);
  text-align: center;
  isolation: isolate;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(47, 156, 114, 0.35), transparent 70%),
    radial-gradient(closest-side, rgba(179, 224, 206, 0.18), transparent 70%);
  background-position: 8% 10%, 88% 30%;
  background-size: 56% 90%, 48% 80%;
  background-repeat: no-repeat;
  z-index: -1;
}
.cta__box h2 {
  color: #fff;
  max-width: 780px;
  margin-inline: auto;
}
.cta__box p {
  color: #bfd9cd;
  font-size: clamp(16px, 0.8rem + 0.6vw, 19px);
  line-height: 1.6;
  max-width: 580px;
  margin: 18px auto 32px;
}
.cta__note {
  margin-top: 26px !important;
  font-size: 13.5px !important;
  color: #8fb2a3 !important;
}

/* ================================= FOOTER ================================ */
.site-footer {
  background: var(--brand-950);
  color: #9dbcb0;
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #8fb2a3;
  margin-top: 16px;
  max-width: 300px;
}
.footer-brand .logo {
  margin-bottom: 2px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b6d0c5;
}
.footer-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6f9385;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 14.5px;
  color: #c3d5cd;
}
.footer-col a:hover {
  color: var(--brand-200);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #6f9385;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-bottom a {
  color: #8fb2a3;
}
.footer-bottom a:hover {
  color: var(--brand-200);
}

/* ============================== BACK-TO-TOP ============================== */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: #fff;
  color: var(--brand-900);
}

/* ============================= SCROLL-REVEAL ============================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =============================== HILFSKLASSEN ============================ */
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 12px;
}
.mt-2 {
  margin-top: 22px;
}
.mt-3 {
  margin-top: 34px;
}
.mt-4 {
  margin-top: 48px;
}
.mb-2 {
  margin-bottom: 22px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--accent-100);
  border: 1px solid var(--accent-200);
  color: var(--accent-600);
  font-size: 14.5px;
  line-height: 1.55;
}
.note svg {
  flex: none;
  margin-top: 2px;
}
.note strong {
  color: var(--accent-600);
}
.note--info {
  background: var(--info-100);
  border-color: #d3e5ee;
  color: var(--info-600);
}
.note--info strong {
  color: var(--info-600);
}

/* ================================ RESPONSIVE ============================= */
@media (max-width: 1160px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .main-nav {
    gap: 0;
  }
  .main-nav a,
  .nav-trigger {
    padding-inline: 10px;
    font-size: 14.5px;
  }
  .mock__pills span:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 1040px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .mock__pills span:nth-child(n + 4) {
    display: none;
  }
}

/* --- Navigation klappt ins Mobilmenü --- */
@media (max-width: 980px) {
  .main-nav,
  .header-actions .link-signin,
  .header-actions .btn--secondary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  /* Ohne die Hauptnavigation braucht der Kopf keinen großen Zwischenraum */
  .header-inner {
    gap: 14px;
  }
  body.nav-open .mobile-nav,
  body.nav-open .nav-backdrop {
    display: block;
  }
  body.nav-open {
    overflow: hidden;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: 720px;
  }
  .split,
  .split--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--reverse .split__media {
    order: 0;
  }
  .showcase-view.is-active {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-view__media {
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento > * {
    grid-column: span 3;
  }
  .bento .span-4,
  .bento .span-6 {
    grid-column: span 6;
  }
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
  .price-card--featured::before {
    right: auto;
    left: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .footer-brand p {
    max-width: none;
  }
  .bento > *,
  .bento .span-3,
  .bento .span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 66px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-property {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-property__photo {
    min-height: 150px;
  }
  .m-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock__pills span:nth-child(n + 3) {
    display: none;
  }
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn-row .btn {
    width: 100%;
  }
  .header-actions .btn {
    padding-inline: 16px;
    font-size: 14.5px;
  }
  .mm-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .mm-row .pill,
  .mm-row .mm-meta {
    margin-left: auto;
  }
  .faq-q {
    padding: 17px 18px;
    font-size: 16px;
  }
  .faq-a p {
    padding-inline: 18px;
  }
  .trustband__items li {
    font-size: 12.5px;
    padding: 8px 13px;
  }
  .to-top {
    width: 42px;
    height: 42px;
  }
}

/* --- Sehr schmale Geräte: Kopfzeile auf das Nötigste reduzieren --- */
@media (max-width: 480px) {
  .header-inner {
    gap: 10px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn .label-long {
    display: none;
  }
  .header-actions .btn .label-short {
    display: inline;
  }
  .header-actions .btn {
    font-size: 14px;
    padding-inline: 15px;
  }
}

@media (max-width: 420px) {
  .logo__word {
    font-size: 19px;
  }
  .logo__mark {
    width: 32px;
    height: 32px;
  }
  .mock__pills span:nth-child(n + 2) {
    display: none;
  }
  .segmented__btn {
    font-size: 13.5px;
    padding: 10px 14px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Querformat auf niedrigen Displays */
@media (max-height: 480px) {
  .mobile-nav a {
    padding-block: 10px;
  }
  .m-group__label {
    padding-top: 12px;
  }
}

/* Touch-Geräte: größere Trefferflächen */
@media (hover: none) {
  .footer-col ul {
    gap: 4px;
  }
  .footer-col a {
    padding-block: 7px;
    display: inline-block;
  }
}

/* Druck */
@media print {
  .site-header,
  .mobile-nav,
  .nav-backdrop,
  .to-top,
  .cta,
  .site-footer {
    display: none !important;
  }
  body {
    color: #000;
  }
  .hero {
    background: none;
    color: #000;
  }
}
