/* ==========================================================================
   Fahrschule Tilo Hahn · Wildenfels — zentrales Stylesheet
   Markenwelt: Logo-Blau, runde freundliche Formen, viel Licht & Luft.
   Schriften self-hosted (DSGVO): Baloo 2 (Überschriften), Nunito (Fließtext).
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/baloo-2-v23-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/baloo-2-v23-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/baloo-2-v23-latin_latin-ext-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin_latin-ext-800.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben — abgeleitet vom Hahn-Logo */
  --blau: #1789CF;            /* Markenblau (Logo-Schriftzug) */
  --blau-tief: #0F6FB0;       /* Buttons, kräftige Flächen (AA-Kontrast) */
  --blau-dunkel: #0B5E97;     /* Hover, Links */
  --blau-nacht: #0A3D63;      /* dunkle Flächen (CTA-Band, Footer) */
  --hell: #BFE0F5;            /* Logo-Hellblau */
  --himmel: #E9F4FC;          /* getönte Sektionen */
  --himmel-zart: #F4FAFE;     /* Kartenhintergründe auf Weiß */
  --linie: #D6E7F3;           /* Ränder */
  --tinte: #10344E;           /* Überschriften */
  --text: #33475A;            /* Fließtext */
  --soft: #5A7086;            /* Sekundärtext */
  --weiss: #FFFFFF;
  --bg: #FBFDFF;              /* Seitenhintergrund */
  --gelb: #FFC53D;            /* Akzent (Badges) — sparsam */
  --gelb-tinte: #6B4E00;
  --gruen: #1E7B46;           /* Erfolg */
  --gruen-hell: #E9F3EC;
  --rot: #B3222F;             /* Fehler im Formular */

  /* Form & Tiefe */
  --radius: 18px;
  --radius-s: 12px;
  --pille: 999px;
  --schatten: 0 10px 30px rgba(16, 82, 130, 0.10);
  --schatten-s: 0 4px 14px rgba(16, 82, 130, 0.08);

  /* Typo */
  --schrift-kopf: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --schrift-text: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --breite: 1140px;
  --header-h: 74px;
}

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

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

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--schrift-kopf);
  color: var(--tinte);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.35rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blau-dunkel); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blau); }

ul { padding-left: 1.25em; }

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

::selection { background: var(--hell); color: var(--tinte); }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinte);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Container & Sektionen ---------- */
.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.sektion { padding-block: clamp(56px, 9vw, 96px); }
.sektion--getoent { background: var(--himmel); }
.sektion--kompakt { padding-block: clamp(40px, 6vw, 64px); }

.sektion-kopf { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.sektion-kopf--mitte { margin-inline: auto; text-align: center; }

/* Kicker mit „Mittelstreifen"-Motiv */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blau-dunkel);
  margin-bottom: 14px;
}
.kicker::before {
  content: '';
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--blau) 0 8px, transparent 8px 13px, var(--blau) 13px 21px, transparent 21px 26px, var(--blau) 26px 34px);
}

.vorspann { font-size: 1.1rem; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--schrift-text);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: var(--pille);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primaer {
  background: var(--blau-tief);
  color: #fff;
  box-shadow: var(--schatten-s);
}
.btn--primaer:hover { background: var(--blau-dunkel); color: #fff; box-shadow: var(--schatten); }

.btn--sekundaer {
  background: var(--weiss);
  color: var(--blau-dunkel);
  border-color: var(--linie);
}
.btn--sekundaer:hover { border-color: var(--blau); color: var(--blau-dunkel); }

.btn--hell {
  background: #fff;
  color: var(--blau-nacht);
}
.btn--hell:hover { background: var(--himmel); color: var(--blau-nacht); }

.btn--gross { padding: 18px 34px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--linie);
}
.header-innen {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.marke img { width: 56px; height: auto; }
.marke-text { line-height: 1.05; }
.marke-text .marke-name {
  font-family: var(--schrift-kopf);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--blau);
  display: block;
  letter-spacing: 0.01em;
}
.marke-text .marke-ort {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: var(--pille);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--himmel); color: var(--blau-dunkel); }
.nav a[aria-current="page"] { color: var(--blau-dunkel); background: var(--himmel); }

