/* planmit.ai Stadtseiten: Designdatei (Variante A, dunkel).
   Tokens aus glasdesign/css/tokens.css (nur Dunkelwerte), Bausteine aus glas.css
   und dem Entwurf stilrichtung.html. Keine Webfonts, kein Framework. */

:root {
  --accent: #14b8a6;
  --accent-hi: #2dd4bf;
  --accent-text: #2dd4bf;
  --on-accent: #04211d;
  --accent-glow: rgba(20, 184, 166, 0.42);

  --bg: #0e1116;
  --fg: #f5f5f7;
  /* angehoben für mindestens 4,5:1 auf .card */
  --muted: rgba(235, 235, 245, 0.72);
  --dim: rgba(235, 235, 245, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --warn: #ff6b6b;

  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-fill-strong: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.26);
  --glass-blur: blur(24px) saturate(180%);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.24) inset;
  --field: rgba(0, 0, 0, 0.28);

  --spot-1: rgba(255, 255, 255, 0.15);
  --spot-2: rgba(20, 184, 166, 0.26);
  --spot-3: rgba(80, 110, 255, 0.18);
  --spot-4: rgba(45, 212, 191, 0.16);

  --r-card: 22px;
  --r-btn: 18px;
  --r-field: 14px;
  --r-pill: 999px;
  --lese: 680px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, "SF Pro Text", "SF Pro Display", Roboto, "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Verlauf auch auf dem Seitenhintergrund: iOS-Safari zeigt ihn hinter Status- und Werkzeugleiste
   und beim Überziehen statt einer schwarzen Fläche (Robert 2026-11-27, Handy-Screenshot). */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, var(--spot-1), transparent 65%),
    radial-gradient(900px 600px at 102% 20%, var(--spot-2), transparent 65%),
    radial-gradient(900px 560px at 45% 105%, var(--spot-3), transparent 65%),
    radial-gradient(640px 420px at -2% 92%, var(--spot-4), transparent 65%); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  background: transparent;
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--spot-1), transparent 65%),
    radial-gradient(900px 600px at 102% 20%, var(--spot-2), transparent 65%),
    radial-gradient(900px 560px at 45% 105%, var(--spot-3), transparent 65%),
    radial-gradient(640px 420px at -2% 92%, var(--spot-4), transparent 65%),
    var(--bg);
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent-text); text-underline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: var(--lese); margin: 0 auto; padding: 0 16px 40px; }

