/* 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-end; }
.zeile > * { flex: 1 1 160px; }
.zeile > .fest { flex: 0 0 auto; }
.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 */
.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; }
.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; }