.nav .nav-cta {
  background: var(--blau-tief);
  color: #fff;
  padding: 11px 22px;
  margin-left: 8px;
  font-weight: 800;
}
.nav .nav-cta:hover { background: var(--blau-dunkel); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--blau-dunkel); color: #fff; }

.nav-knopf {
  display: none;
  background: none;
  border: 2px solid var(--linie);
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--tinte);
}

@media (max-width: 1020px) {
  .nav-knopf { display: inline-flex; align-items: center; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
    padding: 14px clamp(18px, 4vw, 32px) 20px;
    display: none;
  }
  .nav.offen { display: flex; }
  .nav a { padding: 13px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 460px at 85% -80px, var(--himmel) 0%, rgba(233, 244, 252, 0) 68%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-innen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero p.hero-text {
  font-size: 1.14rem;
  color: var(--soft);
  max-width: 34em;
}
.hero-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: var(--pille);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tinte);
}
.hero-chips svg { color: var(--blau); }

/* Hero-Bühne (Logo + schwebende Karten) */
.hero-buehne { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-kreis {
  position: relative;
  width: min(400px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0%, var(--himmel) 58%, var(--hell) 100%);
  border: 1.5px solid var(--linie);
  box-shadow: var(--schatten);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-kreis .strasse { position: absolute; inset: auto 0 0 0; width: 100%; }
.hero-kreis img.hero-logo {
  width: 56%;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: 22px;
  padding: clamp(12px, 4%, 20px);
  box-shadow: var(--schatten);
}

.schwebe-karte {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-s);
  box-shadow: var(--schatten);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.88rem;
  line-height: 1.35;
  z-index: 3;
}
.schwebe-karte strong { display: block; color: var(--tinte); font-size: 0.95rem; }
.schwebe-karte .ikon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--himmel);
  color: var(--blau-dunkel);
}
.schwebe-karte--1 { top: 8%; right: 0; }
.schwebe-karte--2 { bottom: 6%; left: 0; }
.schwebe-karte--gelb .ikon { background: #FFF3D6; color: var(--gelb-tinte); }

@media (max-width: 900px) {
  .hero-innen { grid-template-columns: 1fr; }
  .hero-buehne { min-height: 0; margin-top: 6px; }
  .schwebe-karte--1 { top: 2%; right: -2px; }
  .schwebe-karte--2 { bottom: 0; left: -2px; }
}

/* ---------- Karten & Raster ---------- */
.raster {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}
.raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .raster--2, .raster--3, .raster--4 { grid-template-columns: 1fr; }
}

.karte {
  background: var(--weiss);
  border: 1.5px solid var(--linie);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--schatten-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.karte { display: block; text-decoration: none; color: inherit; }
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); border-color: var(--hell); }

.karte-ikon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--himmel);
  color: var(--blau-dunkel);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.karte h3 { margin-bottom: 8px; }
.karte p { color: var(--soft); font-size: 0.98rem; }

.karte-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 800;
  color: var(--blau-dunkel);
  font-size: 0.95rem;
}
.karte:hover .karte-link { text-decoration: underline; text-underline-offset: 3px; }

/* Klassen-Karten */
.klasse-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.klasse-buchstabe {
  flex: none;
  font-family: var(--schrift-kopf);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(150deg, var(--blau) 0%, var(--blau-tief) 100%);
  width: 60px;
  height: 60px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  letter-spacing: -0.01em;
  box-shadow: var(--schatten-s);
}
.klasse-kopf h3 { margin: 0; }
.klasse-kopf .klasse-alter {
  display: block;
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soft);
}

.merkmal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.merkmal-chips li {
  background: var(--himmel);
  color: var(--blau-nacht);
  border-radius: var(--pille);
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--pille);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge--gelb { background: var(--gelb); color: var(--gelb-tinte); }
.badge--blau { background: var(--himmel); color: var(--blau-nacht); }
.badge--gruen { background: var(--gruen-hell); color: var(--gruen); }

