/* ============================================
   Morfis Immobilien — Stylesheet
   Design-Tokens: nur diese Werte verwenden.
   ============================================ */

/* ---------- Schrift (lokal eingebunden) ----------
   Selbst gehostet statt über Google Fonts: die Schrift sieht dadurch auf
   jedem Gerät identisch aus und es wird keine IP-Adresse an Google übertragen.
   Poppins für Überschriften/UI, Open Sans für Fließtext — dieselbe Paarung
   wie bei anderen professionellen Immobilien-Websites in der Region. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-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: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/opensans-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: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/opensans-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;
}

:root {
  /* Markenfarben laut Branding-Vorgabe */
  --teal:  #063233;
  --gold:  #D8AA80;
  --white: #FFFFFF;

  /* Abstufungen */
  --teal-04: rgba(6, 50, 51, 0.04);
  --teal-08: rgba(6, 50, 51, 0.08);
  --teal-15: rgba(6, 50, 51, 0.15);
  --teal-45: rgba(6, 50, 51, 0.45);
  --teal-55: rgba(6, 50, 51, 0.55);
  --teal-75: rgba(6, 50, 51, 0.75);
  --gold-15: rgba(216, 170, 128, 0.15);
  --gold-25: rgba(216, 170, 128, 0.25);
  --gold-40: rgba(216, 170, 128, 0.40);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-70: rgba(255, 255, 255, 0.70);

  /* Abstandssystem — keine anderen Werte verwenden */
  --pad-x: 88px;   /* seitlicher Rand Desktop */
  --pad-y: 56px;   /* vertikaler Rand jeder Sektion */
  --gap-xl: 48px;
  --gap-l:  28px;
  --gap-m:  16px;
  --gap-s:  8px;

  --maxw: 1440px;  /* maximale Inhaltsbreite */

  /* Warmes Flächen-Grau — der einheitliche Grauton für Flächen, Buttons und Footer */
  --gray-warm: #F5F2EC;
  /* Dunkler, neutraler Ton nur fürs Burger-Menü-Icon (dünne Linien müssen auf Weiß sichtbar bleiben) */
  --gray-dark: #5C5850;

  /* Systemfarbe für Formular-Fehlermeldungen — bewusst zurückhaltend, kein grelles Rot */
  --error: #B23B3B;
}

/* ---------- Grundlagen ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--teal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Poppins für Überschriften: große Titel leicht und elegant, kleinere
   Zwischenüberschriften kräftiger — dieselbe Gewichtung wie beim Vorbild. */
h1, h2, h3 { margin: 0; font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4vw, 58px); line-height: 1.18; font-weight: 300; }
h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; font-weight: 300; }
h3 { font-size: 18px; font-weight: 600; }

/* Open Sans für Fließtext: besser lesbar auf längeren Textstrecken als eine
   reine Display-/UI-Schrift wie Poppins. */
p  { margin: 0; font-size: 15px; line-height: 1.75; color: var(--teal-75); font-family: 'Open Sans', system-ui, sans-serif; }

/* Kurze Labels/Kicker bleiben trotz <p>-Tag bei der UI-Schrift Poppins */
.eyebrow, .muted { font-family: 'Poppins', system-ui, sans-serif; }

/* ---------- Layout-Bausteine ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; }

.section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--teal-08);
}
.section--dark { background: var(--gray-warm); color: var(--teal); }
.section--dark p { color: var(--teal-75); }
.section--tint { background: var(--gray-warm); }

.split { display: grid; grid-template-columns: 1fr 1fr; }

.stack { display: flex; flex-direction: column; }
.stack-s  { gap: var(--gap-s); }
.stack-m  { gap: var(--gap-m); }
.stack-l  { gap: var(--gap-l); }
.stack-xl { gap: var(--gap-xl); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-l); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-xl); }

/* Abschnitte mit eigenem Spaltenverhältnis — brechen weiter unten auf eine Spalte um */
.grid-bewertung { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.grid-partner   { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.grid-stats     { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-quote     { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }

.partner-img { width: 100%; height: 460px; object-fit: cover; }
.quote-img   { width: 200px; height: 240px; object-fit: cover; }

/* Kurzinfo-Leiste (z. B. Kontaktdaten, Kennwerte) — vier Felder in einer Reihe */
.bio-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; background: var(--teal-08); border: 1px solid var(--teal-08);
}
.bio-strip div { background: var(--white); padding: 22px 20px; }
.bio-strip dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 500; }
.bio-strip dd { margin: 8px 0 0; font-size: 15px; color: var(--teal); }
.bio-strip--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 720px) {
  .bio-strip { grid-template-columns: 1fr 1fr; }
  .bio-strip--3 { grid-template-columns: 1fr; }
}

