[hidden] { display: none !important; }
:root {
  /* Interner Bereich plueer.ch: ruhiges Amtsblau auf hellem Grau-Grün, Akzent für Aktionen */
  --red: #1f5c7a; --red-dark: #15435a; --pine: #2f6b45; --ink: #1d2a33; --soft: #56656f;
  --paper: #eef2f3; --card: #ffffff; --line: #d3dce1; --warn: #b4541a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--red); }
header { background: var(--card); border-bottom: 1px solid var(--line); }
.kopf { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.marke { font: 700 20px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.marke span { font: 600 13px system-ui, sans-serif; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a, nav button.link { padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover, nav button.link:hover { background: var(--paper); }
nav a.aktiv { color: var(--red); background: var(--paper); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font: 700 26px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.01em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h2 { font: 650 18px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0 0 12px; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.schmal { max-width: 460px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.breit { flex: 1; min-width: 220px; }
input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox] { width: auto; }
input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
button, .knopf { font: 600 15px system-ui, sans-serif; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { border-color: var(--red); color: var(--red); }
button.primaer, .knopf.primaer { background: var(--red); border-color: var(--red); color: #fff; }
button.primaer:hover, .knopf.primaer:hover { background: var(--red-dark); color: #fff; }
button.gefahr { color: #a3261b; }
button.gefahr:hover { background: #a3261b; border-color: #a3261b; color: #fff; }
button.klein, .knopf.klein { padding: 4px 9px; font-size: 13px; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }
button:disabled { opacity: .5; cursor: wait; }
form.inline { display: inline; }
.zeile { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.zeile label { margin-bottom: 0; }
.hinweis { color: var(--soft); font-size: 14px; margin: 8px 0 0; }
.zurueck { margin: 0 0 6px; }
.zurueck a { color: var(--soft); text-decoration: none; }
.meldung { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.meldung.ok { background: #e6f2ea; color: var(--pine); border: 1px solid #b7d6c2; }
.meldung.fehler { background: #fbe9e9; color: #8a1f17; border: 1px solid #ecc1c1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th.num, td.num { text-align: right; }
td.aktionen { text-align: right; white-space: nowrap; }
/* Zwei-Faktor, Statuten, Instagram */
.code-eingabe { font: 600 24px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .15em; max-width: 220px; }
.nebenaktion { margin-top: 8px; }
.status-ok { color: var(--pine); font-weight: 700; }
.schritte li { margin-bottom: 14px; }
.qr { width: 220px; height: 220px; margin: 10px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.schluessel { font: 600 15px ui-monospace, Menlo, Consolas, monospace; background: var(--paper); padding: 2px 6px; border-radius: 4px; }
.codes { background: #fff8e1; border: 1px solid #ecd58f; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.codes ol { columns: 2; font: 600 17px ui-monospace, Menlo, Consolas, monospace; }
.gefahrzone { margin-top: 16px; }
.gefahrzone summary { cursor: pointer; color: var(--red); font-weight: 600; }
/* Seitentexte */
.texte-gruppe h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.textfeld { margin-bottom: 16px; }
.textfeld textarea { width: 100%; font: 15px/1.5 system-ui, sans-serif; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: #fff; color: var(--ink); }
.textfeld textarea.einzeilig { resize: none; }
.textfeld-fuss { display: flex; justify-content: flex-end; margin-top: 4px; }
.textfeld-fuss button { font-weight: 500; color: var(--soft); }
.marke-geaendert { font-size: 12px; font-weight: 700; color: #fff; background: var(--pine); border-radius: 6px; padding: 1px 7px; margin-left: 6px; }
.formathilfe { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.formathilfe code { background: var(--paper); border-radius: 4px; padding: 1px 5px; font-size: 14px; }

/* Update */
.pruefsumme { font-size: 15px; letter-spacing: .03em; word-break: break-all; background: #f3ede4; padding: 6px 10px; border-radius: 6px; display: inline-block; }
.klein-kacheln .kachel { cursor: default; }
.dateiliste { max-height: 260px; overflow: auto; margin: 6px 0 10px; padding-left: 20px; font-size: 13px; }
details > summary { cursor: pointer; padding: 4px 0; }

/* Security Updates und Checks */
.sich-stand { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.sich-stand h2 { margin: 0; font-size: 22px; }
.sich-ampel { width: 44px; height: 44px; border-radius: 50%; background: #b9b2a6; box-shadow: inset 0 0 0 4px rgba(255,255,255,.5); }
.sich-gut .sich-ampel { background: var(--pine); }
.sich-warnung .sich-ampel { background: #d08a12; }
.sich-kritisch .sich-ampel { background: #a3261b; }
.sich-stand.sich-kritisch { border-color: #a3261b; background: #fdf1f1; }
.sich-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sich-befund { border-left: 6px solid #b9b2a6; }
.sich-befund.sich-kritisch { border-left-color: #a3261b; }
.sich-befund.sich-warnung { border-left-color: #d08a12; }
.sich-befund h2 { margin-bottom: 6px; }
.sich-befund p { margin: 0 0 8px; }
.sich-marke { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.sich-kritisch .sich-marke { color: #a3261b; }
.sich-warnung .sich-marke { color: #9a6408; }
.sich-dateien { margin: 6px 0 10px; padding-left: 20px; font-size: 14px; max-height: 320px; overflow: auto; }
.sich-dateien code, .sich-befehl { overflow-wrap: anywhere; }
.sich-ok { list-style: none; padding: 0; margin: 0; }
.sich-ok li { padding: 4px 0 4px 26px; position: relative; }
.sich-ok li::before { content: "✓"; position: absolute; left: 4px; color: var(--pine); font-weight: 700; }
.sich-umfang li { margin-bottom: 6px; }
.sich-befehl { background: var(--ink); color: #f6efdf; padding: 10px 12px; border-radius: 8px; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; user-select: all; }
.sich-p-fehler td:nth-child(2) { color: var(--red-dark); font-weight: 600; }
.meldung.hinweis-box { background: #fff8e1; color: #6b4e07; border: 1px solid #ecd58f; }
@media (max-width: 640px) { .sich-stand { grid-template-columns: auto 1fr; } .sich-knoepfe { grid-column: 1 / -1; justify-content: flex-start; } }

/* plueer.ch: Kopf, Tabellen, Gemeindefinanzen, Benutzer */
.wer { color: var(--soft); font-size: 14px; margin-left: auto; margin-right: 8px; }
.lead { color: var(--soft); max-width: 70ch; margin: -6px 0 18px; }
.feldhilfe { font-weight: 400; color: var(--soft); font-size: 13px; }
select { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.tabelle { overflow-x: auto; }
td, th { font-variant-numeric: tabular-nums; }
th.mitte, td.mitte { text-align: center; }
table.jahre th[scope=row] a { font-weight: 700; text-decoration: none; }
table.jahre tbody tr:hover { background: var(--paper); }
.haken { color: var(--pine); font-weight: 700; }
.leer { color: #a9b5bc; }
.etappen li { margin-bottom: 8px; }
.blaettern { display: flex; justify-content: space-between; margin: -8px 0 12px; }
.blaettern a { text-decoration: none; font-weight: 600; }
.leer-hinweis { color: var(--soft); margin: 0; }
.art, .rolle, .status { display: inline-block; font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.art-budget { background: #e4eff6; border-color: #bcd5e5; color: #15435a; }
.art-rechnung { background: #e6f1ea; border-color: #bfd9c7; color: #24543a; }
.art-botschaft { background: #f3ecdf; border-color: #e1d2b5; color: #6a4b12; }
.art-erlaeuterungen { background: #efe9f5; border-color: #d6cae5; color: #4b3470; }
.rolle-admin { background: var(--ink); border-color: var(--ink); color: #fff; }
.rolle-superuser { background: #e4eff6; border-color: #bcd5e5; color: #15435a; }
.status.aktiv { background: #e6f1ea; border-color: #bfd9c7; color: #24543a; }
.status.offen { background: #fff6e0; border-color: #ecd58f; color: #6b4e07; }
.status.abgelaufen, .status.gesperrt { background: #fbe9e9; border-color: #ecc1c1; color: #8a1f17; }
details.bearbeiten { display: inline-block; text-align: left; }
details.bearbeiten > summary { list-style: none; }
details.bearbeiten > summary::-webkit-details-marker { display: none; }
details.bearbeiten[open] { display: block; margin: 8px 0; }
.dok-form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 8px; min-width: 260px; }
.dok-form label { font-size: 13px; }
td.aktionen { white-space: normal; }
td.aktionen > * { margin: 2px 0; }
.einladung { border-color: #ecd58f; background: #fffbea; }
.einladungscode, .klein-code { font: 700 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.einladung textarea { width: 100%; font: 14px/1.45 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table.rechte input[type=checkbox] { width: 18px; height: 18px; }
table.rechte th[scope=row] { font-weight: 500; }
.upload-form input[type=file] { padding: 10px; background: var(--paper); }
@media (max-width: 640px) { .wer { width: 100%; margin: 0; } h1 { font-size: 22px; } }
@media print { header, nav, .karte:not(#zwei-faktor), .drucken, form, details, .meldung, h1 { display: none !important; } .codes { border: 0; } #zwei-faktor { border: 0; } }
.tabelle td:first-child { min-width: 180px; overflow-wrap: anywhere; }
.teil { display: inline-block; font-size: 12.5px; font-weight: 650; border-radius: 6px; padding: 1px 7px; margin: 1px 3px 1px 0; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
table.jahre td { vertical-align: middle; }
.art-allgemein { background: var(--paper); }
.untertitel { font-size: 15px; font-weight: 500; color: var(--soft); }
td.num, th.num { white-space: nowrap; }
