/* =====================================================================
   Bürgerserver Schöneck — Grundgestaltung
   =====================================================================
   Gedacht als öffentliches Verzeichnis: Aushang, nicht Werbeseite.
   Ordnungsmittel ist das Datum. Farbe trägt Information, nicht Schmuck:
   Grün heißt dokumentiert, Ocker heißt offen.
   ===================================================================== */

:root {
  --papier:      #f7f7f4;
  --papier-tief: #eeeeea;
  --tinte:       #1b2430;
  --tinte-leise: #5e6b72;
  --linie:       #d6d8d2;
  --linie-fein:  #e6e7e2;
  --belegt:      #2f6b5a;
  --offen:       #9a6b1e;
  --markiert:    #e8efec;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --spalte: 68ch;
  --rand:   clamp(1.25rem, 5vw, 3.5rem);

  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--belegt);
  outline-offset: 3px;
}

/* ---------- Gerüst ---------------------------------------------- */

.blatt {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--rand);
}

.kopf {
  border-bottom: 1px solid var(--linie);
  padding: 1.5rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
}

.kopf-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.kopf-ort {
  font-size: 0.9rem;
  color: var(--tinte-leise);
}

.zurueck {
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--tinte-leise);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
}
.zurueck:hover { color: var(--tinte); border-bottom-color: var(--tinte-leise); }

/* ---------- Einstieg -------------------------------------------- */

.auftakt { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}

.auftakt p {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  line-height: 1.62;
  max-width: var(--spalte);
  margin: 0 0 0.9rem;
  color: #2a3644;
}

/* ---------- Bänder statt Kacheln -------------------------------- */

.baender { border-top: 1px solid var(--linie); margin-bottom: 3rem; }

.band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.5rem 2rem;
  padding: 1.6rem 0 1.5rem;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
  color: inherit;
}

.band:hover .band-titel { border-bottom-color: var(--tinte); }

.band-titel {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease;
}

.band-text {
  margin: 0;
  max-width: 56ch;
  color: #2a3644;
}

.band-stand {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.45rem;
}

.stand-belegt { color: var(--belegt); }
.stand-offen  { color: var(--offen); }

@media (max-width: 34rem) {
  .band { grid-template-columns: 1fr; }
  .band-stand { grid-column: 1; grid-row: auto; text-align: left; padding-top: 0.3rem; }
}

/* ---------- Fließtextseiten -------------------------------------- */

.text { padding: clamp(2rem, 6vw, 3.5rem) 0 3rem; }

.text h1 { max-width: 26ch; }

.text h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  margin: 2.4rem 0 0.7rem;
}

.text p, .text li {
  font-family: var(--serif);
  max-width: var(--spalte);
  line-height: 1.65;
}

.text ul { padding-left: 1.15rem; }
.text li { margin-bottom: 0.45rem; }

.hinweis {
  border-left: 3px solid var(--linie);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin: 2rem 0;
}
.hinweis p { font-family: var(--sans); font-size: 0.96rem; color: var(--tinte-leise); }

/* ---------- Auswahl ---------------------------------------------- */

.auswahl {
  border-top: 1px solid var(--linie);
  padding-top: 1.75rem;
  margin-bottom: 2.5rem;
}

.feld { margin-bottom: 1.9rem; }

.feld > h2 {
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.gremien {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.gremium {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--linie);
  border-radius: 2px;
  padding: 0.42rem 0.8rem;
  font-size: 0.93rem;
  background: #fff;
  cursor: pointer;
  line-height: 1.3;
}

.gremium input { margin: 0; accent-color: var(--belegt); }
.gremium:has(input:checked) { border-color: var(--belegt); background: var(--markiert); }
.gremium:has(input:focus-visible) { outline: 2px solid var(--belegt); outline-offset: 2px; }

.flach {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--tinte-leise);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.flach + .flach { margin-left: 1.1rem; }

.zeitraum { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.9rem; }

.zeitraum label { font-size: 0.93rem; color: var(--tinte-leise); }

select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.38rem 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 2px;
  background: #fff;
  color: inherit;
}

