/* Fundstelle – Gestaltung. Es werden keine Schriften aus dem Netz geladen. Sind Space Grotesk und Inter auf dem Gerät installiert, werden sie genutzt. Sonst greift die Systemschrift. */
:root {
  --grund: #f6f7f9; --weiss: #ffffff; --text: #111418; --grau: #4a5260; --linie: #dfe3e8; --linie2: #c5cbd3;
  --gelb: #f2b84b; --gelbhell: #fbe3b0; --punkt: #e0a12b; --ocker: #8a4f00; --rot: #a3261b; --gruen: #1d6b43;
  --titel: 'Space Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --lauf: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--lauf); font-size: 16px; line-height: 1.55; }
a { color: var(--ocker); }
a:hover { color: #5c3400; }
h1, h2, h3 { font-family: var(--titel); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
mark { background: var(--gelbhell); color: var(--text); padding: 0 2px; border-radius: 2px; }
small { font-size: 0.82em; }
.unsichtbar { position: absolute; left: -9999px; }
.sprung { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff; padding: 10px 14px; z-index: 50; }
.sprung:focus { left: 8px; top: 8px; }
.klein { font-size: 14px; color: var(--grau); }
.nb { white-space: nowrap; }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reihe.eng { gap: 4px 12px; }
:focus-visible { outline: 3px solid var(--punkt); outline-offset: 2px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--text); border-radius: 10px;
  background: var(--weiss); color: var(--text); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--grund); color: var(--text); }
.knopf.gelb { background: var(--gelb); border-color: var(--gelb); font-weight: 600; }
.knopf.gelb:hover { background: #e9ab36; }
.knopf.dunkel { background: var(--text); color: #fff; }
.knopf.rund { border-radius: 999px; }
.knopf.gross { min-height: 56px; padding: 0 26px; font-size: 18px; border-radius: 12px; }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 14px; border-color: var(--linie2); }
button.link { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: var(--ocker); text-decoration: underline; cursor: pointer; min-height: 32px; text-align: left; }
.wahl { min-height: 40px; padding: 0 12px; border: 1px solid var(--linie2); border-radius: 8px; background: var(--weiss); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.wahl[aria-pressed="true"] { background: var(--gelb); border-color: var(--text); font-weight: 600; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.marke { font-family: var(--titel); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.marke span { color: var(--punkt); }
.gebiete { display: flex; flex-wrap: wrap; gap: 2px; font-size: 15px; }
.gebiete a, .gebiete .folgt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--grau); text-decoration: none; border-bottom: 3px solid transparent; }
.gebiete a[aria-current] { color: var(--text); font-weight: 600; border-bottom-color: var(--punkt); }
.gebiete small { font-size: 11px; border: 1px solid var(--linie2); border-radius: 999px; padding: 0 7px; }
.kopfsuche { flex: 999 1 220px; display: flex; align-items: center; gap: 8px; border: 2px solid var(--text); border-radius: 10px; padding: 0 12px; min-height: 44px; background: var(--weiss); }
.kopfsuche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); min-height: 40px; }
.kopfsuche:focus-within { outline: 3px solid var(--punkt); outline-offset: 2px; }
.konto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 15px; }
.konto a:not(.knopf) { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.konto form { margin: 0; }
.fuss { padding: 24px 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--grau); border-top: 1px solid var(--linie); }

