/* Fahrschule Kroppen – Online-Anmeldung, Optik der neuen Website (Entwurf 2).
   Stand: 28.11.2026, abgestimmt auf website-neu/site (Cache ?v=20261128m).
   Dunkles, sportliches Design. Keine externen Schriften, kein CDN.
   Bestehende CSS-Klassen bleiben; keine neuen Pflicht-Klassen.
   Farben: Rot #D4000A · Blau #2563EB · Hintergrund #070707 · Karten #141414 */
:root {
    --rot: #D4000A;
    --rot-hover: #B00008;
    --blau: #2563EB;
    --blau-hover: #1D4FC4;
    --blau-text: #8DB4FF; /* Blau für Text auf Schwarz, Kontrast > 7:1 */
    --fehler-text: #FF8A8A; /* Hellrot für kleine Fehlertexte auf Dunkel, Kontrast > 7:1 */
    --ok: #5DDC8A;
    --grund: #070707;
    --grund-2: #0E0E0E;
    --karte: #141414;
    --karte-2: #1B1B1B;
    --linie: #2A2A2A;
    --linie-stark: #3A3A3A;
    --text: #F3F3F3;
    --text-leise: #B0B0B0;
    --dim: #8E8E8E;
    --radius: 8px;
    --kopf-h: 68px;
    --schrift: Outfit, "Segoe UI", Roboto, Arial, sans-serif;
    --schrift-kopf: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
body {
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--grund);
    min-width: 320px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: #fff;
    color: #000;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 700;
}
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.kopf {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 1rem;
}
body > .kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    padding: 0;
    height: var(--kopf-h);
    background: rgba(7, 7, 7, 0.97);
    border-bottom: 1px solid var(--linie);
}
.kopf-innen {
    width: min(40rem, calc(100% - 2rem));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0;
}
.logo-link,
.kopf-marke {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.logo-platz {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
body > .kopf .logo-platz {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
}
.logo-platz img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.kopf-text { min-width: 0; }
.marke {
    display: block;
    margin: 0;
    font-family: var(--schrift-kopf);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    line-height: 1.05;
}
.kopf h1 {
    margin: 0.1rem 0 0;
    font-family: var(--schrift-kopf);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}
.ort {
    display: block;
    margin: 0.15rem 0 0;
    color: var(--dim);
    font-family: var(--schrift-kopf);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body > .kopf .ort { margin: 0.12rem 0 0; }
.zur-website {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--schrift-kopf);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border: 1.5px solid #5A5A5A;
    border-radius: 4px;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
}
.zur-website:hover { border-color: #fff; }

/* ---------- Inhaltsbreite ---------- */
.seite {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}
body > .kopf ~ .seite { padding-top: 1.35rem; }

.seite > h1 {
    margin: 0 0 0.85rem;
    font-family: var(--schrift-kopf);
    font-size: clamp(1.7rem, 6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 0.95;
    color: #fff;
}

.entwurf-hinweis {
    margin: 0 0 1rem;
    padding: 0.55rem 0.8rem;
    background: #2A2208;
    border: 1px solid #C9A227;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #F5E6B8;
}

/* ---------- Fortschritt ---------- */
.fortschritt { margin: 0 0 1.25rem; }
.fortschritt-text {
    margin: 0 0 0.45rem;
    font-family: var(--schrift-kopf);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blau-text);
}
.leiste {
    height: 0.4rem;
    background: #1F1F1F;
    border-radius: 99px;
    overflow: hidden;
}
.leiste span {
    display: block;
    height: 100%;
    background: var(--rot);
    border-radius: 99px;
}
.schritte {
    list-style: none;
    display: flex;
    gap: 0.55rem;
    padding: 0.55rem 0 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--dim);
    flex-wrap: wrap;
}
.schritte li { flex: 0 0 auto; }
.schritte .aktiv {
    color: #fff;
    font-weight: 700;
}
.schritte .erledigt { color: var(--ok); }

/* ---------- Karten ---------- */
.formular, .danke, .datenschutz-seite {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1rem;
}

.pflicht-hinweis, .hint {
    color: var(--text-leise);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.hint { margin: 0.25rem 0 0.75rem; }

.wa-recht,
.wa-nummer {
    margin: 0 0 0.4rem;
    color: var(--text-leise);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}
.wa-nummer {
    font-size: 14px;
    color: var(--text-leise);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
}
.wa-nummer .wa-symbol { margin-top: 0.05em; }
.wa-symbol {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: block;
}

.abschnitt {
    margin: 1.25rem 0 0.85rem;
    font-family: var(--schrift-kopf);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

/* ---------- Felder ---------- */
.feld { margin: 0 0 1rem; }
.feld label, fieldset.block > legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
abbr[title="Pflichtfeld"] {
    color: var(--fehler-text);
    text-decoration: none;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--grund-2);
    border: 1px solid var(--linie-stark);
    border-radius: 6px;
    padding: 0.7rem 0.75rem;
    min-height: 2.75rem;
    color-scheme: dark;
}
textarea { min-height: 6rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--karte-2) inset;
    caret-color: var(--text);
    border-color: var(--blau);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blau-text);
    outline-offset: 2px;
    border-color: var(--blau);
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--blau);
}