/* Zeile mit der Nachfrage-Kennzahl */
.demand-row {
  display: flex; align-items: center; gap: var(--gap-xl); flex-wrap: wrap;
  padding: var(--gap-xl) var(--pad-x); border-bottom: 1px solid var(--teal-08);
}
.demand-figure { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.demand-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.demand-figure .tnum { font-size: 40px; font-weight: 500; line-height: 1; }
/* Feste Breite fürs Hochzählen: sonst ändert sich die Textbreite bei jedem
   Frame (von "0" bis "10.396") und die ganze Zeile daneben ruckelt mit. */
.demand-figure .tnum[data-count] { display: inline-block; min-width: 6.5ch; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.muted { color: var(--teal-55); font-size: 14px; }
.tnum  { font-variant-numeric: tabular-nums; }

/* ---------- Schaltflächen ---------- */

.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn { background: var(--gray-warm); color: var(--teal); border-color: var(--teal-15); }
.btn:hover { background: #ECE7DD; transform: translateY(-2px); box-shadow: 0 14px 24px -16px rgba(6,50,51,.35); }
.btn-outline { border-color: var(--teal-15); color: var(--teal); background: transparent; }
.btn-outline:hover { border-color: var(--teal); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--teal); }
.btn-gold:hover { background: #cf9c6e; transform: translateY(-2px); box-shadow: 0 14px 24px -16px rgba(6,50,51,.3); }
.btn-sm { padding: 13px 26px; font-size: 14px; }

/* ---------- Kopfbereich ---------- */

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x); border-bottom: 1px solid var(--teal-08);
  position: sticky; top: 0; background: var(--white); z-index: 50;
}
.logo-lockup { display: flex; align-items: center; gap: 18px; }
.logo-lockup img { height: 52px; width: auto; }
.logo-rule { width: 1px; height: 42px; background: var(--gold-40); }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wordmark-top { font-size: 15px; letter-spacing: 0.18em; color: var(--gold); line-height: 1; }
.wordmark-bot { font-size: 21px; letter-spacing: 0.18em; color: var(--teal); line-height: 1; }

.nav { display: flex; gap: 36px; font-size: 14px; color: var(--teal-75); }
.nav a { position: relative; padding-bottom: 4px; }
.nav a:hover { color: var(--teal); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--teal); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.nav a.is-active::after { content: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-contact { display: flex; align-items: center; gap: 18px; }
.header-mail, .header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--teal-75); transition: color .18s ease;
}
.header-mail:hover, .header-phone:hover { color: var(--teal); }
.header-mail svg, .header-phone svg { color: var(--gold); flex-shrink: 0; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--gray-dark); }


/* ---------- Hero mit Foto-Hintergrund ---------- */

.hero-photo { position: relative; overflow: hidden; }
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 42%; z-index: 0;
}
/* Abdunklung: links kräftig, damit der Text sicher lesbar bleibt; rechts offen, damit das Foto wirkt */
.hero-photo .hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg,
    rgba(6,50,51,.95) 0%, rgba(6,50,51,.90) 32%, rgba(6,50,51,.66) 54%,
    rgba(6,50,51,.30) 76%, rgba(6,50,51,.14) 100%);
}
.hero-photo .hero-inner {
  position: relative; z-index: 2; padding: 96px var(--pad-x);
  min-height: 600px; display: flex; align-items: center;
}
.hero-photo h1 { color: var(--white); }
.hero-photo .hero-lead { color: rgba(255, 255, 255, 0.86); }

