/* Fahrschule Daniel Fallscheer — Handy zuerst. Farben nach dem Logo auf Daniels Auto (Daniel 20.10.2026: „etwas näher an dem
   Logo des Autos"): dunkler Grund, Türkis als Akzent, Verlauf grün → türkis → blau → indigo wie die Schwünge und der Auto-Umriss. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-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 {
  --nacht: #0b1626;
  --nacht-2: #13243b;
  --nacht-3: #1d3352;
  --akzent: #34d3c0;
  --akzent-2: #1fb5a8;
  --verlauf: linear-gradient(100deg, #7ee08a 0%, #34d3c0 36%, #3b9ef5 70%, #6d6af5 100%);
  --verlauf-knopf: linear-gradient(100deg, #34d3c0 0%, #4f9cf7 100%);
  --stern: #ffc94a;
  --wa: #25d366;
  --wa-2: #1ebe5b;
  --text: #0f1a2b;
  --text-2: #4a5a70;
  --text-hell: #e9eef6;
  --text-hell-2: #a9b6c8;
  --bg: #ffffff;
  --bg-2: #f3f5f8;
  --linie: #e1e6ee;
  --ph-bg: #fff3c4;
  --ph-text: #7a5300;
  --ph-rand: #e3b100;
  --rund: 18px;
  --rund-klein: 12px;
  --schatten: 0 1px 2px rgba(11, 22, 38, .06), 0 8px 24px rgba(11, 22, 38, .07);
  --kopf-h: 64px;
  --leiste-h: 68px;
  --schrift: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --schrift-titel: 'Archivo', var(--schrift);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom));
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
/* Lange deutsche Wörter (Führerscheinklassen, Datenschutzerklärung) passen bei 360 px nicht in große Titel:
   trennen (lang="de") statt überlaufen – sonst wird die Seite breiter als das Handy (Livetest 19.10.2026: 367/398 px). */