/* ---------- Info-Leiste (Aktuelles) ---------- */
.aktuell-karte {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.aktuell-karte .karte-ikon { margin-bottom: 0; flex: none; }
.aktuell-karte h3 { font-size: 1.12rem; }

/* ---------- Team ---------- */
.team-karte { text-align: center; }
.team-foto {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 4px solid var(--hell);
  background: var(--himmel);
  display: grid;
  place-items: center;
}
.team-foto img { width: 100%; height: 100%; object-fit: cover; }
.team-rolle {
  color: var(--blau-dunkel);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-karte .merkmal-chips { justify-content: center; }

/* ---------- Schritte (Ablauf) ---------- */
.schritte { counter-reset: schritt; display: grid; gap: 18px; }
.schritt {
  counter-increment: schritt;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.schritt::before {
  content: counter(schritt);
  flex: none;
  font-family: var(--schrift-kopf);
  font-weight: 800;
  font-size: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--himmel);
  color: var(--blau-dunkel);
}
.schritt h3 { font-size: 1.1rem; margin-bottom: 4px; }
.schritt p { color: var(--soft); font-size: 0.97rem; }

/* ---------- FAQ (details) ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-s);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-weight: 800;
  color: var(--tinte);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--blau-dunkel);
  border-bottom: 2.5px solid var(--blau-dunkel);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--soft); }

/* ---------- Kontakt ---------- */
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 30px);
  align-items: stretch;
}
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

.kontakt-zeile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--linie);
}
.kontakt-zeile:last-child { border-bottom: 0; }
.kontakt-zeile .ikon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--himmel);
  color: var(--blau-dunkel);
  display: grid;
  place-items: center;
}
.kontakt-zeile strong { display: block; color: var(--tinte); }
.kontakt-zeile a { font-weight: 700; }

.zeiten-tabelle { width: 100%; border-collapse: collapse; }
.zeiten-tabelle td { padding: 11px 0; border-bottom: 1px dashed var(--linie); vertical-align: top; }
.zeiten-tabelle tr:last-child td { border-bottom: 0; }
.zeiten-tabelle td:first-child { font-weight: 800; color: var(--tinte); padding-right: 18px; white-space: nowrap; }
.zeiten-hinweis { margin-top: 14px; font-size: 0.92rem; color: var(--soft); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--blau-nacht) 0%, var(--blau-tief) 100%);
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  padding: clamp(34px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 26px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #D7EAF8; margin: 0; }
.cta-band .hero-aktionen { margin-top: 0; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr; } }

.galerie-bild {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--linie);
  background: var(--himmel);
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  cursor: zoom-in;
  box-shadow: var(--schatten-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.galerie-bild:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.galerie-bild img { width: 100%; height: 100%; object-fit: cover; }
.galerie-bild figcaption,
.galerie-titel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(180deg, rgba(10, 61, 99, 0) 0%, rgba(10, 61, 99, 0.72) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
}

/* Platzhalter-Kachel */
.galerie-platzhalter {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--soft);
  padding: 20px;
  gap: 8px;
  cursor: default;
}
.galerie-platzhalter svg { color: var(--hell); width: 64px; height: 64px; }
.galerie-platzhalter span { font-weight: 700; font-size: 0.9rem; }

/* Leuchtkasten */
.leuchtkasten {
  position: fixed;
  inset: 0;
  background: rgba(7, 34, 54, 0.9);
  display: none;
  place-items: center;
  z-index: 300;
  padding: 24px;
}
.leuchtkasten.offen { display: grid; }
.leuchtkasten img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius-s);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.leuchtkasten-schliessen {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.leuchtkasten-schliessen:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Formular ---------- */
.formular-karte {
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--schatten);
  padding: clamp(24px, 4vw, 44px);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}
legend {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--tinte);
  padding: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend-nr {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--himmel);
  color: var(--blau-dunkel);
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-family: var(--schrift-kopf);
  font-weight: 800;
}
.legend-hinweis { font-size: 0.93rem; color: var(--soft); margin: 0 0 18px; }

.feld-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 640px) { .feld-raster { grid-template-columns: 1fr; } }
.feld--voll { grid-column: 1 / -1; }

