/* Schrift lokal (Plus Jakarta Sans, SIL Open Font License 1.1 – siehe fonts/OFL-Lizenz.txt).
   Keine Verbindung zu Google Fonts: keine Übertragung von Besucher-IP-Adressen an Dritte. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-400-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-800-normal.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; }

/* =========================================
   1. CORE & LAYOUT
========================================= */
:root {
    --primary: #1e3a8a; --accent: #0ea5e9; --dark: #0f172a; --white: #ffffff;
    --bg-light: #f8fafc; --bg-outside: #cbd5e1; --border-light: #e2e8f0;
    --shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.18);
    --radius-card: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-outside); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

.site-wrapper { 
    width: 100%; max-width: 1600px; margin: 0 auto; background: var(--bg-light); 
    display: flex; flex-direction: column; min-height: 100vh; position: relative;
    padding-top: 85px; box-shadow: 0 0 50px rgba(0,0,0,0.15);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lang-de .t-en, .lang-en .t-de { display: none !important; }

/* =========================================
   2. HEADER (FIXED & GLASS)
========================================= */
.header { 
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1600px; height: 85px; display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 2000; border-bottom: 1px solid var(--border-light); transition: all 0.4s ease;
}
.header.scrolled { height: 65px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(25px); box-shadow: var(--shadow); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.main-logo { max-height: 48px; width: auto; transition: 0.3s; }
.header.scrolled .main-logo { max-height: 38px; }

.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 15px; }

/* Language Switcher */
.language-picker { background: rgba(0, 0, 0, 0.05); border-radius: 50px; padding: 2px; display: flex; position: relative; width: 70px; height: 30px; cursor: pointer; }
.pill-selector { position: absolute; width: calc(50% - 2px); height: 26px; background: var(--white); border-radius: 50px; top: 2px; left: 2px; transition: transform 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1; }
.lang-en .pill-selector { transform: translateX(100%); }
.lang-btn { flex: 1; border: none; background: none; font-weight: 700; font-size: 0.65rem; z-index: 2; color: #64748b; cursor: pointer; }
.lang-btn.active { color: var(--primary); }

/* Veredelter Burger-Button */
.burger-menu {
    display: none; /* Wird erst via Media Query sichtbar */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    z-index: 2100;
}

.burger-menu span {
    width: 100%;
    height: 2px; /* Dünnere, edlere Linien */
    background: var(--dark);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Die X-Animation passend zu den neuen Maßen */
.burger-menu.toggle span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger-menu.toggle span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger-menu.toggle span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

/* =========================================
   3. SECTIONS & GRIDS
========================================= */
.section { padding: 60px 0; width: 100%; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--primary); font-weight: 800; }

.hero, .sub-hero { position: relative; display: flex; align-items: center; color: white; background-size: cover; background-position: center; width: 100%; }
.hero { height: 75vh; min-height: 400px; }
.sub-hero { height: 35vh; min-height: 250px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,0.8), rgba(15,23,42,0.4)); z-index: 1; }
.hero-content { position: relative; z-index: 10; width: 100%; }

.times-row { text-align: center; font-size: 1.2rem; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.trennstrich { display: inline; }

.steps-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; max-width: 950px; margin: 0 auto; }
.card-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card, .step-card { background: white; border-radius: var(--radius-card); border: 1px solid var(--border-light); box-shadow: var(--shadow); padding: 25px; transition: 0.3s; }
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card-img { height: 220px; background-size: cover; background-position: center; width: 100%; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.card-body { padding: 25px; flex-grow: 1; }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--accent); opacity: 0.3; display: block; margin-bottom: 10px; }

.flex-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.img-side { width: 100%; height: 400px; border-radius: var(--radius-card); background-size: cover; background-position: center; box-shadow: var(--shadow); }