.hat-fehler input,
.hat-fehler select,
.hat-fehler textarea,
.hat-fehler.block {
    border-color: var(--rot);
}
.feld-fehler {
    margin: 0.3rem 0 0;
    color: var(--fehler-text);
    font-size: 0.9rem;
}
.box-fehler {
    background: #2A0A0A;
    border: 1px solid var(--rot);
    color: var(--fehler-text);
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    margin: 0 0 1rem;
}

.block {
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.5rem;
    margin: 0 0 1rem;
    background: transparent;
}
.block legend {
    padding: 0 0.25rem;
    color: #fff;
}

.klassen, .radios {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.klassen {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}
.wahl {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--linie);
    border-radius: 8px;
    background: var(--karte-2);
    min-height: 2.75rem;
    font-weight: 400;
    cursor: pointer;
}
.klassen .wahl {
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem;
    min-height: 44px;
    border-radius: 6px;
}
.klassen .wahl input { margin-top: 0; }
.wahl input { margin-top: 0.2rem; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
.wahl span { flex: 1; min-width: 0; word-break: break-word; }
.wahl:hover { border-color: #5A5A5A; }
.wahl:has(input:checked) {
    border-color: var(--blau);
    background: #15233F;
}
.wahl:has(input:focus-visible) {
    outline: 3px solid var(--blau-text);
    outline-offset: 2px;
}
.wahl-breit { grid-column: 1 / -1; }

.hinweis-kasten {
    background: #15233F;
    border: 1px solid #2A4A86;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    margin: 0 0 1rem;
}
.hinweis-kasten.warnung {
    background: #2A2208;
    border: 1px solid #C9A227;
}
.hinweis-kasten h2 {
    margin: 0 0 0.35rem;
    font-family: var(--schrift-kopf);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}
.hinweis-kasten.warnung h2 { color: #F5D56A; }

.datenschutz-hinweis {
    margin: 1.15rem 0 0.7rem;
    color: var(--text-leise);
    font-size: 14px;
    line-height: 1.45;
}
.datenschutz-klapp summary {
    list-style: none;
    cursor: default;
    color: var(--text-leise);
    pointer-events: none;
}
.datenschutz-klapp summary::-webkit-details-marker,
.datenschutz-klapp summary::marker {
    display: none;
    content: "";
}
.datenschutz-klapp summary:focus-visible {
    outline: 3px solid var(--blau-text);
    outline-offset: 2px;
    border-radius: 2px;
}
.datenschutz-wort {
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    color: var(--blau-text);
}
.datenschutz-text {
    margin: 0.55rem 0 0;
    color: var(--text-leise);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ---------- Aktionen / Buttons ---------- */
.aktionen {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--schrift-kopf);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.75rem 1.15rem;
    min-height: 3rem;
    min-width: 7rem;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
    text-align: center;
    transition: background .15s, border-color .15s;
}
.btn-haupt {
    background: var(--rot);
    color: #fff;
    border-color: var(--rot);
    margin-left: auto;
}
.btn-haupt:hover { background: var(--rot-hover); border-color: var(--rot-hover); }
.btn-neben {
    background: transparent;
    color: #fff;
    border-color: #5A5A5A;
    margin-left: 0;
}
.btn-neben:hover { border-color: #fff; }

.danke h2, .datenschutz-seite h2 {
    margin: 0 0 0.5rem;
    font-family: var(--schrift-kopf);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.05;
    color: #fff;
}
.danke .btn { margin-top: 1rem; }
.danke p { margin: 0 0 0.7rem; }

/* ---------- Fuß ---------- */
.fuss {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--dim);
    font-size: 0.9rem;
}
body > .fuss {
    margin: 0;
    padding: 1.5rem 1rem 2rem;
    border-top: 1px solid var(--linie);
    background: #050505;
}
.fuss p { margin: 0.15rem 0; }
.fuss a {
    color: var(--blau-text);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.fuss a:hover { color: #fff; }
.fuss-kontakt { margin-top: 0.45rem; }
.fuss-kontakt a { color: var(--dim); text-decoration: none; }
.fuss-kontakt a:hover { color: #fff; text-decoration: underline; }

.honig {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Ohne JS bleiben die bedingten Felder sichtbar, damit nichts verloren geht. */
.nur-wenn-ja, .nur-wenn-nein { }
.js .nur-wenn-ja, .js .nur-wenn-nein { display: none; }
.js .nur-wenn-ja.sichtbar, .js .nur-wenn-nein.sichtbar { display: block; }

@media (max-width: 400px) {
    .klassen { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .klassen .wahl { min-height: 48px; padding: 0.55rem 0.5rem; }
}
@media (max-width: 520px) {
    .schritte { display: none; }
}
@media (max-width: 379px) {
    .kopf { flex-direction: column; align-items: flex-start; }
    body > .kopf { flex-direction: row; align-items: center; }
    .zur-website { padding: 0 10px; font-size: 0.85rem; }
}
@media (min-width: 640px) {
    .seite { padding-top: 1.75rem; }
    body > .kopf ~ .seite { padding-top: 1.75rem; }
    .formular, .danke, .datenschutz-seite { padding: 1.4rem 1.5rem; }
}

/* Vorab-Seite mit Passwort (Testphase) */
.zugang-karte { max-width: 26rem; margin: 1.5rem auto; }
.zugang-karte .btn { width: 100%; margin-left: 0; }

/* Muster Führerschein-Rückseite (Seite 2) */
.muster { margin: -0.25rem 0 1rem; }
.muster summary {
    cursor: pointer;
    color: var(--blau-text);
    font-size: 0.95rem;
}
.muster summary:hover { color: #fff; }
.muster img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-top: 0.5rem;
    border: 1px solid var(--linie);
    border-radius: 8px;
    background: #fff;
}

/* i-Knopf mit Erklärung bei Klassen (falls später Texte hinterlegt werden) */
.info-knopf {
    flex: 0 0 auto;
    width: 1.35rem; height: 1.35rem;
    padding: 0;
    border: 1px solid var(--blau-text);
    border-radius: 50%;
    background: var(--karte);
    color: var(--blau-text);
    font: italic 700 0.8rem/1 Georgia, "Times New Roman", serif;
    cursor: pointer;
}
.info-text {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0.7rem;
    border-left: 3px solid var(--blau);
    border-radius: 6px;
    background: #15233F;
    font-size: 0.9rem;
    color: var(--text);
}
.js .info-text { display: none; }
.js .info-text.sichtbar { display: block; }
.klassen .wahl:has(.info-knopf) { position: relative; }
.klassen .info-knopf {
    position: absolute; top: -0.5rem; right: -0.4rem;
    width: 1.25rem; height: 1.25rem; font-size: 0.75rem;
}
.wa-vcard { font-size: 13px; color: var(--blau-text); }

/* Zusammenfassung (Schritt 4) */
.zusammenfassung { margin: 0 0 1.15rem; }
.zusammenfassung-abschnitt {
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 0.85rem 0.9rem 0.35rem;
    margin: 0 0 0.85rem;
    background: var(--karte-2);
}
.zusammenfassung-kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.65rem;
}
.zusammenfassung-kopf h2 {
    margin: 0;
    font-family: var(--schrift-kopf);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}
.zusammenfassung-kopf { align-items: center; }
.aendern-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.35rem 0.15rem;
    border: none;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blau-text);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
    min-height: 2.75rem;
}
.aendern-link:hover { color: #fff; }
.zusammenfassung dl { margin: 0; }
.zusammenfassung dt {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dim);
}
.zusammenfassung dd {
    margin: 0.15rem 0 0.8rem;
    font-size: 1rem;
    color: var(--text);
    overflow-wrap: anywhere;
}
.sende-hinweis {
    margin: 0.25rem 0 0.7rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
}
.sende-hinweis a { color: var(--blau-text); }
.sende-hinweis a:hover { color: #fff; }

/* Datenschutzerklärung (eigene Seite) */
.datenschutz-seite { font-size: 1rem; }
.datenschutz-seite .stand {
    margin: 0 0 1.1rem;
    color: var(--dim);
    font-size: 0.95rem;
}
.datenschutz-seite h3 {
    margin: 1.35rem 0 0.45rem;
    font-family: var(--schrift-kopf);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}
.datenschutz-seite p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    overflow-wrap: break-word;
}
.datenschutz-seite ul {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
}
.datenschutz-seite li {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    overflow-wrap: break-word;
}
.datenschutz-seite a { color: var(--blau-text); }
.datenschutz-seite a:hover { color: #fff; }
.datenschutz-seite .anschrift { margin: 0 0 0.75rem; }

.zurueck-link {
    display: inline-block;
    margin: 0 0 1rem;
    color: var(--blau-text);
    font-weight: 600;
    text-decoration: none;
}
.zurueck-link:hover { color: #fff; text-decoration: underline; }
