/* GV-Abstimmung Wohnsinn Horgen – Weiss, Schwarz, Horgner Rot */
:root {
  --rot: #d33921;
  --rot-dunkel: #a82a16;
  --schwarz: #111;
  --grau: #5c5c5c;
  --linie: #dcdcdc;
  --hell: #f4f4f4;
  --gruen: #1f7a3d;
  --gruen-hell: #e6f3ea;
  --rot-hell: #fbe9e6;
  --radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--schwarz);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; font-size: 17px; }
a { color: var(--rot-dunkel); }
h1 { font-size: 1.6rem; margin: 0 0 .6rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
p { margin: 0 0 .7rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.testbalken { background: #ffd400; color: #000; text-align: center; font-weight: 700; padding: .35rem; font-size: .9rem; }
.kopf { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1.1rem; border-bottom: 4px solid var(--rot); background: #fff; }
.marke { font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--rot); padding: .2rem .55rem; border-radius: 4px; text-decoration: none; }
.kopf__titel { font-weight: 600; }
.marke--logo { background: none; padding: 0; border-radius: 0; display: inline-flex; align-items: center; }
.marke-logo { display: block; height: 40px; width: auto; max-width: 180px; }
.kopf__nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.kopf__nav a { color: var(--schwarz); text-decoration: none; }
.kopf__nav a:hover { color: var(--rot); }
.kopf__nav form { margin: 0; }

.inhalt { max-width: 560px; margin: 0 auto; padding: 1.1rem 1rem 4rem; }
.inhalt--breit { max-width: 1100px; }
.lead { color: var(--grau); }
.klein { font-size: .85rem; color: var(--grau); }
.leer { color: var(--grau); }
.hinweis { font-size: .9rem; color: var(--grau); }
.hinweis--ok { color: var(--gruen); font-weight: 600; }
.hinweisliste { color: var(--grau); font-size: .92rem; padding-left: 1.2rem; }

.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.karte--hell { background: var(--hell); border-color: var(--hell); }
.karte--rot { border: 2px solid var(--rot); }
.schmal { max-width: 420px; margin: 2rem auto; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.raster > .karte { margin-bottom: 0; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.1rem; border: 2px solid var(--rot); background: var(--rot); color: #fff; font: inherit; font-weight: 700; border-radius: 8px; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf--linie { background: #fff; color: var(--schwarz); border-color: var(--schwarz); }
.knopf--linie:hover { background: var(--hell); border-color: var(--schwarz); }
.knopf--klein { min-height: 36px; padding: .35rem .8rem; font-size: .92rem; }
.knopf--gefahr { background: #fff; color: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf--gefahr:hover { background: var(--rot-hell); }
.knopf--breit { width: 100%; }
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--schwarz); cursor: pointer; text-decoration: underline; }
.knopfreihe { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.knopfreihe form { margin: 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.formular { display: grid; gap: .5rem; }
.formular label:not(.wahl) { font-weight: 600; font-size: .95rem; }
.formular--zeile { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.formular--zeile > div { display: grid; gap: .3rem; flex: 1 1 200px; }
input[type=text], input:not([type]), input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; width: 100%; padding: .6rem .7rem; border: 1px solid #b8b8b8; border-radius: 8px; background: #fff; min-height: 44px;
}
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus, .knopf:focus-visible, .wahlknopf:focus-visible { outline: 3px solid rgba(211, 57, 33, .35); outline-offset: 1px; }
.zeile { display: flex; gap: .8rem; flex-wrap: wrap; }
.zeile > div { flex: 1 1 220px; display: grid; gap: .3rem; }
.wahl { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.wahl input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--rot); }
.wahl--klein { font-size: .85rem; }
.ausstand { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .9rem .8rem; }
.ausstand legend { font-weight: 600; padding: 0 .3rem; }
.ausstand__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .35rem .9rem; }

.meldung { padding: .7rem .9rem; border-radius: 8px; font-weight: 600; }
.meldung--ok { background: var(--gruen-hell); color: var(--gruen); }
.meldung--fehler { background: var(--rot-hell); color: var(--rot-dunkel); }

.zahlen { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.zahlen > div { display: grid; }
.zahl { font-size: 2rem; font-weight: 800; line-height: 1; }
.zahl--rot { color: var(--rot); }
.zaehler { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 99px; background: var(--rot); color: #fff; font-size: .8rem; text-align: center; vertical-align: middle; }
.marken { display: flex; gap: .4rem; flex-wrap: wrap; }
.marke-status { display: inline-block; font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: var(--hell); }
.marke-status--dunkel { background: var(--schwarz); color: #fff; }
.marke-status--rot { background: var(--rot); color: #fff; }
.runde-titel { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.fortschritt-text { margin: .6rem 0 .3rem; }
.fortschritt { height: 12px; background: var(--hell); border-radius: 99px; overflow: hidden; margin-bottom: .6rem; }
.fortschritt span { display: block; height: 100%; background: var(--rot); transition: width .4s; }

.anfragen { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.anfrage { border-left: 4px solid var(--rot); background: var(--hell); padding: .7rem .9rem; border-radius: 0 8px 8px 0; }
.resultate { padding-left: 1.4rem; margin: 0; display: grid; gap: .7rem; }
.resultate li { display: grid; gap: .15rem; }
.ergebnis { font-weight: 700; }
.ergebnis--ja { color: var(--gruen); }
.ergebnis--nein { color: var(--rot-dunkel); }
.liste { padding-left: 1.2rem; display: grid; gap: .4rem; }

.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .85rem; color: var(--grau); }
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c9a400; margin-right: .4rem; }
.punkt--ok { background: var(--gruen); }
details.mini summary, details.gefahr summary { cursor: pointer; color: var(--grau); font-size: .9rem; }
details.gefahr { margin-top: .9rem; }
details.gefahr[open], details.mini[open] { background: var(--rot-hell); padding: .6rem .8rem; border-radius: 8px; }
details form { margin-top: .5rem; }

/* ---------- Teilnahme (Handy) ---------- */
.teilnahme .kopf { justify-content: space-between; }
.teilnahme .kopf__titel { font-size: .95rem; color: var(--grau); text-align: right; }
.suche { position: sticky; top: 0; background: #fff; padding: .3rem 0 .6rem; z-index: 2; }
.namenliste { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.namenliste button { width: 100%; text-align: left; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1px solid var(--linie); background: #fff; border-radius: 8px; cursor: pointer; min-height: 52px; }
.namenliste button:hover, .namenliste button:focus-visible { border-color: var(--rot); outline: none; background: var(--rot-hell); }
.ich { display: grid; gap: .35rem; }
.ich__zeile { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; }
.status-ok { color: var(--gruen); font-weight: 600; font-size: .9rem; }
.status-warten { color: #8a6d00; font-weight: 600; font-size: .9rem; }
.stimmzettel { border: 2px solid var(--schwarz); border-radius: var(--radius); padding: 1rem; margin-bottom: .9rem; }
.stimmzettel__fuer { font-size: .9rem; color: var(--grau); margin-bottom: .5rem; }
.stimmzettel__fuer strong { color: var(--schwarz); }
.wahlknoepfe { display: grid; gap: .55rem; }
.wahlknopf { width: 100%; font: inherit; font-size: 1.15rem; font-weight: 700; padding: 1rem; min-height: 60px; border: 2px solid var(--schwarz); background: #fff; border-radius: 10px; cursor: pointer; }
.wahlknopf[aria-pressed=true] { background: var(--schwarz); color: #fff; }
.wahlknopf--ja[aria-pressed=true] { background: var(--gruen); border-color: var(--gruen); }
.wahlknopf--nein[aria-pressed=true] { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.bestaetigen { margin-top: .7rem; }
.abgegeben { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--gruen); font-size: 1.1rem; }
.abgegeben::before { content: "✓"; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gruen); color: #fff; }
.warten { text-align: center; padding: 1.6rem 1rem; }
.warten .puls { width: 14px; height: 14px; border-radius: 50%; background: var(--rot); margin: 0 auto .8rem; animation: puls 1.6s infinite; }
@keyframes puls { 0% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(.8); opacity: .5; } }
.resultat { text-align: center; }
.resultat__text { font-size: 1.4rem; font-weight: 800; }
.offline { position: fixed; bottom: 0; left: 0; right: 0; background: var(--schwarz); color: #fff; text-align: center; padding: .5rem; font-size: .9rem; }

/* ---------- QR-Blatt ---------- */
.qr-blatt { border: 1px dashed var(--linie); padding: 2rem; text-align: center; background: #fff; }
.qr-marke { color: var(--rot); font-weight: 700; }
.qr-blatt h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.qr-raster { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.qr-block { flex: 0 1 300px; }
.qr-block h2 { font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.schritt { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rot); color: #fff; }
.qr svg { width: 260px; height: 260px; }
.qr-text { font-size: 1.1rem; }
.qr-anleitung { margin-top: 1.5rem; font-size: 1.05rem; }

@media print {
  .kopf, .nicht-drucken, .testbalken { display: none !important; }
  .inhalt { max-width: none; padding: 0; }
  .qr-blatt { border: 0; padding: 1cm 0; }
  .qr svg { width: 7cm; height: 7cm; }
  body { font-size: 14pt; }
}
@media (max-width: 640px) {
  .kopf__nav { margin-left: 0; width: 100%; gap: .8rem; font-size: .9rem; }
  h1 { font-size: 1.4rem; }
}
