/* Formfang — heller Papier-Look wie beim Alleskonverter und bei Flüsterpost. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-v27-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/archivo-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-v25-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-v25-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); }

:root {
    --paper: #E6E4DE;
    --card: #F3F2ED;
    --ink: #16191B;
    --ink-soft: #5C6268;
    --rule: #C9C6BD;
    --rule-stark: #807A6B;
    --stamp: #1B4D3E;
    --stamp-text: #fff;
    --field: #fff;
    --alert: #A93520;
    --alert-bg: #F6EAE7;
    --amber: #7E6015;
    --amber-bg: #F5EFDE;
    --ok: #1B4D3E;
    --ok-bg: #E4EFE9;
    --shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px -18px rgba(0, 0, 0, .45);
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --display: 'Anton', Impact, sans-serif;
    --text: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* Versteckt bleibt versteckt — auch wenn eine Klasse ein display setzt. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.55;
    padding: 0 16px max(24px, env(safe-area-inset-bottom));
}
a { color: var(--stamp); }
a:hover { text-decoration-thickness: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; }

.kopf { max-width: 960px; margin: 0 auto; padding: 28px 0 8px; text-align: center; }
.kopf-marke { text-decoration: none; color: var(--ink); }
.kopf-wort { font-family: var(--display); font-size: clamp(44px, 9vw, 72px); letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.kopf-slogan { margin: 6px 0 14px; color: var(--ink-soft); }
.kopf-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kopf-nav a { padding: 8px 14px; border: 1px solid var(--rule-stark); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.kopf-nav a.aktiv { background: var(--stamp); color: var(--stamp-text); border-color: var(--stamp); }

.inhalt { max-width: 960px; margin: 0 auto; display: grid; gap: 18px; padding-top: 12px; }
.karte { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; box-shadow: var(--shadow); }
.karte h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .01em; margin: 0 0 10px; }
.karte h3 { font-size: 17px; margin: 22px 0 6px; }
.karte p { margin: 0 0 12px; }
.hinweis { padding: 10px 14px; background: var(--amber-bg); color: var(--amber); border-radius: 8px; }
.klein { font-size: 14px; color: var(--ink-soft); }
.rechtstext p { max-width: 70ch; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kachel { display: grid; gap: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 44px; }
.kachel-symbol { font-size: 30px; color: var(--stamp); line-height: 1; }
.kachel-titel { font-family: var(--display); font-size: 24px; letter-spacing: .01em; }
.kachel-text { color: var(--ink-soft); font-size: 15px; }
.kachel-stand { font-family: var(--mono); font-size: 12px; color: var(--amber); margin-top: 6px; }
.kachel-gesperrt { opacity: .78; }

.check-liste { display: grid; gap: 8px; margin: 12px 0; }
.check-liste > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--rule); padding-bottom: 6px; flex-wrap: wrap; }
.check-liste dt { margin: 0; font-weight: 500; }
.check-liste dd { margin: 0; font-family: var(--mono); font-size: 14px; padding: 2px 10px; border-radius: 6px; }
.check-liste dd.ja { background: var(--ok-bg); color: var(--ok); }
.check-liste dd.nein { background: var(--alert-bg); color: var(--alert); }
.check-liste dd.jein { background: var(--amber-bg); color: var(--amber); }

.fuss { max-width: 960px; margin: 32px auto 0; padding-top: 14px; border-top: 1px solid var(--rule); text-align: center; font-size: 14px; color: var(--ink-soft); }
.fuss nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sitzung und Handy */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
input[type="password"], input[type="text"] { font: inherit; padding: 10px 12px; border: 1px solid var(--rule-stark); border-radius: 8px; background: var(--field); min-width: 0; flex: 1 1 200px; }
.knopf { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--stamp); background: var(--stamp); color: var(--stamp-text); cursor: pointer; min-height: 44px; display: inline-block; text-align: center; }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf-leise { background: transparent; color: var(--stamp); }
.knopf-gross { display: block; width: 100%; padding: 18px; font-size: 20px; margin: 12px 0; }
.stand { font-family: var(--mono); font-size: 15px; color: var(--ink-soft); }
.fehler { padding: 10px 14px; background: var(--alert-bg); color: var(--alert); border-radius: 8px; }
.qr { width: min(320px, 80vw); margin: 12px auto; background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--rule); }
.qr svg { display: block; width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.fortschritt { height: 10px; background: var(--rule); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.fortschritt-balken { height: 100%; width: 0; background: var(--stamp); transition: width .2s; }
.vorschau { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vorschau img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); }

/* Aufnahme-Assistent */
.wahl .knopf-wahl { flex: 1 1 120px; }
.knopf-wahl { background: transparent; color: var(--stamp); }
.knopf-wahl.aktiv { background: var(--stamp); color: var(--stamp-text); }
.anleitung { margin: 10px 0; }
.anleitung summary { cursor: pointer; font-weight: 600; }
.anleitung ul { margin: 6px 0 0; padding-left: 20px; }
body.vollbild { padding: 0; overflow: hidden; }
body.vollbild .kopf, body.vollbild .fuss, body.vollbild #handy > h2, body.vollbild #handy > .stand, body.vollbild #handy > .fehler { display: none; }
body.vollbild .inhalt { padding: 0; max-width: none; }
body.vollbild .karte { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: #000; }
.aufnahme { position: fixed; inset: 0; background: #000; color: #fff; display: grid; grid-template-rows: auto 6px auto 1fr auto; z-index: 10; }
.aufnahme video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.aufnahme > * { position: relative; z-index: 1; }
.aufnahme.blitz video { filter: brightness(1.8); }
.aufnahme-oben { display: flex; gap: 12px; align-items: center; padding: max(10px, env(safe-area-inset-top)) 12px 6px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.ring { width: 110px; height: 110px; flex: 0 0 auto; transition: transform .15s; }
.ring path { fill: rgba(255,255,255,.18); stroke: rgba(0,0,0,.4); stroke-width: .4; }
.ring path.belegt { fill: #4FD18B; }
.ring[data-aktiv="unten"] path[data-hoehe="unten"]:not(.belegt), .ring[data-aktiv="mitte"] path[data-hoehe="mitte"]:not(.belegt), .ring[data-aktiv="oben"] path[data-hoehe="oben"]:not(.belegt), .ring[data-aktiv="raum"] path[data-hoehe="raum"]:not(.belegt) { fill: rgba(255,255,255,.4); }
.ring-zeiger { fill: #fff; }
.aufnahme-info { font-family: var(--mono); font-size: 15px; line-height: 1.4; text-shadow: 0 1px 2px #000; }
.aufnahme-info .klein { color: #ccc; }
.aufnahme-anzahl { font-size: 26px; font-weight: 500; }
.schaerfe { height: 6px; background: rgba(255,255,255,.2); }
.schaerfe-balken { height: 100%; width: 0; background: #4FD18B; transition: width .15s; }
.schaerfe-balken.unscharf { background: #E8A33D; }
.aufnahme-hoehen { display: none; gap: 8px; padding: 8px 12px; justify-content: center; }
.aufnahme.art-objekt .aufnahme-hoehen { display: flex; }
.aufnahme-hoehen .knopf-wahl { color: #fff; border-color: rgba(255,255,255,.7); padding: 8px 12px; min-height: 40px; }
.aufnahme-hoehen .knopf-wahl.aktiv { background: #fff; color: #000; }
.aufnahme-hinweis { align-self: end; margin: 0; padding: 8px 14px; text-align: center; font-size: 15px; text-shadow: 0 1px 2px #000; }
.aufnahme-unten { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.aufnahme-unten .knopf-leise { color: #fff; border-color: rgba(255,255,255,.7); justify-self: start; }
.aufnahme-unten .knopf-leise.aktiv { background: rgba(79,209,139,.35); border-color: #4FD18B; }
.aufnahme-unten .aufnahme-fertig { justify-self: end; background: #fff; color: #000; border-color: #fff; }
.aufnahme-ausloeser { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; }
.aufnahme-ausloeser:active { background: #fff; }
.diagnose { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.diagnose summary { cursor: pointer; }
.diagnose pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12px; background: var(--field); border: 1px solid var(--rule); border-radius: 6px; padding: 8px; max-height: 40vh; overflow: auto; }

.aufnahme-warnung { display: none; margin: 0; padding: 6px 12px; text-align: center; background: rgba(232,163,61,.85); color: #000; font-weight: 600; }
.aufnahme.zu-schnell .aufnahme-warnung { display: block; }
.aufnahme { grid-template-rows: auto 6px auto 1fr auto auto; }
