/* NRW-News – Stil einer modernen Nachrichten-Webseite */
:root {
  color-scheme: light dark;
  --rot: #c8102e;
  --bg: #ffffff;
  --flaeche: #ffffff;
  --rand: #c3cbd3;
  --vorspann: #3a434d;
  --logo-dunkel: #111418;
  --ok-bg: #e6f4ea; --ok-text: #1e5e30;
  --fehler-bg: #fde8ea; --fehler-text: #8a1020;
  --gelb-bg: #fff3cd; --gelb-text: #7a5b00; --gelb-rand: #f0d78c;
  --verlauf-a: #eef1f4; --verlauf-b: #dde3e9;
  --dunkel: #111418;
  --text: #1d2228;
  --grau: #5f6b78;
  --linie: #e1e5ea;
  --hell: #f4f6f8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.breit { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.topbar { background: var(--dunkel); color: #c9d1d9; font-size: 13px; }
.topbar .breit { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.kopf { border-bottom: 1px solid var(--linie); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-family: var(--sans); font-weight: 900; font-size: 34px; letter-spacing: -1px; line-height: 1; display: inline-flex; }
.logo-nrw { background: var(--rot); color: #fff; padding: 4px 8px; }
.logo-news { background: var(--logo-dunkel); color: #fff; padding: 4px 8px; }
.logo.klein { font-size: 22px; }
.rubriken { background: var(--bg); border-top: 1px solid var(--linie); }
.rubriken .breit { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rubriken a { padding: 11px 12px; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.rubriken a:hover { color: var(--rot); }
.rubriken a.aktiv { border-bottom-color: var(--rot); color: var(--rot); }

/* Admin-Leiste (nur angemeldet) */
.admin-leiste { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.testmodus { background: var(--gelb-bg); color: var(--gelb-text); border: 1px solid var(--gelb-rand); padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* Inhalt */
.inhalt { padding-top: 24px; padding-bottom: 40px; }
.rubrik-titel { font-family: var(--serif); font-size: 32px; margin: 0 0 20px; border-bottom: 3px solid var(--rot); display: inline-block; }
.dachzeile { display: block; color: var(--rot); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 10px 0 4px; }
.datum { color: var(--grau); font-size: 13px; }
.vorspann { color: var(--vorspann); margin: 6px 0; }
.block-titel { font-size: 18px; font-weight: 800; margin: 32px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--text); }

.top { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.aufmacher h2 { font-family: var(--serif); font-size: 36px; line-height: 1.15; margin: 0 0 8px; }
.aufmacher .vorspann { font-size: 18px; }
.aufmacher a:hover h2, .karte a:hover h3, .meldungszeile:hover strong { color: var(--rot); }
.neueste .block-titel { margin-top: 0; }
.meldungszeile { display: block; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.meldungszeile .dachzeile { margin: 0 0 2px; font-size: 11px; }
.meldungszeile strong { font-family: var(--serif); font-size: 17px; line-height: 1.3; }

.bildrahmen { aspect-ratio: 16 / 9; overflow: hidden; background: var(--hell); }
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a:hover .bildrahmen img { transform: scale(1.03); }
.ohne-bild { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa5b1; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(135deg, var(--verlauf-a), var(--verlauf-b)); }

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.karte h3 { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.karte .vorspann { font-size: 15px; }

/* Einzelartikel */
.einzel { max-width: 740px; margin: 0 auto; }
.einzel h1 { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.einzel .vorspann { font-size: 20px; font-weight: 600; color: var(--text); }
.autorzeile { color: var(--grau); font-size: 14px; border-bottom: 1px solid var(--linie); padding-bottom: 14px; }
.einzel figure { margin: 20px 0; }
.einzel figcaption { color: var(--grau); font-size: 13px; margin-top: 6px; }
.fliesstext { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.zurueck a { color: var(--rot); font-weight: 600; }

.leer { text-align: center; padding: 60px 16px; color: var(--grau); }
.leer h2 { color: var(--text); font-family: var(--serif); }

/* Fuß */
.fuss { background: var(--dunkel); color: #c9d1d9; padding: 28px 0 18px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; font-size: 14px; }
.fuss nav a:hover { color: #fff; }
.hinweis-fiktiv { font-size: 11px; color: #7d8590; margin: 16px 0 0; border-top: 1px solid #2a3038; padding-top: 12px; }

/* Formulare und Knöpfe */
.formular { max-width: 760px; margin: 0 auto 20px; display: flex; flex-direction: column; gap: 14px; }
.formular.schmal { max-width: 380px; }
.formular h2 { font-family: var(--serif); font-size: 28px; margin: 0; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.formular label.zeile { flex-direction: row; align-items: center; font-weight: 400; }
.formular input:not([type=checkbox]), .formular textarea, .formular select { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--rand); border-radius: 6px; width: 100%; background: var(--flaeche); color: var(--text); }
.formular textarea { resize: vertical; }
.formular details summary { cursor: pointer; color: var(--grau); }
.formular details textarea { margin-top: 8px; }
.knoepfe { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.knopf { display: inline-block; background: var(--rot); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.knopf:hover { filter: brightness(1.1); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf.gross { padding: 12px 20px; font-size: 16px; align-self: flex-start; }
.knopf.hell { background: var(--hell); color: var(--text); border: 1px solid var(--rand); }
.knopf.rot { background: var(--flaeche); color: var(--rot); border: 1px solid var(--rot); align-self: flex-start; }
.loeschen { border-top: 1px solid var(--linie); padding-top: 16px; }
.vorschau { max-height: 110px; max-width: 200px; width: auto; object-fit: cover; border-radius: 6px; border: 2px solid var(--linie); }
.hinweis { color: var(--grau); }
.meldung { max-width: 760px; margin: 0 auto 16px; padding: 10px 14px; border-radius: 6px; }
.meldung.ok { background: var(--ok-bg); color: var(--ok-text); }
.meldung.fehler { background: var(--fehler-bg); color: var(--fehler-text); }
.liste { width: 100%; border-collapse: collapse; }
.liste td { padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste td:first-child { width: 1%; white-space: nowrap; }
.liste a { font-weight: 600; }
.liste small { color: var(--grau); }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.status.entwurf { background: var(--gelb-bg); color: var(--gelb-text); }
.status.veroeffentlicht { background: var(--ok-bg); color: var(--ok-text); }
.status.beispiel { background: var(--hell); color: var(--grau); }

/* Handy und Tablet */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr; }
  .raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .raster { grid-template-columns: 1fr; }
  .aufmacher h2 { font-size: 27px; }
  .einzel h1 { font-size: 29px; }
  .fliesstext { font-size: 18px; }
  .logo { font-size: 28px; }
  .topbar .breit { font-size: 12px; }
}

/* Redaktion (Admin-Übersicht) */
.redaktion { max-width: 900px; margin: 0 auto; }
.redaktion-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.redaktion-kopf h2 { font-family: var(--serif); font-size: 30px; margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.kachel { background: var(--hell); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; color: var(--grau); font-size: 14px; }
.kachel .zahl { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.eintrag { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.mini-bild { width: 96px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--hell); }
.mini-bild img { width: 100%; height: 100%; object-fit: cover; }
.eintrag-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eintrag-titel { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.eintrag-titel:hover { color: var(--rot); }
.eintrag-text small { color: var(--grau); }
.inline-dach { display: inline; margin-left: 6px; font-size: 11px; }
.eintrag-aktionen { display: flex; gap: 8px; flex-shrink: 0; }
.eintrag-aktionen .knopf { font-size: 14px; padding: 6px 12px; }
@media (max-width: 600px) {
  .eintrag { flex-wrap: wrap; }
  .mini-bild { width: 72px; }
  .eintrag-aktionen { width: 100%; }
}

/* Upload und Transkript */
.upload-feld { background: var(--hell); border: 2px dashed var(--rand); border-radius: 8px; padding: 16px; }
.upload-feld small { font-weight: 400; color: var(--grau); }
.transkript { background: var(--hell); border-radius: 6px; padding: 8px 14px; max-height: 260px; overflow-y: auto; font-size: 14px; margin-top: 8px; }
.transkript p { margin: 4px 0; }
.ki-box { border: 1px solid var(--linie); border-left: 4px solid var(--rot); border-radius: 8px; padding: 16px; background: var(--flaeche); }
.ki-box h3 { margin: 0; font-size: 18px; }

/* Eilmeldung (Laufband) */
.eilmeldung { display: flex; align-items: stretch; background: var(--rot); color: #fff; font-weight: 700; overflow: hidden; }
.eil-label { background: #8a0b20; padding: 8px 14px; white-space: nowrap; letter-spacing: 1px; font-size: 14px; z-index: 1; animation: blinken 1.6s infinite; }
.eil-band { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.eil-band a { color: #fff; }
.eil-text { display: inline-block; padding: 8px 0 8px 100%; animation: laufen 22s linear infinite; font-size: 15px; }
.eilmeldung:hover .eil-text { animation-play-state: paused; }
@keyframes laufen { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes blinken { 50% { background: #b30d28; } }
@media (prefers-reduced-motion: reduce) { .eil-text { animation: none; padding-left: 14px; } .eil-label { animation: none; } }

/* Suche */
.suchfeld { display: flex; gap: 6px; flex: 1; max-width: 320px; }
.suchfeld input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--rand); border-radius: 6px; background: var(--flaeche); color: var(--text); }
.suchfeld button { border: 1px solid var(--rand); background: var(--hell); border-radius: 6px; cursor: pointer; padding: 0 10px; }
.suchfeld.gross { max-width: 560px; margin-bottom: 18px; }
.suchfeld.gross input { font-size: 17px; padding: 11px 14px; }
.suchseite { max-width: 820px; }
.treffer { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.treffer strong { font-family: var(--serif); font-size: 19px; display: block; }
.treffer:hover strong { color: var(--rot); }
.treffer .mini-bild { width: 140px; }
.treffer .dachzeile { margin-top: 0; }

/* Meistgelesen */
.block-titel.meist { margin-top: 26px; }
.meistgelesen { margin: 0; padding-left: 0; list-style: none; counter-reset: platz; }
.meistgelesen li { counter-increment: platz; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.meistgelesen li::before { content: counter(platz); font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--rot); line-height: 1; min-width: 22px; }
.meistgelesen strong { font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.meistgelesen a:hover strong { color: var(--rot); }

/* Fotogalerie */
.galerie { margin: 28px 0; }
.galerie h3 { font-size: 16px; border-bottom: 2px solid var(--dunkel); padding-bottom: 6px; }
.galerie-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.galerie-raster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.galerie-raster a:hover img { opacity: .85; }
.galerie-raster.klein { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.galerie-bild { display: flex; flex-direction: column; gap: 4px; font-weight: 400 !important; }
fieldset.fotos { border: 1px solid var(--linie); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
fieldset.fotos legend { font-weight: 700; padding: 0 6px; }

/* Einstellungen */
.karte-box { border: 1px solid var(--linie); border-radius: 10px; padding: 18px; background: var(--flaeche); }
.karte-box h3 { margin: 0; font-size: 19px; }
.schmal-box { padding: 12px 18px; margin-top: -8px; }
.an { color: var(--ok-text); }
.discord-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--linie); border-left: 4px solid #5865f2; border-radius: 8px; padding: 12px 16px; }
@media (max-width: 600px) {
  .suchfeld { order: 3; max-width: none; flex-basis: 100%; }
  .treffer .mini-bild { width: 90px; }
}

/* ===== Neue Funktionen (2026-11-21) ===== */
.zaehler { background: var(--rot); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.wartung-hinweis { background: var(--gelb-bg); color: var(--gelb-text); text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.wartung-hinweis a { text-decoration: underline; }
.wartung .wartung-symbol { font-size: 56px; }
.warnung-text { color: var(--gelb-text); font-weight: 600; }
.ok-text { color: var(--ok-text); font-weight: 600; }
.abstand-oben { margin-top: 20px; }
.abstand-unten { margin-bottom: 12px; }
.klein-link { font-size: 13px; color: var(--grau); }
.versteckt { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.knoepfe.klein { gap: 10px; margin: 8px 0; }
.schnellzugriff { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.kacheln.vier { grid-template-columns: repeat(4, 1fr); }
a.kachel:hover .zahl { color: var(--rot); }

/* Updates im Artikel */
.aktualisiert { color: var(--rot); font-weight: 700; }
.updates { border-left: 4px solid var(--rot); background: var(--hell); border-radius: 0 8px 8px 0; padding: 10px 16px; margin: 18px 0; }
.updates h3 { margin: 0 0 6px; font-size: 14px; color: var(--rot); letter-spacing: .5px; }
.update { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--linie); }
.update:first-of-type { border-top: 0; }
.update p { margin: 0; }
.update-zeit { font-weight: 800; color: var(--rot); white-space: nowrap; font-size: 14px; min-width: 74px; }
.update-box, .pruef-box { border: 1px solid var(--linie); border-radius: 8px; padding: 16px; background: var(--flaeche); }
.update-box h3, .pruef-box h3 { margin: 0; font-size: 18px; }
.update-form { display: flex; flex-direction: column; gap: 8px; }
.update-zeile { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.update-zeile .update-text { flex: 1; }
.update-zeile.wichtig .update-text { color: var(--rot); font-weight: 700; }
.pruef-box { border-left: 4px solid #e0a800; }
.hinweis-liste { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.hinweis-liste q { display: block; font-style: italic; color: var(--grau); }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -6px; }
.vorschlag { font: inherit; font-size: 14px; border: 1px solid var(--rand); background: var(--hell); color: var(--text); border-radius: 16px; padding: 5px 12px; cursor: pointer; text-align: left; }
.vorschlag:hover { border-color: var(--rot); }
.vorschlag.gewaehlt { border-color: var(--rot); background: var(--fehler-bg); color: var(--fehler-text); font-weight: 600; }

/* Fall-Akte */
.fall-akte { border: 1px solid var(--linie); border-radius: 8px; padding: 14px 18px; margin: 24px 0; background: var(--hell); }
.fall-akte h3 { margin: 0 0 8px; font-size: 16px; }
.fall-akte ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.fall-akte .datum { display: block; font-size: 12px; }
.fall-akte a { color: var(--rot); font-weight: 600; }
.fall-akte li.aktuell::marker { color: var(--rot); }

/* Kommentare */
.kommentare { margin: 32px 0; border-top: 2px solid var(--text); padding-top: 8px; }
.kommentare h3 { font-size: 18px; }
.kommentar { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.kommentar p { margin: 4px 0 0; white-space: pre-line; }
.kommentar-kopf { font-size: 14px; }
.kommentar-kopf a { color: var(--rot); }
.kommentar-form { margin: 16px 0 0; max-width: none; }
.admin-kommentar form { margin-top: 8px; }

/* Liveticker */
.live-punkt { display: inline-block; background: var(--rot); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; vertical-align: middle; animation: blinken 1.6s infinite; }
.live-punkt.gross { font-size: 16px; padding: 3px 10px; }
.live-box { display: block; border: 2px solid var(--rot); border-radius: 10px; padding: 12px 16px; margin-bottom: 22px; background: var(--flaeche); }
.live-box:hover { box-shadow: 0 2px 12px rgba(200, 16, 46, .2); }
.live-kopf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 18px; margin-bottom: 6px; }
.live-mehr { margin-left: auto; color: var(--rot); font-weight: 700; font-size: 14px; }
.live-zeile { display: flex; gap: 10px; padding: 4px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.live-zeile.wichtig { color: var(--rot); font-weight: 700; }
.ticker-eintrag { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ticker-eintrag p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.ticker-eintrag.wichtig p { font-weight: 700; color: var(--rot); }

/* Personenkartei */
.person { border: 1px solid var(--linie); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.person summary { cursor: pointer; }
.person .formular { margin: 10px 0 0; max-width: none; }
.person-artikel { margin: 8px 0 0; font-size: 14px; }
.person-artikel a { color: var(--rot); }

/* Verpixeln */
.verpixeln { max-width: 1000px; }
.pixel-flaeche { position: relative; display: inline-block; align-self: flex-start; cursor: crosshair; touch-action: none; user-select: none; max-width: 100%; }
.pixel-flaeche img { max-height: 70vh; width: auto; max-width: 100%; }
.pixel-kasten { position: absolute; border: 2px solid var(--rot); background: repeating-conic-gradient(rgba(0,0,0,.35) 0 25%, rgba(255,255,255,.35) 0 50%) 0 0 / 12px 12px; pointer-events: none; }

/* Fortschritt (Hochladen und Schritte mit Haken) */
.balken { display: block; height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; margin-top: 4px; max-width: 260px; }
.balken > span { display: block; height: 100%; width: 0; background: var(--rot); transition: width .4s; }
.balken.gross { height: 12px; max-width: none; border-radius: 6px; }
.upload-fortschritt { background: var(--hell); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.upload-text { display: flex; justify-content: space-between; font-weight: 600; }
.schritte { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.schritte li { color: var(--grau); padding-left: 26px; position: relative; }
.schritte li::before { content: "○"; position: absolute; left: 4px; }
.schritte li.fertig { color: var(--ok-text); }
.schritte li.fertig::before { content: "✓"; font-weight: 900; }
.schritte li.aktiv { color: var(--text); font-weight: 700; }
.schritte li.aktiv::before { content: "◌"; animation: drehen 1s linear infinite; }
.schritte .prozent { font-weight: 800; color: var(--rot); }
@keyframes drehen { to { transform: rotate(360deg); } }
.status.in_arbeit { background: var(--hell); color: var(--text); }
.status.fehler { background: var(--fehler-bg); color: var(--fehler-text); }
.eintrag-fehler .eintrag-titel { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--fehler-text); }

@media (max-width: 600px) {
  .kacheln.vier { grid-template-columns: 1fr 1fr; }
  .zwei-spalten { grid-template-columns: 1fr; }
  .live-mehr { margin-left: 0; }
}

/* ===== Dunkelmodus: folgt automatisch der Einstellung von Handy oder PC ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --flaeche: #171b21;
    --text: #e4e8ec;
    --grau: #9aa5b1;
    --linie: #2a3038;
    --hell: #1d2229;
    --rand: #3a424c;
    --vorspann: #c3cad2;
    --logo-dunkel: #2a3038;
    --dunkel: #07090b;
    --ok-bg: #14301d; --ok-text: #7fd39a;
    --fehler-bg: #3a1218; --fehler-text: #ff9aa8;
    --gelb-bg: #33290a; --gelb-text: #f3cf6b; --gelb-rand: #5c4a10;
    --verlauf-a: #1d2229; --verlauf-b: #262c34;
  }
  .dachzeile, .zurueck a, .aktualisiert, .update-zeit, .live-mehr, .fall-akte a, .kommentar-kopf a, .person-artikel a, .schritte .prozent { color: #ff5a6e; }
  .rubriken a:hover, .rubriken a.aktiv { color: #ff5a6e; }
  .aufmacher a:hover h2, .karte a:hover h3, .meldungszeile:hover strong, .treffer:hover strong, .eintrag-titel:hover, .meistgelesen a:hover strong { color: #ff5a6e; }
  .knopf.rot { color: #ff5a6e; border-color: #ff5a6e; }
  .ohne-bild { color: #5f6b78; }
}

/* Fotovorschau beim Auswählen und Artikel-Vorschau */
.foto-vorschau { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.foto-vorschau:empty { display: none; }
.foto-vorschau figure { margin: 0; width: 140px; font-weight: 400; }
.foto-vorschau img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 2px solid var(--linie); }
.foto-vorschau figcaption { font-size: 12px; color: var(--grau); margin-top: 2px; }
.foto-vorschau .titel img { border-color: var(--rot); }
.foto-vorschau .titel figcaption { color: var(--rot); font-weight: 700; }
.foto-vorschau .zu-viel img { opacity: .35; }
.vorschau-leiste { max-width: 740px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--gelb-bg); color: var(--gelb-text); border: 1px solid var(--gelb-rand); border-radius: 8px; padding: 10px 14px; }

/* Titelbild für Besucher kleiner, aber immer im Format 16:9 (Felix' Wunsch 2026-11-21) */
.einzel figure { max-width: 620px; margin-left: auto; margin-right: auto; }
.einzel figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.top { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } }
/* Startseite ohne Bilder: Aufmacher und Karten als reine Textblöcke */
.aufmacher { border-top: 4px solid var(--rot); padding-top: 4px; }
.aufmacher h2 { font-size: 40px; }
.karte { border-top: 2px solid var(--text); padding-top: 2px; }
@media (max-width: 600px) { .aufmacher h2 { font-size: 29px; } }

/* ===== Handy: Menü-Knopf, Lupe, Kopf blendet sich beim Lesen aus, Nach-oben-Knopf ===== */
.kopf-knoepfe { display: none; }
.symbol-knopf { background: var(--hell); border: 1px solid var(--rand); border-radius: 8px; font-size: 20px; line-height: 1; width: 44px; height: 44px; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.nach-oben { position: fixed; right: 16px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rot); color: #fff; font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .3); z-index: 20; }
.nach-oben[hidden] { display: none; }
@media (max-width: 600px) {
  .kopf { transition: transform .25s ease; }
  .kopf.weg { transform: translateY(-100%); }
  .kopf-innen { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .kopf-knoepfe { display: flex; gap: 8px; margin-left: auto; }
  .kopf .suchfeld { display: none; }
  .kopf.suche-offen .suchfeld { display: flex; }
  .kopf .suchfeld input { font-size: 16px; padding: 10px 12px; }   /* 16px: iPhone zoomt sonst beim Antippen */
  .kopf .suchfeld button { min-width: 44px; }
  .kopf .rubriken { display: none; }
  .kopf.menue-offen .rubriken { display: block; }
  .kopf.menue-offen .rubriken .breit { flex-direction: column; gap: 0; }
  .kopf.menue-offen .rubriken a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--linie); border-left: 3px solid transparent; }
  .kopf.menue-offen .rubriken a.aktiv { border-bottom-color: var(--linie); border-left-color: var(--rot); padding-left: 10px; }
  .admin-leiste { flex-basis: 100%; gap: 8px 12px; }
  .inhalt { padding-top: 16px; }
  .rubrik-titel { font-size: 26px; }
  .aufmacher .vorspann { font-size: 17px; }
  .karte h3 { font-size: 20px; }
  .raster { gap: 20px; }
  .formular input:not([type=checkbox]), .formular textarea, .formular select { font-size: 16px; }
  .update, .live-zeile, .ticker-eintrag { flex-direction: column; gap: 2px; }
  .update-zeit { min-width: 0; }
  .kommentar-form .knopf, .update-form .knopf { align-self: stretch; text-align: center; }
  .nach-oben { right: 12px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kopf { transition: none; } }

/* Liveticker im Artikel und Eilmeldung aus dem Artikel */
.eil-box { border: 1px solid var(--linie); border-left: 4px solid var(--rot); border-radius: 8px; padding: 16px; background: var(--flaeche); }
.eil-box h3 { margin: 0; font-size: 18px; }
.update-box.live-an { border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot) inset; }
.updates.live { background: var(--flaeche); border: 2px solid var(--rot); border-radius: 8px; }
.updates.live h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; color: var(--text); }
.updates.live h3 small { font-weight: 400; color: var(--grau); font-size: 12px; letter-spacing: 0; }
.updates.live .update { padding: 10px 0; }
.updates.live .update p { font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.update.wichtig p { color: var(--rot); font-weight: 700; }
.dachzeile .live-punkt, .meldungszeile .live-punkt { font-size: 10px; padding: 1px 6px; margin-right: 4px; letter-spacing: .5px; }
@media (prefers-color-scheme: dark) { .update.wichtig p { color: #ff5a6e; } }

/* Bildbetrachter mit Pfeilen (Fotos im Artikel) */
.foto-link { display: block; cursor: zoom-in; }
.bildbetrachter { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.bildbetrachter[hidden] { display: none; }
.bildbetrachter img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 4px; user-select: none; }
.bb-pfeil, .bb-zu { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.bb-pfeil { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 36px; padding-bottom: 4px; }
.bb-pfeil:hover, .bb-zu:hover { background: rgba(255, 255, 255, .28); }
.bb-links { left: 16px; }
.bb-rechts { right: 16px; }
.bb-zu { top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.bb-zaehler { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; font-weight: 600; }
.bildbetrachter.einzeln .bb-pfeil, .bildbetrachter.einzeln .bb-zaehler { display: none; }
@media (max-width: 600px) {
  .bildbetrachter img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .bb-pfeil { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; }
  .bb-links { left: 18px; }
  .bb-rechts { right: 18px; }
  .bb-zaehler { bottom: 32px; }
}

/* Fußleiste immer ganz unten, auch auf kurzen Seiten */
html { height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .inhalt { flex: 1 0 auto; width: 100%; }
body > .fuss { flex-shrink: 0; }

/* Bearbeiten-Seite: übersichtlich, Liveticker oben */
.bearbeiten { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.bearb-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bearb-kopf h2 { font-family: var(--serif); font-size: 28px; margin: 2px 0 6px; }
.bearb-kopf .status, .bearb-kopf .live-punkt { margin-right: 6px; }
.schnell-raster { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.schnell-spalte { display: flex; flex-direction: column; gap: 16px; }
.karte-box { display: flex; flex-direction: column; gap: 12px; }
.karte-box h3 { margin: 0; font-size: 18px; }
.box-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.knopf.klein { padding: 6px 12px; font-size: 14px; }
.klein-text { font-size: 14px; margin: 0; }
.zeile-knoepfe { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.update-liste { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--linie); }
.update-liste .update-zeile { font-size: 14px; }
.discord-box { flex-direction: row; }
.bearb-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.bearb-form label.zeile { flex-direction: row; align-items: center; font-weight: 400; }
.bearb-form input:not([type=checkbox]), .bearb-form textarea, .bearb-form select, .karte-box input:not([type=checkbox]), .karte-box textarea { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--rand); border-radius: 6px; width: 100%; background: var(--flaeche); color: var(--text); }
.bearb-form textarea { resize: vertical; }
.aufklapp { border: 1px solid var(--linie); border-radius: 8px; padding: 0; }
.aufklapp > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::after { content: "▾"; margin-left: auto; color: var(--grau); transition: transform .2s; }
.aufklapp[open] > summary::after { transform: rotate(180deg); }
.aufklapp > summary .hinweis { font-weight: 400; font-size: 14px; }
.aufklapp-inhalt { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.karte-box.aufklapp { padding: 0; }
.aufklapp.gefahr > summary { color: var(--fehler-text); }
.mini-titel { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; }
.aktionsleiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--flaeche); border-top: 1px solid var(--linie); margin: 4px -18px -18px; padding: 12px 18px; border-radius: 0 0 10px 10px; }
.aktionsleiste .knopf.gross { align-self: auto; }
.faktencheck-banner { display: block; background: var(--gelb-bg); color: var(--gelb-text); border: 1px solid var(--gelb-rand); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.faktencheck-ok { margin: 0; }
@media (max-width: 760px) {
  .schnell-raster { grid-template-columns: 1fr; }
  .bearb-kopf h2 { font-size: 24px; }
  .aktionsleiste .knopf { flex: 1 1 auto; text-align: center; }
}
.discord-schalter { margin: 0; }
.discord-schalter label { font-size: 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