/* Umriss-Button auf dunklem Grund */
.btn-outline--light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline--light:hover { border-color: var(--white); background: rgba(255,255,255,.12); }


/* ---------- Karten und Listen ---------- */

.card-row { display: grid; gap: 1px; background: var(--white); }
.card {
  background: var(--gray-warm); padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(6,50,51,.35); }
.card svg { color: var(--gold); }

/* Leistungen (Startseite): drei schwebende Karten mit echtem Abstand statt Haarlinien */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-l); }
.services-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service {
  background: var(--white); padding: var(--gap-xl) var(--gap-l);
  display: flex; flex-direction: column; gap: var(--gap-m);
  box-shadow: 0 18px 36px -30px rgba(6,50,51,.3);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -24px rgba(6,50,51,.25); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-15); color: var(--gold);
  transition: background .25s ease, color .25s ease;
}
.service:hover .service-icon { background: var(--gold); color: var(--white); }
.service h3 { font-size: 24px; }
.service p { font-size: 15px; color: var(--teal-75); max-width: 34ch; }
/* margin-top:auto schiebt den Link ans Kartenende — dadurch stehen die Links
   aller drei Karten auf einer Linie, auch bei unterschiedlich langen Texten */
.service-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--teal);
  border-bottom: 1px solid var(--teal); padding-bottom: 2px; width: fit-content;
}
.service-link .arrow { display: inline-block; transition: transform .25s ease; }
.service-link:hover .arrow { transform: translateX(4px); }

/* Innen schmalerer Abstand, außen der Seitenrand — so fluchten die Außenkanten
   mit dem übrigen Layout und die mittlere Spalte hat trotzdem genug Platz */
.stat { padding: 48px 40px; border-right: 1px solid var(--teal-08); }
.stat:first-child { padding-left: var(--pad-x); }
.stat:last-child { padding-right: var(--pad-x); border-right: 0; }
/* Alle drei Kennzahlen teilen dieselbe Größe, damit sie auf einer Linie sitzen;
   clamp verkleinert sie mit, damit auch das längste Wort in die Spalte passt */
.stat-value { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.2; }
.stat-label { font-size: 14px; color: var(--teal-75); margin-top: 10px; }
.stat-note  { font-size: 12px; color: var(--teal-45); margin-top: 4px; }

/* ---------- Objekte ---------- */

.property figure { margin: 0; position: relative; height: 220px; overflow: hidden; }
.property img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 12px;
}
.badge--sold   { background: var(--gray-warm); color: var(--teal); }
.badge--rented { background: var(--gold); color: var(--teal); }

/* ---------- Bewertungen ---------- */

.review {
  background: var(--white); padding: 32px;
  display: flex; flex-direction: column; gap: var(--gap-m);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500;
  background: var(--gray-warm); color: var(--teal);
}
.avatar--gold { background: var(--gold); color: var(--teal); }
.stars { color: #F4B400; letter-spacing: 2px; font-size: 14px; }

/* ---------- Prozess ---------- */

.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 15px; left: 0; right: 0;
  height: 1px; background: var(--teal-08);
}
.timeline-progress {
  position: absolute; top: 15px; left: 0; width: 0;
  height: 1px; background: var(--gold);
  transition: width 1.1s ease .2s;
}
.timeline.is-visible .timeline-progress { width: 20%; }
.timeline-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap-l); position: relative;
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline.is-visible .step { opacity: 1; transform: none; }
.step:nth-child(1) { transition-delay: .05s; }
.step:nth-child(2) { transition-delay: .15s; }
.step:nth-child(3) { transition-delay: .25s; }
.step:nth-child(4) { transition-delay: .35s; }
.step:nth-child(5) { transition-delay: .45s; }
.step-rail { display: flex; align-items: center; justify-content: center; }
.step-dot {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; border: 1px solid var(--teal-15);
  background: var(--white); color: var(--teal-55);
}
.step-dot--active { background: var(--gold); border-color: var(--gold); color: var(--teal); }
.step-body h3 { font-size: 16px; margin: 0; }
.step-body p { font-size: 13px; color: var(--teal-55); margin: 6px 0 0; }

