/* Kontor – brick of the Speicherstadt, harbour navy, paper. System fonts only (no third-party requests). */
:root {
  --papier: #faf7f2;
  --papier-getoent: #f2ece2;
  --tinte: #1d2433;
  --tinte-leise: #556070;
  --ziegel: #a3472f;
  --ziegel-dunkel: #86391f;
  --linie: #e2d9cb;
  --karte: #ffffff;
  --balken: #a3472f;
  --balken-grund: #ece4d8;
  --fehler: #b3261e;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #141922;
    --papier-getoent: #1a2030;
    --tinte: #ece7df;
    --tinte-leise: #a6adba;
    --ziegel: #e07a5c;
    --ziegel-dunkel: #f0937a;
    --linie: #2c3446;
    --karte: #1e2535;
    --balken: #e07a5c;
    --balken-grund: #2a3244;
    --fehler: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #141922; --papier-getoent: #1a2030; --tinte: #ece7df; --tinte-leise: #a6adba;
  --ziegel: #e07a5c; --ziegel-dunkel: #f0937a; --linie: #2c3446; --karte: #1e2535;
  --balken: #e07a5c; --balken-grund: #2a3244; --fehler: #ff8a80; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ziegel); }
a:hover { color: var(--ziegel-dunkel); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.4rem); margin: 0.3em 0 0.4em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.6rem, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; margin: 2em 0 0.6em; }

.breite { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.schmal > * { max-width: 720px; }

.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); position: sticky; top: 0; z-index: 10; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--tinte); font-size: 1.1rem; }
.marke-zeichen { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ziegel); color: #fff; font-size: 0.95rem; }
.kopf nav { display: flex; gap: 16px; font-size: 0.95rem; }
.kopf nav a { color: var(--tinte-leise); text-decoration: none; }
.kopf nav a:hover { color: var(--ziegel); }
.kopf nav a.sprache { font-weight: 700; color: var(--ziegel); border: 1px solid var(--linie); border-radius: 6px; padding: 0 6px; }

.held { padding: 56px 0 48px; }
.vorzeile { color: var(--ziegel); font-weight: 600; font-size: 0.95rem; margin: 0; }
.einleitung { font-size: 1.15rem; color: var(--tinte-leise); max-width: 640px; }

