/* Blechdorf – Seitenhülle. Farben und Schriften nach docs/mockup/README.md */

@font-face { font-family: 'Pixelify Sans'; src: url('../fonts/pixelify-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('../fonts/pixelify-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('../fonts/pixelify-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* Zeitung: UnifrakturMaguntia, Old Standard TT, Source Serif 4 (SIL OFL, selbst gehostet) */
@font-face { font-family: 'UnifrakturMaguntia'; src: url('../fonts/unifraktur-maguntia-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --seite: #12172B;
  --kopf: #151B33;
  --karte: #1B2240;
  --chip: #1F2747;
  --rahmen: #2E3966;
  --linie: #2A3360;
  --text: #F1EAD8;
  --text-chip: #E4DDCB;
  --leise: #A8AFCB;
  --akzent: #FFB547;
  --gut: #7BD88F;
  --warnung: #F27B6B;
  --orange: #F2A65A;
  --pixel: 'Pixelify Sans', system-ui, sans-serif;
  --text-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fraktur: 'UnifrakturMaguntia', 'Old Standard TT', Georgia, serif;
  --antiqua: 'Old Standard TT', Georgia, serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --papier: #F6F1E4;
  --papier-grund: #E4DCC8;
  --tinte: #1E1B16;
  --tinte-leise: #4A4236;
  --papier-linie: #CFC3A6;
  --rost: #8A3B12;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { font-variant-ligatures: no-common-ligatures; margin: 0; background: var(--seite); color: var(--text); font-family: var(--text-font); font-size: 15px; line-height: 1.5; }
a { color: var(--akzent); }
a:hover { color: #FFD08A; }
h2 { margin: 0; font-family: var(--pixel); font-size: 20px; font-weight: 600; line-height: 1.2; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: var(--akzent); color: #1A1408; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { font-size: 13px; color: var(--leise); }
.noscript { max-width: 1360px; margin: 0 auto; padding: 0 24px; color: var(--warnung); }

/* Kopfzeile */
.kopf { background: var(--kopf); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1360px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo span { font-family: var(--pixel); font-size: 28px; font-weight: 700; letter-spacing: 0.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--rahmen); font-size: 13px; color: var(--text-chip); }
.chip-stark { font-weight: 600; }
.chip { white-space: nowrap; flex: none; }
.wetter-icon { display: inline-flex; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: #C9C4B4; text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a[aria-current="page"] { background: var(--linie); color: var(--text); font-weight: 600; }
.nav-kurz { display: none; }
/* läuft eine Leiste über, zeigt ein Verlauf am Rand, dass man wischen kann (Klassen setzt stil.js) */
.mehr-rechts { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.mehr-links.mehr-rechts { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.mehr-links:not(.mehr-rechts) { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.infozeile { display: none; margin: -8px 0 0; font-size: 13px; color: var(--leise); }

/* Inhalt */
.haupt { max-width: 1360px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.spalte-insel { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.spalte-seite { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hinweis { margin: -6px 0 0; font-size: 13px; color: var(--leise); }

/* Inselkarte */
.karte { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--rahmen); background: #24507A; aspect-ratio: 2048 / 1360; }
.insel-canvas { position: absolute; inset: 0; display: block; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.karte-badge { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(16, 22, 44, 0.82); font-size: 12px; line-height: 1.3; pointer-events: none; }
.karte-badge .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gut); }
.karte-badge.pause .punkt { background: var(--leise); }
.karte-knoepfe { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; max-height: calc(100% - 24px); gap: 6px; }
.knopf-rund { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--rahmen); background: rgba(16, 22, 44, 0.85); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.knopf-rund:hover { border-color: var(--akzent); }
.knopf-namen { font-size: 13px; font-weight: 600; }
.knopf-namen[aria-pressed="true"] { background: var(--akzent); color: #1A1408; border-color: var(--akzent); }

.roboter-karte { position: absolute; width: 236px; max-width: calc(100% - 24px); background: var(--kopf); border: 1px solid var(--akzent); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; z-index: 2; }
.roboter-karte[hidden] { display: none; }
.roboter-karte .rk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.roboter-karte .rk-name { font-family: var(--pixel); font-size: 20px; font-weight: 600; }
.roboter-karte .rk-pate { margin-right: auto; }
.roboter-karte .rk-zu { width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--linie); color: var(--text); cursor: pointer; font-size: 16px; }
.roboter-karte p { margin: 0; font-size: 13px; }
.roboter-karte .rk-art { color: var(--leise); }

/* Rückblick, Drinnen, Hinweise */
.karte-badge.im-rueckblick .punkt { background: var(--akzent); }
.karte-rueckblick { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rahmen); background: rgba(16, 22, 44, 0.85); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.karte-rueckblick:hover, .knopf-text:hover { border-color: var(--akzent); }
.knopf-text { align-self: flex-start; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--rahmen); background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.rueckblick { position: absolute; inset: 0; pointer-events: none; }
.rb-uhr { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 4px 18px; border-radius: 12px; background: rgba(16, 22, 44, 0.78); font-family: var(--text-font); font-size: 30px; font-weight: 700; color: var(--akzent); font-variant-numeric: tabular-nums; }
.rb-meldungen { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rb-meldungen li { padding: 6px 12px; border-radius: 10px; background: rgba(16, 22, 44, 0.88); font-size: 13px; animation: rb-ein 0.3s ease-out; display: flex; gap: 8px; }
.rb-meldungen time { color: var(--leise); font-variant-numeric: tabular-nums; }
@keyframes rb-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rb-leiste { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(16, 22, 44, 0.9); border: 1px solid var(--rahmen); pointer-events: auto; }
.rb-knopf { flex: none; min-width: 36px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rahmen); background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-knopf[aria-pressed="true"] { background: var(--akzent); color: #1A1408; border-color: var(--akzent); }
.rb-live { margin-left: 2px; }
.rb-spulen { flex: 1; min-width: 60px; accent-color: var(--akzent); }
.drinnen-info { position: absolute; z-index: 3; max-width: 260px; padding: 8px 12px; border-radius: 10px; background: var(--kopf); border: 1px solid var(--akzent); font-size: 13px; }
.dev-hinweis { position: absolute; top: 44px; left: 12px; margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(16, 22, 44, 0.88); font-size: 12px; color: var(--leise); }
.dev-hinweis code { color: var(--akzent); }
@media (prefers-reduced-motion: reduce) { .rb-meldungen li { animation: none; } }

/* Balken */
.werte { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--leise); }
.wert { display: flex; align-items: center; gap: 8px; }
.wert > span:first-child { width: 56px; }
.wert > span:last-child { width: 36px; text-align: right; }
.balken { flex: 1; height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.balken > div, .balken > span { display: block; height: 100%; background: var(--akzent); }
.balken-gross { height: 10px; border-radius: 5px; flex: none; }

/* Bewohner */
.bewohner { display: flex; flex-direction: column; gap: 12px; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bewohner .abschnitt-kopf { justify-content: flex-start; }
.bewohner h2 { font-size: 22px; }
.bewohner-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bewohner-karte { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--karte); border: 1px solid var(--rahmen); color: var(--text); text-align: left; cursor: pointer; width: 100%; }
.bewohner-karte:hover, .bewohner-karte[aria-pressed="true"] { border-color: var(--akzent); }
.bewohner-karte canvas { flex: none; width: 33px; height: 45px; image-rendering: pixelated; }
.bewohner-karte .bk-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bewohner-karte .bk-name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bewohner-karte .bk-last { width: 18px; height: 14px; object-fit: contain; image-rendering: pixelated; flex: none; }
.bewohner-karte .bk-last-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.bewohner-karte.liegt .bk-beruf { color: var(--warnung); }
.bewohner-karte .bk-beruf { font-size: 12px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bewohner-karte .balken { height: 4px; border-radius: 2px; flex: none; margin-top: 4px; }

/* Seitenleiste */
.kasten { background: var(--karte); border: 1px solid var(--rahmen); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.liste-punkte, .liste-ticker { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.liste-punkte li { display: flex; gap: 10px; }
.liste-punkte li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--punkt, var(--akzent)); }
.liste-punkte p { margin: 0; }
.liste-ticker li { display: flex; gap: 12px; }
.liste-ticker time { flex: none; width: 42px; font-variant-numeric: tabular-nums; color: var(--leise); }
.liste-ticker .wichtig { font-weight: 600; }
.projekt-zahl { display: flex; align-items: baseline; gap: 10px; }
.projekt-zahl .gross { white-space: nowrap; font-family: var(--pixel); font-size: 36px; font-weight: 700; color: var(--akzent); line-height: 1; }
.material { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.material .wert > span:first-child { width: 54px; }
.material .wert > span:last-child { width: 56px; color: var(--leise); }

.fuss { max-width: 1360px; margin: 0 auto; padding: 8px 24px 32px; font-size: 12px; color: var(--leise); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.fuss-links { display: flex; gap: 16px; }
.fuss-links a { color: var(--leise); }
.leise-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.bewohner .abschnitt-kopf .leise-link { margin-left: auto; }

/* Besucheraktionen */
.knopf-gross { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: none; background: var(--akzent); color: #1A1408; font-family: var(--pixel); font-size: 19px; font-weight: 600; cursor: pointer; }
.knopf-gross:hover:not(:disabled) { background: #FFC56E; }
.knopf-gross:disabled { background: var(--rahmen); color: #C9C4B4; cursor: default; }
.funke p { margin: 0; }
.trenner { height: 1px; background: var(--rahmen); }
.sonne-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sonne-zeile > div { display: flex; flex-direction: column; gap: 2px; }
.sonne-titel { font-weight: 600; font-size: 14px; }
.knopf-rahmen { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--akzent); background: transparent; color: var(--akzent); font-size: 14px; font-weight: 600; cursor: pointer; }
.knopf-rahmen:hover:not(:disabled) { background: rgba(255, 181, 71, 0.12); }
.knopf-rahmen:disabled { opacity: 0.45; cursor: default; }
.optionen { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rahmen); background: var(--chip); color: var(--text); cursor: pointer; }
.option:hover:not(:disabled) { border-color: var(--akzent); }
.option:disabled { cursor: default; }
.option.gewaehlt { border: 2px solid var(--akzent); background: #2A2F4F; }
.option-kopf { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.option .balken { flex: none; width: 100%; }
.rueckmeldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 12px; background: var(--kopf); border: 1px solid var(--gut); color: var(--text); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.rueckmeldung.abgelehnt { border-color: var(--warnung); }
.bau-karte { position: absolute; z-index: 3; width: 230px; max-width: calc(100% - 16px); padding: 12px 14px; border-radius: 12px; background: var(--kopf); border: 1px solid var(--akzent); display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.bau-karte .rk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bau-karte .rk-name { font-family: var(--pixel); font-size: 18px; font-weight: 600; }
.bau-karte .rk-zu { width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--linie); color: var(--text); cursor: pointer; }
.bau-karte p { margin: 0; font-size: 13px; }
.bau-karte .rk-art { color: var(--leise); }
.knopf-herz, .knopf-pate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: none; background: var(--linie); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.knopf-herz span { color: #F27B9B; font-size: 17px; }
.knopf-herz:hover:not(:disabled), .knopf-pate:hover { background: var(--rahmen); }
.knopf-herz.erledigt, .knopf-herz:disabled { opacity: 0.7; cursor: default; }
.knopf-pate span { color: var(--akzent); }
.knopf-pate.ist-pate { background: var(--akzent); color: #1A1408; }
.knopf-pate.ist-pate span { color: #1A1408; }
.knopf-pate.gross { min-height: 44px; padding: 0 18px; }
.rk-paten { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-pate, .abzeichen { font-size: 11px; font-weight: 600; color: #1A1408; background: var(--akzent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rk-profil { font-size: 13px; font-weight: 600; text-decoration: none; }
.bk-stern { color: var(--akzent); }
.bewohner-karte.pate { border-color: var(--akzent); }
.liste-punkte li.vom-paten p { font-weight: 600; }

/* Teaser der Zeitung auf der Insel */
.zeitung-teaser { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--papier); color: var(--tinte); border-radius: 16px; padding: 24px 28px; border: 1px solid #D8CDB4; }
.zeitung-teaser:hover { color: var(--tinte); box-shadow: 0 0 0 2px var(--akzent); }
.zt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--tinte); padding-bottom: 8px; }
.zt-titel { font-family: var(--fraktur); font-size: 36px; line-height: 1; }
.zt-ausgabe { font-family: var(--serif); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #5C5243; }
.zt-schlagzeile { font-family: var(--antiqua); font-size: 26px; font-weight: 700; line-height: 1.15; }
.zt-anriss { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #3A342B; }
.zt-mehr { font-size: 14px; font-weight: 600; color: var(--rost); }

/* Unterseiten */
.seite { max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.seite-schmal { max-width: 760px; }
.seite-titel { margin: 0; font-family: var(--pixel); font-size: 44px; font-weight: 700; line-height: 1.05; }
.seite-unter { margin: 6px 0 0; color: #D9D3C2; font-size: 16px; }
.seite-zurueck { margin: 0; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.seite-zurueck a { font-weight: 600; text-decoration: none; }
.sprite { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; }
.profil-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.profil-karte { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--karte); border: 1px solid var(--rahmen); color: var(--text); text-decoration: none; }
.profil-karte:hover { border-color: var(--akzent); color: var(--text); }
.profil-bild { flex: none; width: 64px; height: 84px; display: flex; align-items: flex-end; justify-content: center; }
.profil-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profil-name { font-family: var(--pixel); font-size: 22px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.pate-stern { color: var(--akzent); font-size: 16px; }
.profil-gerade { font-size: 13px; }
.profil-kopf { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.profil-buehne { flex: 0 0 220px; min-height: 280px; border-radius: 16px; border: 1px solid var(--rahmen); background: linear-gradient(#24507A 77%, #6A9A4E 77%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; }
.profil-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.profil-info p { margin: 0; }
.profil-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profil-zeile h1 { margin: 0; font-family: var(--pixel); font-size: 56px; font-weight: 700; line-height: 1; }
.profil-art { font-size: 17px; color: #D9D3C2; }
.eigenschaften { display: flex; flex-wrap: wrap; gap: 8px; }
.eigenschaft { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.eigenschaft.gut { border: 1px solid var(--gut); color: #A6EBB4; }
.eigenschaft.heikel { border: 1px solid var(--warnung); color: #F7A99E; }
.profil-info .profil-gerade { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.punkt-gruen { width: 8px; height: 8px; border-radius: 50%; background: var(--gut); flex: none; }
.profil-pate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wert-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.wert-karten .kasten { gap: 8px; }
.wert-zahl { font-family: var(--pixel); font-size: 34px; font-weight: 700; line-height: 1; }
.wert-karten .balken { flex: none; height: 8px; border-radius: 4px; }
.balken.mitte { position: relative; }
.balken.mitte > span { position: absolute; top: 0; height: 100%; }
.balken.mitte::after { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: var(--leise); }
.zwei-spalten { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.zwei-spalten > .kasten { flex: 1 1 340px; min-width: 0; }
.zwei-spalten > .kasten.breit { flex: 2 1 460px; }
.spalte-klein { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kasten p { margin: 0; }
.werte.gross { font-size: 14px; color: var(--text); gap: 10px; }
.werte.gross .wert > span:first-child, .wert.beziehung > a { width: 104px; flex: none; }
.wert.beziehung > a { font-weight: 600; color: var(--text); text-decoration: none; }
.werte.gross .wert > span:last-child { color: var(--leise); }
.werte.gross .balken { height: 8px; border-radius: 4px; }
.gedaechtnis { margin: 0; padding: 0; list-style: none; }
.gedaechtnis li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.gedaechtnis li:last-child { border-bottom: none; }
.gedaechtnis li > span:first-child { flex: none; width: 110px; font-variant-numeric: tabular-nums; }
.kasten.papier { background: var(--papier); color: var(--tinte); border-color: #D8CDB4; }
.kasten.papier a { color: var(--rost); text-decoration: none; display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.papier-nr { font-size: 12px; color: #5C5243; font-weight: 400; }
.buch { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.buch-eintrag { display: flex; gap: 16px; padding: 16px; border-radius: 16px; background: var(--karte); border: 1px solid var(--rahmen); }
.buch-bild { flex: none; width: 110px; height: 110px; border-radius: 12px; background: #24507A; border: 1px solid var(--rahmen); display: flex; align-items: center; justify-content: center; }
.buch-leer .buch-bild { background: transparent; border: 2px dashed var(--rahmen); }
.buch-leer h2 { color: var(--leise); }
.buch-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.buch-text p { margin: 0; font-size: 14px; }
.buch-nr { font-size: 12px; color: var(--leise); text-transform: uppercase; letter-spacing: 0.08em; }

/* Der Blechbote */
body.papier-seite { background: var(--papier-grund); }
body.papier-seite .fuss { color: var(--tinte-leise); }
body.papier-seite .fuss-links a { color: var(--rost); }
.zeitung-seite { max-width: 1120px; margin: 0 auto; padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 16px; font-family: var(--serif); color: var(--tinte); }
.zeitung-seite a { color: var(--rost); }
.zeitung-seite a:hover { color: #5E2408; }
.blatt-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--text-font); font-size: 14px; }
.blatt-nav a { font-weight: 600; text-decoration: none; }
.blatt { background: var(--papier); border: 1px solid var(--papier-linie); padding: clamp(20px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.blatt-kopf { display: flex; flex-direction: column; gap: 8px; }
.blatt-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-leise); border-bottom: 1px solid var(--tinte); padding-bottom: 8px; }
.fraktur { margin: 8px 0 0; font-family: var(--fraktur); font-weight: 400; font-size: clamp(52px, 9vw, 116px); line-height: 1; text-align: center; }
.blatt-motto { margin: 0; text-align: center; font-style: italic; font-size: 16px; color: var(--tinte-leise); }
.doppellinie { border-top: 4px double var(--tinte); margin-top: 4px; }
.linie { border-top: 2px solid var(--tinte); }
.blatt-reihe { display: flex; flex-wrap: wrap; gap: 32px; }
.blatt-reihe.drei { gap: 28px; }
.blatt-reihe.drei > section { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.blatt-reihe.drei > section + section { border-left: 1px solid var(--papier-linie); padding-left: 24px; }
.blatt-reihe.drei > section.interview { flex: 2 1 420px; }
.aufmacher { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dachzeile { font-family: var(--text-font); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rost); }
.schlagzeile { margin: 0; font-family: var(--antiqua); font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.08; }
.blatt-bild { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bild-rahmen { display: flex; align-items: flex-end; justify-content: center; min-height: 200px; padding: 16px; border: 1px solid var(--tinte); background: #E9DFC4; }
.sprite.stich { filter: grayscale(1) sepia(0.55) contrast(1.15); }
.blatt-bild figcaption { font-style: italic; font-size: 14px; color: var(--tinte-leise); }
.spalten { column-width: 260px; column-gap: 28px; column-rule: 1px solid var(--papier-linie); font-size: 17px; line-height: 1.6; }
.spalten p { margin: 0 0 12px; }
.spalten .redaktion { margin: 0; font-style: italic; color: var(--tinte-leise); }
.aus-dem-dorf { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--tinte); padding-left: 28px; }
.rubrik { margin: 0; font-family: var(--antiqua); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 2px solid var(--tinte); padding-bottom: 6px; }
.rubrik.klein { font-size: 20px; border-bottom: none; padding-bottom: 0; }
.meldung { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--papier-linie); padding-bottom: 14px; }
.meldung:last-child { border-bottom: none; }
.meldung h4 { margin: 0; font-family: var(--antiqua); font-size: 19px; font-weight: 700; line-height: 1.2; }
.meldung p, .blatt-reihe p { margin: 0; font-size: 15px; line-height: 1.55; }
.interview-innen { display: flex; gap: 18px; align-items: flex-start; }
.interview h3 { margin: 0 0 6px; font-family: var(--antiqua); font-size: 28px; font-weight: 700; line-height: 1.1; }
.interview h3 a { color: var(--tinte); text-decoration: none; }
.interview-innen p { font-size: 16px; margin-bottom: 10px; }
.portrait { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 76px; height: 128px; background: #E9DFC4; border: 1px solid var(--tinte); padding: 6px; }
.munkeln h3, .wetter-heute h3 { margin: 0; font-family: var(--antiqua); font-size: 22px; font-weight: 700; }
.munkeln h3, .munkeln p { font-style: italic; }
.wetter-zeile { display: flex; align-items: center; gap: 12px; }
.wetter-name { font-family: var(--antiqua); font-size: 30px; font-weight: 700; }
.baustelle-zahl { font-size: 15px; }
.baustelle-zahl span { font-family: var(--antiqua); font-size: 44px; font-weight: 700; line-height: 1; }
.papier-balken { display: block; height: 10px; border: 1px solid var(--tinte); background: var(--papier); }
.papier-balken > div, .papier-balken > span { display: block; height: 100%; background: var(--tinte); }
.papier-wahl { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.papier-wahl > span:first-child { width: 132px; }
.papier-wahl .papier-balken { flex: 1; height: 8px; }
.papier-wahl > span:last-child { width: 40px; text-align: right; }
.blatt p.klein { font-size: 14px; color: var(--tinte-leise); }
.blatt p.erfindung-name { font-family: var(--antiqua); font-size: 28px; font-weight: 700; line-height: 1.1; }
.inter { font-family: var(--text-font); font-size: 14px; font-weight: 600; text-decoration: none; }
.anzeige { border: 1px dashed #A89C80; min-height: 110px; display: flex; align-items: center; justify-content: center; font-family: var(--text-font); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #6B604E; }
.blatt-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 4px double var(--tinte); padding-top: 12px; font-family: var(--text-font); font-size: 14px; }
.blatt-fuss a { text-decoration: none; font-weight: 600; }
.blatt-fuss span { color: var(--tinte-leise); }
.blatt-hinweis { margin: 0; font-family: var(--text-font); font-size: 13px; color: var(--tinte-leise); text-align: center; }
.blatt.aushang { max-width: 760px; margin: 0 auto; width: 100%; box-shadow: 0 2px 0 #CFC3A6, 0 10px 30px rgba(60, 40, 10, 0.15); }
.blatt.aushang .aus-dem-dorf { border-left: none; padding-left: 0; flex-basis: 100%; }
.blatt.aushang .aufmacher { flex-basis: 100%; }
.archiv-monat { display: flex; flex-direction: column; gap: 10px; }
.archiv-liste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.archiv-liste a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--papier-linie); text-decoration: none; }
.archiv-nr { font-family: var(--text-font); font-size: 12px; color: var(--tinte-leise); }
.archiv-titel { font-family: var(--antiqua); font-size: 20px; font-weight: 700; color: var(--tinte); }


/* Hinweis beim Wischen mit einem Finger (außerhalb des Vollbilds) */
.karte-tipp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; margin: 0; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: rgba(16, 22, 44, 0.9); border: 1px solid var(--rahmen); font-size: 14px; font-weight: 600; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.karte-tipp.zu-sehen { opacity: 1; }
.karte-tipp svg { vertical-align: -2px; }

/* Vollbild: Pseudo-Vollbild per CSS, wo möglich zusätzlich die Fullscreen-API */
.nur-vollbild, .blatt-griff { display: none; }
.vb-blatt[hidden] { display: none !important; }
html.vollbild-offen, html.vollbild-offen body { overflow: hidden; overscroll-behavior: none; }
html.vollbild-offen .rueckmeldung { z-index: 120; bottom: calc(76px + env(safe-area-inset-bottom)); }
.karte.vollbild { position: fixed; inset: 0; z-index: 100; width: auto; height: 100vh; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; overscroll-behavior: contain; }
.karte.vollbild:fullscreen { width: 100%; height: 100%; }
.insel-canvas.ein-finger { touch-action: none; }
.karte.vollbild .nur-vollbild { display: flex; }
.karte.vollbild .karte-badge, .karte.vollbild .knopf-vollbild, .karte.vollbild .dev-hinweis, .karte.vollbild .karte-tipp { display: none; }
.vb-leiste { position: absolute; top: 0; left: 0; right: 0; z-index: 3; align-items: center; gap: 10px; min-height: 44px; padding: calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(12px + env(safe-area-inset-left)); background: rgba(16, 22, 44, 0.72); font-size: 13px; line-height: 1.3; }
.vb-lage { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.vb-lage .wetter-icon { display: inline-flex; }
.vb-live { display: flex; align-items: center; gap: 6px; margin-right: auto; min-width: 0; overflow: hidden; color: var(--text-chip); white-space: nowrap; text-overflow: ellipsis; }
.vb-live .punkt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gut); }
.vb-live.pause .punkt { background: var(--leise); }
.vb-live.im-rueckblick .punkt { background: var(--akzent); }
.vb-zu { flex: none; width: 40px; height: 36px; border: 1px solid var(--rahmen); border-radius: 10px; background: rgba(16, 22, 44, 0.85); color: var(--text); font-size: 18px; cursor: pointer; }
.vb-zu:hover { border-color: var(--akzent); }
.karte.vollbild .karte-knoepfe { top: calc(52px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); align-items: flex-start; } /* wrap-reverse: flex-start ist der rechte Rand */
.karte.vollbild .knopf-rund { width: 40px; height: 40px; }
.karte-knoepfe .karte-rueckblick { position: static; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.vb-ticker { position: absolute; left: calc(8px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2; justify-content: flex-start; max-width: calc(100% - 76px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rahmen); background: rgba(16, 22, 44, 0.85); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.vb-ticker:hover { border-color: var(--akzent); }
.vb-ticker > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.3s; }
.vb-ticker > span.wechselt { opacity: 0; }
.vb-ticker time { color: var(--leise); font-variant-numeric: tabular-nums; margin-right: 6px; }
.karte.vollbild .vb-stern { position: absolute; top: auto; right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--akzent); color: #1A1408; border-color: var(--akzent); font-size: 22px; }
.karte.vollbild.im-rueckblick .vb-ticker, .karte.vollbild.im-rueckblick .vb-stern { display: none; }
.karte.vollbild .rb-uhr { top: calc(52px + env(safe-area-inset-top)); }
.karte.vollbild .rb-leiste { bottom: calc(8px + env(safe-area-inset-bottom)); left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); }

/* Blätter unten: Roboter, Gebäude, Ticker, Mitmachen */
.vb-blatt { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 10px; background: var(--kopf); border: 1px solid var(--akzent); line-height: 1.4; }
.vb-blatt .rk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vb-blatt .rk-name { margin: 0; font-family: var(--pixel); font-size: 20px; font-weight: 600; }
.vb-blatt .rk-zu { flex: none; width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--linie); color: var(--text); cursor: pointer; font-size: 16px; }
.vb-blatt-inhalt { display: flex; flex-direction: column; gap: 12px; }
.vb-blatt .kasten { padding: 14px; }
.karte.vollbild .roboter-karte, .karte.vollbild .bau-karte, .karte.vollbild .vb-blatt { position: absolute; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: 560px; max-height: 50%; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 6px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); transition: transform 0.2s; z-index: 5; }
.karte.vollbild .zieht { transition: none; }
.karte.vollbild .blatt-griff { display: block; flex: none; align-self: center; width: 44px; height: 5px; margin: 4px 0 2px; border-radius: 3px; background: var(--rahmen); }
.karte.vollbild .blatt-griff, .karte.vollbild .roboter-karte .rk-kopf, .karte.vollbild .bau-karte .rk-kopf, .karte.vollbild .vb-blatt .rk-kopf { touch-action: none; }
.knopf-folgen { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--akzent); background: transparent; color: var(--akzent); font-weight: 600; font-size: 14px; cursor: pointer; }
.knopf-folgen[aria-pressed="true"] { background: var(--akzent); color: #1A1408; }

/* Querformat auf dem Handy: Karte über die ganze Fläche, Leiste schmaler, Blätter links statt über die ganze Breite */
@media (orientation: landscape) and (max-height: 500px) {
  .vb-leiste { min-height: 34px; padding-top: calc(2px + env(safe-area-inset-top)); padding-bottom: 2px; font-size: 12px; }
  .vb-zu { width: 36px; height: 30px; font-size: 16px; }
  .karte.vollbild .karte-knoepfe { top: calc(40px + env(safe-area-inset-top)); gap: 4px; flex-wrap: wrap-reverse; align-content: flex-start; max-height: calc(100% - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .karte.vollbild .knopf-rund { width: 34px; height: 34px; }
  .karte.vollbild .vb-stern { width: 44px; height: 44px; }
  .karte.vollbild .rb-uhr { top: calc(40px + env(safe-area-inset-top)); }
  .karte.vollbild .roboter-karte, .karte.vollbild .bau-karte, .karte.vollbild .vb-blatt { right: auto; left: env(safe-area-inset-left) !important; width: min(400px, 60%); max-height: calc(100% - 40px - env(safe-area-inset-top)); margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .karte-tipp, .vb-ticker > span, .karte.vollbild .roboter-karte, .karte.vollbild .bau-karte, .karte.vollbild .vb-blatt { transition: none; }
}

/* Smartphone */
@media (max-width: 760px) {
  .kopf-innen { padding: 14px 16px 10px; gap: 10px; }
  .logo span { font-size: 24px; }
  .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .nav { flex: 1 1 100%; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; white-space: nowrap; }
  .haupt { padding: 12px 16px 24px; gap: 16px; }
  .karte { border-radius: 14px; aspect-ratio: auto; height: min(68vh, 560px); height: min(68svh, 560px); }
  .knopf-rund { width: 32px; height: 32px; font-size: 16px; }
  .kasten { padding: 16px; border-radius: 14px; }
  h2 { font-size: 18px; }
  .roboter-karte { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .bewohner-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-uhr { font-size: 22px; top: 50px; left: 12px; transform: none; padding: 2px 12px; }
  .karte.im-rueckblick .karte-knoepfe { display: none; }
  .rb-leiste { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .rb-live { padding: 0 8px; }
  .rb-meldungen { bottom: 54px; }
  .karte-rueckblick { left: 8px; bottom: 8px; padding: 6px 12px; }
  .zeitung-teaser { padding: 18px; }
  .zt-titel { font-size: 30px; }
  .zt-schlagzeile { font-size: 22px; }
  .seite { padding: 20px 16px 32px; gap: 18px; }
  .seite-titel { font-size: 34px; }
  .profil-buehne { flex: 1 1 100%; min-height: 220px; }
  .profil-zeile h1 { font-size: 42px; }
  .aus-dem-dorf { border-left: none; padding-left: 0; border-top: 2px solid var(--tinte); padding-top: 16px; }
  .blatt-reihe.drei > section + section { border-left: none; padding-left: 0; border-top: 1px solid var(--papier-linie); padding-top: 16px; }
  .interview-innen { flex-direction: column; }
  .bau-karte { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .buch { grid-template-columns: 1fr; }
  .gedaechtnis li { flex-direction: column; gap: 2px; }
}

/* Schmale Handys: Kopf und Navigation kürzer, nichts abgeschnitten (ab 360 px) */
@media (max-width: 419.98px) {
  .chip-lang { display: none !important; }
  .chips { gap: 6px; }
  .chip { padding: 5px 10px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; }
  .nav-lang { display: none; }
  .nav-kurz { display: inline; }
  .infozeile { display: block; }
}

/* Fehlerseiten */
.fehler-seite { position: relative; }
.fehler-detail { margin: 0; padding: 12px; border-radius: 10px; background: var(--seite); color: var(--leise); font-size: 12px; white-space: pre-wrap; overflow-x: auto; }

/* Probe-Welt (nur lokal, ?probe=1) */
.probe-hinweis { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 50; padding: 4px 12px; border-radius: 999px; background: #FFB547; color: #1A1408; font: 600 13px/1.4 Inter, system-ui, sans-serif; pointer-events: none; }