/* ---------- FAQ (aufklappbar) ---------- */

.faq-item { border-bottom: 1px solid var(--teal-08); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 24px 0; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 500; color: var(--teal); text-align: left;
}
.faq-icon { font-size: 20px; color: var(--gold); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; max-width: 820px;
  transition: max-height .35s ease;
}
.faq-a > p { padding-bottom: 24px; }
.faq-q[aria-expanded="true"] + .faq-a { max-height: 280px; }

/* ---------- Fußbereich ---------- */

.footer { background: var(--gray-warm); color: var(--teal); border-top: 1px solid var(--teal-15); box-shadow: 0 -1px 0 var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: var(--gap-xl); padding: 64px var(--pad-x);
}
.footer h4 {
  margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--teal-75); }
.footer-list a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad-x); border-top: 1px solid var(--teal-15);
  font-size: 13px; color: var(--teal-55);
}
.footer-legal { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Cookie-Banner ---------- */

.cookie {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100;
  background: var(--white); border-top: 3px solid var(--gold);
  box-shadow: 0 24px 60px -18px rgba(6,50,51,.45);
  width: calc(100% - 40px); max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.cookie[hidden] { display: none; }
.cookie-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(6,50,51,.35);
}
.cookie-backdrop[hidden] { display: none; }
@keyframes cookieIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie:not([hidden]) { animation: cookieIn .4s ease; }

/* Schlanke Leiste: Text links, Buttons rechts — statt großem Modal-Fenster */
.cookie-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 28px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--teal-55); }
.cookie-text a { color: var(--teal); border-bottom: 1px solid var(--teal-15); }

/* Der Einstellungen-Dialog nutzt denselben Rahmen, braucht aber eigenes Innenpolster,
   da .cookie selbst kein Padding mehr trägt (das übernimmt jetzt .cookie-bar). */
#cookie-settings > .stack-l { padding: 32px; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.cookie-actions .btn, .cookie-actions .btn-outline { padding: 12px 20px; font-size: 13px; }
.cookie-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--teal-08);
}
.cookie-row:last-child { border-bottom: 0; }
.switch {
  width: 40px; height: 22px; flex-shrink: 0; border: 0; padding: 3px;
  background: var(--teal-15); cursor: pointer; display: flex; align-items: center;
  transition: background .18s ease;
}
.switch[aria-checked="true"] { background: var(--gray-warm); justify-content: flex-end; }
.switch[disabled] { background: var(--teal-45); justify-content: flex-end; cursor: not-allowed; }
.switch i { display: block; width: 16px; height: 16px; background: var(--white); }

.cookie-reopen {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  background: var(--white); border: 1px solid var(--teal-08);
  padding: 12px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
  box-shadow: 0 12px 28px -16px rgba(6,50,51,.3);
  display: flex; align-items: center; gap: 10px; font-family: inherit; color: var(--teal);
}

/* Platzhalter für externe Inhalte, solange keine Einwilligung vorliegt */
.consent-placeholder {
  border: 1px solid var(--teal-08); padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; min-height: 300px;
}

/* ---------- Bewertungs-Assistent ---------- */

/* Karte im warmen Grau, damit die Sektion selbst weiß bleiben kann —
   so wirkt die goldene Auszeichnungszeile dort genauso wie in den übrigen Abschnitten */