h1, h2, h3, .titel { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
body { overflow-wrap: break-word; }
h3 { font-size: 1.15rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ico[fill="none"] { fill: none; } /* Umriss-Symbole (Globus, Haken): sonst füllt die Regel darüber sie zu einem Klecks */

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--akzent); color: var(--nacht); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--akzent-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Knöpfe: jede Berührung zeigt SOFORT eine Reaktion ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--schrift); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
  user-select: none; touch-action: manipulation;
}
.knopf:active, .knopf.gedrueckt, .leiste-knopf:active, .leiste-knopf.gedrueckt { transform: scale(.96); filter: brightness(.94); }
.knopf-gross { min-height: 54px; font-size: 1.05rem; padding: 0 26px; }
.knopf-breit { width: 100%; }
.knopf-haupt { background: var(--verlauf-knopf); color: var(--nacht); box-shadow: 0 6px 18px rgba(52, 211, 192, .32); }
.knopf-haupt:hover { filter: brightness(1.07); }
.knopf-wa { background: var(--wa); color: #06301a; box-shadow: 0 6px 18px rgba(37, 211, 102, .28); }
.knopf-wa:hover { background: var(--wa-2); }
.knopf-hell { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.knopf-hell:hover { background: rgba(255, 255, 255, .16); }
.knopf-rand { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.knopf-dunkel { background: var(--nacht); color: #fff; }
.knopf-dunkel:hover { background: var(--nacht-3); }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--nacht); text-decoration: none; min-height: 44px; }
.text-link:active { opacity: .6; }
.pfeil { display: inline-block; transition: transform .15s ease; }
a:hover .pfeil { transform: translateX(3px); }
[dir='rtl'] .pfeil { transform: scaleX(-1); }
[dir='rtl'] a:hover .pfeil { transform: scaleX(-1) translateX(3px); }

/* ---------- Platzhalter ----------
   Die Startseite blendet fehlende Angaben aus ({{#hat}}-Blöcke). Übrig bleiben nur Pflichtangaben im Impressum/Datenschutz:
   für Besucher unauffällig, gelb nur in der Vorschau mit ?luecken (Dorian 20.10.2026: keine Baustelle zeigen). */
.ph { font: inherit; }
.luecken .ph {
  display: inline; background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-rand);
  border-radius: 6px; padding: .05em .4em; font-weight: 600; font-size: .95em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 40; background: rgba(11, 22, 38, .92); color: #fff; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); padding-top: env(safe-area-inset-top); }
.kopf-innen { height: var(--kopf-h); max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; margin-inline-end: auto; min-height: 44px; }
.logo {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--verlauf-knopf); color: var(--nacht); font: 900 1.05rem/1 var(--schrift-titel); font-stretch: 125%; letter-spacing: -.02em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.marke-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marke-oben { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); font-weight: 700; }
.marke-unten { font: 800 1rem/1.15 var(--schrift-titel); font-stretch: 108%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haupt-nav { display: none; }
.kopf-aktionen { display: flex; align-items: center; gap: 6px; flex: none; }
.sprach-knopf {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .08); color: #fff; font: 700 .85rem/1 var(--schrift); cursor: pointer; transition: background-color .15s, transform .08s;
}
.sprach-knopf:active, .sprach-knopf.gedrueckt { transform: scale(.94); background: rgba(255, 255, 255, .18); }
.kopf-cta { display: none; }
.menue-knopf { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; transition: background-color .15s, transform .08s; }
.menue-knopf:active, .menue-knopf.gedrueckt { background: rgba(255, 255, 255, .12); transform: scale(.94); }
.menue-knopf span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menue-knopf[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menue-knopf[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.sprach-hinweis { background: var(--akzent); color: var(--nacht); display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; font-size: .92rem; }
.sprach-hinweis p { margin: 0; flex: 1; max-width: 1148px; margin-inline: auto; }
.sprach-hinweis a { font-weight: 800; white-space: nowrap; }
.hinweis-zu { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--nacht); border-radius: 10px; }
.hinweis-zu:active { background: rgba(0, 0, 0, .08); }

/* ---------- Menü (Handy) ---------- */
.menue {
  position: fixed; inset: calc(var(--kopf-h) + env(safe-area-inset-top)) 0 0 0; z-index: 39; background: var(--nacht); color: #fff;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 20px;
  animation: menue-rein .16s ease-out;
}
@keyframes menue-rein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menue-liste { display: flex; flex-direction: column; }
.menue-liste a { display: flex; align-items: center; min-height: 56px; font: 800 1.45rem/1.1 var(--schrift-titel); font-stretch: 110%; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .1s, padding .1s; }
.menue-liste a:active { color: var(--akzent); padding-inline-start: 6px; }
.menue-knoepfe { display: grid; gap: 10px; }
body.menue-offen { overflow: hidden; }

/* ---------- Sprachwahl ---------- */
.sprachen { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 20, .55); display: flex; align-items: flex-end; animation: dunkel-rein .15s ease-out; }
@keyframes dunkel-rein { from { opacity: 0; } to { opacity: 1; } }
.sprachen-blatt {
  width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  animation: blatt-rein .2s cubic-bezier(.2, .9, .3, 1);
}
@keyframes blatt-rein { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.blatt-kopf h2 { margin: 0; font-size: 1.3rem; }
.blatt-zu { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg-2); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.blatt-zu:active { transform: scale(.94); }
.sprach-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sprache {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 14px;
  border-radius: var(--rund-klein); background: var(--bg-2); text-decoration: none; font-weight: 600; transition: background-color .1s, transform .08s;
}
.sprache:active, .sprache.gedrueckt { transform: scale(.97); background: #e6ebf2; }
.sprache[aria-current='true'] { background: var(--nacht); color: #fff; }
.sprache-code { font-size: .75rem; font-weight: 800; color: var(--text-2); letter-spacing: .06em; }
.sprache[aria-current='true'] .sprache-code { color: var(--akzent); }

/* ---------- Held ---------- */
.held {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 70% at 85% 0%, #1f3a63 0%, rgba(31, 58, 99, 0) 60%), radial-gradient(90% 60% at 0% 30%, #142a48 0%, rgba(20, 42, 72, 0) 70%), var(--nacht);
}
.held-innen { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 28px 16px 0; }
/* Daniels Foto: auf dem Handy randlos unter den Knöpfen, oben weich in das Nachtblau übergeblendet */
.held-foto { position: relative; margin: 26px -16px 0; aspect-ratio: 3 / 2; overflow: hidden; }
.held-foto img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-hell); font-size: .86rem; font-weight: 600; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.held-titel { font-size: clamp(2.6rem, 11.5vw, 5.4rem); font-weight: 900; font-stretch: 112%; line-height: .98; letter-spacing: -.025em; margin: 0 0 16px; }
.held-titel span { display: block; }
.akzent-text { color: var(--akzent); background: var(--verlauf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.held-text { color: var(--text-hell-2); font-size: 1.08rem; max-width: 36em; margin-bottom: 22px; }
.held-knoepfe { display: grid; gap: 10px; max-width: 520px; }
.held-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.held-zwei .knopf { padding: 0 12px; }
.sterne-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text-hell); text-decoration: none; font-size: .92rem; font-weight: 600; min-height: 44px; transition: background-color .15s, transform .08s; }
.sterne-chip:active { transform: scale(.97); background: rgba(255, 255, 255, .14); }
.sterne { color: var(--stern); letter-spacing: 2px; font-size: 1rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 56px 0; }
.abschnitt-hell { background: var(--bg-2); }
.abschnitt-dunkel { background: var(--nacht); color: #fff; }
.innen { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.innen-schmal { max-width: 760px; }
.titel { font-size: clamp(1.85rem, 7vw, 2.8rem); font-weight: 900; font-stretch: 108%; }
.unter-titel { color: var(--text-2); font-size: 1.08rem; margin-top: -.2em; }
.abschnitt-dunkel .unter-titel { color: var(--text-hell-2); }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); }

.vorteile { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
/* align-content: start – sonst verteilt die gleich hohe Karte den freien Platz auf ihre Zeilen und die Überschriften der vier
   Karten stehen auf dem Computer verschieden hoch (gemessen 20.10.2026: 847/865/873 px) */
.vorteil { padding: 18px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; align-content: start; }
.vorteil h3 { margin: 2px 0 4px; }
.vorteil p { grid-column: 2; margin: 0; color: var(--text-2); }
.vorteil-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--nacht); display: grid; place-items: center; }
.vorteil-ico svg { width: 24px; height: 24px; fill: var(--akzent); }

.klassen { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.klasse { position: relative; overflow: hidden; }
.klasse-zeichen { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--verlauf-knopf); color: var(--nacht); font: 900 1.6rem/1 var(--schrift-titel); font-stretch: 120%; margin-bottom: 14px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1); }
.klasse h3 small { display: block; font: 600 .9rem/1.3 var(--schrift); color: var(--text-2); margin-top: 4px; }
.klasse p { color: var(--text-2); margin: 0 0 2px; }
/* Klassen zugeklappt: Zeichen + Name als Tippfläche, Erklärung und „Anfragen" darunter (Daniel 21.10.2026 10:45) */
.klasse > summary { gap: 14px; padding-block: 12px; min-height: 76px; }
.klasse > summary .klasse-zeichen { width: 52px; height: 52px; margin: 0; flex: none; font-size: 1.45rem; }
.klasse > summary .klasse-zeichen-lang { font-size: 1.12rem; }
.klasse > summary .klasse-zeichen svg { width: 30px; height: 30px; }
.klasse > summary h3 { margin: 0; min-width: 0; }
.klasse-text { padding-top: 2px; }
.klasse-zeichen svg { width: 34px; height: 34px; fill: var(--nacht); }
.klasse-zeichen-lang { font-size: 1.22rem; letter-spacing: -.02em; }

.schritte { list-style: none; margin: 26px 0 0; padding: 0; position: relative; }
.klapp-inhalt > .schritte { margin-top: 10px; }
.schritte::before { content: ''; position: absolute; inset-inline-start: 23px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(to bottom, var(--akzent) 0 14px, transparent 14px 24px); }
.schritt { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 22px; }
.schritt-nr { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--nacht); color: var(--akzent); display: grid; place-items: center; font: 900 1.2rem/1 var(--schrift-titel); box-shadow: 0 0 0 5px #fff; }
.schritt-ziel .schritt-nr { background: var(--verlauf-knopf); color: var(--nacht); }
.schritt h3 { margin: 10px 0 4px; }
.schritt p { margin: 0; color: var(--text-2); }

/* Daniels Preise in drei Karten: Auto, Anhänger, Motorrad (21.10.2026) */
.preis-gruppen { display: grid; gap: 14px; margin-top: 18px; }
.preis-gruppe > summary h3 { margin: 0; }
.preisliste.klapp-inhalt { padding-bottom: 6px; }
.preis-gruppe h3 small { display: block; font: 600 .9rem/1.3 var(--schrift); color: var(--text-2); margin-top: 4px; }
.preisliste { margin: 0; }
.preisliste > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.preisliste > div:last-child { border-bottom: 0; }
.preisliste dt { color: var(--text); min-width: 0; }
.preisliste dd { margin: 0; font-weight: 800; white-space: nowrap; font-family: var(--schrift-titel); }
.hinweis { color: var(--text-2); font-size: .95rem; margin-top: 14px; }

.bewertung { text-align: center; }
.bewertung-zahl { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 2px; font: 900 4.2rem/1 var(--schrift-titel); font-stretch: 112%; color: #fff; }
.sterne-gross { font-size: 1.8rem; letter-spacing: 3px; }
.bewertung-text { color: var(--text-hell-2); }
.bewertung-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
/* Wörtliche Zitate aus Daniels Google-Bewertungen */
.zitate { list-style: none; margin: 24px auto 24px; padding: 0; display: grid; gap: 12px; max-width: 1000px; text-align: start; }
.zitat { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-radius: var(--rund); background: var(--nacht-2); border: 1px solid rgba(255, 255, 255, .08); }
.zitat blockquote { margin: 0; }
.zitat p { margin: 0; color: var(--text-hell); font-size: 1.02rem; line-height: 1.5; }
.zitat-quelle { display: flex; align-items: center; gap: 8px; color: var(--text-hell-2); font-size: .85rem; }
.zitat-quelle .sterne { font-size: .9rem; letter-spacing: 1px; }

.ueber { display: grid; gap: 22px; align-items: center; }
.ueber-bild { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--rund); background: var(--nacht); overflow: hidden; box-shadow: var(--schatten); }
.ueber-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ueber-text .gross { font-size: 1.2rem; font-weight: 600; }
.ueber-text .klein, .klein { color: var(--text-2); font-size: .95rem; }

.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary, .klapp > summary { list-style: none; cursor: pointer; padding: 16px 56px 16px 18px; font-weight: 700; position: relative; min-height: 56px; display: flex; align-items: center; transition: background-color .1s; -webkit-tap-highlight-color: transparent; }
[dir='rtl'] .faq summary, [dir='rtl'] .klapp > summary { padding: 16px 18px 16px 56px; }
.faq summary::-webkit-details-marker, .klapp > summary::-webkit-details-marker { display: none; }
.faq summary::after, .klapp > summary::after { content: '+'; position: absolute; inset-inline-end: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; transition: transform .2s ease, background-color .15s; }
.faq details[open] summary::after, .klapp[open] > summary::after { transform: rotate(45deg); background: var(--akzent); }
.faq summary:active, .klapp > summary:active { background: var(--bg-2); }
.faq summary:focus-visible, .klapp > summary:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; border-radius: inherit; }
/* Aufklapp-Karten (Daniel 21.10.2026 10:45: „Kannst du die Preise hinter einen Klick verstecken? Oder gleich mehrere Sachen …") */
.klapp { padding: 0; overflow: hidden; }
.klapp-inhalt { padding: 0 18px 16px; animation: auf .18s ease-out; }
.klapp-breit { margin-top: 18px; }
.klapp-eingang { margin-top: 16px; }
.klapp-eingang > summary { font-weight: 600; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--text-2); animation: auf .18s ease-out; }
@keyframes auf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.formular { padding: 20px; margin-top: 18px; display: grid; gap: 16px; }
.feld { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.feld label, .feld legend { font-weight: 700; font-size: .95rem; padding: 0; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: var(--rund-klein); border: 1.5px solid var(--linie); background: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s;
}
/* Datumsfeld (Geburtstag): iPhone-Safari zeigt ein leeres Datumsfeld sonst flacher und mittig */
.feld input[type='date'] { -webkit-appearance: none; appearance: none; min-height: 52px; text-align: start; display: block; }
.feld input[type='date']::-webkit-date-and-time-value { text-align: start; }
/* „Für die Anmeldung": Geburtstag, Geburtsort, Anschrift als eigene Gruppe (freiwillig, Daniel 21.10.2026) */
.feld-gruppe { gap: 12px; padding: 14px; border: 1.5px dashed var(--linie); border-radius: var(--rund-klein); }
.feld-gruppe > legend { padding: 0 6px; margin-inline-start: -6px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--nacht); box-shadow: 0 0 0 4px rgba(52, 211, 192, .45); }
.feld input[aria-invalid='true'] { border-color: #c62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }
.feld-fehler { margin: 0; color: #b71c1c; font-size: .9rem; font-weight: 600; }
.wahl { display: grid; gap: 8px; margin-top: 6px; }
.wahl-knopf { position: relative; display: flex; }
.wahl-knopf input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl-knopf span { flex: 1; display: flex; align-items: center; min-height: 50px; padding: 0 16px 0 46px; border-radius: var(--rund-klein); border: 1.5px solid var(--linie); font-weight: 600; transition: border-color .1s, background-color .1s, transform .08s; position: relative; }
[dir='rtl'] .wahl-knopf span { padding: 0 46px 0 16px; }
.wahl-knopf span::before { content: ''; position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #9aa7b8; background: #fff; transition: border .1s, box-shadow .1s; }
.wahl-knopf input:checked + span { border-color: var(--nacht); background: #e9faf7; }
.wahl-knopf input:checked + span::before { border: 6px solid var(--nacht); }
.wahl-knopf input:focus-visible + span { box-shadow: 0 0 0 4px rgba(52, 211, 192, .5); }
.wahl-knopf:active span { transform: scale(.985); }
.formular-erfolg { background: #e8f8ee; border: 1px solid #b4e6c5; color: #0b4a25; border-radius: var(--rund-klein); padding: 14px 16px; animation: auf .2s ease-out; }
.formular-erfolg p { margin: 0 0 6px; font-weight: 700; }
.formular-erfolg a { font-weight: 700; color: #0b4a25; }
.formular-alt { justify-self: center; }

.kontakt { display: grid; gap: 22px; }
.kontakt-liste { margin: 10px 0 20px; display: grid; gap: 2px; }
.kontakt-liste > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.kontakt-liste dt { color: var(--text-2); font-size: .92rem; font-weight: 600; }
.kontakt-liste dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Tippfläche 44 px (Handy), ohne die Zeile höher zu machen: negativer Rand gleicht die Höhe aus. */
.kontakt-liste a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.karten-feld { overflow: hidden; min-height: 260px; padding: 0; position: relative; }
.karte-laden { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%; min-height: 260px; position: relative; }
.karte-bild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.karte-text { position: absolute; inset-inline: 12px; bottom: 12px; background: rgba(255, 255, 255, .95); border-radius: var(--rund-klein); padding: 12px 14px; display: grid; gap: 2px; box-shadow: var(--schatten); transition: transform .08s; }
.karte-text strong { font-size: 1rem; }
.karte-text small { color: var(--text-2); font-size: .8rem; }
.karte-laden:active .karte-text { transform: scale(.98); }
.karten-feld iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-laed { opacity: .6; }
/* Daniels Anfahrtsskizze („Hier die Treppe runter") */
.eingang { margin: 0; }
.eingang img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--rund-klein); }

/* ---------- Rechtsseiten ---------- */
.recht { padding-top: 36px; }
.recht h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.recht h2 { font-size: 1.15rem; margin-top: 1.6em; }
.recht ul { padding-inline-start: 1.2em; }
.recht li { margin-bottom: .4em; }
.kicker-dunkel { font: 900 3rem/1 var(--schrift-titel); color: var(--akzent-2); margin: 0 0 8px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--nacht); color: var(--text-hell-2); padding: 36px 0 28px; font-size: .95rem; }
.fuss-innen { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
.fuss-marke { display: flex; gap: 12px; align-items: flex-start; }
.fuss-marke strong { color: #fff; }
.fuss-marke a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.fuss a { color: #fff; text-decoration: none; }
.logo-klein { width: 36px; height: 36px; font-size: .9rem; border-radius: 9px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fuss-links a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.fuss-klein { font-size: .82rem; margin: 0; }

/* ---------- Schnellkontakt-Leiste (Handy) ---------- */
.leiste {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--linie);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(11, 22, 38, .08);
}
.leiste-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 14px; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--nacht); background: var(--bg-2); transition: transform .08s, filter .1s; touch-action: manipulation; }
.leiste-knopf .ico { width: 22px; height: 22px; }
.leiste-wa { background: var(--wa); color: #06301a; }
.leiste-haupt { background: var(--verlauf-knopf); }
body.menue-offen .leiste { display: none; }

/* ---------- Rückmeldung (Toast) ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--leiste-h) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--nacht); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: toast-rein .14s ease-out; text-align: center;
}
@keyframes toast-rein { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Einblenden beim Scrollen (nur mit JS; ohne JS ist alles sichtbar) ---------- */
.js .zeige { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .zeige.da { opacity: 1; transform: none; }

/* ---------- Größere Bildschirme ---------- */
/* Tablet, 2 Spalten: ungerade Zahl Klassen (seit B197: 5) – die letzte Karte nicht allein in halber Breite stehen lassen */
@media (min-width: 640px) and (max-width: 899px) {
  .klassen > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .vorteile { grid-template-columns: 1fr 1fr; }
  .klassen { grid-template-columns: repeat(2, 1fr); }
  /* Knöpfe nebeneinander, Umbruch nur wenn der Platz fehlt (feste 2 Spalten ließen „Anrufen" allein in Zeile 2, 20.10.2026) */
  .held-knoepfe { display: flex; flex-wrap: wrap; max-width: none; }
  .held-zwei { display: contents; }
  .held-knoepfe .knopf { padding: 0 26px; }
  .sprachen { align-items: center; justify-content: center; }
  .sprachen-blatt { max-width: 560px; border-radius: 22px; padding: 12px 20px 22px; }
  .sprach-liste { grid-template-columns: 1fr 1fr 1fr; }
  .wahl { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --kopf-h: 72px; }
  /* 5 Klassen: oben die drei fürs Auto (B, B197, BF17), unten BE und Motorrad (bei 4 Spalten stand das Motorrad allein, 20.10.2026) */
  .klassen { grid-template-columns: repeat(6, 1fr); }
  .klassen > li { grid-column: span 2; }
  .klassen > li:nth-child(n+4) { grid-column: span 3; }
  body { padding-bottom: 0; }
  .leiste { display: none; }
  .toast { bottom: 28px; }
  .menue-knopf { display: none; }
  .menue { display: none !important; }
  .kopf-cta { display: inline-flex; min-height: 44px; padding: 0 18px; }
  .haupt-nav { display: flex; gap: 2px; margin-inline-end: 8px; }
  .haupt-nav a { padding: 0 11px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text-hell); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 10px; transition: background-color .12s, color .12s; }
  .haupt-nav a:hover, .haupt-nav a.aktiv { color: #fff; background: rgba(255, 255, 255, .08); }
  .held-innen { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; padding: 64px 16px 72px; }
  .held-knoepfe .knopf { padding: 0 22px; }
  .held-foto { margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
  .held-foto img { -webkit-mask-image: none; mask-image: none; }
  .zitate { grid-template-columns: 1.4fr 1fr 1fr; }
  .vorteile { grid-template-columns: repeat(4, 1fr); }
  .vorteil { grid-template-columns: 1fr; }
  .vorteil p { grid-column: 1; }
  .vorteil-ico { grid-row: auto; margin-bottom: 12px; }
  .abschnitt { padding: 88px 0; }
  .schritte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .schritte::before { inset-inline: 24px 24px; top: 23px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(to right, var(--akzent) 0 14px, transparent 14px 24px); }
  [dir='rtl'] .schritte::before { background: repeating-linear-gradient(to left, var(--akzent) 0 14px, transparent 14px 24px); }
  /* align-content: sonst verteilt jede Spalte die Höhe der längsten auf ihre Zeilen – die Überschriften standen auf 5 Höhen (live 21.10.2026) */
  .schritt { grid-template-columns: 1fr; gap: 6px; align-content: start; }
  .ueber { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .kontakt { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
  .preis-gruppen { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .karten-feld, .karte-laden { min-height: 420px; }
  .fuss-innen { grid-template-columns: 1fr auto; align-items: center; }
}
@media (hover: hover) {
  .karte.klasse, .karte.vorteil { transition: transform .2s ease, box-shadow .2s ease, opacity .45s ease; }
  .karte.klasse:hover, .karte.vorteil:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 22, 38, .06), 0 16px 34px rgba(11, 22, 38, .1); }
}
@media (max-width: 359px) {
  .marke-unten { font-size: .9rem; }
  .sprach-knopf span { display: none; }
  .held-zwei { grid-template-columns: 1fr; }
}