.knopf {
  display: inline-block; background: var(--ziegel); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; margin: 6px 8px 6px 0;
}
.knopf:hover { background: var(--ziegel-dunkel); color: #fff; }
.knopf:disabled { opacity: 0.6; cursor: wait; }
.knopf-leise { background: transparent; color: var(--ziegel); box-shadow: inset 0 0 0 2px var(--ziegel); }
.knopf-leise:hover { background: var(--ziegel); color: #fff; }

.abschnitt { padding: 56px 0; }
.abschnitt-getoent { background: var(--papier-getoent); }
.unterzeile { color: var(--tinte-leise); margin-top: -0.2em; }

.zitat { margin: 0; padding: 20px 24px; border-left: 4px solid var(--ziegel); background: var(--karte); border-radius: 0 var(--radius) var(--radius) 0; }
.zitat p { margin: 0 0 0.6em; font-size: 1.1rem; }
.zitat footer { color: var(--tinte-leise); font-size: 0.95rem; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.karte p { margin: 0 0 0.6em; }
.zahl { font-size: 1.9rem; font-weight: 700; color: var(--ziegel); letter-spacing: -0.01em; }
.quelle { margin-top: auto !important; font-size: 0.85rem; color: var(--tinte-leise); }

.liste { padding-left: 1.2em; }
.liste li { margin-bottom: 0.7em; }

/* Survey */
.frage { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.frage legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; padding: 0; }
.pflicht { color: var(--ziegel); font-weight: 400; font-size: 0.9rem; }
.frage-hinweis { color: var(--tinte-leise); font-size: 0.92rem; margin: 0 0 10px; }
.optionen { display: grid; gap: 8px; }
.option {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--karte);
  border: 1px solid var(--linie); border-radius: 10px; cursor: pointer;
}
.option:has(input:checked) { border-color: var(--ziegel); box-shadow: inset 0 0 0 1px var(--ziegel); }
.option:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.option input { margin-top: 0.3em; accent-color: var(--ziegel); width: 18px; height: 18px; flex: none; }
.freitext { width: 100%; margin-top: 10px; min-height: 84px; padding: 10px 12px; font: inherit; color: var(--tinte);
  background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; resize: vertical; }
.freitext:focus, .option:focus-within { outline: 2px solid var(--ziegel); outline-offset: 2px; }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fehler { color: var(--fehler); font-weight: 600; }
.danke { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 24px; }
.danke h3 { margin-top: 0; }

/* Results */
.ergebnis-frage { margin-bottom: 28px; }
.ergebnis-frage h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ergebnis-meta { color: var(--tinte-leise); font-size: 0.88rem; margin: 0 0 10px; }
.ergebnis-zeile { margin-bottom: 8px; }
.ergebnis-text { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.ergebnis-text span:last-child { font-variant-numeric: tabular-nums; color: var(--tinte-leise); white-space: nowrap; }
.balken { height: 8px; background: var(--balken-grund); border-radius: 999px; overflow: hidden; margin-top: 3px; }
.balken > span { display: block; height: 100%; background: var(--balken); border-radius: 999px; }
.hinweis, .arbeitstitel { color: var(--tinte-leise); font-size: 0.92rem; }

.fuss { border-top: 1px solid var(--linie); padding: 24px 0 40px; color: var(--tinte-leise); font-size: 0.92rem; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }

/* Legal pages */
.rechtstext { padding: 40px 0 64px; }
.rechtstext h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* Navigation */
.sprungmarke { position: absolute; left: -10000px; top: 8px; background: var(--ziegel); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 20; }
.sprungmarke:focus { left: 8px; }
.kopf nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.kopf nav a[aria-current="page"] { color: var(--tinte); font-weight: 700; }
@media (max-width: 560px) {
  .kopf-zeile { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .kopf nav { gap: 12px; font-size: 0.9rem; justify-content: flex-start; width: 100%; }
}

/* Start: three ways in */
.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.weg { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--radius); text-decoration: none; color: var(--tinte); transition: border-color .15s, transform .15s; }
.weg:hover, .weg:focus-visible { border-color: var(--ziegel); transform: translateY(-2px); color: var(--tinte); }
.weg-titel { font-weight: 700; font-size: 1.15rem; color: var(--ziegel); }
.weg-text { color: var(--tinte-leise); }
.weg-knopf { margin-top: auto; font-weight: 600; color: var(--ziegel); }
@media (prefers-reduced-motion: reduce) { .weg { transition: none; } .weg:hover { transform: none; } html { scroll-behavior: auto; } }

/* Thresholds */
.schwellen { display: grid; gap: 18px; margin-top: 12px; }
.schwelle-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.schwelle-kopf span { color: var(--tinte-leise); font-variant-numeric: tabular-nums; }
.schwelle .balken { height: 12px; margin-top: 6px; }
.schwelle-text { color: var(--tinte-leise); font-size: 0.9rem; margin: 6px 0 0; }

/* Survey wizard */
.umfrage-start .einleitung { margin-bottom: 24px; }
.fortschritt { height: 6px; background: var(--balken-grund); border-radius: 999px; overflow: hidden; }
.fortschritt > span { display: block; height: 100%; width: 0; background: var(--balken); transition: width .3s; }
.fortschritt-text { color: var(--tinte-leise); font-size: 0.9rem; margin: 8px 0 20px; }
.frage-titel { font-size: clamp(1.35rem, 2vw + 0.8rem, 1.8rem); margin: 0 0 8px; outline: none; }
.schritt-knoepfe { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.schritt-knoepfe .knopf[hidden] { display: none; }
.schritt-knoepfe #weiter { margin-left: auto; }
.land-auswahl, .eingabe { width: 100%; padding: 12px; font: inherit; color: var(--tinte); background: var(--karte);
  border: 1px solid var(--linie); border-radius: 10px; }
.land-auswahl:focus, .eingabe:focus { outline: 2px solid var(--ziegel); outline-offset: 2px; }
.danke .knopf { margin-top: 4px; }

/* Wishes */
.wunsch-liste { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.wunsch { display: flex; gap: 16px; padding: 16px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); }
.wunsch-stimmen { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; }
.stimme { width: 44px; height: 36px; border: 1px solid var(--linie); background: transparent; color: var(--tinte-leise);
  border-radius: 8px; cursor: pointer; font-size: 1rem; }
.stimme:hover { border-color: var(--ziegel); color: var(--ziegel); }
.stimme.aktiv { background: var(--ziegel); border-color: var(--ziegel); color: #fff; }
.stimme:focus-visible { outline: 2px solid var(--ziegel); outline-offset: 2px; }
.wunsch-saldo { font-weight: 700; font-variant-numeric: tabular-nums; }
.wunsch-titel { font-size: 1.1rem; margin: 2px 0 4px; }
.wunsch-inhalt p { margin: 0 0 6px; }
.wunsch-meta { color: var(--tinte-leise); font-size: 0.88rem; }
.vorschlag .knopf { margin-top: 10px; }

/* Pledges */
.zusagen { display: grid; gap: 16px; margin-top: 24px; }
.zusage-stand { padding: 20px; background: var(--papier-getoent); border-radius: var(--radius); }
.zusage-stand h2 { margin-top: 0; font-size: 1.3rem; }
.zusage { padding: 20px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); }
.zusage.zugesagt { border-color: var(--ziegel); }
.zusage-titel { font-size: 1.25rem; margin: 0 0 6px; }
.zusage-ok { font-weight: 700; color: var(--ziegel); }
.zusage-formular { display: grid; gap: 10px; margin-top: 8px; }
.feld { display: grid; gap: 6px; }
.feld-titel { font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; }
.optionen.kompakt { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--tinte-leise); }
.einwilligung[hidden] { display: none; }
.einwilligung input { margin-top: 0.3em; accent-color: var(--ziegel); width: 18px; height: 18px; flex: none; }
.zusage-formular .knopf { justify-self: start; }

/* Principles and statutes */
.charta { padding-left: 1.4em; }
.charta li { margin-bottom: 0.6em; font-size: 1.05rem; }
.satzung .paragraf h3 { margin: 1.6em 0 0.4em; }
.satzung .paragraf p { margin: 0 0 0.7em; }