.knopf {
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.62rem 1.3rem;
  border: 1px solid var(--tinte);
  border-radius: 2px;
  background: var(--tinte);
  color: var(--papier);
  cursor: pointer;
}
.knopf:hover { background: #101922; }

/* ---------- Ergebnis: Register ----------------------------------- */

.ergebnis { margin-bottom: 3.5rem; }

.ergebnis-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--linie);
  padding-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.ergebnis-kopf h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
}

.zahl { font-size: 0.9rem; color: var(--tinte-leise); }

/* Jahresliste */

.jahre { list-style: none; margin: 1.2rem 0 0; padding: 0; }

.jahr {
  border-bottom: 1px solid var(--linie);
}

.jahr a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  text-decoration: none;
}

.jahr-zahl {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.jahr a:hover .jahr-zahl { color: var(--belegt); }
.jahr-text { font-size: 0.95rem; color: var(--tinte-leise); }

/* Monatsgruppen */

.monat { margin-top: 2.2rem; }

.monat > h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tinte-leise);
  margin: 0 0 0.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--linie);
}

.sitzungen { list-style: none; margin: 0; padding: 0; }

.sitzung { border-bottom: 1px solid var(--linie-fein); }

.sitzung a {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.3rem 1.2rem;
  align-items: baseline;
  padding: 0.95rem 0;
  text-decoration: none;
}

.tag {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.tag span {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--tinte-leise);
  letter-spacing: 0;
}

.sitzung-name { font-size: 1rem; }
.sitzung a:hover .sitzung-name { text-decoration: underline; text-underline-offset: 3px; }

.sitzung-kurz { color: var(--tinte-leise); font-size: 0.88rem; }

.sitzung-stand {
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 38rem) {
  .sitzung a { grid-template-columns: 3.8rem 1fr; }
  .sitzung-stand { grid-column: 2; text-align: left; }
}

.leer {
  border-left: 3px solid var(--offen);
  padding: 0.6rem 0 0.6rem 1.1rem;
  margin: 1.6rem 0;
  font-size: 0.97rem;
}

/* ---------- Fuß --------------------------------------------------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding: 1.4rem 0 3rem;
  font-size: 0.86rem;
  color: var(--tinte-leise);
}

.fuss p { margin: 0 0 0.35rem; max-width: var(--spalte); }
.fuss a { color: var(--tinte-leise); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Sitzung ohne eigene Seite: gleiche Zeilenform, aber kein Verweis */
.sitzung-zeile {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.3rem 1.2rem;
  align-items: baseline;
  padding: 0.95rem 0 0.35rem;
}
@media (max-width: 38rem) {
  .sitzung-zeile { grid-template-columns: 3.8rem 1fr; }
}

/* ------------------------------------------------------------------
   Startseite (Ebene 0)
   Drei Perspektiven, sonst nichts. Der Name in der Kopfleiste, die
   Suche daneben, unten die Pflichtangaben. Keine Erläuterungen —
   die stehen eine Ebene tiefer.
   ------------------------------------------------------------------ */

.kopf-wege { display: flex; gap: 1.4rem; align-items: baseline;
             margin-left: auto; }
.kopf-wege a { font-family: var(--sans); font-size: 1rem; }

.tore {
  display: grid;
  gap: 1.1rem;
  margin: clamp(2.5rem, 8vh, 5rem) 0 clamp(3rem, 9vh, 6rem);
}

.tor {
  display: block;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--linie);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.tor:hover, .tor:focus-visible {
  border-color: var(--belegt);
  background: var(--markiert);
}
.tor-wort {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Fußleiste: die drei Pflichtangaben deutlicher und weiter auseinander */
.fuss-wege {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.6rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linie-fein);
}
.fuss-wege a {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--tinte);
}

@media (min-width: 46rem) {
  .tore { gap: 1.3rem; }
}

/* Einstieg von einer Infoseite in die Perspektive */
.einstieg { margin: 2rem 0 1rem; }
.hinweis-klein { font-family: var(--sans); font-size: .88rem;
                 color: var(--tinte-leise); margin: 0; }