/* ---------- Glas ---------- */
.glas, .card, .karte, .feld, .nav, .btn {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.glas, .nav, .feld, .karte {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-top-color: var(--glass-hi);
  box-shadow: var(--glass-shadow);
}
.card {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-top-color: var(--glass-hi);
  border-radius: var(--r-card);
  box-shadow: var(--glass-shadow);
  padding: 18px;
  margin: 0 0 14px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px 100px at 0% 0%, rgba(255, 255, 255, 0.12), transparent 70%);
}
.card h2 { font-size: 20px; line-height: 1.25; margin: 6px 0 8px; }
.card p { margin: 0 0 10px; color: var(--muted); }

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--lese);
  margin: 12px auto 0;
  border-radius: var(--r-pill);
  padding: 7px 8px 7px 18px;
  font-size: 14px;
}
.nav .logo { font-weight: 700; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.nav .logo i { font-style: normal; color: var(--accent-text); }
.nav .links { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.nav .links a { color: inherit; text-decoration: none; }
.nav .cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 13px;
  text-decoration: none;
}

/* ---------- Hero und Adressfeld ---------- */
.hero { padding: 36px 4px 18px; }
.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.hero h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.feld { display: flex; gap: 6px; border-radius: 18px; padding: 6px; }
.feld input {
  flex: 1;
  min-width: 0;
  background: var(--field);
  border: 0;
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 16px;
}
.feld input::placeholder { color: var(--muted); }
.feld button, .feld .go {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border: 0;
  border-radius: 13px;
  padding: 12px 16px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 24px var(--accent-glow);
}
.klein { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Karte mit Werten ---------- */
.karte { border-radius: var(--r-card); padding: 18px; margin-top: 16px; }
.karte h3 { margin: 0 0 2px; font-size: 17px; }
.karte .stand { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wert { border-radius: 14px; padding: 12px; background: var(--field); }
.wert .n { font-size: 20px; font-weight: 700; }
.wert .l { font-size: 13px; color: var(--muted); }
.abschnitt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin: 16px 0 8px; }
.hinweis { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.antwort { font-size: 15px; margin: 0 0 6px; }

/* ---------- Knopf ---------- */
.btn {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 600;
  border-radius: var(--r-btn);
  background: var(--glass-fill-strong);
  color: var(--fg);
  border: 1px solid var(--glass-edge);
  border-top-color: var(--glass-hi);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), 0 1px 0 var(--glass-hi) inset;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: var(--on-accent);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 22px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

/* ---------- Fuß ---------- */
footer { max-width: var(--lese); margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }

/* ---------- Stadtseite ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 10px 14px; border-radius: var(--r-field); text-decoration: none; }
.skip:focus { top: 12px; }
.nav { margin: 12px 16px 0; }
@media (min-width: 712px) { .nav { margin: 12px auto 0; } }

.crumbs { font-size: 13px; color: var(--muted); padding: 22px 4px 0; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.hero { padding-top: 14px; }
.hero .lead { color: var(--fg); font-size: 17px; line-height: 1.5; margin: 0 0 20px; }
.weiter { margin: 14px 0 0; font-size: 15px; font-weight: 600; }

/* Adressfeld: dasselbe Formular wie live, im Glas des Entwurfs. Die Regeln
   sind spezifischer als die von lp-address.js eingefügten, damit das Glas gilt. */
form.pm-addr { width: 100%; max-width: none; margin: 0; }
form.pm-addr .pm-addr-row {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 18px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-top-color: var(--glass-hi);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
}
form.pm-addr .pm-addr-row:focus-within { border-color: var(--accent); box-shadow: var(--glass-shadow), 0 0 0 3px rgba(20, 184, 166, 0.25); }
form.pm-addr .pm-addr-icon { flex: none; display: inline-flex; color: var(--accent-text); }
form.pm-addr .pm-addr-submit { width: auto; }
form.pm-addr .pm-addr-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  padding: 12px 4px; font-size: 16px; color: var(--fg); text-align: left;
  cursor: pointer;
}
form.pm-addr .pm-addr-input::placeholder { color: var(--muted); }
form.pm-addr .pm-addr-submit {
  flex: none;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 15px;
  border: 0; border-radius: 13px;
  padding: 12px 18px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform 160ms var(--ease-out);
}
form.pm-addr .pm-addr-submit:active { transform: scale(0.97); }
@media (max-width: 380px) {
  form.pm-addr .pm-addr-icon { display: none; }
  form.pm-addr .pm-addr-row { padding-left: 8px; }
  form.pm-addr .pm-addr-submit { padding: 12px 14px; }
}

/* Zahlenblock */
.karte h2 { margin: 0 0 2px; font-size: 20px; line-height: 1.25; }
.karte .abschnitt { font-size: 12px; line-height: 1.3; margin: 18px 0 8px; }
.werte { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wert .n { line-height: 1.2; overflow-wrap: anywhere; }
.wert .vor, .wert .nach { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.leer { font-size: 15px; color: var(--muted); margin: 0; padding: 12px; border-radius: 14px; background: var(--field); }
.quelle { font-size: 12px; color: var(--muted); margin: 8px 0 0; overflow-wrap: anywhere; }

/* Abschnitte */
.titel { font-size: 22px; line-height: 1.25; margin: 36px 4px 12px; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* Beispielplan */
.plan { padding: 0; overflow: hidden; }
.plan > :not(.map) { margin-left: 18px; margin-right: 18px; }
.map { position: relative; z-index: 0; height: 260px; background: var(--field); border-bottom: 1px solid var(--glass-edge); }
#map.leaflet-container { background: #0e1116; font: 12px/1.4 var(--font); }
#map .leaflet-control-attribution { background: rgba(14, 17, 22, 0.72); color: var(--muted); }
#map .leaflet-control-attribution a { color: var(--muted); }
#map .leaflet-bar a { background: rgba(14, 17, 22, 0.85); color: var(--fg); border-color: var(--glass-edge); }
.planhead { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-top: 16px; }
.planmeta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent-text); border: 1px solid rgba(45, 212, 191, 0.35); border-radius: var(--r-pill); padding: 3px 10px; }
.fsetz { width: calc(100% - 36px); border-collapse: collapse; margin-top: 12px; }
.fsetz th, .fsetz td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fsetz tr:last-child th, .fsetz tr:last-child td { border-bottom: 0; }
.fsetz th { text-align: left; font-weight: 400; color: var(--muted); }
.fsetz td { text-align: right; }
.masked { display: inline-block; width: 54px; height: 1.05em; border-radius: 5px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)); filter: blur(3.5px); vertical-align: -2px; user-select: none; }
.lock { font-size: 14px; color: var(--muted); margin-top: 14px; margin-bottom: 12px; }
.lock b { color: var(--fg); }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen .btn { flex: 1 1 auto; min-height: 46px; font-size: 15px; }
.aktionen .btn.primary { flex-basis: 100%; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; margin-bottom: 18px; }
.chips li { font-size: 13px; color: var(--muted); background: var(--field); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 11px; }
.plan > .aktionen:last-child { margin-bottom: 18px; }

/* FAQ */
.frage h3 { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.frage p { margin: 0; }

/* Nachbarorte */
.orte { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.orte a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); background: var(--glass-fill); border: 1px solid var(--glass-edge); color: var(--fg); text-decoration: none; font-size: 15px; }
.mehr { margin: 0 4px; font-size: 15px; }

/* Datenquellen */
.tabelle { overflow-x: auto; margin: 0 -4px; }
.quellen { width: 100%; border-collapse: collapse; font-size: 14px; }
.quellen th, .quellen td { text-align: left; vertical-align: top; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.quellen thead th { color: var(--accent-text); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.quellen tbody th { font-weight: 600; white-space: nowrap; padding-right: 14px; }
.quellen td { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .quellen tbody th { white-space: normal; } }
.card form.pm-addr { margin-top: 12px; }

/* Ratgeber */
.autorzeile { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.artikel ul, .artikel ol { margin: 0 0 12px; padding-left: 22px; color: var(--muted); }
.artikel li { margin: 0 0 4px; }
.artikel blockquote { margin: 0 0 12px; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); }
.artikel blockquote p { margin: 0; }
.artikel .tabelle { margin: 0 0 12px; }
.beispiel ul, .ratgeber-liste { margin: 0 0 10px; padding-left: 22px; color: var(--muted); }
.beispiel .stand { font-size: 13px; color: var(--dim); }
.autorbox h2 { margin-top: 0; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); margin-top: 28px; }
.fuss .links button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* Tastaturfokus: deutlich sichtbar auf dunklem Glas */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}
form.pm-addr .pm-addr-input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

@media (min-width: 720px) {
  .map { height: 320px; }
  .aktionen .btn.primary { flex-basis: auto; }
}

@media (max-width: 480px) {
  .werte { grid-template-columns: 1fr 1fr; }
  .werte .wert:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nav .links { display: none; }
}

/* Ohne Blur-Unterstützung deckende Flächen */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .karte, .nav, .feld { background: #1a1e25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hub und Bundesland-Seiten */
.landnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 4px 0; }
.landnav a { padding: 8px 14px; border-radius: var(--r-pill); background: var(--glass-fill); border: 1px solid var(--glass-edge); color: var(--fg); text-decoration: none; font-size: 14px; }
.landnav a span { color: var(--dim); margin-left: 4px; }
.titel .c { color: var(--dim); font-size: 14px; font-weight: 400; margin-left: 6px; }
.suche { margin: 4px 0 0; }
.suche .suchfeld { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: var(--r-field); background: var(--field); border: 1px solid var(--glass-edge); color: var(--fg); font: inherit; font-size: 16px; }
.suche .hinweis { min-height: 1.4em; }
[hidden] { display: none !important; }

/* ---------- Rechtsseiten (Inhalt unverändert aus dem Live-HTML) ---------- */
.recht { --ink: var(--fg); --ink-2: var(--muted); --ink-3: var(--dim); --teal: var(--accent-text); overflow-wrap: anywhere; padding-top: 24px; }
.recht .eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.recht h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 0 0 22px; }
.recht h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.recht h3 { font-size: 16px; margin: 20px 0 8px; }
.recht p, .recht li { color: var(--muted); }
.recht ul, .recht ol { padding-left: 22px; }
.recht li { margin-bottom: 6px; }
.recht .meta, .recht .toc, .recht .warn, .recht .principle { background: var(--glass-fill); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.recht .toc-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.recht .toc a { color: var(--muted); text-decoration: none; }
.recht .principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.recht .principle { margin: 0; }
.recht .principle h3 { margin: 0 0 6px; font-size: 14px; }
.recht .principle p { margin: 0; font-size: 13.5px; }
.recht .badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 28px; }
.recht .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--glass-edge); border-radius: 999px; font-size: 12px; color: var(--muted); }
.recht .badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }
.recht table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.recht th, .recht td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.recht th { color: var(--fg); font-weight: 600; }
.recht code { background: var(--field); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; color: var(--fg); }
.recht hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.recht .placeholder { background: rgba(239, 68, 68, 0.1); border: 1px dashed rgba(239, 68, 68, 0.4); padding: 2px 8px; border-radius: 4px; color: #f87171; }

/* ---------- /was-darf-ich-bauen/ ---------- */
.werk { padding-bottom: 8px; }
.werk .scribble { color: var(--accent-text); font-weight: 700; }
.werk h2 { font-size: 20px; line-height: 1.25; margin: 34px 0 10px; }
.werk .prose { color: var(--muted); }
.werk .prose b, .werk .lead b { color: var(--fg); }
.werk form.pm-addr { margin: 22px 0 6px !important; }
.werk .cta-hero { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.werk .btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; text-decoration: none; background: var(--glass-fill-strong); color: var(--fg); }
.werk .btn.btn-web { background: var(--accent); color: var(--on-accent); }
.werk .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.werk .stat, .werk .hbox, .werk .mod { background: var(--glass-fill); border: 1px solid var(--glass-edge); border-radius: 16px; padding: 14px 16px; }
.werk .stat .n { font-size: 24px; font-weight: 700; color: var(--accent-text); }
.werk .stat .l { font-size: 13px; color: var(--dim); }
.werk .compare { display: block; overflow-x: auto; border-collapse: collapse; margin-top: 12px; }
.werk .compare th, .werk .compare td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; color: var(--muted); }
.werk .compare thead th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.werk .compare thead th.us, .werk .compare td.fix { color: var(--fg); }
.werk .honesty, .werk .modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.werk .pill { display: inline-block; font-size: 12px; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--glass-edge); }
.werk .hbox p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.werk .mod span { font-size: 14px; color: var(--muted); }
.werk .faq dt { font-weight: 700; margin-top: 16px; }
.werk .faq dd { margin: 4px 0 0; color: var(--muted); }
.werk .note { margin-top: 28px; font-size: 12px; color: var(--dim); }
.werk .card { margin-top: 28px; }
@media (max-width: 600px) { .werk .stats, .werk .honesty, .werk .modules { grid-template-columns: 1fr; } }