/* Seiten */
.seite { display: block; }
.held, .suchkopf, .uebersicht, .auswertung, .kacheln, .hinweisband, .suchflaeche { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.held { padding-top: 48px; padding-bottom: 32px; }
.held h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; line-height: 1.05; max-width: 900px; margin-bottom: 24px; text-wrap: balance; }
.grosssuche { display: flex; flex-wrap: wrap; gap: 12px; max-width: 880px; }
.grosssuche .feld { flex: 999 1 280px; display: flex; align-items: center; gap: 12px; background: var(--weiss); border: 2px solid var(--text); border-radius: 12px; padding: 0 16px; min-height: 56px; }
.grosssuche .feld:focus-within { outline: 3px solid var(--punkt); outline-offset: 2px; }
.grosssuche input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; color: var(--text); min-height: 50px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; padding-bottom: 32px; }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
a.kachel:hover { border-color: var(--text); color: var(--text); }
.kachel small { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }
.kachel strong { font-family: var(--titel); font-size: 24px; line-height: 1.2; }
.kachel span { font-size: 15px; color: var(--grau); }
.hinweisband { margin-bottom: 48px; }
.hinweisband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hinweisband > * { margin: 0; }
.hinweisband { background: var(--weiss); border: 2px solid var(--text); border-radius: 16px; padding: 20px 24px; max-width: 1232px; }
.schmal { max-width: 460px; margin: 48px auto; padding: 0 24px; }
.lesetext { max-width: 760px; margin: 32px auto 64px; padding: 0 24px; font-size: 17px; line-height: 1.6; }
.lesetext.breit { max-width: 900px; }
.pfad { font-size: 14px; color: var(--grau); margin: 0 0 8px; }
.hinweis { background: var(--weiss); border: 1px solid var(--linie2); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.fehler { background: #fdecea; border: 1px solid var(--rot); color: #6d140c; border-radius: 10px; padding: 12px 16px; }
.erfolg { background: #e8f5ee; border: 1px solid var(--gruen); color: #124a2e; border-radius: 10px; padding: 12px 16px; }
.formular { display: flex; flex-direction: column; gap: 16px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.formular input:not([type=checkbox]):not([type=radio]), .formular textarea, .filter input:not([type=checkbox]):not([type=radio]), select {
  min-height: 46px; border: 1px solid var(--linie2); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--weiss); min-width: 0; }
.formular p { margin: 0; }
.haken { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 15px; min-height: 40px; padding: 6px 0; }
.haken input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--text); }
.formular.einzeilig { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 24px; }
.formular.einzeilig label { flex: 1 1 280px; }
.pille { flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid var(--linie2); border-radius: 999px; padding: 0 14px; min-height: 40px; font-weight: 400 !important; }

/* Inhaltsübersicht */
.uebersicht { padding-top: 32px; padding-bottom: 64px; max-width: 980px; }
.uebersicht h1 small { font-size: 0.5em; color: var(--grau); font-weight: 500; }
.uebersicht h2 { font-size: 22px; margin: 36px 0 8px; }
.uebersicht h3 { font-size: 15px; font-family: var(--lauf); letter-spacing: 0; color: var(--grau); margin: 20px 0 6px; }
.zeile { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 12px; border-top: 1px solid var(--linie); color: var(--text); text-decoration: none; min-height: 44px; }
.zeile:hover { background: var(--weiss); color: var(--text); }
.zeile .nr { font-family: var(--titel); font-weight: 600; color: var(--ocker); }
.zeile .m { font-size: 13px; color: var(--grau); white-space: nowrap; }
.tarife { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; margin-top: 20px; }
.tarif { background: var(--weiss); border: 1px solid var(--linie2); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tarif.vor { background: var(--gelb); border-color: var(--gelb); }
.tarif small { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tarif strong { font-family: var(--titel); font-size: 34px; line-height: 1.1; }
.tarif span { font-size: 15px; flex: 1; }
.tarif .knopf { margin-top: 10px; }

/* Leseansicht */
body.leseseite { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.leiste { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 6px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: 14px; }
.leiste .pfad { margin: 0; }
.leiste .pfad a { color: var(--grau); text-decoration: none; }
.leiste .pfad strong { color: var(--text); }
.schalter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.schalter > div { display: flex; align-items: center; gap: 6px; }
.schalter span { color: var(--grau); }
.leser { flex: 1; min-height: 0; display: flex; }
.rand { flex: none; width: 270px; overflow-y: auto; padding: 20px 18px 40px; font-size: 15px; line-height: 1.45; position: relative; }
.rand.rechts { width: 320px; border-left: 1px solid var(--linie); }
.rand.links { border-right: 1px solid var(--linie); }
.rand .zu { display: none; }
body.ohne-gliederung #gliederung, body.ohne-entscheidungen #entscheidungen { display: none; }
.randtitel { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.randtitel.zwei { margin-top: 24px; }
.randtitel b { font-family: var(--titel); font-size: 14px; letter-spacing: 0; color: var(--text); background: var(--gelb); border-radius: 999px; padding: 1px 10px; }
.rand nav { display: flex; flex-direction: column; border-left: 2px solid var(--linie); }
.rand nav a { color: var(--text); text-decoration: none; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; }
.rand nav a.e2 { color: var(--grau); padding-left: 28px; }
.rand nav a:hover { border-left-color: var(--linie2); }
.rand nav a.hier { border-left-color: var(--punkt); color: var(--text); font-weight: 600; }
.ent { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ent strong { font-family: var(--titel); font-weight: 600; font-size: 15px; }
.ent span { font-size: 14px; color: var(--grau); }
.ent.hier { border: 2px solid var(--text); padding: 9px 13px; }
.spalten { flex: 1; min-width: 0; display: flex; }
.spalte { flex: 1 1 0; min-width: 0; overflow-y: auto; padding: 0 28px 120px; scroll-padding-top: 64px; position: relative; }
.spalte:focus { outline: none; }
.spalte + .spalte { border-left: 2px solid var(--text); }
.spalte[hidden] { display: none; }
.spaltenkopf { position: sticky; top: 0; z-index: 3; background: var(--grund); padding: 10px 0; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--linie2); }
.parwahl { flex: 1; min-width: 0; min-height: 40px; padding: 4px 10px; font-size: 15px; font-weight: 600; }
.strom { max-width: 780px; margin: 0 auto; }
body.neben .strom { max-width: none; }
.par { padding-top: 24px; scroll-margin-top: 56px; }
.par + .par, .par + .entscheidung { border-top: 2px solid var(--text); margin-top: 36px; }
.partitel { font-size: 30px; font-weight: 600; margin: 0 0 14px; }
.partitel span { color: var(--ocker); }
.gesetz { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 4px 18px; margin-bottom: 20px; }
.gesetz summary { cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); min-height: 40px; display: flex; align-items: center; gap: 10px; }
.gesetz summary small { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text); background: var(--gelb); border-radius: 999px; padding: 1px 10px; }
.gesetz > div { padding-bottom: 12px; }
.gesetz p { margin: 0 0 6px; }
.gesetz p.nr, .gesetz p.bst { display: grid; grid-template-columns: 28px minmax(0, 1fr); margin-left: 16px; }
.gesetz p.bst { margin-left: 44px; }
.gesetz p.fuss { font-size: 13px; color: var(--grau); }
.gesetz sup, .kommentar sup { font-size: 0.65em; }
.kommentar { font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; gap: 12px; }
.kommentar h3, .kommentar h4, .entscheidung h3 { margin: 14px 0 0; padding-left: 46px; scroll-margin-top: 64px; }
.kommentar h3, .entscheidung h3.g1 { font-family: var(--lauf); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.entscheidung h3.g1 { padding-left: 0; margin: 22px 0 8px; }
.kommentar h4 { font-family: var(--lauf); font-size: 1em; font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.rn { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; position: relative; scroll-margin-top: 64px; border-radius: 6px; }
.rn p { margin: 0; text-wrap: pretty; }
.rn div p + p { margin-top: 8px; }
.entscheidung .rn { transition: background 0.6s; }
.rn:target { background: var(--gelbhell); box-shadow: 0 0 0 6px var(--gelbhell); }
.rnnr { font-family: var(--titel); font-weight: 600; font-size: 0.95em; color: var(--ocker); text-decoration: none; text-align: right; padding-top: 1px; }
.rmk { position: absolute; right: 0; top: -6px; transform: translateY(-100%); min-height: 28px; padding: 0 10px; font: inherit; font-size: 12px; border: 1px solid var(--linie2); border-radius: 999px; background: var(--weiss); color: var(--grau); cursor: pointer; opacity: 0; }
.rn:hover .rmk, .rmk:focus-visible { opacity: 1; }
.hinweis em, p.hinweis { font-style: italic; }
p.hinweis { font-style: italic; margin: 0 0 16px; }
.leer { color: var(--grau); }
body.kompakt .kommentar { font-size: 15px; line-height: 1.5; gap: 9px; }
body.kompakt .gesetz { font-size: 14px; line-height: 1.5; }
body.kompakt .partitel { font-size: 24px; }
body.kompakt .rn { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
body.kompakt .kommentar h3, body.kompakt .kommentar h4 { padding-left: 38px; }
.sperre { background: var(--weiss); border: 2px solid var(--text); border-radius: 18px; padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.sperre h3 { margin: 0 0 4px; font-size: 22px; }
.sperre p { margin: 0 0 12px; color: var(--grau); }
.nachlader { height: 1px; }
.laedt::after { content: 'Lädt …'; display: block; text-align: center; color: var(--grau); padding: 16px; }
.entscheidung { padding-top: 24px; }
.entscheidung .vt p { margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--grau); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--gelb); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip.hell { background: var(--weiss); border: 1px solid var(--linie2); font-weight: 400; }
.unten { display: none; }
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(520px, calc(100vw - 32px)); color: var(--text); }
dialog::backdrop { background: rgba(17, 20, 24, 0.5); }
dialog h2 { margin: 0; font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 40; font-size: 15px; }

/* Suche */
.suchkopf { padding-top: 28px; }
.reiter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; margin-top: 14px; border-bottom: 1px solid var(--linie); }
.reiter a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; color: var(--grau); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiter a[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--punkt); }
.reiter b { font-size: 13px; font-weight: 600; background: var(--weiss); border: 1px solid var(--linie2); border-radius: 999px; padding: 0 8px; }
.reiter .klein { margin-left: auto; padding: 8px 0; }
.suchflaeche { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 20px; padding-bottom: 64px; }
.filter { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.filter fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }
.filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--grau); flex: 1; }
.filter .haken { color: var(--text); padding: 2px 0; }
.trefferliste { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.trefferliste > p { margin: 0; }
.treffer { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 16px 20px; }
.treffer h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.treffer h2 a { color: var(--text); }
.treffer h2 small { font-family: var(--lauf); font-weight: 400; color: var(--grau); letter-spacing: 0; margin-left: 6px; }
.treffer p { margin: 0 0 6px; }
.direkt { display: flex; align-items: center; min-height: 52px; padding: 0 20px; background: var(--gelb); border-radius: 14px; color: var(--text); text-decoration: none; font-size: 17px; gap: 6px; }
.blaettern { display: flex; gap: 10px; }

/* Auswertung */
.auswertung { padding-top: 28px; padding-bottom: 64px; max-width: 1400px; }
.awkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 20px; }
.awkopf h1 { margin: 0; }
.zeitwahl { display: flex; border: 1px solid var(--text); border-radius: 10px; overflow: hidden; }
.zeitwahl a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; color: var(--text); text-decoration: none; font-size: 14px; border-left: 1px solid var(--text); }
.zeitwahl a:first-child { border-left: 0; }
.zeitwahl a[aria-current] { background: var(--text); color: #fff; font-weight: 600; }
.export { margin-left: auto; font-size: 14px; color: var(--grau); display: flex; gap: 12px; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.kennzahlen > div { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.kennzahlen b { font-family: var(--titel); font-size: 34px; line-height: 1.1; }
.kennzahlen span { font-weight: 600; font-size: 15px; }
.kennzahlen small { color: var(--grau); }
.karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.karte.breit { grid-column: 1 / -1; }
.karte h2 { margin: 0 0 12px; font-size: 20px; }
.karte h3 { margin: 18px 0 6px; font-family: var(--lauf); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }
.karte p { margin: 0 0 10px; }
.karte b.gross { font-family: var(--titel); font-size: 26px; }
.rollen { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th { text-align: left; font-weight: 600; color: var(--grau); font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--text); white-space: nowrap; }
.tab.sortierbar th { cursor: pointer; }
.tab td { padding: 7px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tab .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab tr.aus td { color: var(--grau); }
.tab td.mitbalken { background: linear-gradient(to right, var(--gelbhell) var(--w), transparent var(--w)); }
.marke2 { border: 1px solid var(--linie2); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.verlauf { width: 100%; height: auto; display: block; }
.verlauf .saeule { fill: var(--text); }
.verlauf .punkt { fill: var(--punkt); }
.verlauf .achse { stroke: var(--linie2); }
.verlauf text { font-size: 11px; fill: var(--grau); font-family: var(--lauf); }
details summary { cursor: pointer; min-height: 36px; }

/* Schmale Bildschirme */
@media (max-width: 1100px) {
  .rand.rechts { width: 280px; }
  .rand.links { width: 230px; }
}
@media (max-width: 900px) {
  .karten { grid-template-columns: minmax(0, 1fr); }
  .kopf { padding: 6px 14px; gap: 4px 14px; }
  .gebiete .folgt { display: none; }
  .leiste { padding: 6px 14px; }
  .schalter [aria-label="Ansicht"], .schalter [aria-label="Randspalten"] { display: none; }
  .spalte { padding: 0 16px 120px; }
  #spalteB { display: none !important; }
  .rand { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto !important; max-height: 72vh; z-index: 20; background: var(--grund); border: 0 !important;
    border-top: 2px solid var(--text) !important; border-radius: 18px 18px 0 0; padding: 18px 18px calc(80px + env(safe-area-inset-bottom)); display: none !important; box-shadow: 0 -12px 40px rgba(17, 20, 24, 0.25); }
  .rand.offen { display: block !important; }
  .rand .zu { display: inline-flex; position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--text); }
  .unten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; flex: none; background: var(--weiss); border-top: 1px solid var(--linie); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 25; position: relative; }
  .unten a, .unten button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 10px; background: none; color: var(--text); text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
  .unten .an { background: var(--gelbhell); font-weight: 600; }
  body.leseseite .kopfsuche, body.leseseite .konto a:not(.knopf), body.leseseite .leiste .pfad span { display: none; }
  body.leseseite .kopf { flex-wrap: nowrap; justify-content: space-between; }
  body.leseseite .konto .knopf { min-height: 40px; padding: 0 14px; }
  .leiste { flex-wrap: nowrap; }
  .leiste .pfad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rand .randtitel:first-child { padding-right: 48px; }
  .partitel { font-size: 24px; }
  .kommentar { font-size: 16px; }
  .rn { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .kommentar h3, .kommentar h4 { padding-left: 34px; }
  .rmk { opacity: 1; position: static; transform: none; grid-column: 2; justify-self: start; border: 0; background: none; padding: 0; min-height: 24px; text-decoration: underline; }
  .reiter .klein { display: none; }
  .export { margin-left: 0; }
}
@media print {
  .kopf, .leiste, .rand, .unten, .spaltenkopf, .rmk, .fuss { display: none !important; }
  body.leseseite { height: auto; overflow: visible; display: block; }
  .leser, .spalten { display: block; }
  .spalte { overflow: visible; }
}