.feld label {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--tinte);
  margin-bottom: 7px;
}
.feld .optional {
  font-weight: 600;
  color: var(--soft);
  font-size: 0.85rem;
}

.feld input[type="text"],
.feld input[type="tel"],
.feld input[type="email"],
.feld input[type="date"],
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: var(--himmel-zart);
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--blau);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 137, 207, 0.14);
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B5E97' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }

.einwilligung {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--himmel);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: 0.93rem;
  color: var(--text);
}
.einwilligung input[type="checkbox"] {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  accent-color: var(--blau-tief);
}

.formular-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.formular-fuss .hinweis { font-size: 0.9rem; color: var(--soft); margin: 0; }

.feld-fehler { display: none; color: var(--rot); font-size: 0.86rem; font-weight: 700; margin-top: 6px; }
.feld.ungueltig input, .feld.ungueltig select { border-color: var(--rot); }
.feld.ungueltig .feld-fehler { display: block; }

.formular-status {
  display: none;
  border-radius: var(--radius-s);
  padding: 15px 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.formular-status.fehler { display: block; background: #FBECEC; color: var(--rot); }
.formular-status.ok { display: block; background: var(--gruen-hell); color: var(--gruen); }

/* Honigtopf unsichtbar */
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Unterseiten-Kopf ---------- */
.seiten-kopf {
  background:
    radial-gradient(760px 320px at 90% -60px, var(--himmel) 0%, rgba(233, 244, 252, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--linie);
}
.seiten-kopf .vorspann { max-width: 680px; }
.brotkrumen {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soft);
  margin-bottom: 16px;
}
.brotkrumen a { color: var(--soft); text-decoration: none; }
.brotkrumen a:hover { color: var(--blau-dunkel); }
.brotkrumen span[aria-current] { color: var(--blau-dunkel); }

/* ---------- Hinweis-Box ---------- */
.hinweis-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--himmel);
  border: 1.5px solid var(--hell);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hinweis-box .ikon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--blau-dunkel);
  display: grid;
  place-items: center;
}
.hinweis-box p { margin: 0; font-size: 0.97rem; }
.hinweis-box strong { color: var(--tinte); }

/* Checkliste */
.checkliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checkliste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-s);
  padding: 14px 18px;
}
.checkliste svg { flex: none; color: var(--gruen); margin-top: 3px; }
.checkliste strong { color: var(--tinte); }
.checkliste span { display: block; font-size: 0.93rem; color: var(--soft); }

/* ---------- Fußzeile ---------- */
.footer {
  background: var(--blau-nacht);
  color: #C9DEEF;
  margin-top: clamp(56px, 9vw, 96px);
  padding-block: clamp(44px, 6vw, 64px) 28px;
  font-size: 0.95rem;
}
.footer a { color: #E8F3FC; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
@media (max-width: 980px) { .footer-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-raster { grid-template-columns: 1fr; } }

.footer h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-marke img { width: 74px; margin-bottom: 14px; background: #fff; border-radius: 14px; padding: 7px; }
.footer-marke p { color: #A9C6DD; }
.footer-unten {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  color: #A9C6DD;
  font-size: 0.88rem;
}
.footer-unten ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }

/* ---------- Einblenden beim Scrollen ----------
   Greift nur, wenn JS läuft (body.anim) – ohne JS bleibt alles sichtbar. */
body.anim .einblenden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.anim .einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.anim .einblenden { opacity: 1; transform: none; transition: none; }
}

/* ---------- Text-Seiten (Impressum/Datenschutz) ---------- */
.textseite { max-width: 780px; }
.textseite h2 { font-size: 1.5rem; margin-top: 2em; }
.textseite h3 { font-size: 1.15rem; margin-top: 1.6em; }
.textseite address { font-style: normal; }

/* ---------- Kleinkram ---------- */
.nur-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mitte { text-align: center; }

.abstand-oben { margin-top: clamp(28px, 4vw, 44px); }

@media print {
  .header, .footer, .cta-band, .nav-knopf, .btn { display: none !important; }
  body { background: #fff; }
}
