/* KHM RetroLogic – Hausfarben: Palette „Schieferblau" (Thilo 07.10.2026) */
:root {
  --schiefer-tief: #1B2333;     /* Schrift */
  --schiefer: #2E3F5C;          /* Akzent, Links, Kopfband */
  --schiefer-mittel: #4A6A9B;   /* Strich unter dem Titel, Hover */
  --schiefer-hell: #B7C6DD;     /* Strich auf dem Kopfband */
  --schiefer-grund: #F5F7FA;    /* Seitengrund */
  --schiefer-tint: #E9EDF4;     /* Symbolflächen, Markierungen */
  --khm-blau: var(--schiefer); --khm-blau-dunkel: var(--schiefer-tief); --khm-blau-hell: var(--schiefer-tint);
  --bg: var(--schiefer-grund); --card: #FFFFFF; --text: var(--schiefer-tief); --muted: #56627A; --line: #DEE3EB; --line-strong: var(--schiefer-hell);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "tnum" 1; font-size: 15px; line-height: 1.5; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 56px 24px 48px; }
/* Kopfband in voller Breite. Ohne Band: Klasse "band" am body entfernen und khm-logo.svg statt khm-logo-weiss.svg einsetzen. */
.kopf { text-align: center; margin-bottom: 44px; }
.kopf h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--schiefer-mittel); margin: 12px auto 0; border-radius: 2px; }
body.band main { padding-top: 0; }
body.band .kopf { margin: 0 calc(50% - 50vw) 40px; padding: 44px 24px 36px; background: var(--schiefer); }
body.band .kopf h1 { color: #FFFFFF; }
body.band .kopf p { color: var(--schiefer-grund); }
body.band .kopf h1::after { background: var(--schiefer-hell); }
.kopf img { width: 220px; max-width: 70vw; height: auto; display: block; margin: 0 auto 18px; }
/* Michroma hat nur einen Schnitt; die Kontur in Schriftfarbe macht ihn fett (wächst mit der Schriftgröße). */
.kopf h1 { font-family: Michroma, Inter, system-ui, sans-serif; font-size: 25px; font-weight: 400; -webkit-text-stroke: 0.045em currentColor; margin: 0 0 4px; letter-spacing: 0.02em; }
.kopf p { margin: 0; color: var(--muted); font-size: 14.5px; }
h2.bereich { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 30px 0 12px; }
h2.bereich:first-of-type { margin-top: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
/* Ungruppiert: Kacheln mittig umbrechen, eine übrig gebliebene Kachel steht zentriert statt links. */
.kacheln.mittig { display: flex; flex-wrap: wrap; justify-content: center; }
.kacheln.mittig .kachel { flex: 0 1 285px; min-width: 250px; }
.kachel { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; color: inherit; text-decoration: none; min-height: 168px; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.kachel:hover, .kachel:focus-visible { border-color: var(--schiefer-mittel); box-shadow: 0 6px 20px rgba(27, 35, 51, 0.10); transform: translateY(-2px); outline: none; }
.kachel.inaktiv { opacity: 0.6; cursor: default; }
.kachel.inaktiv:hover { transform: none; box-shadow: none; border-color: var(--line); }
.kachel .oben { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.symbol { width: 44px; height: 44px; border-radius: 11px; background: var(--khm-blau-hell); color: var(--khm-blau); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.symbol svg { width: 24px; height: 24px; }
.pille { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--schiefer-tint); color: var(--schiefer); white-space: nowrap; }
.pille.beta { background: #FFF2DC; color: #8A5300; }
.pille.pilot { background: var(--schiefer-tint); color: var(--schiefer); }
.pille.entwurf { background: #EEE8FB; color: #5B3FA3; }
.kachel h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 3px; letter-spacing: -0.01em; }
.kachel p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.kachel .unten { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.kachel .unten .oeffnen { color: var(--khm-blau); font-weight: 500; }
.kachel:hover .unten .oeffnen::after { content: " →"; }
.leer.abstand { margin-top: 24px; }
.leer { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: 13.5px; text-align: center; }
footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 24px 26px; }
@media (max-width: 560px) { main { padding: 36px 16px 32px; } .kopf img { width: 170px; } .kopf h1 { font-size: 19px; } .kacheln.mittig .kachel { flex-basis: 100%; min-width: 0; } }

/* --- Konto-Leiste im Kopfband der Startseite ----------------------------------- */
.konto { position: absolute; top: 14px; right: 24px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--schiefer-hell); }
.konto a, .konto button { color: #FFFFFF; text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.konto a:hover, .konto button:hover { text-decoration: underline; }
.konto form { margin: 0; }
body.band .kopf { position: relative; }

/* --- Schmale Kopfleiste der Unterseiten ---------------------------------------- */
.leiste { background: var(--schiefer); color: #FFFFFF; }
.leiste-innen { max-width: 1100px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.marke img { width: 62px; height: auto; }
.marke span { font-family: Michroma, Inter, system-ui, sans-serif; font-size: 15px; -webkit-text-stroke: 0.045em currentColor; letter-spacing: 0.02em; }
.leiste nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.leiste nav a, .leiste nav button { color: #FFFFFF; text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.leiste nav a:hover, .leiste nav button:hover { text-decoration: underline; }
.leiste nav a.hier { font-weight: 600; border-bottom: 2px solid var(--schiefer-hell); padding-bottom: 2px; }
.leiste nav { flex-wrap: wrap; row-gap: 4px; }
.leiste nav form { margin: 0; }
.seite { max-width: 1100px; padding-top: 32px; }
.seite h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.seite .unterzeile { color: var(--muted); margin: 0 0 24px; }
.zurueck { display: inline-block; font-size: 13.5px; color: var(--schiefer); text-decoration: none; margin-bottom: 14px; }
.zurueck:hover { text-decoration: underline; }

/* --- Karten, Formulare, Tabellen ----------------------------------------------- */
.karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.karte h2 { font-size: 16.5px; font-weight: 600; margin: 0 0 4px; }
.karte .hinweis { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.karte-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.karte-kopf .hinweis { margin-bottom: 0; }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-width: 420px; }
.feld label { font-size: 13px; font-weight: 500; }
.feld input { font: inherit; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FFFFFF; color: var(--text); }
.feld input:focus { outline: 2px solid var(--schiefer-mittel); outline-offset: 0; border-color: var(--schiefer-mittel); }
.feld input[readonly] { background: var(--schiefer-grund); color: var(--muted); }
.feld .klein { font-size: 12.5px; color: var(--muted); }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.haken { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.haken:hover { border-color: var(--schiefer-hell); }
.haken input { margin-top: 3px; accent-color: var(--schiefer); width: 16px; height: 16px; flex-shrink: 0; }
.haken strong { display: block; font-weight: 500; }
.haken small { color: var(--muted); font-size: 12.5px; }
.haken.gesperrt { opacity: 0.65; cursor: not-allowed; }
.gruppe { margin: 4px 0 18px; }
.gruppe-titel { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.knopf { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--schiefer); background: var(--schiefer); color: #FFFFFF; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--schiefer-tief); border-color: var(--schiefer-tief); }
.knopf.zweit { background: #FFFFFF; color: var(--schiefer); border-color: var(--line-strong); }
.knopf.zweit:hover { border-color: var(--schiefer); background: var(--schiefer-grund); }
.knopf.gefahr { background: #FFFFFF; color: #A12B1E; border-color: #E6C3BE; }
.knopf.gefahr:hover { background: #FBEDEB; border-color: #A12B1E; }
.knopfreihe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tabelle-rahmen { overflow-x: auto; }
table.liste { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.liste th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.liste td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste td.aktion { text-align: right; white-space: nowrap; }
table.liste a { color: var(--schiefer); font-weight: 500; text-decoration: none; }
table.liste a:hover { text-decoration: underline; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; }
.marke-klein { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--schiefer-tint); color: var(--schiefer); white-space: nowrap; }
.marke-klein.admin { background: var(--schiefer); color: #FFFFFF; }
.marke-klein.aus { background: #FBEDEB; color: #A12B1E; }
.leise { color: var(--muted); }
.meldung { border-radius: 10px; padding: 11px 14px; margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.meldung.ok { background: #EDF7EF; border-color: #BFDFC6; color: #1F5A2C; }
.meldung.fehler { background: #FBEDEB; border-color: #EBC4BE; color: #8A2418; }

/* --- Anmeldung ------------------------------------------------------------------ */
body.anmeldung { justify-content: center; align-items: center; background: var(--schiefer); padding: 24px 16px; }
.anmelde-karte { width: 100%; max-width: 400px; background: var(--card); border-radius: 16px; padding: 32px 30px 28px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); }
.anmelde-kopf { text-align: center; margin-bottom: 24px; }
.anmelde-kopf img { width: 120px; height: auto; margin: 0 auto 12px; display: block; }
.anmelde-kopf h1 { font-family: Michroma, Inter, system-ui, sans-serif; font-size: 19px; font-weight: 400; -webkit-text-stroke: 0.045em currentColor; letter-spacing: 0.02em; margin: 0; }
.anmelde-karte .feld { max-width: none; }
.anmelde-karte .knopf { width: 100%; justify-content: center; margin-top: 6px; }
.anmelde-fuss { text-align: center; color: var(--schiefer-hell); font-size: 12.5px; margin-top: 18px; }

/* --- Arbeitssicherheit ----------------------------------------------------------- */
:root { --as-gelb: #F2B705; --as-gelb-text: #6B4A00; --as-blau: #1F5FA8; --as-gruen: #1E7B4A; --as-rot: #B42318; }
.as-held { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; background: linear-gradient(135deg, var(--schiefer) 0%, #24324A 100%); color: #FFFFFF; border-radius: 18px; padding: 30px 32px; margin-bottom: 22px; }
.as-marke { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--as-gelb); }
.as-held h1 { font-size: 27px; line-height: 1.25; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.as-held-text > p:not(.as-marke) { margin: 0; color: var(--schiefer-hell); font-size: 15px; max-width: 560px; }
.as-held-text .as-druck-link { display: inline-flex; margin-top: 16px; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 8px; padding: 7px 12px; font-size: 13.5px; text-decoration: none; }
.as-held-text .as-druck-link:hover { background: rgba(255, 255, 255, 0.12); }
.as-notruf { background: #FFFFFF; color: var(--text); border-radius: 14px; padding: 18px 20px; border-top: 6px solid var(--as-rot); display: flex; flex-direction: column; }
.as-notruf-titel { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--as-rot); }
.as-notruf-nummer { font-size: 46px; font-weight: 700; line-height: 1.05; color: var(--as-rot); font-feature-settings: "tnum" 1; }
.as-notruf-text { font-weight: 600; margin-bottom: 8px; }
.as-notruf ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.as-notruf li + li { margin-top: 3px; }
.as-notruf-helfer { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.as-notruf-helfer dt { color: var(--muted); } .as-notruf-helfer dd { margin: 0; font-weight: 500; }

.as-sprung { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.as-sprung a { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.as-sprung a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27, 35, 51, 0.10); border-color: var(--schiefer-mittel); }
.as-sprung img { width: 100%; height: 74px; object-fit: cover; background: #FFFFFF; }
.as-sprung span { padding: 10px 14px 12px; font-weight: 600; font-size: 14.5px; display: flex; flex-direction: column; }
.as-sprung small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.as-bereich { margin-bottom: 40px; scroll-margin-top: 16px; }
.as-banner { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px; height: 170px; background: var(--schiefer); }
.as-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-banner > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 24px; background: linear-gradient(0deg, rgba(20, 27, 40, 0.85) 0%, rgba(20, 27, 40, 0.15) 70%); color: #FFFFFF; }
.as-banner h2 { margin: 0; font-size: 24px; font-weight: 600; }
.as-banner p { margin: 2px 0 0; color: #DDE4EE; }
.as-abschnitt-kopf h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.as-abschnitt-kopf p { margin: 0 0 18px; color: var(--muted); max-width: 760px; }

.as-thema { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.as-thema summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.as-thema summary::-webkit-details-marker { display: none; }
.as-thema summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--schiefer); border-bottom: 2px solid var(--schiefer); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.as-thema[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.as-thema summary:hover .as-thema-titel { color: var(--schiefer-mittel); }
.as-thema-titel { font-size: 17px; font-weight: 600; }
.as-thema-info { font-size: 12.5px; color: var(--muted); }
.as-gruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 20px 20px; }

.as-gruppe { border: 1px solid var(--line); border-left: 4px solid var(--schiefer-mittel); border-radius: 10px; padding: 14px 16px; background: #FFFFFF; }
.as-gruppe h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--schiefer); }
.as-gruppe.as-gefahr { border-left-color: var(--as-gelb); background: #FFFBEE; }
.as-gruppe.as-gefahr h4 { color: var(--as-gelb-text); }
.as-gruppe.as-psa { border-left-color: var(--as-blau); }
.as-gruppe.as-psa h4 { color: var(--as-blau); }
.as-gruppe.as-hilfe { border-left-color: var(--as-gruen); }
.as-gruppe.as-hilfe h4 { color: var(--as-gruen); }
.as-gruppe.as-brand { border-left-color: var(--as-rot); }
.as-gruppe.as-brand h4 { color: var(--as-rot); }
.as-gruppe.as-info { border-left-color: var(--line-strong); background: var(--schiefer-grund); }
.as-gruppe.as-zeichen { grid-column: 1 / -1; }
.as-punkte { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.as-punkte > li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.as-punkte > li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--schiefer-mittel); }
.as-gefahr .as-punkte > li::before { background: var(--as-gelb); }
.as-psa .as-punkte > li::before { background: var(--as-blau); }
.as-hilfe .as-punkte > li::before { background: var(--as-gruen); }
.as-brand .as-punkte > li::before { background: var(--as-rot); }
.as-punkte ul { margin: 4px 0 0; padding-left: 16px; color: var(--muted); }
.as-punkte a { color: var(--schiefer); }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.as-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; text-decoration: none; color: inherit; font-size: 12.5px; }
.as-chip:hover { border-color: var(--schiefer-mittel); }
.as-chip img { width: 34px; height: 34px; object-fit: contain; }
.as-chip span { display: flex; flex-direction: column; line-height: 1.25; }
.as-chip small { color: var(--muted); }
.as-legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.as-legende-eintrag { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; font-size: 13px; }
.as-legende-eintrag:hover { border-color: var(--schiefer-mittel); }
.as-legende-eintrag img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.as-legende-eintrag strong { display: block; font-size: 14px; }

.as-zeichen-intro { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin-bottom: 22px; align-items: start; }
.as-zeichen-intro > img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; }
.as-formen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.as-form { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--schiefer); text-decoration: none; color: inherit; font-size: 13px; }
.as-form span { color: var(--muted); }
.as-farbe-rot { border-left-color: #D7261E !important; }
.as-farbe-blau { border-left-color: var(--as-blau) !important; }
.as-farbe-gelb { border-left-color: var(--as-gelb) !important; }
.as-farbe-gruen { border-left-color: var(--as-gruen) !important; }
.as-farbe-rotflaeche { border-left-color: var(--as-rot) !important; }
.as-farbe-raute { border-left-color: #E5484D !important; }
.as-lexikon-gruppe { margin-bottom: 22px; scroll-margin-top: 16px; }
.as-lexikon-gruppe h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; padding-left: 12px; border-left: 5px solid var(--schiefer); }
.as-lexikon-gruppe h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.as-lexikon { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.as-schild { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; scroll-margin-top: 16px; }
.as-schild:target { border-color: var(--schiefer); box-shadow: 0 0 0 3px var(--schiefer-tint); }
.as-schild img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.as-schild h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 600; }
.as-schild p { margin: 0 0 6px; font-size: 13.5px; }
.as-schild .as-verhalten { color: var(--muted); margin: 0; }
.as-nr { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--schiefer-tint); color: var(--schiefer); }

.as-einleitung { max-width: 820px; margin: 0 0 16px; }
.as-gesetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.as-gesetz { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; }
.as-gesetz:hover { border-color: var(--schiefer-mittel); box-shadow: 0 4px 14px rgba(27, 35, 51, 0.08); }
.as-kurz { align-self: flex-start; font-weight: 700; font-size: 13px; color: #FFFFFF; background: var(--schiefer); border-radius: 6px; padding: 2px 8px; }
.as-gesetz-name { font-size: 14px; font-weight: 500; }
.as-extern { font-size: 12px; color: var(--muted); margin-top: auto; }
.as-dokumente { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.as-dokument { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.as-dokument:hover { border-color: var(--schiefer-mittel); }
.as-dokument span:last-child { display: flex; flex-direction: column; }
.as-dokument small { color: var(--muted); }
.as-pdf { font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--as-rot); border-radius: 6px; padding: 8px 7px; }
.as-quelle { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; max-width: 820px; }

/* Druckversion (/arbeitssicherheit/druck): Bildschirmansicht wie ein Blatt, Werkzeugleiste nur am Bildschirm */
.as-druckleiste { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--schiefer); color: #FFFFFF; padding: 10px 24px; }
.as-druckleiste p { margin: 0; font-size: 13.5px; color: var(--schiefer-hell); }
.as-druckleiste .knopfreihe { margin: 0; }
.as-druckleiste .knopf.zweit { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.as-blatt { max-width: 900px; margin: 24px auto; background: #FFFFFF; padding: 36px 44px; box-shadow: 0 2px 18px rgba(27, 35, 51, 0.10); border-radius: 6px; }
.as-blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 3px solid var(--schiefer); padding-bottom: 14px; margin-bottom: 18px; }
.as-blatt-kopf h1 { font-size: 22px; margin: 0; font-weight: 600; }
.as-blatt-kopf p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.as-blatt-kopf img { width: 110px; height: auto; }
.as-blatt .as-notruf { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; border: 1px solid #E8C9C6; border-top-width: 6px; margin-bottom: 20px; }
.as-blatt .as-notruf ol { flex-basis: 100%; }
.as-blatt .as-bereich { margin-bottom: 26px; }
.as-blatt .as-banner { height: 110px; }
.as-blatt .as-thema { border: 0; margin-bottom: 14px; }
.as-blatt .as-thema h3 { font-size: 17px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.as-blatt .as-gruppen { padding: 0; }
.as-blatt .as-lexikon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-blatt .as-gesetze { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-blatt .as-zeichen-intro { grid-template-columns: 220px minmax(0, 1fr); }
.as-gesetz .as-url { font-size: 11.5px; color: var(--muted); word-break: break-all; }

@media (max-width: 900px) {
  .as-held { grid-template-columns: 1fr; padding: 22px; }
  .as-sprung { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-gruppen { grid-template-columns: 1fr; }
  .as-legende { grid-template-columns: 1fr; }
  .as-zeichen-intro { grid-template-columns: 1fr; }
  .as-blatt { padding: 22px 18px; margin: 12px; }
}
@media (max-width: 560px) {
  .as-held h1 { font-size: 22px; }
  .as-formen { grid-template-columns: 1fr; }
  .as-banner { height: 130px; }
  .as-gruppen { padding: 0 12px 14px; }
  .as-lexikon, .as-blatt .as-lexikon, .as-blatt .as-gesetze { grid-template-columns: 1fr; }
}
@page { size: A4; margin: 14mm 13mm 16mm; }
@media print {
  /* Zweispaltiger Textfluss statt Raster: lange Gruppen laufen über Spalten und Seiten weiter, keine Leerseiten. */
  html, body { background: #FFFFFF !important; font-size: 10pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .leiste, .as-druckleiste, .as-sprung, footer, .as-druck-link { display: none !important; }
  main.seite { padding: 0; max-width: none; }
  .as-blatt { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .as-bereich { margin-bottom: 14px; }
  #brandschutz, #schilder, #gesetze { break-before: page; }
  .as-banner { height: 80px; border-radius: 8px; margin-bottom: 10px; }
  .as-banner > div { padding: 10px 16px; }
  .as-banner h2 { font-size: 18px; }
  .as-thema { margin-bottom: 10px; }
  .as-blatt .as-thema h3 { font-size: 14px; margin-bottom: 6px; break-after: avoid; }
  .as-gruppen, .as-blatt .as-gruppen { display: block; columns: 2; column-gap: 10px; padding: 0; }
  .as-gruppe { display: block; break-inside: auto; margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; }
  .as-gruppe h4 { font-size: 9pt; margin-bottom: 5px; break-after: avoid; }
  .as-gruppe.as-zeichen { column-span: all; }
  .as-punkte { font-size: 9pt; }
  .as-punkte > li { margin-bottom: 2px; break-inside: avoid; }
  .as-chips { gap: 4px; margin-top: 6px; break-inside: avoid; }
  .as-chip { padding: 2px 6px 2px 2px; font-size: 8pt; }
  .as-chip img { width: 24px; height: 24px; }
  .as-legende { gap: 6px; margin-bottom: 8px; }
  .as-legende-eintrag { padding: 6px; font-size: 8.5pt; break-inside: avoid; }
  .as-legende-eintrag img { width: 32px; height: 32px; }
  .as-zeichen-intro, .as-blatt .as-zeichen-intro { grid-template-columns: 180px minmax(0, 1fr); gap: 10px; margin-bottom: 12px; break-inside: avoid; }
  .as-form { padding: 6px 9px; font-size: 8.5pt; }
  .as-lexikon-gruppe { margin-bottom: 10px; break-inside: avoid; }
  .as-lexikon-gruppe h3 { font-size: 13px; margin-bottom: 6px; break-after: avoid; }
  .as-lexikon, .as-blatt .as-lexikon, .as-gesetze, .as-blatt .as-gesetze { display: block; columns: 2; column-gap: 10px; }
  .as-schild, .as-gesetz { break-inside: avoid; margin-bottom: 8px; }
  .as-schild { padding: 8px; gap: 10px; }
  .as-schild img { width: 44px; height: 44px; }
  .as-schild h4 { font-size: 10pt; }
  .as-schild p { font-size: 8.5pt; margin-bottom: 3px; }
  .as-gesetz { padding: 8px 10px; }
  .as-notruf { break-inside: avoid; }
  .as-quelle { font-size: 8pt; }
  a { color: inherit !important; text-decoration: none !important; }
}

@media (max-width: 560px) {
  .konto { position: static; justify-content: center; margin-bottom: 18px; }
  .leiste-innen { padding: 10px 16px; }
  .marke span { display: none; }
  .seite { padding-top: 22px; }
  .karte { padding: 18px 16px; }
  .karte-kopf { flex-direction: column; }
}
