/* Das Stadt-Bastel-Buch · Webseite
   Werte aus Konzept/02_Design.md und Konzept/design/design-tokens.json.
   Keine Inline-Stile (die Content-Security-Policy erlaubt nur diese Datei). */

@font-face { font-family: "Fraunces"; src: url("/statisch/schriften/fraunces-soft.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/statisch/schriften/andika-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/statisch/schriften/andika-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/statisch/schriften/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --papier: #fbf6ec; --bogen: #ffffff; --karton: #c4a27a; --karton-hell: #ecdcc2; --karton-tief: #6b4f31;
  --tusche: #1f1b16; --tusche-mittel: #5b5046; --klebeflaeche: #dcd5c9;
  --wasser: #56c1dc; --wasser-tief: #0d6a88; --moos: #7ba635; --sonne: #f6c531; --ziegel: #de6239;
  --stadtfarbe: #1c6d97; --stadtfarbe-hell: #d9ecf4; --stadtfarbe-tief: #0d3a52; --auf-stadtfarbe: #ffffff;
  --schatten-liegend: 0 1px 0 #6b4f3140, 1px 3px 6px #6b4f3133;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tusche); font-family: "Andika", system-ui, sans-serif; font-size: 18px; line-height: 1.55; }
a { color: var(--stadtfarbe); }
a:hover { color: var(--wasser-tief); }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; box-shadow: 0 0 0 5px var(--tusche); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 12px; }
.t { font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100; }
.m { font-family: "DM Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 500; }
.leise { color: var(--tusche-mittel); }
.klein { font-size: 15px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.versteckt { display: none !important; }
.sprung { position: absolute; left: 8px; top: -60px; background: var(--tusche); color: #fff; padding: 10px 14px; z-index: 10; }
.sprung:focus { top: 8px; }

/* ---------- Knöpfe ---------- */
.knopf { font: inherit; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--tusche); text-decoration: none; cursor: pointer;
  background: var(--tusche); color: #fff; text-align: center; }
.knopf:hover { color: #fff; background: #000; }
.knopf--hell { background: var(--papier); color: var(--tusche); }
.knopf--hell:hover { background: #fff; color: var(--tusche); }
.knopf--sonne { background: var(--sonne); color: var(--tusche); }
.knopf--sonne:hover { background: #ffd44d; color: var(--tusche); }
.knopf--stadt { background: var(--stadtfarbe); border-color: var(--stadtfarbe); color: #fff; min-height: 44px; padding: 10px 18px; }
.knopf--stadt:hover { background: var(--stadtfarbe-tief); color: #fff; }
.knopf--breit { width: 100%; }
.knopf[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Formulare ---------- */
label { cursor: pointer; }
.feldname { display: block; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
input[type=email], input[type=text], input[type=number], select, textarea {
  font: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--tusche); border-radius: 0; background: #fff; color: var(--tusche); }
textarea { min-height: 120px; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.haken input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--stadtfarbe); }
.fehler { background: #fde8e1; border: 2px solid var(--ziegel); padding: 12px 14px; font-size: 16px; }
.fehler p:last-child { margin: 0; }
.feld-fehler { color: #9c2e0e; font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stapel { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Schmale Seiten: Liste und Generator ---------- */
.schmal-seite { background: var(--stadtfarbe); min-height: 100vh; padding: 24px 16px 40px; }
.schmal-seite--papier { background: var(--papier); }
.schmal { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.schmal-kopf { display: flex; justify-content: space-between; gap: 12px; color: #fff; }
.schmal-kopf .m { color: #fff; font-size: 11px; }
.schmal-titel { color: #fff; }
.schmal-titel h1 { font-size: 64px; line-height: .9; font-weight: 850; letter-spacing: -.02em; }
.schmal-titel p { margin: 10px 0 0; font-size: 26px; line-height: 1.1; font-weight: 600; }
.blatt { background: var(--papier); padding: 24px; box-shadow: 4px 6px 0 var(--stadtfarbe-tief); }
.blatt h2 { font-size: 34px; line-height: 1.05; font-weight: 800; margin-bottom: 4px; }
.dankeschoen { background: var(--karton-hell); border-radius: 10px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.dankeschoen p { margin: 0; }
.dankeschoen svg { flex: none; }
.auswahl { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.auswahl legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.wahl { display: flex; gap: 14px; align-items: center; min-height: 60px; padding: 10px 14px; background: #fff; border: 2px solid var(--tusche); cursor: pointer; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl:has(input:checked) { background: var(--stadtfarbe-hell); border: 3px solid var(--stadtfarbe); padding: 9px 13px; }
.wahl:has(input:focus-visible) { outline: 3px solid var(--sonne); outline-offset: 2px; }
.wahl-nr { width: 40px; height: 40px; border-radius: 9999px; background: var(--stadtfarbe); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: "DM Mono", monospace; font-size: 16px; flex: none; }
.wahl-text { display: flex; flex-direction: column; text-align: left; }
.wahl-text small { font-size: 14px; color: var(--tusche-mittel); }
.stand-kasten { background: var(--karton); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #fff; }
.fuss-links a { color: #fff; }
.schmal-seite--papier .fuss-links, .schmal-seite--papier .fuss-links a { color: var(--stadtfarbe); }

/* ---------- Große Seiten: Dach und Stadt ---------- */
.inhalt { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .inhalt { padding: 0 16px; } }
.kopf { background: var(--papier); border-bottom: 2px solid var(--tusche); }
.kopf .inhalt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tusche); }
.logo .t { font-size: 22px; font-weight: 800; line-height: 1.1; }
.logo .m { display: block; color: var(--stadtfarbe); font-size: 11px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 17px; }
.nav a { color: var(--tusche); min-height: 44px; display: inline-flex; align-items: center; }
.abschnitt { padding: 64px 0; border-top: 2px solid var(--tusche); }
.abschnitt--karton { background: var(--karton); }
.abschnitt--stadt { background: var(--stadtfarbe); color: #fff; }
.abschnitt--stadt a { color: #fff; }
.abschnitt--hell { background: var(--stadtfarbe-hell); }
.abschnitt--tusche { background: var(--tusche); color: #fff; }
.abschnitt--weiss { background: #fff; }
.abschnitt h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; margin-bottom: 16px; }
.abschnitt .m { margin-bottom: 12px; }
.abschnitt--karton .m, .abschnitt--karton .leise { color: var(--tusche); }
.held { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.held > * { flex: 1 1 420px; min-width: 0; }
.held h1 { font-size: clamp(48px, 7vw, 92px); line-height: .95; font-weight: 850; letter-spacing: -.02em; }
.held .unter { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin: 8px 0 0; }
.held .einleitung { margin: 24px 0 0; font-size: 21px; max-width: 34em; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.zettel { background: #fff; color: var(--tusche); padding: 20px 22px; box-shadow: 4px 6px 0 var(--karton-tief); transform: rotate(-2deg); max-width: 420px; }
.zettel .t { font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.zettel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; }
.zettel dt { padding-top: 4px; }
.zettel dd { margin: 0; }
.papierstadt-rahmen { position: relative; }
.papierstadt-rahmen svg { width: 100%; height: auto; display: block; }
.papierstadt-rahmen .schatten { filter: drop-shadow(4px 6px 0 #6b4f3159); }
.notiz-zettel { position: absolute; left: 0; top: -8px; transform: rotate(-3deg); background: #fff; color: var(--tusche); text-decoration: none; padding: 12px 16px; box-shadow: var(--schatten-liegend); max-width: 240px; line-height: 1.35; }
.notiz-zettel .m { display: block; color: var(--stadtfarbe); font-size: 11px; margin-bottom: 4px; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.karten--breit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.karte { background: #fff; border: 2px solid var(--tusche); padding: 20px; color: var(--tusche); }
.karte .t { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
a.karte { text-decoration: none; display: block; }
a.karte:hover { background: var(--stadtfarbe-hell); color: var(--tusche); }
.karte--stadt { background: var(--stadtfarbe); color: #fff; border-color: var(--tusche); }
.karte--stadt .m, a.karte--stadt:hover { color: #fff; }
a.karte--stadt:hover { background: var(--stadtfarbe-tief); }
.tipp { background: var(--karton-hell); border-radius: 10px; padding: 20px; }
.zwei { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; margin-top: 40px; }
.zwei > * { flex: 1 1 320px; min-width: 0; }
.linien { display: grid; gap: 10px; font-size: 17px; }
.linien div { display: flex; gap: 12px; align-items: center; }
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0; }
.schritte .m { color: var(--stadtfarbe); }
.foto-platz { background: var(--karton-hell); border: 2px solid var(--tusche); min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.liste-punkte { display: grid; gap: 14px; margin: 24px 0; }
.liste-punkte > div { display: flex; gap: 14px; }
.liste-punkte .m { flex: none; padding-top: 4px; }
.gebaeude-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.gebaeude-knoepfe button { font: inherit; font-size: 17px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--tusche); background: #fff; color: var(--tusche); cursor: pointer; text-align: left; }
.gebaeude-knoepfe button[aria-pressed=true] { background: var(--stadtfarbe); color: #fff; }
.gebaeude-knoepfe .nr { font-family: "DM Mono", monospace; font-size: 13px; margin-right: 8px; }
.gebaeude-raster { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.gebaeude-raster > :first-child { flex: 2 1 460px; }
.gebaeude-raster > :last-child { flex: 1 1 280px; }
.steckbrief { background: #fff; border: 2px solid var(--tusche); padding: 24px; box-shadow: var(--schatten-liegend); }
.steckbrief .nr { width: 48px; height: 48px; border-radius: 9999px; background: var(--stadtfarbe); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "DM Mono", monospace; margin-bottom: 12px; }
.steckbrief .t { font-size: 28px; font-weight: 800; line-height: 1.1; }
.licht { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.licht > div { flex: 1 1 360px; }
.eckdaten { display: grid; gap: 10px; margin-top: 16px; }
.hinweis-generator { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.fuss { background: var(--papier); border-top: 2px solid var(--tusche); padding: 24px 0; font-size: 15px; }
.fuss .inhalt { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.rechtstext { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.rechtstext h1 { font-size: 44px; font-weight: 800; margin-bottom: 24px; }
.rechtstext h2 { font-size: 26px; font-weight: 700; margin: 28px 0 8px; }

/* ---------- Generator ---------- */
.fortschritt { display: flex; gap: 6px; margin: 12px 0 6px; }
.fortschritt span { flex: 1; height: 8px; border: 2px solid var(--tusche); background: var(--papier); }
.fortschritt span.an { background: var(--stadtfarbe); }
.gen-kopf { background: var(--stadtfarbe); color: #fff; padding: 20px 16px 16px; }
.gen-kopf .schmal { gap: 4px; }
.gen-kopf h1 { font-size: 40px; line-height: 1; font-weight: 850; }
.gen-kopf .fortschritt span { border-color: #fff; background: transparent; }
.gen-kopf .fortschritt span.an { background: #fff; }
.gen-schritt { padding: 24px 16px 8px; }
.gen-schritt h2 { font-size: 30px; line-height: 1.1; font-weight: 800; margin-bottom: 8px; }
.kasten { background: #fff; border: 2px solid var(--tusche); padding: 20px; }
.kasten--karton { background: var(--karton-hell); border: 0; border-radius: 10px; }
.fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.foto-feld { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; min-height: 130px;
  background: #fff; border: 2px solid var(--tusche); text-align: center; cursor: pointer; overflow: hidden; }
.foto-feld input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.foto-feld:has(input:focus-visible) { outline: 3px solid var(--sonne); outline-offset: 2px; }
.foto-feld.hat-foto { background: var(--stadtfarbe-hell); border: 3px solid var(--stadtfarbe); }
.foto-feld img { width: 100%; height: 70px; object-fit: cover; border: 1px solid var(--tusche); }
.foto-feld small { font-size: 13px; color: var(--tusche-mittel); }
.foto-feld--gross { grid-column: 1 / -1; }
.wahlkacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wahlkacheln--eins { grid-template-columns: 1fr; }
.kachel { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-height: 64px; background: var(--papier); border: 2px solid var(--tusche); cursor: pointer; font-size: 16px; }
.kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kachel:has(input:checked) { background: var(--stadtfarbe-hell); border: 3px solid var(--stadtfarbe); padding: 11px 13px; }
.kachel:has(input:focus-visible) { outline: 3px solid var(--sonne); outline-offset: 2px; }
.kachel strong { font-size: 17px; }
.look-muster { display: flex; gap: 4px; height: 16px; margin-bottom: 4px; }
.look-muster i { flex: 1; border: 1px solid var(--tusche); }
.muster-klassisch i:nth-child(1) { background: #093f6f; } .muster-klassisch i:nth-child(2) { background: #008ed2; } .muster-klassisch i:nth-child(3) { background: #fbc800; }
.muster-lahnblau i:nth-child(1) { background: #1c6d97; } .muster-lahnblau i:nth-child(2) { background: #d9ecf4; } .muster-lahnblau i:nth-child(3) { background: #f6c531; }
.muster-advent i:nth-child(1) { background: #8c1c2c; } .muster-advent i:nth-child(2) { background: #2e6b3f; } .muster-advent i:nth-child(3) { background: #f6c531; }
.muster-anmalen i { background: #fff; }
.pruefliste { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.pruefliste div { display: flex; gap: 12px; align-items: center; }
.punkt { width: 32px; height: 32px; border-radius: 9999px; border: 2px solid var(--tusche); display: inline-flex; align-items: center; justify-content: center; font-family: "DM Mono", monospace; font-size: 11px; flex: none; background: #fff; }
.punkt.fertig { background: var(--moos); }
.punkt.laeuft { background: var(--sonne); }
.masse { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.masse label { font-size: 16px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.unsicher input, .unsicher select { border-color: var(--ziegel); border-style: double; border-width: 4px; }
.unsicher-hinweis { font-weight: 400; font-size: 13px; color: #9c2e0e; }
.farben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; font-size: 15px; }
.farben input[type=color] { width: 100%; height: 48px; border: 2px solid var(--tusche); padding: 2px; background: #fff; cursor: pointer; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extras label { min-height: 44px; padding: 8px 14px; border-radius: 9999px; border: 2px solid var(--tusche); background: #fff; display: inline-flex; align-items: center; font-size: 16px; }
.extras input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.extras label:has(input:checked) { background: var(--stadtfarbe); color: #fff; border-color: var(--stadtfarbe); }
.extras label:has(input:focus-visible) { outline: 3px solid var(--sonne); outline-offset: 2px; }
.vorschau { background: #fff; border: 2px solid var(--tusche); box-shadow: var(--schatten-liegend); }
.vorschau img { display: block; width: 100%; height: auto; }
.lade-balken { height: 10px; border: 2px solid var(--tusche); background: #fff; overflow: hidden; }
.lade-balken span { display: block; height: 100%; width: 35%; background: var(--stadtfarbe); animation: laden 1.6s ease-in-out infinite; }
@keyframes laden { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .lade-balken span { animation: none; width: 100%; } }

/* ---------- Druck der Codekarten ---------- */
.karten-bogen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; width: 190mm; margin: 0 auto; }
.code-karte { border: 1px solid #999; padding: 6mm; height: 55mm; display: flex; gap: 5mm; align-items: center; break-inside: avoid; }
.code-karte svg { width: 32mm; height: 32mm; flex: none; }
.code-karte .code { font-family: "DM Mono", monospace; font-size: 15pt; letter-spacing: .08em; margin: 2mm 0; }
.code-karte .t { font-size: 15pt; font-weight: 800; }
@media print { body { background: #fff; } .nicht-drucken { display: none; } @page { size: A4; margin: 10mm; } }

/* Ergänzungen */
.steckbrief-titel { font-size: 22px; margin: 6px 0 8px; }
.t-text { font-size: 17px; line-height: 1.55; }
.foto-feld--gross { grid-column: 1 / -1; }
.pruefliste .erledigt .punkt { background: var(--moos); }
.pruefliste .aktiv .punkt { background: var(--sonne); }
.pruefliste .erledigt > span:last-child { color: var(--tusche-mittel); }
.unsicher::after { content: "geschätzt, bitte prüfen"; display: block; font-size: 13px; color: #9c2e0e; }
