/* LKW-Wissen – Stylesheet. Keine externen Ressourcen, keine Inline-Styles (CSP). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --nacht: #0f1a2e;
  --nacht-2: #15233c;
  --nacht-3: #1c2d4b;
  --linie: rgba(233, 238, 246, .12);
  --gelb: #f6b60b;
  --gelb-hell: #ffc93a;
  --text: #e9eef6;
  --leise: #9eabc2;
  --rand: clamp(1.25rem, 5vw, 4.5rem);
  --breit: 80rem;
  --font: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nacht); color: var(--text); font: 400 1.0625rem/1.65 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gelb); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--gelb); color: var(--nacht); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--breit); margin-inline: auto; padding-inline: var(--rand); }

/* Kopfzeile */
.kopf { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.marke { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -.01em; }
.marke img { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--leise); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .abo { color: var(--nacht); background: var(--gelb); padding: .55rem 1rem; border-radius: 999px; font-weight: 700; }
.nav .abo:hover { color: var(--nacht); background: var(--gelb-hell); }

/* Bühne */
.buehne { position: relative; overflow: hidden; min-height: min(100svh, 56rem); display: flex; align-items: center; background: radial-gradient(120% 90% at 75% 40%, #23365a 0%, var(--nacht) 60%); }
.buehne picture { position: absolute; right: -9%; top: 50%; transform: translateY(-46%); width: min(60%, 60rem); }
.buehne picture img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 62% 52%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 62% 52%, #000 58%, transparent 100%);
  animation: einfahren 1.6s cubic-bezier(.16, .84, .3, 1) both;
}
.buehne .wrap { position: relative; width: 100%; padding-block: 8rem 6rem; }
.buehne .text { max-width: 44rem; animation: auftauchen 1s .15s cubic-bezier(.16, .84, .3, 1) both; }
.buehne h1 span { display: block; white-space: nowrap; }
.buehne h1 { margin: 0; font-weight: 800; font-stretch: 108%; font-size: clamp(2.9rem, 5.6vw, 5.6rem); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.buehne p { margin: 1.75rem 0 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: #c4cede; max-width: 32rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }
.knopf { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: background .2s, box-shadow .2s; }
.knopf svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.knopf.voll { background: var(--gelb); color: var(--nacht); }
.knopf.voll:hover { background: var(--gelb-hell); }
.knopf.rand { box-shadow: inset 0 0 0 1.5px rgba(233, 238, 246, .35); }
.knopf.rand:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.auch { display: flex; align-items: center; gap: .9rem; margin-top: 2.25rem; color: var(--leise); font-size: .92rem; }
.auch a { display: inline-flex; padding: .3rem; border-radius: 6px; }
.auch svg { width: 1.15rem; height: 1.15rem; fill: var(--leise); transition: fill .2s; }
.auch a:hover svg { fill: var(--text); }

.streifen { height: 12px; background: repeating-linear-gradient(-45deg, var(--gelb) 0 14px, var(--nacht) 14px 28px); }

@keyframes einfahren { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: none; } }
@keyframes auftauchen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Abschnitte */
.abschnitt { padding-block: clamp(4.5rem, 10vw, 8rem); }
.kopfzeile { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.abschnitt h2 { margin: 0; font-weight: 800; font-stretch: 106%; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.025em; }
.kopfzeile p { margin: .9rem 0 0; color: var(--leise); max-width: 34rem; }
.textlink { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--gelb); }
.textlink svg { width: 1.1rem; height: 1.1rem; fill: currentColor; transition: transform .2s; }
.textlink:hover svg { transform: translateX(3px); }

/* Videos */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.video a { display: block; text-decoration: none; }
.video .bild { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--nacht-2); box-shadow: 0 0 0 1px var(--linie); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, .84, .3, 1); }
.video a:hover img { transform: scale(1.035); }
.video .meta { display: flex; justify-content: space-between; gap: .5rem; margin-top: .9rem; font-size: .85rem; color: var(--leise); }
.video .thema { color: var(--gelb); font-weight: 600; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Serie */
.serie { background: var(--nacht-2); }
.serie .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.serie h2 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .92; font-stretch: 112%; }
.serie p { margin: 1.75rem 0 0; color: #c4cede; font-size: 1.15rem; max-width: 30rem; }
.serie .takt { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(246, 182, 11, .12); color: var(--gelb); font-weight: 600; font-size: .95rem; }
.serie .takt svg { width: 1rem; height: 1rem; fill: currentColor; }
.serie figure { margin: 0; justify-self: center; width: min(100%, 22rem); }
.serie figure img { border-radius: 22px; box-shadow: 0 0 0 1px var(--linie), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.serie figcaption { margin-top: 1rem; font-size: .9rem; color: var(--leise); text-align: center; }

/* Prinzipien */
.prinzipien { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 4vw, 4rem); }
.prinzipien li { border-top: 1px solid var(--linie); padding-top: 1.75rem; position: relative; }
.prinzipien li::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--gelb); }
.prinzipien h3 { margin: 0 0 .75rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.prinzipien p { margin: 0; color: var(--leise); }

/* Kanäle */
.kanaele { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--linie); border-radius: 22px; overflow: hidden; }
.kanaele li + li { border-left: 1px solid var(--linie); }
.kanaele a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo pfeil" "txt txt"; row-gap: 2.5rem; height: 100%; padding: 2rem; text-decoration: none; transition: background .25s; }
.kanaele a:hover { background: var(--nacht-2); }
.kanaele .logo { grid-area: logo; width: 2.25rem; height: 2.25rem; fill: var(--text); }
.kanaele .pfeil { grid-area: pfeil; width: 1.25rem; height: 1.25rem; fill: var(--leise); transition: transform .25s, fill .25s; }
.kanaele .txt { grid-area: txt; }
.kanaele a:hover .pfeil { fill: var(--gelb); transform: translate(2px, -2px); }
.kanaele .name { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.kanaele .handle { display: block; margin-top: .2rem; color: var(--leise); font-size: .95rem; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding-block: 3rem; color: var(--leise); font-size: .92rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.fuss .marke { color: var(--text); font-size: 1rem; }
.fuss .marke img { width: 2rem; height: 2rem; }
.fuss nav { display: flex; gap: 1.75rem; }
.fuss nav a { text-decoration: none; }
.fuss nav a:hover { color: var(--text); }

/* Unterseiten */
.unterseite .kopf { position: static; border-bottom: 1px solid var(--linie); }
.text-seite { padding-block: clamp(3.5rem, 8vw, 6rem); }
.text-seite .wrap > * { max-width: 44rem; }
.text-seite h1 { margin: 0 0 2.5rem; font-weight: 800; font-stretch: 106%; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.03em; }
.text-seite h2 { margin: 2.75rem 0 .6rem; font-size: 1.35rem; font-weight: 700; }
.text-seite p { color: #c4cede; }
.hinweis { padding: 1rem 1.25rem; border-radius: 12px; background: rgba(246, 182, 11, .12); color: var(--gelb); font-weight: 600; }

/* Responsiv */
@media (max-width: 64rem) {
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .nav a:not(.abo) { display: none; }
  .buehne { flex-direction: column; align-items: stretch; min-height: 0; }
  .buehne picture { position: relative; right: auto; top: auto; transform: none; width: 130%; margin: 4rem -15% -22% -15%; order: -1; }
  .buehne .wrap { padding-block: 0 4rem; }
  .serie .wrap, .prinzipien { grid-template-columns: 1fr; }
  .videos { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scroll-padding-inline: var(--rand); padding-bottom: .5rem; scrollbar-width: none; }
  .video { scroll-snap-align: start; }
  .kanaele a { row-gap: 1.5rem; padding: 1.5rem; }
}
@media (max-width: 30rem) {
  .kanaele { grid-template-columns: 1fr; }
  .kanaele li + li { border-left: 0; border-top: 1px solid var(--linie); }
  .kanaele a { grid-template-columns: auto 1fr auto; grid-template-areas: "logo txt pfeil"; column-gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; }
  .kanaele .logo { width: 1.9rem; height: 1.9rem; }
  .kanaele .name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .buehne picture img, .buehne .text { animation: none; }
  .video img, .textlink svg, .kanaele .pfeil { transition: none; }
}

/* ===== Erweiterungen: Archiv, Video-Seiten, Quiz, Lexikon ===== */
.nav a[aria-current="page"] { color: var(--text); }
.buehne picture img { animation: einfahren 1.6s cubic-bezier(.16, .84, .3, 1) both, gleiten 26s 1.6s ease-in-out infinite alternate; }
@keyframes gleiten { from { transform: scale(1); } to { transform: scale(1.06) translateX(-1.5%); } }

/* Kacheln */
.video .bild { position: relative; transition: box-shadow .3s, transform .4s cubic-bezier(.16, .84, .3, 1); }
.video a:hover .bild { box-shadow: 0 0 0 2px var(--gelb), 0 30px 60px -25px rgba(0, 0, 0, .8); transform: translateY(-4px); }
.play { position: absolute; left: 50%; top: 58%; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 26, 46, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.play svg { width: 1.5rem; height: 1.5rem; fill: var(--gelb); margin-left: 3px; }
.video a:hover .play, .artikel-bild .play { opacity: 1; }
.video h3 { margin: .35rem 0 0; font-size: 1rem; line-height: 1.35; font-weight: 600; color: #d3dbe8; }
.video a:hover h3 { color: var(--text); }

/* Kopf der Unterseiten */
.text-kopf { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.text-kopf h1 { margin: 0; font-weight: 800; font-stretch: 108%; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.03em; }
.text-kopf p { margin: 1rem 0 0; color: var(--leise); max-width: 40rem; font-size: 1.1rem; }

/* Filter (ohne JavaScript) */
.archiv input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter label { cursor: pointer; padding: .55rem 1.05rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linie); color: var(--leise); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.filter label:hover { color: var(--text); }
#f-alle:checked ~ .filter label[for="f-alle"],
#f-bremsen:checked ~ .filter label[for="f-bremsen"],
#f-technik:checked ~ .filter label[for="f-technik"],
#f-regeln:checked ~ .filter label[for="f-regeln"],
#f-sicherheit:checked ~ .filter label[for="f-sicherheit"],
#f-winter:checked ~ .filter label[for="f-winter"],
#f-alltag:checked ~ .filter label[for="f-alltag"] { background: var(--gelb); color: var(--nacht); box-shadow: none; }
.archiv input:focus-visible ~ .filter { outline: 2px solid var(--gelb); outline-offset: 6px; border-radius: 12px; }
#f-bremsen:checked ~ .videos .video:not([data-thema="bremsen"]),
#f-technik:checked ~ .videos .video:not([data-thema="technik"]),
#f-regeln:checked ~ .videos .video:not([data-thema="regeln"]),
#f-sicherheit:checked ~ .videos .video:not([data-thema="sicherheit"]),
#f-winter:checked ~ .videos .video:not([data-thema="winter"]),
#f-alltag:checked ~ .videos .video:not([data-thema="alltag"]) { display: none; }

/* Quiz (ohne JavaScript) */
.quiz { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: q; }
.quiz.voll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frage { background: var(--nacht-2); border-radius: 20px; padding: 1.75rem; box-shadow: 0 0 0 1px var(--linie); display: flex; flex-direction: column; }
.situation { margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.5; font-weight: 600; flex: 1; }
.wahlen { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahlen input { position: absolute; opacity: 0; pointer-events: none; }
.wahl { flex: 1; text-align: center; cursor: pointer; padding: .8rem 1rem; border-radius: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--linie); transition: background .2s, box-shadow .2s, color .2s; }
.wahl:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.wahlen input:focus-visible + .wahl { outline: 2px solid var(--gelb); outline-offset: 3px; }
.aufloesung { display: none; flex-basis: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.aufloesung p { margin: 0 0 .75rem; color: #c4cede; font-size: .97rem; }
.aufloesung .ergebnis { color: var(--text); }
.ergebnis .ja, .ergebnis .nein { display: none; font-weight: 800; }
.wahlen:has(input:checked) .aufloesung { display: block; }
.wahlen:has(input:checked) .wahl { pointer-events: none; opacity: .45; }
.wahlen:has(input.r:checked) .ja { display: inline; color: #6fd08c; }
.wahlen:has(input.f:checked) .nein { display: inline; color: #ff8a7a; }
.wahlen input.r:checked + .wahl, .wahlen:has(input:checked) input.r + .wahl { opacity: 1; background: rgba(111, 208, 140, .16); box-shadow: inset 0 0 0 1.5px #6fd08c; }
.wahlen input.f:checked + .wahl { opacity: 1; background: rgba(255, 138, 122, .14); box-shadow: inset 0 0 0 1.5px #ff8a7a; }
.quiz-teaser { background: var(--nacht-2); }
.quiz-teaser .frage { background: var(--nacht); }

/* Lexikon */
.begriffe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.begriffe a, .abc a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linie); text-decoration: none; font-weight: 600; font-size: .95rem; color: #d3dbe8; transition: background .2s; }
.begriffe a:hover, .abc a:hover { background: var(--nacht-3); color: var(--text); }
.abc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.lexikon { margin: 0; display: grid; gap: 0; max-width: 52rem; }
.lexikon > div { padding: 2rem 0; border-top: 1px solid var(--linie); scroll-margin-top: 2rem; }
.lexikon > div:target dt { color: var(--gelb); }
.lexikon dt { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .6rem; }
.lexikon dd { margin: 0; }
.lexikon dd p { margin: 0 0 .9rem; color: #c4cede; max-width: 42rem; }

/* Video-Seite */
.artikel { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.zurueck { display: inline-block; margin-bottom: 2rem; color: var(--leise); text-decoration: none; font-weight: 600; }
.zurueck::before { content: "‹ "; }
.zurueck:hover { color: var(--text); }
.artikel-raster { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.artikel-bild { position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--linie), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.artikel-bild .play.gross { width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; }
.artikel-text .meta { margin: 0 0 1rem; color: var(--leise); font-size: .95rem; }
.artikel-text .thema { color: var(--gelb); font-weight: 600; }
.artikel-text h1 { margin: 0 0 1.75rem; font-weight: 800; font-stretch: 106%; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; }
.fliesstext p { margin: 0 0 1.1rem; font-size: 1.12rem; line-height: 1.7; color: #d3dbe8; max-width: 38rem; }
.artikel-text .knopf { margin-top: 1rem; }
.quellen { margin-top: 2.5rem; color: var(--leise); font-size: .92rem; max-width: 38rem; }
.quellen summary { cursor: pointer; font-weight: 600; color: #c4cede; }
.quellen ul { padding-left: 1.2rem; }
.verwandt h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2rem; }

/* Fuß erweitert */
.fuss .wrap { align-items: start; }
.fuss-marke p { margin: .75rem 0 0; max-width: 20rem; }
.fuss nav { flex-direction: column; gap: .6rem; }
.fuss .copy { align-self: end; }

@media (max-width: 64rem) {
  .quiz, .quiz.voll { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
  .nav { gap: 1rem; }
  .nav a:not(.abo) { display: inline; font-size: .9rem; }
  .kopf .wrap { flex-wrap: wrap; row-gap: .75rem; }
  .quiz, .quiz.voll, .artikel-raster { grid-template-columns: 1fr; }
  .artikel-bild { max-width: 18rem; }
  .videos.raster { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .fuss nav { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .video .bild, .play { transition: none; }
}

/* Kontaktformular */
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; max-width: 46rem; }
.feld { display: flex; flex-direction: column; gap: .5rem; }
.feld.breit { grid-column: 1 / -1; }
.feld label { font-weight: 600; font-size: .95rem; }
.feld label span { color: var(--leise); font-weight: 400; }
.feld input, .feld textarea { font: inherit; color: var(--text); background: var(--nacht-2); border: 1px solid var(--linie); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s; }
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--gelb); }
.feld.check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.feld.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--gelb); flex: none; }
.feld.check label { font-weight: 400; color: #c4cede; }
.formular .knopf { justify-self: start; border: 0; cursor: pointer; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alternativ { margin-top: 2rem; color: var(--leise); }
@media (max-width: 48rem) { .formular { grid-template-columns: 1fr; } }
