/* Stellplatz Celle – Projektportal. Ruhig, gut lesbar, Edelstein-Teal als Akzent. */
:root {
  --grund: #f5f7f7; --flaeche: #ffffff; --text: #17201f; --leise: #5b6867; --linie: #dbe2e1;
  --akzent: #0f766e; --akzent-hell: #e3f2f0; --ok: #166534; --ok-hell: #e6f4ea;
  --warn: #9a3412; --warn-hell: #fdeee6; --info-hell: #eef2f7;
  --radius: 10px; --schatten: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #101615; --flaeche: #172120; --text: #e6eceb; --leise: #9aa8a6; --linie: #2a3634;
    --akzent: #2dd4bf; --akzent-hell: #12332f; --ok: #86efac; --ok-hell: #14301e; --warn: #fdba74; --warn-hell: #3a2414;
    --info-hell: #1d2630; --schatten: none; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font-size: 16px; line-height: 1.5; }
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
h3 { font-size: 1.02rem; margin: 0; }
small, .klein { color: var(--leise); font-size: .88rem; }

.testband { background: #fde68a; color: #422006; text-align: center; padding: .3rem; font-size: .88rem; font-weight: 600; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1080px; margin: 0 auto; padding: .7rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.marke { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; }
.marke span { display: flex; flex-direction: column; line-height: 1.15; }
.marke small { font-size: .78rem; }
.menue { display: flex; flex-wrap: wrap; gap: .2rem; flex: 1; }
.menue a { color: var(--leise); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; font-size: .95rem; }
.menue a:hover { background: var(--grund); color: var(--text); }
.menue a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.abmelden { display: flex; align-items: center; gap: .6rem; margin: 0; }
.wer { color: var(--leise); font-size: .85rem; }

.inhalt { max-width: 1080px; margin: 0 auto; padding: 1.6rem 16px 3rem; }
.einleitung { margin-bottom: 1.4rem; max-width: 70ch; }
.einleitung p { color: var(--leise); margin: 0; }
.fuss { max-width: 1080px; margin: 0 auto; padding: 1rem 16px 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--leise); font-size: .82rem; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--schatten); margin-bottom: 1rem; }
.karte.schmal { max-width: 460px; margin: 2rem auto; }
.raster-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.raster-zwei .karte { margin: 0; }
.bereich { margin-bottom: 1.6rem; }
.bereich > h2 { color: var(--leise); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .6rem; }

button, .knopf { font: inherit; font-size: .95rem; cursor: pointer; border-radius: 8px; padding: .5rem 1rem; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { border-color: var(--akzent); }
.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .haupt { color: #04201d; } }
.leise { background: transparent; padding: .3rem .6rem; font-size: .88rem; }
.warnung { color: var(--warn); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.formular { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.formular fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
label { font-size: .9rem; font-weight: 500; }
input, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: 7px; background: var(--flaeche); color: var(--text); width: 100%; }
textarea { resize: vertical; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 1rem; }
.feld { display: flex; flex-direction: column; gap: .25rem; }
.feld.breit { grid-column: 1 / -1; }
.pflicht { color: var(--warn); }
.haken { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.haken input { width: auto; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: 0; }
form.inline select { width: auto; }

.aufgabe-kopf { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .4rem; }
.aufgabe .beschreibung { color: var(--leise); margin: 0 0 .8rem; max-width: 75ch; }
.aufgabe.folgt { opacity: .7; }
.aufgabe.erledigt, .aufgabe.freigegeben { border-left: 4px solid var(--ok); }
.aufgabe.aenderung { border-left: 4px solid var(--warn); }
.zuletzt { color: var(--leise); font-size: .8rem; margin: .8rem 0 0; }
.inhalt-text { white-space: pre-line; background: var(--grund); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .8rem; }
.bemerkung { background: var(--warn-hell); padding: .5rem .8rem; border-radius: 7px; }

.marke-status { font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; background: var(--info-hell); color: var(--leise); }
.marke-status.erledigt, .marke-status.freigegeben { background: var(--ok-hell); color: var(--ok); }
.marke-status.aenderung { background: var(--warn-hell); color: var(--warn); }
.marke-status.offen { background: var(--akzent-hell); color: var(--akzent); }

.meldung { padding: .55rem .8rem; border-radius: 7px; margin: 0 0 .8rem; }
.meldung.ok { background: var(--ok-hell); color: var(--ok); }
.meldung.fehler { background: var(--warn-hell); color: var(--warn); }

.monate { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.monat { display: flex; flex-direction: column; gap: .2rem; font-weight: 400; }
.monat span { font-size: .85rem; color: var(--leise); }

.tabelle-rahmen { overflow-x: auto; }
.tabelle, .tabelle-eingabe { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th, .tabelle-eingabe th { font-size: .8rem; color: var(--leise); font-weight: 600; text-align: left; }
.tabelle-eingabe td { padding: .2rem .3rem .2rem 0; }
.tabelle tr.gesperrt td { color: var(--leise); }
.entfernen { padding: .3rem .6rem; color: var(--leise); }
.aktionen { white-space: nowrap; }
.nowrap { white-space: nowrap; }

.balken { height: 10px; background: var(--grund); border-radius: 99px; overflow: hidden; border: 1px solid var(--linie); }
.balken span { display: block; height: 100%; width: var(--anteil); background: var(--akzent); }
.liste-offen { list-style: none; padding: 0; margin: 1rem 0; }
.liste-offen li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.liste-offen small { flex-basis: 100%; }

.phasen { list-style: none; margin: 0; padding: 0; }
.phase { display: flex; gap: .8rem; padding-bottom: .9rem; position: relative; }
.phase:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--linie); }
.phase .punkt { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--linie); background: var(--flaeche); margin-top: 4px; z-index: 1; }
.phase.erledigt .punkt { background: var(--ok); border-color: var(--ok); }
.phase.laeuft .punkt { border-color: var(--akzent); background: var(--akzent-hell); }
.phase p { margin: .1rem 0 0; color: var(--leise); font-size: .9rem; }
.zeitraum { display: block; font-size: .82rem; color: var(--leise); }
.phase.laeuft strong { color: var(--akzent); }

.dokumente { list-style: none; margin: 0; padding: 0; }
.dokumente li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.dokumente li:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .abmelden .wer { display: none; }
  h1 { font-size: 1.35rem; }
  .karte { padding: 1rem; }
}