/* ---------- Startseite (nur neue Klassen) ---------- */
.start-hero { padding-top: 30px; }
.start-hero h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.start-akzent { color: var(--accent-text); }
.start-zweit { margin: 14px 0 0; }
.start-zweit .btn { display: inline-flex; min-height: 46px; border-radius: var(--r-pill); font-size: 15px; }
.start-chips { margin: 18px 0 0; }
.start-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.start-sprung a { padding: 7px 13px; border-radius: var(--r-pill); background: var(--glass-fill); border: 1px solid var(--glass-edge); color: var(--muted); text-decoration: none; font-size: 14px; }
.start-block { margin: 0 0 8px; scroll-margin-top: 16px; }
.start-block > .abschnitt { margin: 38px 4px 0; }
.start-block > .titel { margin-top: 4px; }
.start-text { color: var(--muted); margin: 0 4px 14px; }
.start-werte { margin: 0 0 14px; }
.start-werte .wert .n { font-size: 17px; }
.start-werte .wert .l { margin-top: 4px; }
.card .start-werte { margin: 14px 0 0; }
.start .card > h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.start-liste { margin: 0; padding-left: 20px; color: var(--muted); }
.start-liste li { margin: 0 0 6px; }
.start-liste b { color: var(--fg); }
.start-ergebnis { margin-top: 4px; }
.start-video { margin: 0 0 14px; padding: 0; overflow: hidden; }
.start-video video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--field); }
.start-video figcaption { padding: 12px 18px 16px; font-size: 14px; color: var(--muted); }
.start-robert { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 38px; scroll-margin-top: 16px; }
.start-portraet { position: relative; display: block; max-width: 220px; border-radius: 16px; overflow: hidden; background: var(--field); }
.start-portraet img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.start-marken { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.start-robert-text > .abschnitt { margin-top: 0; }
.start-zitat { margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: var(--fg); }
.start-name { margin: 0 0 6px; }
.start-name span { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.start-spalten { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.start-gross { font-size: 28px; font-weight: 700; margin: 0 0 8px; color: var(--fg); }
.start-wir { border-color: rgba(45, 212, 191, 0.45); }
.start-wir h3 { color: var(--accent-text); }
.start-schritte { list-style: none; margin: 0; padding: 0; }
.start-klein { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.card .start-klein { margin: 0 0 4px; color: var(--accent-text); }
.start-frage summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.start-frage summary::-webkit-details-marker { display: none; }
.start-frage summary::after { content: "+"; color: var(--accent-text); font-size: 20px; line-height: 1; }
.start-frage[open] summary::after { content: "–"; }
.start-frage summary h3 { margin: 0; }
.start-frage p { margin-top: 10px; }
.start-karten { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.start-karten .card h3 a { color: var(--fg); text-decoration: none; }
.start-karten .card h3 a:hover { color: var(--accent-text); }
.start-karten .card p { font-size: 14px; margin: 0; }
.start-cta { margin-top: 38px; padding: 28px 18px; text-align: center; scroll-margin-top: 16px; }
.start-cta h2 { font-size: clamp(32px, 8vw, 44px); line-height: 1.05; margin: 0 0 12px; }
.start-cta p { margin-left: auto; margin-right: auto; max-width: 480px; }
.start-weiche { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card .start-weiche { color: var(--accent-text); margin: 18px auto 10px; }
.start-stores { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; padding: 10px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--glass-edge); color: var(--fg); text-decoration: none; text-align: left; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 11px; color: var(--muted); }
.store b { font-size: 17px; }
.store.nur-breit { background: var(--accent); color: var(--on-accent); border-color: rgba(255, 255, 255, 0.45); }
.store.nur-breit small { color: var(--on-accent); }
.start-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin: 18px auto 4px !important; }
.start-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
.start-systeme { font-size: 12px; color: var(--dim) !important; margin-bottom: 0 !important; }
.start-mehr { margin: 34px 4px 0; color: var(--muted); font-size: 14px; }
.start-mehr p { margin: 0 0 10px; }
.start-mehr .abschnitt { margin: 16px 0 6px; }
.start-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.start-links a { color: var(--muted); }
.card .start-gross { color: var(--fg); }
.start-name b { color: var(--fg); }
.start-marken { flex-wrap: wrap; font-size: 10px; letter-spacing: 0.04em; }
.start-marken span { white-space: nowrap; }
.card > .start-werte { grid-template-columns: 1fr 1fr; }
.start-mehr .hinweis { margin-top: 18px; }
.start-stores { gap: 8px; }
.store { padding: 9px 14px; gap: 10px; }
.store b { font-size: 16px; }
.start-karten .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) {
  .start-hero form.pm-addr .pm-addr-row { flex-wrap: wrap; padding: 6px; }
  .start-hero form.pm-addr .pm-addr-icon { margin-left: 8px; }
  .start-hero form.pm-addr .pm-addr-submit { flex: 1 1 100%; }
}
.nur-breit { display: none; }
@media (min-width: 640px) {
  .nur-breit { display: block; }
  .store.nur-breit { display: inline-flex; }
  .nur-schmal { display: none; }
  .start-stores { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .store { min-width: 0; }
  .start-robert { grid-template-columns: 180px 1fr; align-items: start; }
  .start-spalten, .start-karten { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bauantrag-Seiten ---------- */
.ablauf-intro { color: var(--muted); margin: 0 4px 14px; }
.schritte { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; counter-reset: schritt; }
.schritt { counter-increment: schritt; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.schritt h3 { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.schritt h3::before { content: "Schritt " counter(schritt) " · "; color: var(--accent-text); font-weight: 600; }
.schritt p, .kasten p { margin: 0; color: var(--muted); }
.kasten h3 { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.zustaendig dl { margin: 12px 0 0; }
.zustaendig dt { color: var(--accent-text); font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.zustaendig dt:first-child { margin-top: 0; }
.zustaendig dd { margin: 0; overflow-wrap: anywhere; }
.zustaendig .q { font-size: 12px; color: var(--muted); margin-left: 4px; }
@media (min-width: 640px) {
  .schritte { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Menü (alle Breiten) und Desktop-Layout ab 1024 px (Robert 2026-11-27:
   „im web billig“, Beispielbild App-Desktop; Handy bleibt kurz und einfach).
   ===================================================================== */
.menue-knopf {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 -4px 0 -10px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
}
.menue-knopf:hover { background: var(--glass-fill-strong); }
.nav .logo { margin-right: auto; }
.nav { justify-content: flex-start; }
.nav .links { margin-right: 6px; }

.leiste {
  position: fixed; z-index: 30; top: 12px; bottom: 12px; left: 12px;
  width: min(300px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(120, 126, 136, 0.42), rgba(70, 76, 86, 0.34) 55%, rgba(20, 120, 110, 0.38));
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  transform: translateX(calc(-100% - 24px));
  transition: transform 260ms var(--ease-out);
  overflow-y: auto;
}
body.leiste-offen .leiste { transform: none; }
.leiste-kopf { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.leiste-kopf .logo { font-weight: 700; font-size: 19px; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.leiste-kopf .logo i { font-style: normal; color: var(--accent-text); }
.menue-zu { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.menue-zu:hover { background: var(--glass-fill-strong); color: var(--fg); }
.leiste-haupt, .leiste-fuss { display: flex; flex-direction: column; gap: 2px; }
.leiste-haupt a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--fg); text-decoration: none; font-size: 16px; font-weight: 600; }
.leiste-haupt a svg { color: var(--accent-text); flex: none; }
.leiste-haupt a:hover, .leiste-fuss a:hover { background: rgba(255, 255, 255, 0.12); }
.leiste-cta { margin: 12px 4px 0; padding: 12px 16px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 0 24px var(--accent-glow); }
.leiste-fuss { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.leiste-fuss a { padding: 9px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 15px; }
.leiste-schleier { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.38); opacity: 0; transition: opacity 260ms ease; }
body.leiste-offen .leiste-schleier { opacity: 1; }

.start-gruss, .start-kacheln, .start-runter { display: none; }

@media (min-width: 1024px) {
  body { font-size: 17px; }
  main, footer { max-width: 820px; padding-left: 32px; padding-right: 32px; }
  .s-start main, .s-start footer, .s-stadt main, .s-stadt footer,
  .s-hub main, .s-hub footer, .s-land main, .s-land footer,
  .s-bauantrag main, .s-bauantrag footer { max-width: 1160px; }

  /* Kopfzeile: volle Breite, ohne Pille */
  .nav {
    max-width: none; margin: 0; padding: 18px 28px; border-radius: 0;
    background: transparent; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px;
  }
  .menue-knopf { width: 42px; height: 42px; margin: 0 4px 0 0; }
  .nav .logo { font-size: 19px; }
  .nav .links { gap: 26px; font-size: 15px; margin-right: 22px; }
  .nav .links a:hover { color: var(--fg); }
  .nav .cta { padding: 10px 18px; font-size: 14px; }

  .hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.02em; }
  .hero .lead { font-size: 19px; max-width: 760px; }
  .titel { font-size: 30px; margin-top: 64px; margin-bottom: 18px; }
  .card { padding: 24px; }

  /* ---------- Startseite: erster Bildschirm nur Begrüßung und Adresse ---------- */
  .s-start .start-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; max-width: 900px; margin: 0 auto; padding: 0 0 96px;
  }
  .s-start .start-hero .eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
  .s-start .start-hero .start-gruss { display: block; margin: 0 0 14px; font-size: clamp(64px, 6.4vw, 100px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--fg); }
  .s-start .start-hero h1 { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--muted); margin: 0 0 12px; }
  .s-start .start-hero .lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 auto 36px; }
  .s-start .start-hero form.pm-addr { max-width: 820px !important; }
  .s-start .start-hero form.pm-addr .pm-addr-row { padding: 10px 10px 10px 24px; border-radius: 24px; }
  .s-start .start-hero form.pm-addr .pm-addr-input { font-size: 19px; padding: 16px 6px; }
  .s-start .start-hero form.pm-addr .pm-addr-submit { font-size: 17px; padding: 17px 28px; border-radius: 16px; }
  .start-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 820px; list-style: none; margin: 22px 0 0; padding: 0; }
  .start-kacheln li {
    display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px 22px; border-radius: 20px;
    background: var(--glass-fill); border: 1px solid var(--glass-edge); border-top-color: var(--glass-hi); box-shadow: var(--glass-shadow);
  }
  .start-kacheln b { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
  .start-kacheln span { font-size: 14px; color: var(--muted); }
  /* Ersparnis-Kachel (Robert 2026-11-27, Auftrag 5): die Reihe ist genau so breit wie das
     Adressfeld (820px, beide width:100%, links und rechts bündig). Die äußeren Kacheln behalten
     ihre bisherige Breite aus der 900px-Reihe ((900 - 2×14) / 3,9), die mittlere nimmt den Rest.
     Geschlossen: große Überschrift, eine gedämpfte Zeile, „So rechnen wir“ in eigener Zeile darunter;
     knappe Zeilenhöhen, damit die Kachel nicht höher wird als die Nachbarn.
     Farben nur helle Schrift, gedämpftes Grau und der eine Türkis-Akzent. */
  .s-start .start-kacheln {
    grid-template-columns: calc((900px - 28px) / 3.9) minmax(0, 1fr) calc((900px - 28px) / 3.9);
    max-width: 820px;
  }
  /* Aufgeklappt wächst nur diese Kachel, die Nachbarn behalten ihre Höhe */
  .s-start .start-kacheln:has(.start-spar-rechnung[open]) { align-items: start; }
  /* Auftrag 6 (Robert 2026-11-27): Innenabstand wie die Nachbarn (18px oben/unten, 22px links/rechts),
     damit die erste Textzeile aller drei Kacheln auf derselben Höhe beginnt. Die Höhe bleibt 115px:
     Inhalt höchstens 115 − 2×18 − 2 (Rand) = 77px = Überschrift 2×25 + Unterzeile 14 + „So rechnen wir“ 13.
     Verkleinert sind nur die Zeilenabstände, die Schriftgrößen bleiben. Die feste Höhe der summary
     hält die Zeile auf 13px, auch wenn das Pfeilzeichen aus einer Ersatzschrift kommt. */
  /* Auftrag 7 (Robert 2026-11-27): Die Überschrift passt auf eine Zeile (345px), die Annahme von
     zwei Zeilen ist überholt. Typografie jetzt exakt wie die Nachbarn: Überschrift 26px/29,9px
     (erste Zeile 19px unter der Kante), Unterzeile 14px/21,7px mit 4px Abstand wie der gap der
     Nachbarn, „So rechnen wir“ 12px/16px mit 2px Abstand. Inhalt 29,9 + 4 + 21,7 + 2 + 16 = 73,6px,
     passt in 77px. Die Mindesthöhe 115px hält die Reihe auf der bisherigen Höhe, auch wenn die
     Rechnung aufgeklappt ist und die Nachbarn nicht mehr gestreckt werden. */
  .s-start .start-kacheln li { min-height: 115px; }
  .start-kacheln .start-spar { gap: 0; padding: 18px 22px; }
  .start-kacheln .start-spar-titel { font-size: 26px; line-height: 29.9px; }
  .start-kacheln .start-spar-zahl { font-size: inherit; color: var(--accent-text); white-space: nowrap; }
  .start-kacheln .start-spar-unter { font-size: 14px; line-height: 21.7px; color: var(--muted); margin-top: 4px; }
  .start-spar-rechnung { margin: 2px 0 0; }
  .start-spar-rechnung summary {
    display: block; width: fit-content; height: 16px;
    list-style: none; cursor: pointer; white-space: nowrap;
    font-size: 12px; line-height: 16px; color: var(--accent-text); border-radius: 4px;
  }
  .start-spar-rechnung summary::-webkit-details-marker { display: none; }
  .start-spar-rechnung summary:hover { color: var(--fg); }
  .start-spar-rechnung summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
  .start-kacheln .start-spar-rechnung summary span { font-size: inherit; color: inherit; }
  .start-spar-knopf { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
  .start-spar-pfeil { display: inline-block; transition: transform 200ms var(--ease-out); }
  .start-spar-rechnung[open] .start-spar-pfeil { transform: rotate(180deg); }
  .start-spar-zeilen { display: grid; gap: 6px; margin: 10px 0 0; }
  .start-spar-zeilen dt { font-size: 12px; font-weight: 600; color: var(--fg); }
  .start-spar-zeilen dd { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
  .start-kacheln .start-spar-fuss { margin: 8px 0 4px; font-size: 12px; line-height: 1.4; color: var(--dim); }
  .start-kacheln .start-spar-fuss a { color: var(--accent-text); white-space: nowrap; }
  .s-start .start-zweit, .s-start .start-chips, .s-start .start-sprung { display: none; }
  .start-runter {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--dim); font-size: 13px; text-decoration: none; letter-spacing: 0.04em;
  }
  .start-runter:hover { color: var(--fg); }
  .start-runter svg { animation: runter 2.4s var(--ease-out) infinite; }
  @keyframes runter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  /* ---------- Stadtseite: Text links, Zahlen rechts ---------- */
  .s-stadt main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .s-stadt main > * { grid-column: 1 / -1; }
  .s-stadt main > .hero { grid-column: 1; padding-top: 24px; }
  .s-stadt main > .karte { grid-column: 2; margin-top: 52px; }
  .s-stadt .map { height: 420px; }
  .s-stadt section[aria-labelledby="fragen"] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .s-stadt section[aria-labelledby="fragen"] > .titel { grid-column: 1 / -1; }

}

/* Handy (Robert 2026-11-27, Vergleich mit der Google-Suche): Safari färbt Status- und
   Werkzeugleiste in der Grundfarbe der Seite. Damit dort kein Balken absetzt, blendet der
   Verlauf zum oberen und unteren Rand in die Grundfarbe aus; der Seitenhintergrund hinter
   den Leisten ist einfarbig. Die Farbigkeit bleibt in der Mitte. */
@media (max-width: 1023px) {
  html { background-image: none; }
  body::before {
    background:
      linear-gradient(to bottom, var(--bg) 0, rgba(14, 17, 22, 0) 120px, rgba(14, 17, 22, 0) calc(100% - 130px), var(--bg) 100%),
      radial-gradient(1100px 620px at 12% -8%, var(--spot-1), transparent 65%),
      radial-gradient(900px 600px at 102% 20%, var(--spot-2), transparent 65%),
      radial-gradient(900px 560px at 45% 105%, var(--spot-3), transparent 65%),
      radial-gradient(640px 420px at -2% 92%, var(--spot-4), transparent 65%),
      var(--bg);
  }
}

/* ---------- Startseite: Abschnitte unterhalb des ersten Bildschirms (Robert 2026-11-27:
   „aufgeräumter“, mehr Inhalt). Linien statt Kasten auf Kasten. ---------- */
.s-start .start-block { padding: 34px 0 6px; border-top: 1px solid var(--line); margin: 34px 0 0; scroll-margin-top: 16px; }
.s-start .start-kopf .abschnitt { margin: 0 0 6px; }
.s-start .start-kopf .titel { margin: 0 0 10px; font-size: 24px; }
.s-start .start-kopf .start-text { margin: 0 0 14px; }
.s-start .start-kopf .mehr { margin: 0 0 12px; }
.start-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.start-schritte li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.start-nr { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.start-schritte h3, .start-pruef h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.start-schritte p, .start-pruef p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.start-pruef { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.start-pruef li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.start-pruef li:first-child { padding-top: 0; }
.start-pruef li:last-child { border-bottom: 0; }
.start-pruef a { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.s-start .start-robert { margin: 0; }
.start-laender { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.start-laender a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--glass-fill); border: 1px solid var(--glass-edge); color: var(--fg); text-decoration: none; }
.start-laender b { font-size: 15px; line-height: 1.25; }
.start-laender span { font-size: 12px; color: var(--muted); }
.start-laender a:hover { border-color: rgba(45, 212, 191, 0.5); }
.start-bauantrag { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.start-bauantrag a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 15px; }
.start-bauantrag a:hover { color: var(--accent-text); }
.start-ratgeber { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.start-ratgeber li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.start-ratgeber li:last-child { border-bottom: 0; }
.start-ratgeber a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.start-ratgeber a:hover { color: var(--accent-text); }
.start-ratgeber p { display: none; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.start-fragen .start-frage { margin-bottom: 10px; }
.s-start .start-cta { margin-top: 48px; }

@media (min-width: 1024px) {
  .s-start .start-block {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 64px; align-items: start;
    padding: 64px 0 8px; margin: 0;
  }
  .s-start .start-block:first-of-type { border-top: 0; }
  .s-start .start-kopf { position: sticky; top: 28px; }
  .s-start .start-kopf .titel { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
  .s-start .start-kopf .start-text { font-size: 16px; }
  .start-schritte { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .start-schritte li { grid-template-columns: 1fr; gap: 8px; align-content: start; }
  .start-nr { grid-row: auto; width: 36px; height: 36px; font-size: 15px; }
  .start-schritte h3, .start-pruef h3 { font-size: 19px; }
  .start-schritte p, .start-pruef p { font-size: 16px; }
  .start-pruef { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .start-pruef li { padding: 18px 0; }
  .start-pruef li:nth-child(-n+2) { padding-top: 0; }
  .start-pruef li:nth-last-child(-n+2) { border-bottom: 0; }
  .s-start .start-robert { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px; }
  .s-start .start-zitat { font-size: 22px; line-height: 1.35; }
  .start-laender { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .start-laender a { padding: 14px 16px; }
  .start-laender b { font-size: 16px; }
  .start-laender span { font-size: 13px; }
  .start-bauantrag { grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
  .start-ratgeber { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .start-ratgeber li { padding: 16px 0; }
  .start-ratgeber li:nth-last-child(-n+2) { border-bottom: 0; }
  .start-ratgeber p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .start-fragen { display: grid; grid-template-columns: 1fr; gap: 0; }
  .s-start #staedte .orte a { font-size: 15px; padding: 9px 16px; }
  .s-start .start-cta { margin-top: 88px; padding: 64px 32px; }
  .s-start .start-cta h2 { font-size: 56px; }
  .s-start .start-mehr { margin-top: 56px; }
}

/* ---------- Startseite: Auftritt der Begrüßung (Robert 2026-11-27: „cooler Effekt … hochwertiger“).
   Wörter werden nacheinander scharf, danach läuft einmal ein Lichtschimmer durch den Schriftzug,
   Unterzeile, Adressfeld und Kacheln folgen versetzt. Bei „Bewegung reduzieren“ sofort sichtbar
   (globale Regel oben schaltet alle Animationen ab). ---------- */
@media (min-width: 1024px) {
  .s-start .start-gruss.start-los .start-wort {
    display: inline-block;
    background: linear-gradient(100deg, var(--fg) 0%, var(--fg) 36%, #8ff5e6 44%, var(--accent-hi) 50%, #8ff5e6 56%, var(--fg) 64%, var(--fg) 100%);
    background-size: 300% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: start-wort 1000ms var(--ease-out) both, start-schimmer 6000ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
    animation-delay: calc(var(--i) * 120ms + 80ms), calc(var(--i) * 160ms + 900ms);
  }
  .s-start .start-hero .eyebrow { animation: start-auf 700ms var(--ease-out) both; }
  .s-start .start-hero h1 { animation: start-auf 800ms var(--ease-out) 420ms both; }
  .s-start .start-hero .lead { animation: start-auf 800ms var(--ease-out) 540ms both; }
  .s-start .start-hero form.pm-addr { animation: start-auf 800ms var(--ease-out) 660ms both; }
  .s-start .start-kacheln li { animation: start-auf 800ms var(--ease-out) both; }
  .s-start .start-kacheln li:nth-child(1) { animation-delay: 800ms; }
  .s-start .start-kacheln li:nth-child(2) { animation-delay: 880ms; }
  .s-start .start-kacheln li:nth-child(3) { animation-delay: 960ms; }
  .s-start .start-runter { animation: start-blende 900ms ease 1400ms both; }
  .s-start .start-runter svg { animation: runter 2.4s var(--ease-out) 2300ms infinite; }
}
@keyframes start-wort {
  from { opacity: 0; transform: translateY(22px); filter: blur(14px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
/* Schimmer alle 6 s: 2 s Durchlauf, dann Ruhe; der Sprung zurück liegt im weißen Teil und ist unsichtbar. */
@keyframes start-schimmer { 0% { background-position: 100% 0; } 34%, 100% { background-position: 0% 0; } }
@keyframes start-auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes start-blende { from { opacity: 0; } to { opacity: 1; } }

/* Startseite am Handy kurz halten (Robert: „kurz und einfach“): Länder und Bauantrag als
   kleine Chips, Porträt klein neben dem Text. */
@media (max-width: 1023px) {
  .start-laender { display: flex; flex-wrap: wrap; gap: 6px; }
  .start-laender a { padding: 7px 12px; border-radius: var(--r-pill); }
  .start-laender b { font-size: 14px; font-weight: 600; }
  .start-laender span { display: none; }
  .start-bauantrag { display: flex; flex-wrap: wrap; gap: 6px; }
  .start-bauantrag a { padding: 7px 12px; border: 1px solid var(--glass-edge); border-radius: var(--r-pill); background: var(--glass-fill); font-size: 14px; }
  .s-start .start-robert { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
  .s-start .start-portraet { max-width: 104px; }
  .s-start .start-marken { display: none; }
  .s-start .start-zitat { font-size: 16px; }
}

/* Lichtpunkt am Mauszeiger: liegt über dem Hintergrundverlauf, unter allem Inhalt. */
.licht {
  position: fixed; left: 0; top: 0; z-index: -1; width: 700px; height: 700px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity 600ms ease;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.20), rgba(20, 184, 166, 0.08) 35%, transparent 68%);
  will-change: transform;
}
.licht.an { opacity: 1; }
@media (hover: none), (pointer: coarse) { .licht { display: none; } }

/* Unterlänge (g, „Morgen“) nicht abschneiden: background-clip:text braucht Platz unter der Grundlinie. */
.s-start .start-gruss .start-wort { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* Cookie-Banner schmaler und ruhiger (Robert 2026-11-27: „zu aufdringlich“).
   consent.js bleibt unverändert; es spritzt sein CSS später ein, daher der höhere Selektor
   (html body …). Text, Links und Auswahl bleiben vollständig; „Nur Notwendige“ und
   „Alle akzeptieren“ bleiben gleich groß und gleich gestaltet. Nur die Hülle wird kleiner,
   der abdunkelnde Schleier hinter dem Banner entfällt. */
html body #planmit-consent-backdrop { display: none; }
html body #planmit-consent {
  max-width: 520px; padding: 14px 18px 12px; border-radius: 12px;
  border-color: rgba(20, 184, 166, 0.22); border-top-width: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 13px; line-height: 1.5;
}
html body #planmit-consent .pc-eyebrow { display: none; }
html body #planmit-consent h3 { font-size: 15px; margin: 0 0 4px; }
html body #planmit-consent p { margin: 0 0 10px; }
html body #planmit-consent .pc-toggles { margin: 10px 0 12px; padding-top: 10px; }
html body #planmit-consent .pc-toggle { padding: 8px 0; }
html body #planmit-consent .pc-actions { gap: 8px; }
html body #planmit-consent .pc-actions button { min-width: 0; padding: 8px 12px; font-size: 13px; }
html body #planmit-consent .pc-settings-link { margin-top: 8px; }
@media (max-width: 540px) {
  html body #planmit-consent { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px 10px; }
}

/* ---------- Handy: Menüzeile unten wie bei Instagram (Robert 2026-11-27, iPhone-Vorschau).
   Oben steht nur noch das Logo, ohne Pille, wie im Web. Unten: Menü (☰), in der Mitte
   „Kostenlos starten“, rechts „?“ für den Ratgeber. Nur bis 767px; Tablet und Web bleiben. ---------- */
.unten-leiste { display: none; }
@media (max-width: 767px) {
  .nav {
    margin: 0; padding: 16px 20px 6px; border-radius: 0;
    background: transparent; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav .menue-knopf, .nav .cta, .nav .links { display: none; }
  .nav .logo { font-size: 19px; }

  .unten-leiste {
    position: fixed; z-index: 20;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 60px; padding: 0 10px;
    border-radius: var(--r-pill);
    background: rgba(28, 32, 40, 0.62);
    border: 1px solid var(--glass-edge); border-top-color: var(--glass-hi);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  }
  .unten-menue, .unten-ratgeber {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; padding: 0; background: transparent; color: var(--fg);
    text-decoration: none; cursor: pointer;
  }
  .unten-menue { justify-self: start; }
  .unten-ratgeber { justify-self: end; }
  .unten-menue:active, .unten-ratgeber:active { background: var(--glass-fill-strong); }
  .unten-cta {
    padding: 11px 22px; border-radius: var(--r-pill);
    background: var(--accent); color: var(--on-accent);
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
    box-shadow: 0 0 22px var(--accent-glow);
    transition: transform 160ms var(--ease-out);
  }
  .unten-cta:active { transform: scale(0.97); }

  /* Platz unter dem Fuß, damit nichts hinter der Leiste verschwindet; Cookie-Banner darüber */
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  html body #planmit-consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .unten-leiste { background: #1a1e25; }
}

/* ---------- Tablet (iPad, 768–1023px): Kopfzeile wie im Web (Robert 2026-11-27, iPad-Vorschau).
   Keine Pille mehr, volle Breite, Menü (☰), Logo, Städte/Ratgeber und „Kostenlos starten“ oben. ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav {
    max-width: none; margin: 0; padding: 18px 24px; border-radius: 0;
    background: transparent; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px;
  }
  .menue-knopf { width: 42px; height: 42px; margin: 0 4px 0 0; }
  .nav .logo { font-size: 19px; }
  .nav .links { gap: 22px; font-size: 15px; margin-right: 18px; }
  .nav .links a:hover { color: var(--fg); }
  .nav .cta { padding: 10px 18px; font-size: 14px; }
}
