/* Farbpalette von lncu.de (hell/dunkel) */
:root { color-scheme: light; --akzent-100: #ff6a00; --akzent-200: #ffa666; --akzent-300: #ffb580; --akzent-400: #ffd2b3; --akzent-500: #ffe1cc; --akzent-600: #fff0e5; --blue-100: #2e4760; --blue-200: #98b2cd; --blue-300: #a9bfd6; --blue-400: #cbd9e6; --blue-500: #dde6ee; --blue-600: #eef2f7; --green-100: #2e6b57; --green-200: #94d1bd; --green-300: #a6d9c8; --green-400: #c9e8de; --green-500: #dbf0e9; --green-600: #edf7f1; --turkis-100: #0d5959; --turkis-200: #138686; --turkis-300: #8fefef; --turkis-400: #bcf5f5; --turkis-500: #d2f9f9; --turkis-600: #e9fcfc; --violet-100: #7700cc; --violet-200: #b133ff; --violet-300: #ce80ff; --violet-400: #e2b3ff; --violet-500: #ebccff; --violet-600: #f5e5ff; --red-100: #e60039; --red-200: #ff3366; --red-300: #ff809f; --red-400: #ffb3c6; --red-500: #ffccd9; --red-600: #ffe5ec; --yellow-100: #998000; --yellow-200: #ffdd33; --yellow-300: #ffea80; --yellow-400: #fff2b3; --yellow-500: #fff6cc; --yellow-600: #fffbe5; --gray-100: #333333; --gray-200: #999999; --gray-300: #bfbfbf; --gray-400: #d9d9d9; --gray-500: #e6e6e6; --gray-600: #f2f2f2; --white: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --akzent-100: #f8b785; --akzent-200: #f8b785; --akzent-300: #f8b785; --akzent-400: #705a49; --akzent-500: #473d36; --akzent-600: #3d3b3b; --blue-100: #d1edff; --blue-200: #94d4ff; --blue-300: #608fb3; --blue-400: #37536d; --blue-500: #323b44; --blue-600: #141a1e; --green-100: #c4e3da; --green-200: #7cbfac; --green-300: #4a8974; --green-400: #476061; --green-500: #334546; --green-600: #283737; --turkis-100: #b2f1f3; --turkis-200: #549598; --turkis-300: #107070; --turkis-400: #204447; --turkis-500: #1a3033; --turkis-600: #182b2e; --violet-100: #e3cafc; --violet-200: #bc80f9; --violet-300: #6527b7; --violet-400: #40276a; --violet-500: #2f2050; --violet-600: #261d40; --red-100: #d82c3a; --red-200: #f04965; --red-300: #f3879e; --red-400: #8b6c75; --red-500: #4d3941; --red-600: #362a31; --yellow-100: #fee88b; --yellow-200: #b9ad6d; --yellow-300: #726e4b; --yellow-400: #5b5940; --yellow-500: #444435; --yellow-600: #2d2f2a; --gray-100: #f0f3f5; --gray-200: #b5c1cb; --gray-300: #788fa2; --gray-400: #4a5c6a; --gray-500: #3b4955; --gray-600: #2c373f; --white: #212a31; } }
:root[data-theme="dark"] { color-scheme: dark; --akzent-100: #f8b785; --akzent-200: #f8b785; --akzent-300: #f8b785; --akzent-400: #705a49; --akzent-500: #473d36; --akzent-600: #3d3b3b; --blue-100: #d1edff; --blue-200: #94d4ff; --blue-300: #608fb3; --blue-400: #37536d; --blue-500: #323b44; --blue-600: #141a1e; --green-100: #c4e3da; --green-200: #7cbfac; --green-300: #4a8974; --green-400: #476061; --green-500: #334546; --green-600: #283737; --turkis-100: #b2f1f3; --turkis-200: #549598; --turkis-300: #107070; --turkis-400: #204447; --turkis-500: #1a3033; --turkis-600: #182b2e; --violet-100: #e3cafc; --violet-200: #bc80f9; --violet-300: #6527b7; --violet-400: #40276a; --violet-500: #2f2050; --violet-600: #261d40; --red-100: #d82c3a; --red-200: #f04965; --red-300: #f3879e; --red-400: #8b6c75; --red-500: #4d3941; --red-600: #362a31; --yellow-100: #fee88b; --yellow-200: #b9ad6d; --yellow-300: #726e4b; --yellow-400: #5b5940; --yellow-500: #444435; --yellow-600: #2d2f2a; --gray-100: #f0f3f5; --gray-200: #b5c1cb; --gray-300: #788fa2; --gray-400: #4a5c6a; --gray-500: #3b4955; --gray-600: #2c373f; --white: #212a31; }

/* LNCU-Archiv – Gestaltung angelehnt an lncu.de. Die Farbpalette wird von build.py vorangestellt. */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(fonts/roboto-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(fonts/roboto-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(fonts/roboto-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-display: swap; src: url(fonts/roboto-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/roboto-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: italic; font-display: swap; src: url(fonts/roboto-700-italic.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; background-color: var(--blue-600); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Roboto", Arial, Helvetica, sans-serif; font-size: 1.6rem; line-height: 1.6;
  color: var(--gray-100); min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { color: var(--blue-100); line-height: 1.25; margin: 0; }
h1 { font-size: 3.6rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
p, ul, ol, figure, blockquote { margin: 0; }
a { color: var(--blue-100); text-decoration-thickness: 0.1rem; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.2rem; }
:focus-visible { outline: 0.2rem solid var(--blue-100); outline-offset: 0.2rem; }
img, video, iframe { max-width: 100%; }
.la-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.la-breite { width: 100%; max-width: 124rem; margin: 0 auto; padding: 0 1.6rem; }
main { flex: 1; padding-bottom: 4rem; }
main > .la-breite { display: flex; flex-direction: column; gap: 1rem; }

/* Kopf */
.la-kopf { padding: 1.6rem 0 1rem; }
.la-kopf .la-breite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.la-marke { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.la-marke-name { font-size: 4rem; font-weight: 900; line-height: 1; color: var(--blue-100); }
.la-marke-zeile { font-size: 1.4rem; font-weight: 500; line-height: 1; text-transform: uppercase; width: 14rem; color: var(--blue-100); }
.la-marke-archiv {
  font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem; border-radius: 1rem; background: var(--akzent-200); color: var(--white);
}
.la-kopf-werkzeug { display: flex; align-items: center; gap: 1rem; flex: 1 1 28rem; justify-content: flex-end; }
.la-suchform { flex: 1 1 auto; max-width: 42rem; display: flex; }
.la-suchfeld {
  width: 100%; height: 4rem; padding: 0 1.6rem; font: inherit; color: var(--gray-100);
  background: var(--white); border: 0.1rem solid var(--blue-400); border-radius: 1rem;
}
.la-suchfeld::placeholder { color: var(--gray-200); }
.la-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 4rem; padding: 0 1.6rem;
  font: inherit; font-weight: 500; color: var(--blue-100); background: var(--white);
  border: 0.1rem solid var(--blue-400); border-radius: 1rem; cursor: pointer; text-decoration: none;
}
.la-knopf:hover { background: var(--blue-500); }
.la-knopf-stark { background: var(--blue-100); color: var(--white); border-color: var(--blue-100); }
.la-knopf-stark:hover { background: var(--blue-100); opacity: 0.88; }
.la-modus { width: 4rem; padding: 0; flex: none; }
.la-modus svg { width: 2rem; height: 2rem; }

/* Archivhinweis */
.la-hinweis {
  background: var(--akzent-600); border: 0.1rem solid var(--akzent-100); border-left-width: 0.6rem; border-radius: 1rem;
  padding: 1.2rem 1.6rem; color: var(--gray-100);
}
.la-hinweis strong { color: var(--blue-100); }
.la-hinweis.la-pendant { background: var(--green-600); border-color: var(--green-100); }
.la-hinweis.la-pendant strong, .la-pendant a { color: var(--green-100); }
.la-pendant a { font-weight: 500; }

/* Boxen */
.la-box { background: var(--white); border-radius: 1rem; padding: 2rem; }
.la-box > * + * { margin-top: 1.2rem; }
.la-kruemel { font-size: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; padding: 0.4rem 0.4rem 0; list-style: none; margin: 0; }
.la-kruemel li + li::before { content: "›"; margin-right: 0.8rem; color: var(--gray-200); }
.la-meta { font-size: 1.4rem; color: var(--blue-100); }

/* Typ-Marke */
.la-typ {
  display: inline-block; flex: none; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1; padding: 0.5rem 0.8rem; border-radius: 1rem; background: var(--blue-600); color: var(--blue-100);
}
.la-typ-file { background: var(--green-600); color: var(--green-100); }
.la-typ-video { background: var(--violet-600); color: var(--violet-100); }
.la-typ-wbt { background: var(--turkis-600); color: var(--turkis-100); }
.la-typ-quiz { background: var(--yellow-600); color: var(--yellow-100); }

/* Startseite */
.la-start-kopf { display: flex; flex-direction: column; gap: 0.8rem; }
.la-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.la-filter-name { flex: 0 0 6rem; font-size: 1.4rem; font-weight: 500; color: var(--blue-100); }
.la-suche-gross { max-width: none; margin-top: 0.4rem; }
.la-suche-gross .la-suchfeld { height: 4.8rem; font-size: 1.8rem; background: var(--blue-600); border-color: var(--blue-300); }
.la-suche-gross .la-suchfeld::placeholder { color: var(--blue-100); opacity: 0.7; }
.la-start-titel { padding: 1rem 0.4rem 0; }
.la-filter .la-knopf[aria-pressed="true"] { background: var(--blue-100); color: var(--white); border-color: var(--blue-100); }
.la-kurse { display: grid; grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.la-kurs {
  display: flex; flex-direction: column; gap: 0.8rem; height: 100%; padding: 2rem; border-radius: 1rem;
  background: var(--white); text-decoration: none; color: var(--gray-100); border: 0.1rem solid transparent;
}
.la-kurs:hover { border-color: var(--blue-200); }
.la-kurs h2 { font-size: 2rem; }
.la-kurs p { font-size: 1.4rem; line-height: 1.45; }
.la-kurs .la-meta { margin-top: auto; }

/* Bereiche (alte Kategorien) */
.la-kursbereich, .la-gruppe { display: flex; flex-direction: column; gap: 1rem; }
.la-gruppe { margin-top: 1.4rem; }
.la-gruppe > h2 { padding: 0 0.4rem; }
.la-gruppe > h2 a { text-decoration: none; }
.la-gruppe > h2 a:hover { text-decoration: underline; }
.la-gruppe > .la-meta { padding: 0 0.4rem; margin-top: -0.6rem; }
/* Kacheln in Spalten gestapelt: jede Kachel ist nur so hoch wie ihr Inhalt, ohne Leerraum durch gleich hohe Zeilen */
.la-bereiche { columns: 26rem; column-gap: 1rem; list-style: none; padding: 0; margin: 0; }
.la-bereich { background: var(--white); border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; gap: 0.8rem; break-inside: avoid; margin-bottom: 1rem; }
.la-bereich-breit { column-span: all; }
.la-bereich h3, .la-bereich h2 { font-size: 2rem; }
.la-bereich h3 a, .la-bereich h2 a { text-decoration: none; }
.la-bereich h3 a:hover, .la-bereich h2 a:hover { text-decoration: underline; }
.la-bereich-liste { list-style: none; padding: 0; margin: 0; font-size: 1.5rem; }
.la-bereich-liste li { padding: 0.5rem 0; border-top: 0.1rem solid var(--blue-500); display: flex; justify-content: space-between; gap: 1rem; }
.la-bereich-liste a { text-decoration: none; }
.la-bereich-liste a:hover { text-decoration: underline; }
.la-spalten { columns: 26rem; column-gap: 3rem; }
.la-spalten li { break-inside: avoid; border-top: 0; }
.la-kurs h3 { font-size: 2rem; }

/* Kurs-Icons der alten Plattform (Zeichnungen auf weißem Grund, daher immer weiß hinterlegt) */
.la-icon { display: block; flex: none; width: 9.6rem; height: 6rem; object-fit: contain; background: #ffffff; border-radius: 0.8rem; border: 0.1rem solid var(--blue-500); }
.la-icon-klein { width: 6.4rem; height: 4.4rem; border-radius: 0.5rem; }
.la-icon-gross { width: 16rem; height: 10rem; float: right; margin: 0 0 1rem 2rem; }
.la-icon-leer { background: var(--blue-600); }
.la-bereich-liste a { display: flex; align-items: center; gap: 1rem; }
.la-bereich-liste li { align-items: center; }

/* Suchergebnisse */
.la-treffer { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.la-treffer a { display: block; padding: 1.6rem 2rem; border-radius: 1rem; background: var(--white); text-decoration: none; color: var(--gray-100); border: 0.1rem solid transparent; }
.la-treffer a:hover { border-color: var(--blue-200); }
.la-treffer-titel { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 1.8rem; font-weight: 700; color: var(--blue-100); }
.la-treffer-ort { font-size: 1.4rem; color: var(--blue-100); margin-top: 0.4rem; }
.la-treffer-text { font-size: 1.4rem; margin-top: 0.6rem; }
mark { background: var(--akzent-400); color: inherit; border-radius: 0.3rem; padding: 0 0.2rem; }

/* Kursseite */
.la-thema h2 { margin-bottom: 1rem; }
.la-liste { list-style: none; padding: 0; margin: 0; }
.la-liste li + li { border-top: 0.1rem solid var(--blue-500); }
.la-liste a { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 0.4rem; text-decoration: none; }
.la-liste a:hover span:last-child { text-decoration: underline; }
.la-liste .la-typ { width: 9.5rem; text-align: center; }

/* Inhalt aus dem alten System */
.la-inhalt { overflow-wrap: break-word; }
/* Abstand nur zwischen Blöcken – nicht vor Verweisen oder Bildern, die in einer Zeile nebeneinanderstehen */
.la-inhalt > :where(p, div, ul, ol, dl, table, blockquote, address, pre, figure, video, hr, details):where(:not(:first-child)),
.la-inhalt :where(div, td, th, li, blockquote) > :where(p, div, ul, ol, dl, table, blockquote, address, pre, figure, video, hr, details):where(:not(:first-child)) { margin-top: 1.2rem; }
.la-symbol { width: 4.4rem; height: auto; vertical-align: middle; margin: 0.2rem 0.4rem 0.2rem 0; border-radius: 0; }
.la-inhalt a:has(> .la-symbol) { display: inline-block; text-decoration: none; border-radius: 0.4rem; }
.la-inhalt a:has(> .la-symbol):hover .la-symbol { opacity: 0.8; }
.la-inhalt h1 { font-size: 2.8rem; }
.la-inhalt h2, .la-inhalt h3, .la-inhalt h4 { margin-top: 2rem; }
.la-inhalt img { height: auto; border-radius: 0.4rem; }
.la-inhalt ul, .la-inhalt ol { padding-left: 2.4rem; }
.la-inhalt video { width: 100%; max-width: 80rem; height: auto; border-radius: 1rem; background: #000; }
.la-inhalt blockquote { border-left: 0.4rem solid var(--blue-300); padding-left: 1.6rem; }
.la-tabelle { overflow-x: auto; max-width: 100%; }
.la-tabelle td, .la-tabelle th { border: 0.1rem solid var(--blue-400); text-align: left; }
.la-tabelle th { background: var(--blue-600); }
/* frühere Layout-Tabellen: Zeilen aus Vorschaubild, Text und Datei-Symbolen, die auf schmalen Bildschirmen umbrechen */
.la-raster { display: flex; flex-direction: column; }
.la-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; padding: 1.6rem 0; }
.la-zeile + .la-zeile { border-top: 0.1rem solid var(--blue-500); margin-top: 0; }
.la-raster > .la-zeile:first-child { padding-top: 0; }
.la-raster > .la-zeile:last-child { padding-bottom: 0; }
.la-zelle { min-width: 0; margin-top: 0; }
.la-inhalt .la-zeile > .la-zelle { margin-top: 0; }
.la-zelle-text { flex: 4 1 28rem; align-self: flex-start; }
.la-zelle-bild { flex: 0 1 22rem; }
.la-zelle-leer { height: 0; }
.la-zelle-kurz { flex: 0 0 auto; min-width: 4rem; text-align: center; }
.la-zelle-symbol { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.la-zelle-symbol > a { display: block; line-height: 0; }
.la-zelle-symbol img { display: block; max-width: 8rem; margin: 0; }
.la-zeile-gleich > .la-zelle { flex: 1 1 22rem; }
/* Vorschaubild mit Datei-Symbolen: Vorschau oben, Symbole in einer Reihe darunter */
.la-zelle-bild:first-child { align-self: flex-start; }
.la-vorschaubild img { max-height: 24rem; width: auto; max-width: 100%; }
.la-vorschaubild a { display: inline-block; }
.la-symbole { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.la-symbole .la-symbol, .la-symbole a { margin: 0; display: block; }
.la-inhalt .la-vorschaubild + .la-symbole { margin-top: 0.8rem; }
.la-mitte .la-symbole, .la-zelle-bild .la-symbole { justify-content: center; }
.la-zelle-bild .la-vorschaubild { text-align: center; }
.la-inhalt a:has(> .la-symbol) img { vertical-align: middle; }
@media (max-width: 40rem) { .la-zelle-leer { display: none; } }
.la-mitte { text-align: center; }
.la-zelle img, .la-zelle video { max-width: 100%; }
.la-raster .la-raster { margin-top: 1.2rem; }
.la-inhalt table { border-collapse: collapse; max-width: 100%; }
.la-inhalt td, .la-inhalt th { padding: 0.6rem 0.8rem; vertical-align: top; }
.la-inhalt table[border]:not([border="0"]):not([border="0px"]) td,
.la-inhalt table[border]:not([border="0"]):not([border="0px"]) th { border: 0.1rem solid var(--blue-400); }
.la-fehlt { color: var(--gray-100); border-bottom: 0.1rem dashed var(--gray-200); cursor: help; }
.la-fehlt::after { content: " (nicht mehr verfügbar)"; font-size: 1.2rem; color: var(--blue-100); }
.la-extern {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem; border-radius: 1rem;
  background: var(--blue-600); max-width: 80rem;
}
.la-extern p { font-size: 1.4rem; }
.la-extern iframe, .la-rahmen iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 1rem; background: var(--blue-600); }
.la-rahmen { max-width: 100rem; }
.la-aktionen { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.la-vorschau img { max-height: 70vh; }
.la-blaettern { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.la-blaettern a { max-width: 100%; }
.la-blaettern span.la-platz { flex: 1; }

/* Quiz */
.la-frage { border-top: 0.1rem solid var(--blue-500); padding-top: 1.6rem; margin-top: 1.6rem; }
.la-frage > * + * { margin-top: 1rem; }
.la-frage h3 { font-size: 1.6rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.la-antworten { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.la-antworten li { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-radius: 1rem; background: var(--gray-600); border-left: 0.6rem solid var(--gray-300); }
.la-antworten li.la-richtig { background: var(--green-600); border-left-color: var(--green-100); }
.la-urteil { flex: none; width: 8rem; font-size: 1.3rem; font-weight: 700; color: var(--gray-100); }
.la-richtig .la-urteil { color: var(--green-100); }
.la-erklaerung { padding: 1rem 1.2rem; border-radius: 1rem; background: var(--blue-600); }
.la-lueckenbild img { display: block; max-width: 100%; height: auto; background: #ffffff; border-radius: 0.4rem; }

/* Fuß */
.la-fuss { padding: 2rem 0 3rem; font-size: 1.4rem; color: var(--blue-100); }
.la-fuss .la-breite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.la-fuss nav { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.la-fuss a { padding: 0.2rem 0.8rem; border-radius: 1rem; text-decoration: none; white-space: nowrap; }
.la-fuss a:hover { background: var(--white); }

@media (max-width: 40rem) {
  h1 { font-size: 2.8rem; }
  .la-marke-zeile { display: none; }
  .la-box { padding: 1.4rem; }
  .la-liste a { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .la-antworten li { flex-direction: column; gap: 0.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .la-kurs, .la-knopf, .la-treffer a { transition: background-color 0.2s ease, border-color 0.2s ease; }
}
@media print {
  .la-kopf-werkzeug, .la-blaettern, .la-fuss nav, .la-filter { display: none; }
  html { background: #fff; }
}
