/* JKL Versammlungsmanager – Erscheinungsbild wie die übrigen JKL-Programme (Dunkelblau, Bordeaux, Gold) */
:root {
  --navy: #1a2236; --bordeaux: #7a1f1f; --gold: #d4a017; --gold-hell: #e3d3a8; --creme: #fbf6e6;
  --text: #1b2333; --grau: #4a5468; --linie: #d5dae5; --flaeche: #f4f6fa; --blau: #1f3a6b;
  --ok: #1d6b3a; --ok-bg: #e6f4ea; --fehler: #a11d1d; --fehler-bg: #fdecec; --hinweis-bg: #fff6dd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body { margin: 0; font-family: "Segoe UI", system-ui, Arial, sans-serif; color: var(--text); background: var(--flaeche); line-height: 1.5; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-family: Cambria, Georgia, serif; color: var(--bordeaux); font-size: 1.7rem; padding-bottom: .35rem; border-bottom: 2px solid var(--gold); margin-bottom: 1rem; }
h2 { color: var(--bordeaux); font-size: 1.2rem; border-bottom: 1px solid var(--gold-hell); padding-bottom: .2rem; margin-top: 1.4rem; }
h3 { color: var(--blau); font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
.klein { font-size: .85rem; color: var(--grau); }
.rechts { text-align: right; }
.leise { color: var(--grau); }

/* Kopf und Navigation */
.kopf { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.kopf-innen { max-width: 1280px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.marke:hover { text-decoration: none; }
.marke img { width: 38px; height: 38px; }
.marke small { display: block; font-weight: 400; color: var(--gold-hell); font-size: .75rem; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; gap: .15rem; flex: 1; }
.nav a { color: #e8ecf5; padding: .55rem .75rem; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.nav a.aktiv { background: rgba(212,160,23,.22); box-shadow: inset 0 -3px 0 var(--gold); }
.konto { display: flex; align-items: center; gap: .6rem; color: var(--gold-hell); font-size: .9rem; }
.konto form { margin: 0; }
.konto a { color: #fff; }
.mandantenleiste { background: var(--hinweis-bg); border-bottom: 1px solid var(--gold-hell); }
.mandantenleiste div { max-width: 1280px; margin: 0 auto; padding: .35rem 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
main { max-width: 1280px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
main.schmal { max-width: 460px; margin-top: 2rem; }
main.mittel { max-width: 900px; }
.super-symbol { position: fixed; right: 10px; bottom: 10px; display: block; padding: 6px; line-height: 0; color: var(--grau); opacity: .35; border-radius: 6px; }
.super-symbol:hover, .super-symbol:focus { opacity: 1; background: #fff; }
canvas.unterschrift { width: 100%; max-width: 700px; height: auto; aspect-ratio: 700 / 220; border: 2px dashed var(--gold); border-radius: 10px; background: #fff; touch-action: none; display: block; }
.scanner { width: 100%; max-width: 420px; border-radius: 10px; background: #000; margin-top: .6rem; }
textarea.hoch { min-height: 280px; font-family: Consolas, monospace; font-size: .92rem; }
.vorschau-text { white-space: pre-wrap; font-family: inherit; }
.schmal-feld { max-width: 140px; }
.vorschauleiste { background: #1f3a6b; color: #fff; padding: .45rem 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .92rem; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 30; }
body.mit-menue .vorschauleiste { margin-left: 240px; }
@media (max-width: 900px) { body.mit-menue .vorschauleiste { margin-left: 0; } }
.vorschauleiste form { margin: 0; }
.fuss { max-width: 1280px; margin: 0 auto; padding: 1rem; color: var(--grau); font-size: .8rem; text-align: center; }

/* Meldungen */
.meldung { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; word-break: break-word; }
.meldung.ok { background: var(--ok-bg); border-color: #b6dcc1; color: var(--ok); }
.meldung.fehler { background: var(--fehler-bg); border-color: #efb5b5; color: var(--fehler); }
.meldung.hinweis { background: var(--hinweis-bg); border-color: var(--gold-hell); color: #5a4300; }
.neu-box { background: var(--creme); border: 1px solid var(--gold-hell); border-left: 5px solid var(--gold); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.neu-box ul { margin: .3rem 0 .6rem 1.2rem; padding: 0; }

/* Karten, Tabellen */
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: #e8edf6; font-size: .85rem; color: var(--text); }
tr.inaktiv td { color: #8a93a6; }
.tabelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: 10px; background: #fff; margin-bottom: 1rem; }
.tabelle table { border-radius: 10px; }
.zahl { text-align: right; white-space: nowrap; }

/* Menü links: bei angemeldeten Benutzern steht die Navigation als feste Seitenleiste links; auf schmalen Bildschirmen oben */
body.mit-menue .kopf { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; overflow-y: auto; border-bottom: 0; border-right: 3px solid var(--gold); z-index: 20; }
body.mit-menue .kopf-innen { max-width: none; height: 100%; margin: 0; padding: 1rem .6rem; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 1rem; }
body.mit-menue .marke { padding: 0 .4rem .8rem; border-bottom: 1px solid rgba(255,255,255,.15); }
body.mit-menue .nav { flex-direction: column; flex-wrap: nowrap; gap: .1rem; }
body.mit-menue .nav a { width: 100%; padding: .5rem .75rem; min-height: 40px; }
body.mit-menue .nav a.aktiv { box-shadow: inset 4px 0 0 var(--gold); }
body.mit-menue .konto { flex-direction: column; align-items: stretch; gap: .4rem; padding: .8rem .4rem 0; border-top: 1px solid rgba(255,255,255,.15); }
body.mit-menue .konto button { width: 100%; }
body.mit-menue main, body.mit-menue .fuss, body.mit-menue .mandantenleiste { margin-left: 240px; max-width: none; }
body.mit-menue main { max-width: 1240px; margin-right: auto; }
body.mit-menue .mandantenleiste div { max-width: none; }
body.mit-menue .sitzung { grid-template-columns: 230px minmax(0, 1fr) 260px; }
@media (max-width: 1280px) { body.mit-menue .sitzung { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  body.mit-menue .kopf { position: static; width: auto; border-right: 0; border-bottom: 3px solid var(--gold); }
  body.mit-menue .kopf-innen { height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5rem 1rem; }
  body.mit-menue .marke { padding: 0; border: 0; }
  body.mit-menue .nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  body.mit-menue .nav a { width: auto; }
  body.mit-menue .konto { flex-direction: row; align-items: center; border: 0; padding: 0; }
  body.mit-menue .konto button { width: auto; }
  body.mit-menue main, body.mit-menue .fuss, body.mit-menue .mandantenleiste { margin-left: 0; }
}

/* Schaltflächen und Formulare */
.knopf, button { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem; border-radius: 8px;
  border: 1px solid var(--bordeaux); background: var(--bordeaux); color: #fff; cursor: pointer; text-decoration: none; }
.knopf:hover, button:hover { background: #631818; text-decoration: none; }
.knopf.zweit, button.zweit { background: #fff; color: var(--bordeaux); }
.knopf.zweit:hover, button.zweit:hover { background: var(--creme); }
.knopf.gefahr, button.gefahr { background: #fff; color: var(--fehler); border-color: var(--fehler); }
.knopf.gefahr:hover, button.gefahr:hover { background: var(--fehler-bg); }
.knopf.klein-knopf, button.klein-knopf { min-height: 34px; padding: .2rem .7rem; font-size: .88rem; }
.knopf.google { background: #fff; color: #1f1f1f; border-color: #8a93a6; }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin: .7rem 0 .2rem; }
label.inline { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; margin: .3rem 0; min-height: 32px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea, input[type=file] {
  font: inherit; width: 100%; min-height: 42px; padding: .4rem .6rem; border: 1px solid #b8c0d0; border-radius: 8px; background: #fff; color: var(--text); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--bordeaux); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, .editor:focus { outline: 3px solid rgba(212,160,23,.55); outline-offset: 1px; }
.hilfe { font-size: .83rem; color: var(--grau); margin-top: .15rem; }
.zeile { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-start; }
.zeile > * { flex: 1 1 160px; }
.zeile > .fest { flex: 0 0 auto; align-self: flex-end; }
.zeile:has(> div > label) > .fest { align-self: flex-start; margin-top: 2.25rem; }
.zeile > .plz-feld { flex: 0 1 110px; }
.aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
form.inline { display: inline; margin: 0; }
.filter { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filter > * { flex: 0 1 200px; }
.filter .breit { flex: 1 1 260px; }

/* Plaketten */
.plakette { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e8edf6; color: var(--blau); white-space: nowrap; }
.plakette.ok { background: var(--ok-bg); color: var(--ok); }
.plakette.fehler { background: var(--fehler-bg); color: var(--fehler); }
.plakette.gold { background: var(--hinweis-bg); color: #6b4e00; }
.plakette.grau { background: #eceef3; color: var(--grau); }

/* Registerkarten */
.reiter { display: flex; gap: .2rem; flex-wrap: wrap; border-bottom: 2px solid var(--gold-hell); margin: 0 0 1rem; }
.reiter a { padding: .55rem 1rem; color: var(--grau); border-radius: 8px 8px 0 0; min-height: 44px; display: inline-flex; align-items: center; }
.reiter a.aktiv { background: #fff; color: var(--bordeaux); font-weight: 600; box-shadow: inset 0 3px 0 var(--gold); border: 1px solid var(--gold-hell); border-bottom-color: #fff; margin-bottom: -2px; }

/* Sitzungsansicht: Tagesordnung links, Punkt Mitte, Anwesenheit und Aufgaben rechts */
.sitzung { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 1rem; align-items: start; }
@media (max-width: 1050px) { .sitzung { grid-template-columns: 1fr; } }
.topliste { list-style: none; margin: 0; padding: 0; }
.topliste li { border-bottom: 1px solid var(--linie); }
.topliste a { display: flex; gap: .5rem; padding: .55rem .4rem; color: var(--text); min-height: 44px; align-items: flex-start; }
.topliste li.aktiv a { background: var(--creme); box-shadow: inset 4px 0 0 var(--gold); font-weight: 600; }
.topliste .nr { color: var(--bordeaux); font-weight: 700; min-width: 1.6rem; }
.topliste .pfeile { display: flex; gap: .2rem; padding: 0 .4rem .4rem 2.1rem; }
/* Tagesordnung planen: Ziehen und Ablegen */
.inline-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0 .6rem; white-space: nowrap; }
.topliste.planung li { display: flex; align-items: center; gap: .5rem; padding: .35rem .2rem; background: #fff; }
.topliste.planung .titel { flex: 1; }
.topliste.planung input[type=text] { flex: 1; min-width: 0; }
.griff { cursor: grab; touch-action: none; user-select: none; font-size: 1.3rem; line-height: 1; padding: .3rem .4rem; color: var(--grau); border-radius: 6px; min-width: 32px; text-align: center; }
.griff:hover, .griff:focus-visible { background: var(--creme); color: var(--bordeaux); }
.topliste li.zieht { position: fixed; z-index: 50; box-shadow: 0 8px 24px rgba(26,34,54,.28); border: 1px solid var(--gold); border-radius: 8px; opacity: .96; pointer-events: none; }
.topliste li.platzhalter { background: var(--creme); border: 2px dashed var(--gold); border-radius: 8px; }
html.js .ohne-js { display: none; }
.topliste.planung li { display: block; }
.topliste.planung .top-kopf { display: flex; align-items: center; gap: .5rem; }
.top-details { margin: .3rem 0 .6rem 2.6rem; border: 1px solid var(--linie); border-radius: 8px; padding: .3rem .8rem; background: var(--flaeche); }
.top-details > summary { cursor: pointer; padding: .35rem 0; font-weight: 600; color: var(--blau); }
.erlaeuterung { background: var(--creme); border-left: 4px solid var(--gold-hell); padding: .4rem .8rem; border-radius: 6px; margin-bottom: .8rem; }
.erlaeuterung p { margin: .2rem 0; }
.zaehler { font-size: 2rem; font-weight: 700; color: var(--bordeaux); line-height: 1; }
.bf { padding: .55rem .8rem; border-radius: 8px; font-weight: 600; margin: .5rem 0; }
.bf.ja { background: var(--ok-bg); color: var(--ok); }
.bf.nein { background: var(--fehler-bg); color: var(--fehler); }
.bf.offen { background: #eceef3; color: var(--grau); }

/* Notizen-Editor */
.werkzeug { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .3rem; }
.werkzeug button { min-height: 38px; min-width: 38px; padding: .2rem .6rem; background: #fff; color: var(--text); border-color: #b8c0d0; }
.werkzeug button:hover { background: var(--creme); }
.editor { min-height: 220px; border: 1px solid #b8c0d0; border-radius: 8px; padding: .7rem .9rem; background: #fff; overflow-wrap: anywhere; }
.editor h3 { color: var(--text); margin-top: .6rem; }
.notizen h3 { color: var(--text); }
.notizen table, .editor table { border-collapse: collapse; margin: .6rem 0; width: 100%; }
.notizen th, .notizen td, .editor th, .editor td { border: 1px solid #b8c0d0; padding: .3rem .5rem; text-align: left; vertical-align: top; min-width: 3rem; }
.notizen th, .editor th { background: #eef1f7; }
.notizen blockquote, .editor blockquote { margin: .5rem 0; padding-left: .9rem; border-left: 3px solid var(--gold-hell); color: var(--grau); font-style: italic; }
.speicherstand { font-size: .83rem; color: var(--grau); min-height: 1.2rem; }

/* Beschluss */
.beschluss { border: 1px solid var(--gold-hell); border-left: 5px solid var(--gold); background: var(--creme); border-radius: 8px; padding: .7rem .9rem; margin: .8rem 0; }
.beschluss .nummer { color: var(--bordeaux); font-weight: 700; }
.ergebnis-angenommen { color: var(--ok); font-weight: 700; }
.ergebnis-abgelehnt { color: var(--fehler); font-weight: 700; }
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 420px; }

/* Anmeldung */
.anmeldung { background: #fff; border: 1px solid var(--linie); border-top: 4px solid var(--gold); border-radius: 12px; padding: 1.6rem; box-shadow: 0 6px 22px rgba(26,34,54,.08); }
.anmeldung .logo { display: block; width: 84px; height: 84px; margin: 0 auto .8rem; }
.anmeldung h1 { text-align: center; border: none; margin-bottom: .2rem; font-size: 1.5rem; }
.anmeldung .unter { text-align: center; color: var(--grau); margin-bottom: 1rem; }
.anmeldung button, .anmeldung .knopf { width: 100%; margin-top: 1rem; }
.trenner { text-align: center; color: var(--grau); margin: 1rem 0 0; font-size: .85rem; }
code, .code { font-family: Consolas, monospace; background: #eef1f6; padding: .05rem .35rem; border-radius: 4px; word-break: break-all; }

@media (max-width: 640px) {
  main { padding: .8rem .6rem 2rem; }
  .kopf-innen { gap: .4rem; }
  .konto { width: 100%; justify-content: space-between; }
}
@media print {
  .kopf, .reiter, .aktionen, .fuss, .mandantenleiste, .werkzeug { display: none !important; }
  body.mit-menue main { margin-left: 0; }
  body { background: #fff; }
  .karte { border: none; }
}

/* Stimmabgabe am Gerät, Stimmkarten */
.abstimmung .wortlaut { font-size: 1.1rem; background: var(--creme); border-left: 4px solid var(--gold); padding: .6rem .8rem; border-radius: 6px; }
.codefeld { font-family: Consolas, monospace; font-size: 1.4rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
fieldset.auswahl { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
label.gross { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 600; padding: .8rem 1rem; border: 2px solid var(--linie); border-radius: 10px; background: #fff; margin: 0; min-height: 56px; cursor: pointer; }
label.gross input { width: 26px; height: 26px; flex: none; }
label.gross.ja { border-color: #7fb892; } label.gross.nein { border-color: #d49a9a; } label.gross.enth { border-color: #b8c0d0; }
label.gross:has(input:checked) { background: var(--creme); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.nur-leser { position: absolute; left: -9999px; }
.wahl, .stand-box { border: 1px solid var(--gold-hell); border-left: 5px solid var(--bordeaux); background: #fff; border-radius: 8px; padding: .7rem .9rem; margin: .8rem 0; }
.balken { display: flex; align-items: center; gap: .6rem; margin: .2rem 0; }
.balken .b { height: 14px; background: var(--gold); border-radius: 4px; min-width: 2px; }
.kandidatenliste { list-style: none; margin: .4rem 0; padding: 0; }
.kandidatenliste li { display: flex; align-items: center; gap: .5rem; padding: .3rem .2rem; border-bottom: 1px solid var(--linie); background: #fff; }
.kandidatenliste .titel { flex: 1; }
.kandidatenliste li.zieht { position: fixed; z-index: 50; box-shadow: 0 8px 24px rgba(26,34,54,.28); border: 1px solid var(--gold); border-radius: 8px; pointer-events: none; }
.kandidatenliste li.platzhalter { background: var(--creme); border: 2px dashed var(--gold); }
.gewaehlt { color: var(--ok); font-weight: 700; }

/* ===================== Erscheinungsbild ab Version 1.3: moderner, ruhiger, mit Symbolen ===================== */
:root { --radius: 14px; --schatten: 0 1px 2px rgba(26,34,54,.06), 0 4px 14px rgba(26,34,54,.05); --linie: #dfe4ee; --flaeche: #f2f4f9; }
body { background: var(--flaeche); }
h1 { border-bottom: 0; padding-bottom: 0; font-size: 1.6rem; letter-spacing: -.01em; }
h2 { border-bottom: 0; font-size: 1.15rem; margin-top: 1.2rem; }
.karte { border-radius: var(--radius); box-shadow: var(--schatten); border-color: #e4e8f0; padding: 1.15rem 1.3rem; }
.tabelle { border-radius: var(--radius); box-shadow: var(--schatten); border-color: #e4e8f0; }
.seitenkopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seitenkopf h1 { margin: 0; }

/* Schaltflächen */
.knopf, button { border-radius: 10px; font-weight: 600; min-height: 42px; padding: .45rem 1.1rem; box-shadow: 0 1px 2px rgba(26,34,54,.12); transition: background .12s, box-shadow .12s, transform .05s; }
.knopf:hover, button:hover { box-shadow: 0 2px 6px rgba(26,34,54,.18); }
.knopf:active, button:active { transform: translateY(1px); box-shadow: none; }
.knopf.zweit, button.zweit { background: #fff; color: var(--navy); border-color: #c5ccdb; box-shadow: none; }
.knopf.zweit:hover, button.zweit:hover { background: #f6f8fc; border-color: var(--bordeaux); color: var(--bordeaux); }
.knopf.gefahr, button.gefahr { background: #fff; color: var(--fehler); border-color: #e3b4b4; box-shadow: none; }
.knopf.gefahr:hover, button.gefahr:hover { background: var(--fehler-bg); border-color: var(--fehler); }
.knopf.klein-knopf, button.klein-knopf { min-height: 34px; border-radius: 8px; font-weight: 500; }
.aktionen { gap: .6rem; }
.aktionen > form.inline { display: inline-flex; }
.knopfgruppen { display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem; margin-top: .9rem; }
.knopfgruppe .gruppentitel { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); font-weight: 700; margin-bottom: .35rem; }
.knopfgruppe .aktionen { margin-top: 0; }

/* Eingabefelder */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea, input[type=file] { border-color: #c5ccdb; border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
label { color: #2c364d; }
.hilfe { color: #5b667c; }

/* Tabellen */
th { background: #f1f4fa; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #4a5468; }
tbody tr:hover td { background: #fafbfe; }
th, td { padding: .6rem .8rem; }
table select { min-height: 36px; padding: .15rem .5rem; }

/* Seitenleiste mit Symbolen und Abschnitten */
.nav-titel { display: none; }
body.mit-menue .kopf { background: linear-gradient(180deg, #1b2438 0%, #151c2e 100%); }
body.mit-menue .nav-titel { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8d99b6; padding: .9rem .75rem .2rem; font-weight: 700; }
body.mit-menue .nav a { border-radius: 10px; }
.nav a { gap: .65rem; }
.nav a::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; opacity: .8; -webkit-mask: var(--sym) center / contain no-repeat; mask: var(--sym) center / contain no-repeat; }
.nav a:not([data-i])::before { display: none; }
body.mit-menue .nav a.aktiv { background: rgba(212,160,23,.2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
body.mit-menue .nav a.aktiv::before { opacity: 1; color: var(--gold); }
.nav a[data-i="home"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.nav a[data-i="versammlungen"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.nav a[data-i="beschlussbuch"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h12a3 3 0 0 1 3 3v13H7a3 3 0 0 1-3-3z'/%3E%3Cpath d='M4 17a3 3 0 0 1 3-3h12'/%3E%3C/svg%3E"); }
.nav a[data-i="aufgaben"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.nav a[data-i="gremien"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20a6 6 0 0 1 12 0'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M17 14a5 5 0 0 1 4 6'/%3E%3C/svg%3E"); }
.nav a[data-i="personen"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.nav a[data-i="benutzer"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M14 10h4M14 14h4M6 17a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.nav a[data-i="gruppen"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='2.5'/%3E%3Ccircle cx='16' cy='9' r='2.5'/%3E%3Cpath d='M3 19a5 5 0 0 1 10 0M11 19a5 5 0 0 1 10 0'/%3E%3C/svg%3E"); }
.nav a[data-i="umlaufbeschluesse"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.nav a[data-i="vorlagen"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.nav a[data-i="einstellungen"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E"); }
.nav a[data-i="pruefspur"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.nav a[data-i="mandanten"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-2 8 2v16M9 9h2M13 9h2M9 13h2M13 13h2M10 21v-4h4v4'/%3E%3C/svg%3E"); }
.nav a[data-i="system"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='6' rx='1'/%3E%3Crect x='3' y='14' width='18' height='6' rx='1'/%3E%3Cpath d='M7 7h.01M7 17h.01'/%3E%3C/svg%3E"); }

/* Kopf einer Versammlung */
.vkopf { background: #fff; border: 1px solid #e4e8f0; border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem 1.3rem .9rem; margin-bottom: 1rem; }
.vkopf-titel { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem 1.5rem; flex-wrap: wrap; }
.vkopf h1 { margin: 0 0 .1rem; }
.plaketten { display: flex; flex-wrap: wrap; gap: .35rem; }
.vmeta { list-style: none; margin: .6rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; color: #2c364d; }
.vmeta li { display: inline-flex; align-items: center; gap: .45rem; }
.vmeta li::before { content: ""; width: 17px; height: 17px; flex: none; background: var(--grau); -webkit-mask: var(--sym) center / contain no-repeat; mask: var(--sym) center / contain no-repeat; }
.vmeta code { font-size: .8rem; }
.vmeta .m-zeit::before { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.vmeta .m-ort::before { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.vmeta .m-online::before { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M15 10l6-3v10l-6-3'/%3E%3C/svg%3E"); }
.vmeta .m-frist::before { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.vmeta .m-kurz::before { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }

.kalender { margin-top: .4rem; }
.kalender summary { cursor: pointer; display: inline-flex; align-items: center; color: var(--blau); font-size: .9rem; padding: .2rem 0; }
.kalender[open] summary { margin-bottom: .3rem; }

/* Registerkarten als Leiste */
.reiter { position: sticky; top: .5rem; z-index: 10; background: #fff; border: 1px solid #e4e8f0; border-radius: var(--radius); box-shadow: var(--schatten); padding: .3rem; gap: .15rem; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 1rem; scrollbar-width: thin; }
.reiter a { border-radius: 10px; padding: .45rem 1rem; min-height: 40px; white-space: nowrap; color: #3b465d; font-weight: 500; }
.reiter a:hover { background: #f2f4f9; text-decoration: none; }
.reiter a.aktiv { background: var(--bordeaux); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(122,31,31,.35); border: 0; margin: 0; }

/* Durchführung: Tagesordnung links (bleibt beim Scrollen stehen), Punkt in der Mitte, Anwesenheit und Zweitbildschirm darunter bzw. rechts */
.sitzung > :nth-child(1) { grid-area: a; }
.sitzung > :nth-child(2) { grid-area: m; min-width: 0; }
.sitzung > :nth-child(3) { grid-area: r; min-width: 0; }
body.mit-menue .sitzung { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "a m" "a r"; gap: 1rem; }
body.mit-menue .sitzung > :nth-child(1) { align-self: start; position: sticky; top: 4.6rem; }
@media (min-width: 1750px) { body.mit-menue .sitzung { grid-template-columns: 270px minmax(0, 1fr) 300px; grid-template-areas: "a m r"; } }
@media (max-width: 1100px) { body.mit-menue .sitzung { grid-template-columns: 1fr; grid-template-areas: "a" "m" "r"; } body.mit-menue .sitzung > :nth-child(1) { position: static; } }
.topliste a { border-radius: 10px; margin: .1rem 0; padding: .5rem .55rem; align-items: center; }
.topliste li { border-bottom: 0; }
.topliste a:hover { background: #f4f6fb; text-decoration: none; }
.topliste li.aktiv a { background: #fdf3d6; box-shadow: none; }
.topliste .nr { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #eef1f7; color: var(--bordeaux); font-size: .85rem; }
.topliste li.aktiv .nr { background: var(--bordeaux); color: #fff; }
.topliste.planung li { background: transparent; }
.topliste.planung .top-kopf { background: #fff; }
.top-details { border-radius: 10px; margin-left: 3rem; }
.top-details > summary { font-weight: 500; font-size: .92rem; }
.zaehler { font-size: 2.4rem; }
.bf { border-radius: 10px; }
.beschluss, .wahl, .stand-box { border-radius: 12px; }
.editor { border-radius: 10px; }
.werkzeug button { border-radius: 8px; box-shadow: none; font-weight: 500; }
.meldung { border-radius: 12px; }
.plakette { padding: .12rem .65rem; }
.anmeldung { border-radius: 16px; }
@media (max-width: 640px) { .vkopf { padding: .9rem 1rem; } .vmeta { gap: .3rem 1rem; } .reiter a { padding: .45rem .8rem; } }
.marke { font-size: .95rem; }
.filter.karte { padding: .8rem 1rem; align-items: flex-end; gap: .8rem; }
.filter.karte label { margin-top: 0; }
.vkopf .kalender summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: .4rem; border-radius: 50%; background: #e8edf6; color: var(--blau); font-weight: 700; line-height: 1; }
.vkopf .kalender[open] summary::before { content: "−"; }
.vkopf .kalender summary { list-style: none; }
.vkopf .kalender summary::-webkit-details-marker { display: none; }
table .plakette { font-weight: 600; }
.zeile > .plz-feld { flex: 0 1 110px; }

/* Durchführung: eine laufende Abstimmung oder Wahl steht ganz oben */
.sitzung > section { display: flex; flex-direction: column; gap: 0; }
.sitzung > section > .karte:has(.beschluss.laeuft, .wahl.laeuft) { order: -1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,160,23,.35), var(--schatten); }

/* Erscheinungsbild des Vereins: Logo und Farbwahl */
.marke img { width: auto; max-width: 120px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.anmeldung .logo { width: auto; max-width: 220px; max-height: 90px; object-fit: contain; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: .8rem 0; }
.farbwahl > div { display: flex; flex-direction: column; gap: .25rem; max-width: 240px; }
.farbwahl input[type=color] { width: 72px; height: 44px; padding: 2px; border: 1px solid #c5ccdb; border-radius: 10px; background: #fff; cursor: pointer; }
.logo-zeile { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin: .8rem 0; }
.logo-vorschau { max-width: 200px; max-height: 90px; object-fit: contain; border: 1px solid var(--linie); border-radius: 10px; padding: 6px; background: #fff; }

/* Start-Schaltfläche mit Zusatzfeld in einer Reihe mit den übrigen Schaltflächen */
.aktionen > form.inline.start { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; }
.aktionen > form.inline.start .hilfe { flex-basis: 100%; margin: 0; }
.aktionen > form.inline.start .schmal-feld { width: 6rem; }
.aktionen > form.inline > button.klein-knopf { min-height: 42px; }

/* Stimmcode eingeben oder QR-Code scannen */
.codezeile { display: flex; gap: .6rem; align-items: stretch; margin-bottom: .8rem; }
.codezeile .codefeld { flex: 1; min-width: 0; margin: 0; }
.scan-knopf { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; margin: 0; }
.scan-fenster { position: fixed; inset: 0; z-index: 100; background: rgba(15,20,32,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; }
.scan-fenster[hidden] { display: none; }
.scan-fenster video { width: min(92vw, 520px); max-height: 60vh; border-radius: 16px; background: #000; object-fit: cover; }
.scan-text { color: #fff; text-align: center; max-width: 32rem; margin: 0; }

/* Bewertung des Stimmcodes */
.code-bewertung { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; }
.code-beispiel { font-family: Consolas, monospace; font-size: 1.3rem; letter-spacing: .1em; }
.code-tabelle { border-collapse: collapse; width: 100%; }
.code-tabelle th { text-align: left; font-weight: 500; padding: .35rem .6rem .35rem 0; vertical-align: top; width: 55%; }
.code-tabelle td { padding: .35rem 0; font-weight: 600; }

/* Meldungen bleiben beim Scrollen und nach Sprüngen zu einem Abschnitt sichtbar */
main > .meldung { position: sticky; top: .6rem; z-index: 40; box-shadow: 0 4px 14px rgba(26,34,54,.18); }

/* Schnellerfassung, Statusleiste und Ergebniseingabe der Durchführung */
.schnell { border: 1px solid var(--gold-hell); background: var(--creme); border-radius: 14px; padding: .9rem 1rem; margin: .6rem 0 1rem; }
.schnell textarea { min-height: 3.2rem; }
.schnell .aktionen button[type=submit] { font-size: 1.1rem; padding: .6rem 1.6rem; }
.statusleiste { background: #fff; border: 2px solid var(--gold); border-radius: 14px; padding: .6rem .9rem; margin: 0 0 1rem; box-shadow: var(--schatten); display: grid; gap: .4rem; }
.status-zeile { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.status-text { flex: 1; min-width: 12rem; }
.beschluss:target, .wahl:target { box-shadow: 0 0 0 3px var(--gold); }
.stimmen.gross { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: none; gap: .8rem 1rem; margin: .6rem 0; }
.stimmfeld label { font-weight: 600; display: block; margin-bottom: .2rem; }
.stepper { display: flex; align-items: stretch; gap: .3rem; }
.stepper input { width: 100%; min-width: 4rem; text-align: center; font-size: 1.5rem; font-weight: 700; padding: .3rem; }
.stepper button { min-width: 2.8rem; padding: 0; font-size: 1.5rem; line-height: 1; }
.vorschau { margin: .6rem 0; padding: .7rem 1rem; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); font-weight: 600; }
.vorschau.ja { background: var(--ok-bg); border-color: #b6dcc1; color: var(--ok); }
.vorschau.nein { background: var(--fehler-bg); border-color: #efb5b5; color: var(--fehler); }
.vorschau.warnung { box-shadow: inset 0 0 0 2px var(--gold); }
details.korrektur { margin: .6rem 0; }
.top-regel .zeile { align-items: flex-end; }

.beamer-vorschau { width: 100%; height: 340px; border: 2px solid var(--linie); border-radius: 10px; margin-top: .4rem; background: #1a2236; }

/* Stimmcode am Handy: großes Eingabefeld, Scan-Knopf darunter */
.codezeile { flex-wrap: wrap; }
.codezeile .codefeld { flex: 1 1 100%; min-height: 3.6rem; font-size: 1.9rem; padding: .5rem; }
.codezeile .scan-knopf { flex: 1 1 100%; justify-content: center; min-height: 3rem; }
.gross-knopf { font-size: 1.2rem; padding: .7rem 1.6rem; }
