/* Die App - Stufe 1 in Arbeit. Hausfarbe wie die Verwaltung. */
:root { --dunkel: #292f33; --akzent: #007b85; --hell: #f4f6f7; --ok: #1d7a3a; --fehler: #b3261e; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #1c2124; background: var(--hell); }
.seite { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1rem; }
code { background: #e6e9eb; padding: 0 .25rem; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
td { padding: .25rem .5rem; border-bottom: 1px solid #dfe3e6; vertical-align: top; }
td:first-child { width: 1.5rem; text-align: center; }
tr.ok td:first-child, p.ok { color: var(--ok); }
tr.fehler td, p.fehler { color: var(--fehler); }
form label { display: block; margin: .75rem 0; font-weight: 500; }
form input { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .5rem; font: inherit; border: 1px solid #b9c1c6; border-radius: 4px; }
form button, .seite button { padding: .5rem 1rem; font: inherit; color: #fff; background: var(--akzent); border: 0; border-radius: 4px; cursor: pointer; }
form button:disabled { opacity: .6; cursor: default; }
button.nebensache { color: var(--dunkel); background: #dfe3e6; }
label.zeile { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
label.zeile input { width: auto; margin: 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
dt { color: #6b757b; }
dd { margin: 0; }
pre { background: #e6e9eb; padding: .75rem; border-radius: 4px; font-size: 1.05rem; letter-spacing: .05em; }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }
p.ok { color: var(--ok); }
.banner { display: block; width: 100%; max-width: 24rem; height: auto; margin: 0 0 1.25rem; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kopfzeile h2 { margin: 0; }
.knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
.karte { background: #fff; border: 1px solid #dfe3e6; border-radius: 6px; padding: 1rem 1.25rem; margin: 1rem 0; }
.werkzeuge { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.werkzeuge select, .werkzeuge input[type=search] { padding: .45rem .5rem; font: inherit; border: 1px solid #b9c1c6; border-radius: 4px; }
.werkzeuge input[type=search] { flex: 1 1 12rem; min-width: 8rem; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-bottom: 1px solid #dfe3e6; cursor: pointer; background: #fff; }
.liste li:first-child { border-radius: 6px 6px 0 0; }
.liste li:last-child { border-radius: 0 0 6px 6px; }
.liste li:hover { background: #eef2f3; }
.liste li.aktiv { background: #dfeef0; }
.liste .klein { text-align: right; }
.klein { color: #6b757b; font-size: .85rem; }
.hinweis { color: #6b757b; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.gross { font-size: 1.4rem; letter-spacing: .08em; }
.vorformatiert { white-space: pre-wrap; }
.klein-knopf { padding: .15rem .5rem; font-size: .8rem; }
.mit-knopf { display: flex; gap: .5rem; align-items: center; }
.mit-knopf input { flex: 1; }
form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .5rem; font: inherit; border: 1px solid #b9c1c6; border-radius: 4px; }
form select { display: block; margin-top: .25rem; padding: .45rem .5rem; font: inherit; border: 1px solid #b9c1c6; border-radius: 4px; }
h3 { font-size: 1rem; margin: 1rem 0 .25rem; }

/* Druckbereich: am Bildschirm unsichtbar; beim Drucken nur die Blätter. */
.druck { display: none; }
@media print {
    body > main, .banner { display: none !important; }
    .druck { display: block; }
    .blatt { page-break-after: always; break-after: page; padding: 1cm 1.5cm; font: 12pt/1.4 "Segoe UI", system-ui, sans-serif; color: #000; }
    .blatt:last-child { page-break-after: auto; break-after: auto; }
    .blatt h1 { font-size: 18pt; margin: 0 0 .25rem; }
    .blatt-kopf { margin: 0 0 1rem; font-weight: 600; }
    .blatt-hinweis { border: 1pt solid #000; padding: .5rem .75rem; margin: 0 0 1rem; }
    .woerter { columns: 2; column-gap: 2rem; margin: 0 0 1rem; padding-left: 2.5rem; font: 14pt/1.7 Consolas, "Cascadia Mono", monospace; }
    .woerter li { break-inside: avoid; }
    .qr { text-align: center; margin: 1rem 0; }
    .qr .klein { font-size: 9pt; color: #000; }
    .blatt-fuss { font-size: 9pt; border-top: 1pt solid #000; padding-top: .5rem; margin-top: 1rem; }
}
.tabelle-rahmen { max-height: 24rem; overflow: auto; border: 1px solid #dfe3e6; border-radius: 4px; background: #fff; }
.tabelle { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabelle th { position: sticky; top: 0; background: #eef2f3; text-align: left; padding: .4rem .5rem; font-weight: 600; }
.tabelle td { padding: .3rem .5rem; border-top: 1px solid #eef2f3; vertical-align: top; }
.tabelle tr.ausgewaehlt { background: #f1f8f9; }
.tabelle tr.gedaempft td { color: #8a949a; }
.tabelle td.hinweis { font-size: .8rem; }
input[type=file] { font: inherit; }
.qr { margin: .5rem 0; }
.einladung { background: #e3f3e7; border: 1px solid #9fd2ad; border-radius: 6px; padding: .9rem 1.1rem; margin: 1rem 0; }
.einladung code { background: #fff; padding: .15rem .4rem; word-break: break-all; }
dl.stand { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
dl.stand dd { margin: 0; }
.aufgaben { list-style: none; padding: 0; }
.aufgaben li { padding: .25rem 0; }
.aufgaben li.erledigt { text-decoration: line-through; color: #8a949a; }
.fassung { text-align: center; margin: 2rem 0 1rem; }
.anhang { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .15rem 0; }
.anhang-wahl { font: inherit; font-size: .9rem; margin-top: .3rem; }

/* ---- Freigabe am Handy: Zahlenwahl und Regler (freigabe.html), Warten in der App ---- */
.freigabe-seite .karte dl.stand { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 0; }
.freigabe-seite dl.stand dt { color: #6b757b; }
.freigabe-seite dl.stand dd { margin: 0; }
.freigabe-zweck { font-size: 1.1rem; font-weight: 600; margin: 0; }
.zahlen { display: flex; gap: .75rem; justify-content: center; margin: .75rem 0 1.25rem; }
.seite .zahl-wahl { flex: 1 1 0; max-width: 7rem; padding: .9rem 0; font: inherit; font-size: 1.6rem; font-weight: 600; letter-spacing: .05em;
             color: var(--dunkel); background: #fff; border: 2px solid #b9c1c6; border-radius: 8px; cursor: pointer; }
.seite .zahl-wahl[aria-checked="true"] { color: #fff; background: var(--akzent); border-color: var(--akzent); }
.regler { position: relative; height: 3.5rem; border-radius: 1.75rem; background: #dfe3e6; overflow: hidden; user-select: none; touch-action: none; opacity: .55; }
.regler.bereit { opacity: 1; }
.regler-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 3rem; color: #4b555b; font-size: .95rem; pointer-events: none; }
.regler.fast .regler-text { color: #fff; }
.regler.fast { background: #4ca7ad; }
.regler.geschoben { background: var(--ok); }
.regler.geschoben .regler-text { color: #fff; }
.regler-knopf { position: absolute; top: 4px; left: 4px; width: calc(3.5rem - 8px); height: calc(3.5rem - 8px); border-radius: 50%;
                background: var(--akzent); color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
                cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.25); touch-action: none; }
.regler-knopf:active { cursor: grabbing; }
.freigabe-ergebnis { font-size: 1.1rem; font-weight: 600; }
.freigabe-ergebnis.ok { color: var(--ok); }
.freigabe-ergebnis.fehler { color: var(--fehler); }

/* In der App: Warten auf die Freigabe - die Zahl groß, damit man sie am Handy wiedererkennt. */
.freigabe-warten { background: #e3f0f1; border: 1px solid #9fcfd3; border-radius: 6px; padding: .9rem 1.1rem; margin: .75rem 0; }
.freigabe-warten .zahl-gross { font-size: 2.4rem; font-weight: 700; letter-spacing: .1em; color: var(--akzent); margin: .25rem 0; }
#faktor-dialog { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(28rem, calc(100vw - 2rem)); z-index: 50; box-shadow: 0 .75rem 2rem rgba(0,0,0,.3); }