.funnel { background: var(--gray-warm); padding: 48px; box-shadow: 0 24px 48px -24px rgba(6,50,51,.25); }
.option {
  border: 1px solid var(--teal-15); padding: 24px 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; text-align: center; background: var(--white);
  font-family: inherit; color: var(--teal); min-width: 0; overflow-wrap: break-word;
  transition: border-color .18s ease, background .18s ease;
}
.option:hover, .option:focus-visible { border-color: var(--gold); background: var(--gold-15); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  border: 1px solid var(--teal-15); padding: 14px 16px;
  font-size: 15px; font-family: inherit; color: var(--teal); background: var(--white);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.field-hint { font-size: 12px; color: var(--teal-45); }

/* Segmentierte Auswahl (Ja/Nein, Zustand) */
.toggle-group { display: flex; gap: 1px; background: var(--teal-15); }
.toggle {
  flex: 1; border: 0; background: var(--white); color: var(--teal);
  padding: 13px 12px; font-family: inherit; font-size: 14px; cursor: pointer;
}
.toggle[aria-pressed="true"] { background: var(--gold); color: var(--teal); }

/* Zustimmungs-Checkbox */
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.consent span { font-size: 13px; color: var(--teal-75); line-height: 1.6; }

/* Ehrentopf gegen Formular-Spam: für Menschen unsichtbar, Bots füllen es aus */
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rückmeldung nach dem Absenden — bleibt leer und unsichtbar, bis main.js sie füllt */
.form-status { display: none; font-size: 14px; line-height: 1.6; padding: 16px 18px; }
.form-status:not(:empty) { display: block; }
.form-status--ok { background: var(--gold-15); color: var(--teal); }
.form-status--error { background: rgba(178,59,59,.08); color: var(--error); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-l); }
.bf-typefields { margin-top: var(--gap-l); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-m); }

/* ---------- Rechtstexte (Impressum, Datenschutz, Widerrufsbelehrung) ---------- */

.page-head { padding: 72px var(--pad-x) 44px; border-bottom: 1px solid var(--teal-08); }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); }