.info-box { background: white; padding: 30px; border-radius: var(--radius-card); border: 1px solid var(--border-light); box-shadow: var(--shadow); margin-top: 30px; }
.info-box li { padding: 8px 0 8px 35px; border-bottom: 1px solid var(--border-light); position: relative; list-style: none; }
.info-box li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-decoration: none; cursor: pointer; transition: 0.3s; border: none; font-size: 1rem; }
.btn-primary { background: var(--accent); color: white; }

/* =========================================
   4. FOOTER (CLEAN LINKS)
========================================= */
.footer { background: var(--dark); color: #94a3b8; padding: 60px 0 30px; border-top: 4px solid var(--primary); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-logo { max-height: 55px; width: auto; display: block; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer h4 { color: white; margin-bottom: 15px; font-weight: 800; }
.footer a, .footer p { color: inherit; text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.95rem; }
.footer a:hover { color: white; }
.credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; margin-top: 30px; font-size: 0.75rem; color: #94a3b8; }
/* Webdesign-Hinweis: dezent, beim Überfahren deutlicher */
.footer .credit a.credit-logo { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: inherit; color: inherit; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.footer .credit a.credit-logo:hover, .footer .credit a.credit-logo:focus-visible { opacity: 1; color: #cbd5e1; }
.credit-logo img { display: block; height: 28px; width: auto; }

@media (max-width: 950px) {
    .burger-menu { display: flex; z-index: 2100; }
    .main-nav { position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; background: white; flex-direction: column; padding: 100px 30px; transform: translateX(100%); transition: transform 0.4s ease; z-index: 2050; }
    .main-nav.nav-active { transform: translateX(0); }
}
@media (max-width: 768px) {
    .site-wrapper { padding-top: 80px; }
    .steps-grid, .flex-split, .card-grid { grid-template-columns: 1fr; }
    .times-row { flex-direction: column; gap: 5px; } .trennstrich { display: none; }
}
/* =========================================
   CLEANER LOOK – Tap-/Klick-Highlights entfernen
========================================= */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a, button, .btn, .nav-link, .lang-switch, .hamburger,
[role="button"], [onclick], summary, label, input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus, button:focus, .btn:focus, .nav-link:focus,
.hamburger:focus, [role="button"]:focus, summary:focus {
    outline: none;
}

/* Tastatur-Navigation bleibt barrierefrei sichtbar (kein blauer Block, dezenter Ring) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav-link:focus-visible, .hamburger:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Klick-/Auswahl-Markierung in interaktiven Elementen unterdrücken */
a, button, .btn, .nav-link, .lang-switch, .hamburger,
.card, [role="button"], [onclick] {
    user-select: none;
    -webkit-user-select: none;
}

/* Lesbarer Text bleibt markierbar */
p, h1, h2, h3, h4, h5, h6, li, span.t-de, span.t-en, address {
    user-select: text;
    -webkit-user-select: text;
}

/* Resize-Griff (graues Diamant unten rechts) an Textfeldern entfernen */
textarea { resize: none; }

/* Logos/Bilder nicht ziehbar – kein Ghost-Bild beim Antippen/Drag */
.main-logo, .footer-logo, .burger-menu { -webkit-user-drag: none; user-select: none; }

/* =========================================
   5. SCHRITT-KACHELN (klickbar) & KOMPETENZ-KARTEN
========================================= */
a.card, a.step-card { color: inherit; text-decoration: none; cursor: pointer; }
a.step-card { display: flex; flex-direction: column; }
a.step-card:hover { transform: translateY(-4px); border-color: rgba(14, 165, 233, 0.45); }
.step-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step-more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.step-more svg { transition: transform 0.25s ease; flex-shrink: 0; }
a.step-card:hover .step-more svg { transform: translateX(4px); }
a.card:hover h3 { color: var(--primary); }

/* =========================================
   6. OVERLAYS (Schritt 01–04)
========================================= */
html.overlay-open { overflow: hidden; scrollbar-gutter: stable; }

dialog.overlay {
    width: min(820px, calc(100% - 32px)); max-width: none;
    max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0;
    border-radius: 12px; background: var(--white); color: var(--dark);
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.55); overflow: hidden;
}
dialog.overlay[open] { display: flex; flex-direction: column; animation: ov-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog.overlay::backdrop { background: rgba(15, 23, 42, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes ov-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.overlay[open] { animation: none; } }

.overlay-head { display: flex; align-items: center; gap: 18px; padding: 20px 24px 20px 28px; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.overlay-num { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); opacity: 0.35; }
.overlay-kicker { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.overlay-head h2 { font-size: 1.45rem; line-height: 1.25; font-weight: 800; color: var(--primary); }
.overlay-close {
    margin-left: auto; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: var(--white); color: var(--dark); border: 1px solid var(--border-light); transition: 0.2s;
}
.overlay-close:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }

.overlay-body { padding: 26px 28px 32px; overflow-y: auto; overscroll-behavior: contain; }
.overlay-body > * + * { margin-top: 14px; }
.overlay-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.overlay-body > h3:not(:first-child) { margin-top: 28px; }

.overlay-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px !important; }
.overlay-panel { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: 8px; padding: 18px 20px; }
.overlay-panel .times-row { flex-direction: column; text-align: left; font-size: 0.95rem; gap: 10px; }
.overlay-panel .trennstrich { display: none; }
.overlay-panel .time-block small { display: block; color: #64748b; }
.kurs-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.kurs-regel { font-size: 0.95rem; }
.kurs-liste { margin-top: 10px; padding-left: 18px; font-size: 0.95rem; }
.kurs-liste li { padding: 3px 0; }
.kurs-hinweis { margin-top: 10px; font-size: 0.9rem; color: #475569; }

.doc-list { list-style: none; counter-reset: doc; }
.doc-list li { counter-increment: doc; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--border-light); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li::before {
    content: counter(doc); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--primary); color: var(--white); font-weight: 800; font-size: 0.95rem;
}
.overlay-note { font-size: 0.9rem; color: #475569; background: var(--bg-light); border-radius: 8px; padding: 12px 16px; }

.callout { background: #f0f9ff; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 20px; margin-top: 22px !important; }
.callout-title { display: block; color: var(--primary); margin-bottom: 4px; }

.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { display: inline-block; padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border-light); background: var(--bg-light); color: var(--primary); font-weight: 700; font-size: 0.88rem; text-decoration: none; transition: 0.2s; }
.chip-links a:hover { border-color: var(--accent); color: var(--accent); }

.exam-block { display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.exam-block + .exam-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border-light); }
.exam-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--white); font-weight: 800; }
.exam-block p + p { margin-top: 10px; }
.motto { font-style: italic; color: var(--primary); font-weight: 600; }

.overlay-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 28px; border-top: 1px solid var(--border-light); background: var(--bg-light); flex-shrink: 0; }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-ghost { background: var(--white); color: var(--primary); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-primary:hover { background: #0284c7; }

@media (max-width: 640px) {
    dialog.overlay { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .overlay-head { padding: 14px 14px 14px 18px; gap: 12px; }
    .overlay-num { font-size: 2rem; }
    .overlay-head h2 { font-size: 1.15rem; }
    .overlay-body { padding: 20px 18px 28px; flex: 1; }
    .overlay-cols { grid-template-columns: 1fr; }
    .overlay-foot { padding: 12px 18px; }
    .overlay-foot .btn { flex: 1; text-align: center; }
    .exam-block { grid-template-columns: 1fr; gap: 10px; }
}

/* =========================================
   7. KLASSEN-SEITEN (Motorrad / Pkw / Handicap)
========================================= */
.section-lead { max-width: 760px; margin: -24px auto 40px; text-align: center; color: #475569; }
.section-alt { background: var(--white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.text-side h2 { color: var(--primary); font-size: 1.8rem; line-height: 1.25; margin-bottom: 16px; }
.prose p + p { margin-top: 14px; }
.prose .closing { margin-top: 22px; padding: 16px 20px; border-radius: 8px; background: #f0f9ff; border-left: 4px solid var(--accent); font-weight: 600; color: var(--primary); }
.flex-split.reverse { grid-template-columns: 1fr 1.2fr; }
.sticky-side { position: sticky; top: 100px; }

.class-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.class-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 100px; }
.class-card .vehicle-fig { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9; }
.class-head { display: flex; align-items: center; gap: 14px; padding: 22px 25px 0; }
.class-badge { min-width: 58px; height: 58px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--white); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; flex-shrink: 0; }
.class-head h3 { font-size: 1.1rem; line-height: 1.3; }
.class-head small { display: block; font-size: 0.8rem; font-weight: 600; color: #64748b; }

.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; padding: 18px 25px 25px; font-size: 0.93rem; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; padding-top: 3px; }
.facts dd ol, .facts dd ul { padding-left: 18px; }
.facts dd li + li { margin-top: 3px; }
.facts .fact-hl { font-weight: 700; color: var(--primary); }
.facts .fact-note { grid-column: 1 / -1; background: var(--bg-light); border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; }
.facts .fact-note strong { color: var(--primary); }
.info-box .facts { padding: 6px 0 0; }

/* Fahrzeugbild mit automatischem Platzhalter, solange die Bilddatei fehlt */
.vehicle-fig { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #e2e8f0; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.vehicle-fig.tall { aspect-ratio: 4 / 3; }
.vehicle-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vehicle-fig figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 5px 12px; border-radius: 50px; background: rgba(15, 23, 42, 0.78); color: var(--white); font-size: 0.78rem; font-weight: 600; }
.vehicle-fig .ph { display: none; }
.vehicle-fig.is-missing img { display: none; }
.vehicle-fig.is-missing .ph {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 20px 20px 48px; text-align: center; color: #64748b; font-size: 0.85rem;
    background: repeating-linear-gradient(135deg, #f1f5f9 0 14px, #e8edf4 14px 28px);
}
.vehicle-fig .ph svg { width: 54px; height: 54px; opacity: 0.55; }
.vehicle-fig .ph strong { color: var(--dark); font-size: 0.95rem; }

.upgrade-list { display: grid; gap: 16px; max-width: 950px; margin: 0 auto; }
.upgrade-row { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 24px; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px 25px; }
.upgrade-path { display: flex; align-items: center; gap: 10px; }
.upgrade-path .class-badge { min-width: 52px; height: 52px; font-size: 1.15rem; }
.upgrade-path .class-badge.to { background: var(--accent); }
.upgrade-path svg { color: #94a3b8; flex-shrink: 0; }
.upgrade-row small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.upgrade-cond { max-width: 950px; margin: 18px auto 0; text-align: center; font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
    .flex-split.reverse { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .class-grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 10px; }
    .upgrade-row { grid-template-columns: 1fr; gap: 12px; }
    .text-side h2 { font-size: 1.5rem; }
}
.info-box .facts li { padding: 0; border-bottom: 0; list-style: inherit; }
.info-box .facts li::before { content: none; }
.overlay-body:focus { outline: none; }
.overlay-foot .btn-primary { border: 1px solid transparent; }
.class-text { padding: 16px 25px 25px; }
.class-text p + p { margin-top: 12px; }
.class-hl { padding: 12px 16px; border-radius: 8px; background: #f0f9ff; border-left: 4px solid var(--accent); font-weight: 600; color: var(--primary); }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.info-box h4 + p { margin-top: 6px; }
.section-title, .text-side h2, .overlay-head h2 { overflow-wrap: break-word; hyphens: manual; }
.overlay-foot .btn { line-height: 1.3; }
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
}
@media (max-width: 640px) {
    .overlay-foot .btn-sm { padding: 11px 14px; font-size: 0.85rem; }
}

/* =========================================
   8. RAHMEN: Glow für Hinweisfelder (früher blauer Balken links),
   schlichter grauer Rahmen + Schatten für die 4 Schritt-Kacheln.
   Farbe und Stärke nur hier ändern.
========================================= */
:root {
    --frame-edge: rgba(14, 165, 233, 0.45);   /* Rahmenfarbe */
    --frame-halo: rgba(14, 165, 233, 0.07);   /* schmaler Lichtsaum direkt am Rand */
    --frame-glow: rgba(14, 165, 233, 0.22);   /* weicher Schein nach außen */
}

/* Hinweisfelder: farbiger Rahmen mit Glow (Wichtigkeit) */
.callout, .prose .closing, .class-hl {
    border: 1.5px solid var(--frame-edge);
    box-shadow: 0 0 0 4px var(--frame-halo), 0 10px 30px -8px var(--frame-glow);
}
/* Schritt-Kacheln: schlichter grauer Rahmen in Schattenfarbe, kräftiger weicher Schatten (flacher 3D-Effekt),
   Bereich dahinter grau-blau, damit sich die weißen Kacheln deutlich abheben */
.steps-section { background: #e3ebf5; }
.step-card {
    background: var(--white);
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 18px -4px rgba(15, 23, 42, 0.10), 0 26px 40px -12px rgba(15, 23, 42, 0.28);
}
.callout, .prose .closing, .class-hl { border-radius: 8px; }
.step-card .step-num { opacity: 0.6; }

a.step-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.07), 0 14px 24px -4px rgba(15, 23, 42, 0.12), 0 32px 48px -12px rgba(15, 23, 42, 0.32);
}

/* Ergänzungen nach Abgleich mit FeV/FahrschAusbO */
.upgrade-note { max-width: 950px; margin: 10px auto 0; text-align: center; color: #475569; font-size: 0.93rem; }
.exam-fact { font-size: 0.92rem; color: #334155; }
.exam-fact strong { color: var(--primary); }

/* =========================================
   9. GESCHÜTZTE KONTAKTDATEN (siehe script.js)
========================================= */
.cx { color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.cx::before { content: attr(data-a); }
.cx::after  { content: attr(data-b); }
.cx[data-k="fax"] { cursor: default; }
.cx[role="link"]:hover, .cx[role="link"]:focus-visible { color: var(--accent); }
.footer a.cx { display: inline; margin: 0; font-size: inherit; }
.footer a.cx[role="link"]:hover { color: var(--white); }
.cx-img { height: 1.15em; width: auto; vertical-align: -0.22em; }

/* =========================================
   10. A2-KARTE: ZWEI AUSBILDUNGSMASCHINEN IM WECHSEL
========================================= */
.fade-duo img { position: absolute; inset: 0; animation: duo-fade 10s infinite; }
.fade-duo picture:nth-of-type(2) img { animation-delay: -5s; }
.duo-cap { display: grid; }
.duo-cap > span { grid-area: 1 / 1; animation: duo-fade 10s infinite; }
.duo-cap > .duo-2 { animation-delay: -5s; }
@keyframes duo-fade { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .fade-duo img, .duo-cap > span { animation: none; }
    .fade-duo picture:nth-of-type(2) img, .duo-cap > .duo-2 { opacity: 0; }
}

/* =========================================
   11. HERO-BANNER MIT FAHRZEUGFOTOS
   Einheitliche Banner-Höhe auf allen Seiten; Bildausschnitt je Seite per background-position
========================================= */
/* Startseite und Unterseiten: identische Banner-Höhe (Desktop max. 560 px) */
.hero, .sub-hero { height: 48vh; min-height: 340px; max-height: 560px; }

/* =========================================
   12. HANDICAP: COLLAGE DER FAHRZEUGUMBAUTEN + BILD-VERGRÖSSERUNG
========================================= */
.hc-collage { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-card); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #1e293b; cursor: zoom-in; }
.hc-item.hc-main { grid-column: 1 / -1; }
.hc-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hc-item:hover img { transform: scale(1.04); }
.hc-cap { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 50px; background: rgba(15, 23, 42, 0.8); color: var(--white); font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.hc-item:not(.hc-main) .hc-cap { font-size: 0.72rem; padding: 4px 10px; left: 8px; bottom: 8px; }
.hc-hint { grid-column: 1 / -1; font-size: 0.82rem; color: #64748b; text-align: center; }

dialog.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.lightbox[open] { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: ov-in 0.25s ease; }
.lightbox img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.lightbox-cap { color: var(--white); font-size: 0.95rem; font-weight: 600; text-align: center; }
.lightbox .overlay-close { position: absolute; top: -14px; right: -14px; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
@media (max-width: 640px) { .lightbox .overlay-close { top: 6px; right: 6px; } }
/* Collage-Beschriftungen dürfen in schmalen Kacheln umbrechen */
.hc-cap { max-width: calc(100% - 16px); line-height: 1.3; hyphens: manual; }
.hc-item:not(.hc-main) .hc-cap { border-radius: 10px; }

/* =========================================
   12. AKTUELLES (Inhalte aus aktuelles.js)
   Hinweisleiste · Im Fokus · Kurstermine
========================================= */
[hidden] { display: none !important; }

/* Hinweisleiste – schwebt leicht über der Unterkante des Banners */
.hinweisleiste { position: relative; z-index: 5; margin-top: -32px; }
.hinweis-liste { display: grid; gap: 10px; }
.hinweis {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px;
    background: var(--white); border: 1.5px solid var(--frame-edge);
    box-shadow: 0 0 0 4px var(--frame-halo), 0 12px 30px -10px rgba(15, 23, 42, 0.28);
}
.hinweis-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--white); }
.hinweis-text { flex: 1; font-weight: 600; color: var(--primary); line-height: 1.45; }
.hinweis-aktionen { flex-shrink: 0; }
.hinweis-mehr-btn, .hinweis-link {
    display: inline-block; padding: 8px 16px; border-radius: 50px; border: 1px solid var(--accent); background: var(--white);
    color: var(--accent); font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.hinweis-mehr-btn:hover, .hinweis-link:hover { background: var(--accent); color: var(--white); }
.hinweis-mehr p + p { margin-top: 12px; }

/* Im Fokus */
.fokus-section { background: var(--white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.fokus-karte {
    display: grid; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 12px; background: var(--white);
    border: 1.5px solid var(--frame-edge); box-shadow: 0 0 0 4px var(--frame-halo), 0 10px 30px -8px var(--frame-glow);
}
.fokus-karte.mit-bild { grid-template-columns: 1fr 1.15fr; }
.fokus-bild { margin: 0; min-height: 280px; background: #e2e8f0; }
.fokus-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fokus-inhalt { padding: 32px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fokus-label { display: inline-block; padding: 4px 12px; border-radius: 50px; background: #e0f2fe; color: #0369a1; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fokus-titel { font-size: 1.6rem; line-height: 1.25; color: var(--primary); font-weight: 800; }
.fokus-text p + p { margin-top: 10px; }
.fokus-link { margin-top: 6px; }

/* Kurstermine auf der Startseite */
.kurse { margin-top: 36px; }
.kurse-titel { text-align: center; color: var(--primary); font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }
.kurse-raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: center; }
.kurs-karte { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-card); background: var(--bg-light); border: 1px solid var(--border-light); box-shadow: var(--shadow); }
.kurs-datum { font-size: 1.05rem; font-weight: 800; color: var(--accent); }
.kurs-info h4 { font-size: 1.05rem; line-height: 1.3; }
.kurs-zeit { color: #475569; font-size: 0.92rem; margin-top: 2px; }
.kurs-chip { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 50px; background: #dcfce7; color: #166534; font-size: 0.78rem; font-weight: 700; }
.kurs-anmelden { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.kurs-anmelden:hover { text-decoration: underline; }
.kurs-liste strong { color: var(--primary); }
.kurs-liste small { color: #64748b; }

@media (max-width: 768px) {
    .hinweisleiste { margin-top: -22px; }
    .hinweis { flex-wrap: wrap; padding: 12px 14px; gap: 10px 12px; }
    .hinweis-icon { width: 34px; height: 34px; }
    .hinweis-text { flex-basis: calc(100% - 50px); }
    .hinweis-aktionen { margin-left: 46px; }
    .fokus-karte.mit-bild { grid-template-columns: 1fr; }
    .fokus-bild { min-height: 0; aspect-ratio: 16 / 9; }
    .fokus-inhalt { padding: 22px 20px 26px; }
    .fokus-titel { font-size: 1.35rem; }
}

/* =========================================
   13. VIDEO MIT KAPITELN (Grundfahraufgaben)
========================================= */
.video-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.video-box { margin: 0; position: sticky; top: 100px; }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 576; background: #0f172a; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.video-box figcaption { margin-top: 10px; font-size: 0.82rem; color: #64748b; text-align: center; }
.kapitel-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; }
.kapitel-liste { list-style: none; display: grid; gap: 6px; }
.kapitel {
    width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
    padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-light);
    font: inherit; color: var(--dark); transition: 0.2s;
}
.kapitel:hover { border-color: var(--accent); }
.kapitel.aktiv { border-color: var(--accent); background: #f0f9ff; box-shadow: 0 0 0 3px var(--frame-halo); }
.kapitel-zeit { flex-shrink: 0; min-width: 44px; padding: 2px 0; border-radius: 6px; background: var(--primary); color: var(--white); font-size: 0.78rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.kapitel.aktiv .kapitel-zeit { background: var(--accent); }
.kapitel-text strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.kapitel-text small { display: block; font-size: 0.82rem; color: #475569; line-height: 1.4; margin-top: 2px; }
/* Übungstitel als Einblendung über dem Video (DE/EN, folgt den Kapiteln) */
.video-titel {
    position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); z-index: 2;
    display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
    border-radius: 999px; background: rgba(15, 23, 42, 0.72); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem; font-weight: 700; line-height: 1.2; pointer-events: none;
    opacity: 0; transform: translateY(-6px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.video-titel.sichtbar { opacity: 1; transform: none; }
.video-titel-nr {
    flex-shrink: 0; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.video-titel-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-titel span.t-de, .video-titel span.t-en { user-select: none; -webkit-user-select: none; }
@media (max-width: 900px) {
    .video-split { grid-template-columns: 1fr; }
    .video-box { position: relative; top: auto; }
}
@media (max-width: 520px) {
    .video-titel { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 5px 11px 5px 6px; gap: 8px; font-size: 0.8rem; }
    .video-titel-nr { font-size: 0.68rem; padding: 2px 6px; }
}

/* Datenschutz: Stand-Vermerk */
.ds-stand { margin-top: 24px; font-size: 0.82rem; color: #64748b; }
/* Absätze innerhalb eines Abschnitts (abwechselnd DE/EN im Quelltext) */
.info-box p.t-de + p.t-en + p.t-de, .info-box p.t-en + p.t-de + p.t-en { margin-top: 10px; }

/* =========================================
   14. SCHWERPUNKT BEHINDERTENFAHRSCHULE
========================================= */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-sub { margin-top: 10px; font-size: 1.1rem; max-width: 640px; opacity: 0.95; }
.usp-handicap { background: var(--primary); color: var(--white); }
.usp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.usp-label { display: inline-block; padding: 4px 12px; border-radius: 50px; background: rgba(255, 255, 255, 0.14); color: #bae6fd; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.usp-text h2 { font-size: 2rem; line-height: 1.2; margin: 12px 0 12px; color: var(--white); }
.usp-text > p { color: #e2e8f0; }
.usp-liste { list-style: none; margin: 18px 0 26px; display: grid; gap: 8px; }
.usp-liste li { position: relative; padding-left: 30px; color: var(--white); }
.usp-liste li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #7dd3fc; font-weight: 800; }
.usp-bild { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45); border: 1.5px solid rgba(186, 230, 253, 0.35); }
.usp-bild img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
    .usp-grid { grid-template-columns: 1fr; gap: 28px; }
    .usp-text h2 { font-size: 1.6rem; }
}

/* Ablauf & häufige Fragen (Behindertenfahrschule) */
.ablauf { list-style: none; max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.ablauf li { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 18px 22px; }
.ablauf-nr { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--white); font-weight: 800; font-size: 0.95rem; }
.ablauf h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--primary); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 20px 18px; color: #334155; }
.faq-cta { text-align: center; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Mobiles Menü: abgedunkelter Bereich neben dem Menü – Tipp darauf schließt es */
.menu-hintergrund { display: none; }
@media (max-width: 950px) {
    .menu-hintergrund {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 2040;
        background: rgba(15, 23, 42, 0.35); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .menu-offen .menu-hintergrund { opacity: 1; visibility: visible; }
}

/* Sprungziele (z. B. klasse-a#grundfahraufgaben) nicht unter dem festen Header verstecken */
.section[id] { scroll-margin-top: 90px; }
.class-card[id] { scroll-margin-top: 100px; }
.section-lead a { color: var(--accent); font-weight: 600; text-decoration: none; }
.section-lead a:hover { text-decoration: underline; }

/* =========================================
   15. GLOBALER FLÄCHEN-STIL
   Seite grau-blau, Inhalte als weiße Flächen mit grauem Rahmen und kräftigem,
   weichem Schatten (flacher 3D-Effekt). Hinweisfelder (.callout, .class-hl,
   .closing) und „Im Fokus“ behalten bewusst ihren farbigen Rahmen.
   Farben und Schatten nur hier ändern.
========================================= */
:root {
    --bg-page: #e3ebf5;          /* Seitenhintergrund */
    --bg-page-alt: #eef3f9;      /* abwechselnde Bereiche (etwas heller) */
    --box-border: #cbd5e1;       /* Rahmen in Schattenfarbe */
    --box-border-hover: #94a3b8;
    --box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 18px -4px rgba(15, 23, 42, 0.10), 0 26px 40px -12px rgba(15, 23, 42, 0.28);
    --box-shadow-hover: 0 3px 6px rgba(15, 23, 42, 0.07), 0 14px 24px -4px rgba(15, 23, 42, 0.12), 0 32px 48px -12px rgba(15, 23, 42, 0.32);
    --box-shadow-klein: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 12px -6px rgba(15, 23, 42, 0.18);
    --shadow: var(--box-shadow);  /* auch Bilder, Video, Collage */
}
.site-wrapper, .steps-section { background: var(--bg-page); }
.section-alt, .fokus-section { background: var(--bg-page-alt); border-color: #d6e0ec; }
.header.scrolled { box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.18); }

.card, .step-card, .info-box, .class-card, .upgrade-row, .faq-item, .kurs-karte, .ablauf li {
    background: var(--white); border: 1px solid var(--box-border); box-shadow: var(--box-shadow);
}
a.card:hover, a.step-card:hover { border-color: var(--box-border-hover); box-shadow: var(--box-shadow-hover); }

/* Kapitel-Liste am Video: viele kleine Flächen – leichterer Schatten */
.kapitel { background: var(--white); border-color: var(--box-border); box-shadow: var(--box-shadow-klein); }
.kapitel:hover { border-color: var(--accent); }
.kapitel.aktiv { border-color: var(--accent); background: #f0f9ff; box-shadow: 0 0 0 3px var(--frame-halo), var(--box-shadow-klein); }

/* Tastatur-Fokus für aufklappbare Fragen (Häufige Fragen) */
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-card); }

/* =========================================
   16. BILDER: SCHNELLES LADEN AUCH BEI LANGSAMEM INTERNET
   Banner als <img> (früh geladen, Handy-Variante per <picture>),
   unscharfer Mini-Platzhalter als Hintergrund, bis das Foto da ist.
========================================= */
.hero, .sub-hero { background-color: #1e293b; }
.hero > picture, .sub-hero > picture, .vehicle-fig picture { display: contents; }
.hero-bild { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
img.card-img, img.img-side { display: block; object-fit: cover; }
