/* TV Jebenhausen Portal – Vereinsfarben: Gelb #F4C80F, Dunkelgrau #404042, Weiß.
   Farben kommen als CSS-Variablen aus den Einstellungen (Verwaltung → Einstellungen). */

:root {
  --primaer: #f4c80f;
  --auf-primaer: #1a1a1a;
  --dunkel: #404042;
  --auf-dunkel: #fff;
  --hintergrund: #f5f5f3;
  --karte: #fff;
  --text: #222224;
  --leise: #6b6b70;
  --linie: #e3e3e0;
  --ok: #1f7a3a;
  --fehler: #b3261e;
  --warnung: #8a5a00;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--schrift); color: var(--text); background: var(--hintergrund);
}
a { color: inherit; text-decoration-color: var(--primaer); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.karte > h2:first-child, .karte > h1:first-child { margin-top: 0; }
code { background: #f0f0ec; padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.icon { flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.mitte { text-align: center; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- Kopfbereich ---------- */
.kopf { background: var(--dunkel); color: var(--auf-dunkel); border-bottom: 4px solid var(--primaer); position: sticky; top: 0; z-index: 20; }
.kopf-innen { max-width: 1200px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; }
.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.logo { height: 48px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marke-text strong { font-size: 1.1rem; letter-spacing: .02em; }
.marke-text small { color: var(--primaer); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.menue { display: flex; align-items: center; gap: .25rem; }
.menue a, .link-knopf {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 10px;
  color: inherit; text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer;
}
.menue a:hover, .link-knopf:hover { background: rgba(255,255,255,.1); }
.menue a.aktiv { background: var(--primaer); color: var(--auf-primaer); }
.menu-knopf { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-knopf span:not(.sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--auf-dunkel); border-radius: 2px; }

@media (max-width: 720px) {
  .logo { height: 40px; }
  .menu-knopf { display: block; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
           background: var(--dunkel); padding: .5rem 1rem 1rem; border-bottom: 4px solid var(--primaer); }
  .menue-offen .menue { display: flex; }
  .menue a, .menue .link-knopf { padding: .8rem; font-size: 1.05rem; width: 100%; text-align: left; }
}

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.fuss { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; padding: 1.25rem 1rem; color: var(--leise); font-size: .85rem; border-top: 1px solid var(--linie); }
.fuss a { color: inherit; }

.karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.25rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 440px; margin: 1.5rem auto; }
.schmal-links { max-width: 640px; }
.karte.leer { text-align: center; color: var(--leise); padding: 2rem 1rem; }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.raster-2 > .karte { margin-bottom: 0; }
.titelzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.titelzeile h1 { margin: .2em 0; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.begruessung h1 { margin-bottom: .1em; }
.begruessung p { margin-top: 0; }

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.kachel {
  --kachel: var(--primaer); --auf-kachel: var(--auf-primaer);
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem; min-height: 96px;
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); text-decoration: none; color: var(--text);
  border: 2px solid transparent; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.kachel:hover, .kachel:focus-visible { transform: translateY(-2px); border-color: var(--kachel); box-shadow: 0 8px 24px rgba(0,0,0,.09); outline: none; }
.kachel-icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--kachel); color: var(--auf-kachel); }
.kachel-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.kachel-text strong { font-size: 1.08rem; }
.kachel-text small { color: var(--leise); font-size: .88rem; line-height: 1.35; }
.kachel-gross { grid-column: 1 / -1; background: var(--dunkel); color: var(--auf-dunkel); }
.kachel-gross .kachel-text small { color: rgba(255,255,255,.75); }
.kachel-verwaltung { --kachel: var(--dunkel); --auf-kachel: var(--auf-dunkel); }
.abzeichen { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: .15em .55em; border-radius: 99px; background: #ececea; color: var(--leise); }
.kachel .abzeichen { position: absolute; top: .6rem; right: .6rem; }
.abzeichen-gelb { background: var(--primaer); color: var(--auf-primaer); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; min-height: 44px;
  border: 2px solid var(--primaer); border-radius: 11px; background: var(--primaer); color: var(--auf-primaer);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.knopf:hover { filter: brightness(.95); }
.knopf:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 2px; }
.knopf-gross { width: 100%; padding: .8rem 1.2rem; font-size: 1.05rem; }
.knopf-hell { background: #fff; border-color: var(--linie); color: var(--text); }
.knopf-hell:hover { border-color: var(--primaer); filter: none; }
.knopf-gefahr { background: #fff; border-color: #f0c8c5; color: var(--fehler); margin-top: .75rem; }
.knopf-klein { min-height: 36px; padding: .35rem .7rem; font-size: .88rem; }
td .knopf-gefahr, .formular-zeile .knopf-gefahr { margin-top: 0; }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; gap: .9rem; }
.formular label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.formular .karte { display: flex; flex-direction: column; gap: .9rem; }
.formular .karte > h2, .formular .karte > h3 { margin: .4rem 0 0; }
.formular label.haken, label.haken { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; cursor: pointer; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; width: 100%;
  border: 1.5px solid #cfcfca; border-radius: 10px; padding: .6rem .75rem; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: .15rem 0 0; accent-color: var(--dunkel); flex: none; }
input[type="color"] { padding: .2rem; width: 64px; height: 44px; }
input[type="file"] { padding: .45rem; }
fieldset { border: 1.5px solid var(--linie); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .8rem; margin: 0; }
legend { font-weight: 700; padding: 0 .4rem; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 1rem; }
.farbwahl label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.logo-vorschau { background: var(--dunkel); border-radius: 12px; padding: 1rem; display: inline-flex; align-self: flex-start; }
.logo-vorschau img { height: 90px; }
.formular-zeile { flex-wrap: nowrap; margin-bottom: .5rem; }
.formular-zeile input { min-width: 0; }
.formular-zeile .nr { max-width: 90px; }
@media (max-width: 560px) { .formular-zeile { flex-wrap: wrap; } }

/* ---------- Hinweise ---------- */
.hinweis { border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; border-left: 5px solid; background: #fff; box-shadow: var(--schatten); }
.hinweis ul { margin: .4rem 0; padding-left: 1.2rem; }
.hinweis-ok { border-color: var(--ok); }
.hinweis-fehler { border-color: var(--fehler); color: #5d1410; background: #fff6f5; }
.hinweis-warnung { border-color: var(--primaer); background: #fffbea; }
.hinweis-info { border-color: var(--dunkel); }
.ok-text { color: var(--ok); }

/* ---------- Tabellen ---------- */
.tabelle-rahmen { padding: 0; overflow: hidden; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabelle th, .tabelle td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle thead th { background: #fafaf8; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); white-space: nowrap; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle.kompakt th, .tabelle.kompakt td { padding: .5rem .7rem; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle .aktionen { text-align: right; white-space: nowrap; }
.tabelle .aktionen form { display: inline; }
.tabelle tr.inaktiv { opacity: .55; }
.mini-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primaer); color: var(--auf-primaer); vertical-align: middle; }

@media (max-width: 720px) {
  .tabelle:not(.matrix) thead { display: none; }
  .tabelle:not(.matrix), .tabelle:not(.matrix) tbody, .tabelle:not(.matrix) tr, .tabelle:not(.matrix) td { display: block; width: 100%; }
  .tabelle:not(.matrix) tr { padding: .6rem .9rem; border-bottom: 1px solid var(--linie); }
  .tabelle:not(.matrix) td { border: 0; padding: .15rem 0; text-align: left; }
  .tabelle:not(.matrix) td[data-label]::before { content: attr(data-label) ": "; color: var(--leise); font-size: .82rem; }
  .tabelle:not(.matrix) td.zahl { text-align: left; }
  .tabelle:not(.matrix) .aktionen { text-align: left; padding-top: .4rem; }
}

/* Jahresübersicht: horizontal scrollbar, erste Spalte fest */
.breit { overflow-x: auto; }
.matrix { min-width: 760px; }
.matrix .fix { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; box-shadow: 1px 0 0 var(--linie); }
.matrix thead .fix { background: #fafaf8; }
.matrix .gruppenzeile th { background: var(--dunkel); color: var(--auf-dunkel); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; position: sticky; left: 0; }
.matrix .hervor { background: #fffbea; font-weight: 700; }

.status-liste { list-style: none; padding: 0; margin: 0; }
.status-liste li { padding: .3rem 0; }
.status-liste .ok { color: var(--ok); }
.status-liste .fehlt { color: var(--fehler); font-weight: 600; }

/* ---------- Unternavigation einer App ---------- */
.unternav { display: flex; gap: .35rem; overflow-x: auto; margin: -.25rem 0 1rem; padding-bottom: .25rem; }
.unternav a { flex: none; padding: .45rem .9rem; border-radius: 99px; background: #fff; text-decoration: none; font-size: .92rem; box-shadow: var(--schatten); }
.unternav a.aktiv { background: var(--dunkel); color: var(--auf-dunkel); }

/* ---------- Erfassung ---------- */
.erfassung-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; align-items: end; }
.erfassung-kopf label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.erfassung-kopf p { grid-column: 1 / -1; margin: 0; }
.zaehler-gruppe h2 { display: flex; align-items: center; gap: .5rem; }
.zaehler-gruppe h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--primaer); }
.zaehler-zeile {
  display: grid; grid-template-columns: 1fr minmax(150px, 220px); gap: .4rem 1rem; align-items: center;
  background: #fff; border-radius: 12px; box-shadow: var(--schatten); padding: .8rem 1rem; margin-bottom: .6rem;
  border-left: 5px solid transparent;
}
.zaehler-zeile.erledigt { border-left-color: var(--ok); }
.zaehler-zeile.eingetragen { border-left-color: var(--primaer); }
.zaehler-zeile.warnung { border-left-color: var(--fehler); background: #fff8f7; }
.zaehler-info { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; cursor: pointer; }
.zaehler-info small { flex-basis: 100%; }
.zaehler-eingabe { position: relative; }
.zaehler-eingabe input { font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; padding-right: 3.6rem; }
.zaehler-eingabe .einheit { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--leise); font-size: .85rem; pointer-events: none; }
.zaehler-bemerkung { grid-column: 1 / -1; font-size: .88rem; }
.zaehler-bemerkung summary { color: var(--leise); cursor: pointer; width: max-content; }
.zaehler-bemerkung input { margin-top: .35rem; min-height: 38px; }
@media (max-width: 560px) { .zaehler-zeile { grid-template-columns: 1fr; } }
.speicherleiste { position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(to top, var(--hintergrund) 70%, transparent); }

/* ---------- Verbrauch (Balken) ---------- */
.balken-zeile { display: grid; grid-template-columns: 190px 1fr 230px; gap: .75rem; align-items: center; padding: .35rem 0; font-size: .9rem; }
.balken { height: 14px; background: #f0f0ec; border-radius: 7px; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--primaer); border-radius: 7px; }
.balken span.negativ { background: var(--fehler); }
.balken-wert { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .balken-zeile { grid-template-columns: 1fr; gap: .2rem; padding: .5rem 0; border-bottom: 1px solid var(--linie); } }

/* ---------- Textseiten ---------- */
.text-seite { max-width: 820px; }
.text-seite h2 { margin-top: 1.5em; }

/* ---------- Installation ---------- */
.install .karte { max-width: 640px; margin: 1.5rem auto; }

/* Profil (nur lesen) */
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; font-weight: 600; }
.zaehler-eingabe input[readonly] { background: #f3f3f0; color: var(--leise); }

/* Freigaben-Übersicht */
.freigaben-matrix { min-width: 0; }
.freigaben-matrix th { white-space: normal; min-width: 130px; vertical-align: bottom; }
.freigaben-matrix select { min-height: 38px; padding: .3rem .5rem; font-size: .9rem; }
.freigaben-matrix select.stufe-1 { background: #fffbea; border-color: var(--primaer); }
.freigaben-matrix select.stufe-2 { background: var(--primaer); color: var(--auf-primaer); border-color: var(--primaer); font-weight: 600; }
.freigaben-matrix select.stufe-0 { color: var(--leise); }
.zaehler-info small.standort { flex-basis: 100%; font-weight: 600; }
.zaehler-info small.info-text { flex-basis: 100%; color: var(--warnung); }
.mehrzeilig { white-space: normal; }

/* ---------- Analyse ---------- */
.analyse-steuerung { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }
.analyse-steuerung > label:first-child { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; min-width: 220px; }
.umschalter { display: inline-flex; border: 1.5px solid var(--linie); border-radius: 11px; overflow: hidden; }
.umschalter button { font: inherit; font-size: .92rem; border: 0; background: #fff; padding: .55rem .9rem; cursor: pointer; min-height: 42px; }
.umschalter button + button { border-left: 1.5px solid var(--linie); }
.umschalter button.aktiv { background: var(--dunkel); color: var(--auf-dunkel); font-weight: 600; }
.legende-kopf { display: flex; gap: .5rem; align-items: center; }
.legende-kopf .link-knopf { color: var(--text); text-decoration: underline; text-decoration-color: var(--primaer); padding: .2rem .3rem; }
.legende { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .85rem; padding: .35rem .7rem; border-radius: 99px;
  border: 1.5px solid var(--linie); background: #fff; cursor: pointer; }
.chip.aus { opacity: .45; text-decoration: line-through; }
.punkt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; vertical-align: middle; margin-right: .3rem; }
.diagramm { position: relative; width: 100%; touch-action: pan-y; }
.analyse .karte { position: relative; }
.diagramm-svg { display: block; overflow: visible; }
.diagramm-svg .raster { stroke: #ececea; }
.diagramm-svg .achse { stroke: #b9b9b4; }
.diagramm-svg .beschriftung { fill: var(--leise); font-size: 11px; font-family: var(--schrift); }
.diagramm-svg .leer { fill: var(--leise); font-size: 14px; font-family: var(--schrift); }
.diagramm-svg .markierung { fill: rgba(64,64,66,.06); }
.diagramm-tooltip { position: absolute; z-index: 5; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: .55rem .75rem;
  font-size: .85rem; pointer-events: none; max-width: 280px; }
.diagramm-tooltip div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diagramm-hinweis { margin-top: .6rem; }
.muster { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--primaer); vertical-align: middle; margin: 0 .2rem 0 .5rem; }
.muster-vorjahr { opacity: .35; }
.muster-jahr { margin-left: 0; }
td.mehr { color: var(--fehler); }
td.weniger { color: var(--ok); }

.chip.ohne-werte { border-style: dashed; }
@media (max-width: 560px) {
  .chip { font-size: .8rem; padding: .3rem .6rem; }
  .analyse-steuerung > label:first-child { min-width: 100%; }
  .titelzeile form select { width: auto; }
}

/* ---------- Öffentliche Startseite ---------- */
.start-held { display: flex; gap: 1.75rem; align-items: center; background: var(--dunkel); color: var(--auf-dunkel);
  border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; border-bottom: 5px solid var(--primaer); }
.start-held h1 { margin-top: 0; }
.start-held .start-text p { margin: .3rem 0 .8rem; color: rgba(255,255,255,.88); }
.start-held .start-text h2 { color: var(--primaer); font-size: 1.05rem; }
.start-logo { width: 140px; height: auto; flex: none; }
.knopf-auf-dunkel { background: transparent; color: var(--auf-dunkel); border-color: rgba(255,255,255,.4); }
.knopf-auf-dunkel:hover { border-color: var(--primaer); }
@media (max-width: 640px) {
  .start-held { flex-direction: column; text-align: center; padding: 1.25rem; gap: .75rem; }
  .start-held .zeile { justify-content: center; }
  .start-logo { width: 110px; }
  .start-held ul { display: inline-block; text-align: left; margin: 0 auto .5rem; }
}
.abschnitt { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; }
.kategorie { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); margin: 1.3rem 0 .5rem; }
.dokumente { display: grid; gap: .6rem; }
.dokument { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; box-shadow: var(--schatten); padding: .85rem 1rem; }
.dokument-typ { flex: none; display: grid; place-items: center; width: 52px; height: 60px; border-radius: 8px; font-weight: 800; font-size: .78rem;
  letter-spacing: .03em; background: var(--dunkel); color: var(--auf-dunkel); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.dokument-typ.typ-pdf { background: #b3261e; color: #fff; }
.dokument-typ.typ-docx, .dokument-typ.typ-doc, .dokument-typ.typ-odt { background: #2b5797; color: #fff; }
.dokument-typ.typ-xlsx, .dokument-typ.typ-xls, .dokument-typ.typ-ods { background: #1f7a3a; color: #fff; }
.dokument-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.dokument-text strong { font-size: 1.02rem; }
.dokument-aktionen { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .dokument { flex-wrap: wrap; }
  .dokument-aktionen { width: 100%; justify-content: flex-start; padding-left: 68px; }
}
.menue-offen-immer { display: flex !important; position: static !important; background: none !important; border: 0 !important; padding: 0 !important; flex-direction: row !important; }
.menue-offen-immer a { width: auto !important; }
.menue a.anmelden-knopf { background: var(--primaer); color: var(--auf-primaer) !important; font-weight: 600; }
.menue a.anmelden-knopf:hover { filter: brightness(.95); background: var(--primaer); }

/* Update */
.schritte { padding-left: 1.2rem; margin: 0; display: grid; gap: .35rem; }
.notfall-code { font: 700 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; background: #fffbea;
  border: 2px dashed var(--primaer); border-radius: 12px; padding: .7rem 1rem; display: inline-block; }
.nr-breit { max-width: 150px; min-height: 36px; padding: .3rem .6rem; }
.wird-gesendet { opacity: .6; pointer-events: none; }

.og-vorschau img { width: 100%; max-width: 420px; border-radius: 10px; box-shadow: var(--schatten); display: block; }

/* ---------- Online-Aufnahmeantrag ---------- */
.antrag-kopf p { max-width: 720px; }
.antrag-teil h2 { display: flex; align-items: center; gap: .6rem; margin-top: 0; }
.antrag-teil h2 .nr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primaer); color: var(--auf-primaer); font-size: .95rem; flex: none; }
.antrag-teil h3 { margin-top: 1.2rem; }
.antrag label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.antrag label.haken { flex-direction: row; align-items: flex-start; font-weight: 400; gap: .55rem; }
.antrag label.haken input { margin-top: .2rem; }
.felder-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem 1.2rem; margin: .4rem 0 .8rem; }
.felder-plz { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; }
.auswahl-reihe { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.auswahl-reihe legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: .35rem; width: 100%; }
.kaestchen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .25rem 1rem; margin: .3rem 0 .6rem; }
.kaestchen { padding: .45rem .55rem; border-radius: 9px; border: 1.5px solid transparent; }
.kaestchen:has(input:checked) { background: #fffbea; border-color: var(--primaer); }
.antrag .pflicht { background: #f7f7f4; border-radius: 10px; padding: .7rem .8rem; margin-bottom: .6rem; }
.antrag details { margin: .5rem 0; }
.antrag details summary { cursor: pointer; color: var(--text); text-decoration: underline; text-decoration-color: var(--primaer); }
.mandat-text p, .antrag details p { color: var(--leise); }
.feld-fehler { color: var(--fehler); font-weight: 600; font-size: .85rem; }
.fehler-text { color: var(--fehler); }
.iban-status { font-size: .85rem; font-weight: 600; min-height: 1em; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.unterschrift { margin: 1rem 0 1.2rem; }
.unterschrift-kopf { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .35rem; flex-wrap: wrap; }
.unterschrift-kopf .link-knopf { margin-left: auto; color: var(--text); text-decoration: underline; padding: .2rem .4rem; }
.unterschrift canvas { display: block; width: 100%; max-width: 620px; background: #fff; border: 2px dashed #c9c9c4; border-radius: 12px; touch-action: none; cursor: crosshair; }
.unterschrift.leer canvas { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='40'%3E%3Ctext x='150' y='26' text-anchor='middle' font-family='sans-serif' font-size='15' fill='%23b0b0aa'%3EHier unterschreiben%3C/text%3E%3C/svg%3E") center 38% / 300px 40px no-repeat; }
.unterschrift.fehlt canvas { border-color: var(--fehler); background-color: #fff6f5; }
.antrag-danke h1 { margin-top: 0; }
/* Startseite: Kachel „Mitglied werden“ */
.start-antrag { display: flex; align-items: center; gap: 1rem; background: var(--primaer); color: var(--auf-primaer); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; text-decoration: none; box-shadow: var(--schatten); }
.start-antrag:hover { filter: brightness(.97); }
.start-antrag .kachel-icon { background: var(--dunkel); color: var(--auf-dunkel); }
.start-antrag strong { font-size: 1.15rem; display: block; }
.start-antrag span.pfeil { margin-left: auto; font-size: 1.6rem; font-weight: 700; }

.antrag .auswahl-reihe { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.4rem; border: 0; padding: 0; }
.antrag .auswahl-reihe legend { width: 100%; font-weight: 600; margin-bottom: .45rem; padding: 0; }
.antrag .auswahl-reihe label.haken { align-items: center; }
.antrag .auswahl-reihe label.haken input { margin-top: 0; }

/* Einstellungen: Bereiche und Gruppen */
.sprungmarken { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.2rem 0 1rem; }
.sprungmarken .chip { text-decoration: none; color: inherit; }
.bereich-titel { font-size: 1.3rem; margin: 2rem 0 .3rem; padding: .35rem 0 .35rem .8rem; border-left: 5px solid var(--primaer); scroll-margin-top: 90px; }
.bereich-titel + p.leise { margin-top: 0; }
.gruppe-titel { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); margin: 1.4rem 0 .5rem;
  padding-bottom: .3rem; border-bottom: 1px solid var(--linie); }
.karte > h3:first-child, .karte > form > h3:first-of-type { margin-top: 0; }
.karte h3 { font-size: 1.02rem; margin: 1.2rem 0 .5rem; }
.app-einstellung h3 { display: flex; align-items: center; gap: .6rem; }
.klein-icon { width: 36px; height: 36px; border-radius: 10px; }
.info-liste { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .4rem 0 .8rem; font-size: .9rem; }
.info-liste dt { color: var(--leise); }
.info-liste dd { margin: 0; overflow-wrap: anywhere; }
.app-einstellung .zeile { margin-bottom: 0; }

/* Release Notes */
.versionshinweis { border-top: 1px solid var(--linie); padding: .55rem 0; }
.versionshinweis summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.versionshinweis summary::-webkit-details-marker { display: none; }
.versionshinweis summary::before { content: "▸"; color: var(--leise); transition: transform .15s; }
.versionshinweis[open] summary::before { transform: rotate(90deg); }
.versionshinweis ul { margin: .5rem 0 .2rem; }

.speicherleiste .knopf-gross { width: auto; padding-left: 2rem; padding-right: 2rem; }
.karte > .tabelle-rahmen { margin: .8rem 0 1rem; border: 1px solid var(--linie); border-radius: 10px; }
.ohne-umbruch { white-space: nowrap; }

/* Wasenhalle */
.abzeichen-grau { background: #e6e6e1; color: #404042; }
.abzeichen-gruen { background: #d8efd9; color: #1f5d27; }
.abzeichen-rot { background: #fadcd9; color: #8d1d12; }
.wh-zeile { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .4rem 1rem; align-items: center; background: #fff; border-radius: 12px;
  padding: .75rem 1rem; margin-bottom: .5rem; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid transparent; }
.wh-zeile:hover { border-color: var(--primaer); }
.wh-zeile small { display: block; color: var(--leise); font-size: .82rem; }
.wh-datum strong { font-size: 1.25rem; }
.wh-zeile.storniert { opacity: .55; }
.wh-zeile.storniert .wh-wer strong { text-decoration: line-through; }
.wh-status { text-align: right; }
.wh-vergangen { margin-top: 1.5rem; }
.wh-vergangen summary { cursor: pointer; margin-bottom: .6rem; }
.wh-vergangen .wh-zeile { box-shadow: none; border-color: var(--linie); }
.wh-hilfe { margin-top: 1.5rem; }
.wh-hilfe summary { cursor: pointer; font-weight: 600; }
.wh-link { display: flex; gap: .5rem; margin: .3rem 0 1rem; }
.wh-link input { flex: 1; min-width: 0; font-size: .85rem; }
.wh-aktionen .zeile { flex-wrap: wrap; }
.info-liste.gross { font-size: 1rem; }
.wh-regeln summary { cursor: pointer; font-weight: 600; margin-bottom: .4rem; }
.wh-zustimmung { margin-top: .8rem; font-weight: 600; }
.wh-zustimmung.fehlt { color: var(--fehler); }
.wh-ort { max-width: 22rem; }
.wh-verein { border-top: 1px solid var(--linie); margin-top: 1.4rem; padding-top: .6rem; }
@media (max-width: 640px) {
  .wh-zeile { grid-template-columns: 4.2rem 1fr; }
  .wh-datum small { display: none; }
  .wh-status { grid-column: 1 / -1; text-align: left; }
}
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.kopfzeile h1 { margin-bottom: .2rem; }
form.karte > h3:first-of-type { margin-top: 0; }
.zeile .knopf-gefahr { margin-top: 0; }
/* Mitgliedsanträge */
.ma-filter { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }
.ma-suche { flex: 1 1 260px; margin: 0; }
.ma-status-filter { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 100%; order: 3; }
.ma-status-filter .chip { text-decoration: none; color: inherit; }
.chip.aktiv { background: var(--dunkel); color: #fff; border-color: var(--dunkel); }
.ma-zeile .wh-status small { display: block; }
.ma-bemerkung { background: #fffbea; border-left: 4px solid var(--primaer); padding: .6rem .8rem; border-radius: 6px; }
.auswahl-spalte { border: 0; padding: 0; margin: 0 0 .6rem; display: grid; gap: .5rem; }
.auswahl-spalte .haken { align-items: flex-start; }
.zahl-klein { width: 5.5rem !important; display: inline-block; padding: .25rem .4rem !important; margin: 0 .2rem; }