.legal { max-width: 840px; }
.legal h2 { font-size: 21px; margin-top: 52px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; margin-top: 26px; }
.legal p, .legal li { font-size: 15px; line-height: 1.85; color: var(--teal-75); }
.legal p + p { margin-top: 14px; }
.legal h2 + p, .legal h3 + p { margin-top: 12px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal ul + p { margin-top: 14px; }
.legal a { border-bottom: 1px solid var(--teal-15); }
.legal a:hover { border-bottom-color: var(--teal); }
.legal address { font-style: normal; font-size: 15px; line-height: 1.9; color: var(--teal-75); }
.legal-box { background: var(--gray-warm); padding: 28px 32px; margin-top: 20px; }
.legal-box p { color: var(--teal-75); }
.legal-box + p { margin-top: 18px; }


/* ---------- Bewegung beim Scrollen ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Die Prozess-Timeline nutzt .reveal nur als Trigger für die Fortschrittslinie
   und die gestaffelten Schritte — der Rahmen selbst bleibt sofort sichtbar. */
.timeline.reveal { opacity: 1; transform: none; }

/* ---------- Einblenden des Hero-Texts beim Laden ---------- */

@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-in > * { opacity: 0; animation: heroUp .7s ease forwards; }
.hero-in > *:nth-child(1) { animation-delay: .1s; }
.hero-in > *:nth-child(2) { animation-delay: .22s; }
.hero-in > *:nth-child(3) { animation-delay: .34s; }
.hero-in > *:nth-child(4) { animation-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .step { opacity: 1; transform: none; transition: none; }
  .hero-in > * { opacity: 1; animation: none; }
  .timeline-progress { transition: none; }
  .timeline.is-visible .timeline-progress { width: 20%; }
  .cookie:not([hidden]) { animation: none; }
  .btn:hover, .btn-outline:hover, .btn-gold:hover,
  .card:hover, .service:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* Die horizontale Navigation braucht bei sechs Punkten (inklusive Ratgeber) mehr
   Platz, als zwischen Tablet- und Desktop-Breite oft zur Verfügung steht. Deshalb
   springt hier das mobile Menü schon früher ein, unabhängig vom restlichen
   Tablet-Layout weiter unten, damit Logo, Navigation und Buttons nie ineinander
   laufen. */
@media (max-width: 1480px) {
  .nav { display: none; }
  .nav.nav--open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: calc(100% + 8px); right: var(--pad-x); left: auto;
    min-width: 240px; background: var(--white); padding: 8px 20px 20px;
    border: 1px solid var(--teal-08);
    box-shadow: 0 20px 44px -20px rgba(6,50,51,.35);
  }
  .burger { display: flex; }
}

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; --pad-y: 48px; }
  .grid-3, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Dritte Leistung über beide Spalten, sonst bleibt daneben eine leere Kachel stehen */
  .services-grid .service:last-child { grid-column: 1 / -1; }
  .grid-bewertung, .grid-partner { grid-template-columns: 1fr; gap: 40px; }
  .grid-quote { grid-template-columns: 180px 1fr; gap: 32px; }
  .partner-img { height: 320px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  /* Ab hier läuft der Prozess als vertikaler Stepper: Punkte mit verbindender
     Linie links, Text rechts, statt fünf enger werdender Spalten. */
  .timeline::before, .timeline-progress { display: none; }
  .timeline-grid { display: flex; flex-direction: column; gap: 0; }
  .step {
    flex-direction: row; align-items: flex-start; gap: 20px;
    padding-bottom: 28px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-rail { flex-direction: column; align-self: stretch; }
  .step-rail::after {
    content: ''; flex: 1; width: 1px; margin-top: 8px; background: var(--teal-08);
  }
  .step:last-child .step-rail::after { display: none; }
  .step-body { padding-top: 4px; }
}

/* ============================================
   Handy
   ============================================ */
@media (max-width: 720px) {
  :root { --pad-x: 20px; --pad-y: 40px; --gap-xl: 32px; --gap-l: 24px; }

  .split, .services-grid, .field-grid, .type-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; gap: var(--gap-l); }
  .grid-bewertung, .grid-partner, .grid-stats, .grid-quote {
    grid-template-columns: 1fr; gap: var(--gap-l);
  }
  .partner-img { height: 260px; }
  .quote-img { width: 100%; height: 280px; }
  /* Zahl und Beschriftung dürfen am Handy umbrechen, sonst läuft die Zeile aus dem Bild */
  .demand-figure { flex-shrink: 1; flex-wrap: wrap; }
  .demand-figure .tnum { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Header-Button und Kontaktzeile entfernt: die feste Mobil-Leiste unten deckt
     Anrufen und Bewertung bereits ab, das würde bei schmalen Displays sonst überlappen */
  .header-actions .btn-sm { display: none; }
  .header-contact { display: none; }

  /* Am Handy liegt der Text über dem ganzen Bild — daher flächig abdunkeln statt nur links */
  .hero-photo .hero-bg { object-position: 72% center; }
  .hero-photo .hero-veil {
    background: linear-gradient(180deg, rgba(6,50,51,.88) 0%, rgba(6,50,51,.80) 55%, rgba(6,50,51,.76) 100%);
  }
  .hero-photo .hero-inner { padding: 64px var(--pad-x) 72px; }

  .logo-lockup img { height: 38px; }
  .logo-rule { height: 30px; }
  .wordmark-top { font-size: 11px; }
  .wordmark-bot { font-size: 15px; }

  .btn, .btn-outline { width: 100%; }
  .hero-actions, .demand-actions { flex-direction: column; width: 100%; }

  .stat { border-right: 0; border-bottom: 1px solid var(--teal-08); padding: 32px var(--pad-x); }
  .card { padding: 28px; }
  .service { padding: 28px; }
  .funnel { padding: 28px 20px; }

  .page-head { padding: 44px var(--pad-x) 32px; }
  .legal h2 { margin-top: 40px; }
  .legal-box { padding: 22px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { gap: 14px 22px; }
  .cookie-bar { padding: 20px; flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn, .cookie-actions .btn-outline { width: 100%; }
  #cookie-settings > .stack-l { padding: 20px; }

  /* Feste Leiste unten: der wichtigste Conversion-Hebel auf dem Handy */
  .mobile-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--teal-08); border-top: 1px solid var(--teal-08);
  }
  .mobile-bar a { padding: 16px; text-align: center; font-size: 14px; font-weight: 500; }
  .mobile-bar a:first-child { background: var(--white); }
  .mobile-bar a:last-child { background: var(--gray-warm); color: var(--teal); }
  body { padding-bottom: 56px; }
  .cookie-reopen { bottom: 72px; }
}

.mobile-bar { display: none; }
@media (max-width: 720px) { .mobile-bar { display: grid; } }

/* ---------- Nur für Screenreader ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

