/* Last Reserve – Auftritt «Lagerhalle». Farben von future-perfect.ch, siehe docs/konzept/gestaltung.md */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("../fonts/big-shoulders-stencil-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #1c3572;
  --nacht: #0f1d40;
  --blau: #3558bf;
  --blau-hell: #5b8ff7;
  --gelb: #ffcd52;
  --mint: #33f0a4;
  --alarm: #C93E17;
  --papier: #FBF7F1;
  --karton: #F4E9DD;
  --weiss: #ffffff;
  --grau: #4a5a85;
  --linie: #d9d2c6;
  --text: "IBM Plex Sans", Arial, sans-serif;
  --zahl: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --stencil: "Big Shoulders Stencil", Impact, "Arial Narrow", sans-serif;
  --schatten: 4px 4px 0 var(--navy);
  --radius: 14px;
  --akzent: var(--mint);
  --akzent-text: var(--navy);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--navy); font-family: var(--text); font-size: 17px; line-height: 1.45; }
a { color: var(--blau); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }
h1 { font-family: var(--stencil); font-weight: 800; font-size: 2.4rem; letter-spacing: .01em; }
h2 { font-family: var(--stencil); font-weight: 800; font-size: 1.6rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 2px; }
.klein { font-size: .85rem; color: var(--grau); }
.zahl { font-family: var(--zahl); font-weight: 800; line-height: .9; }
.stencil { font-family: var(--stencil); font-weight: 800; }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rahmen */
.warnband { height: 14px; background: repeating-linear-gradient(-45deg, var(--gelb) 0 18px, var(--navy) 18px 36px); }
.kopf { background: var(--navy); color: var(--papier); }
.kopf-innen { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.kopf a { color: var(--papier); }
.wortmarke { font-family: var(--stencil); font-weight: 800; font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; }
.kopf .rechts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seite { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.seite-schmal { max-width: 560px; margin: 0 auto; padding: 32px 20px 48px; }

/* Knöpfe und Formulare */
button, .knopf { font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border: 3px solid var(--navy); border-radius: 12px; background: var(--weiss);
  color: var(--navy); font-weight: 600; text-decoration: none; }
button:hover, .knopf:hover { background: var(--karton); color: var(--navy); }
.knopf-haupt { font-family: var(--zahl); font-weight: 800; font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--mint); box-shadow: var(--schatten); padding: 12px 22px; }
.knopf-haupt:hover { background: #22d993; }
.knopf-riesig { width: 100%; min-height: 88px; font-size: 2.2rem; }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-blau:hover { background: var(--navy); color: var(--weiss); }
.knopf-gelb { background: var(--gelb); }
.knopf-gelb:hover { background: #f5bd2e; }
.knopf-hell { border-color: var(--papier); background: transparent; color: var(--papier); }
.knopf-hell:hover { background: var(--papier); color: var(--navy); }
.knopf-klein { min-height: 36px; padding: 4px 10px; font-size: .9rem; border-width: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=url], select {
  font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--weiss); color: var(--navy); }
input[type=number] { width: 6em; }
.feld { margin-bottom: 16px; }
.zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seitenkopf { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.seitenkopf h1 { margin: 0; }
.seitenkopf .knopf-haupt { font-size: 1.15rem; padding: 8px 18px; }
.seitenkopf + .klein { margin: 0 0 20px; }
.zeile-ende { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }

/* Karten und Meldungen */
.karte { background: var(--weiss); border: 3px solid var(--navy); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; }
.karte-schatten { box-shadow: 6px 6px 0 var(--navy); }
.karte-mint { background: var(--mint); }
.karte-gelb { background: var(--gelb); }
.karte-karton { background: var(--karton); border-color: var(--karton); }
.karte-nacht { background: var(--nacht); color: var(--papier); border-color: var(--gelb); }
.meldung { border: 2px solid var(--navy); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: var(--mint); font-weight: 600; }
.fehler { border: 2px solid var(--alarm); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: #fbe4dc; color: #7a2309; font-weight: 600; }
.etikett { display: inline-block; border: 2px solid var(--navy); border-radius: 999px; padding: 2px 12px; font-weight: 600; font-size: .9rem; background: var(--weiss); }
.etikett-mint { background: var(--mint); }
.etikett-gelb { background: var(--gelb); }
.etikett-alarm { background: var(--alarm); color: var(--weiss); border-color: var(--alarm); }
.etikett-offen { border-style: dashed; background: transparent; }
.etikett-blau { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.tabelle-box { overflow-x: auto; }
.liste-ohne { list-style: none; margin: 0; padding: 0; }

/* Start und Login */
.held { text-align: left; }
.held .gross { font-family: var(--stencil); font-weight: 800; font-size: 4.5rem; line-height: .85; }
.code-eingabe { font-family: var(--zahl); font-size: 2rem; letter-spacing: .15em; max-width: 9em; }

/* Steuerpult */
.sp-raster { display: flex; flex-wrap: wrap; gap: 24px; }
.sp-haupt { flex: 999 1 560px; min-width: 0; }
.sp-seite { flex: 1 1 320px; min-width: 0; }
.phasen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kennzahl { border: 3px solid var(--navy); border-radius: 14px; padding: 8px 12px; background: var(--weiss); }
.kennzahl .wert { font-family: var(--zahl); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.kennzahl .name { font-size: .85rem; }
.moderation { border-left: 0; }
.moderation li { margin-bottom: .5em; }
.team-karte { border: 3px solid var(--navy); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; background: var(--papier); }
.team-karte.offen { border-style: dashed; }
.team-karte summary { cursor: pointer; font-weight: 600; margin-top: 6px; }
.team-kopfzeile { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.formular-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.formular-zeile .feld { margin-bottom: 0; }
.vorlage { border: 3px solid var(--navy); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; background: var(--weiss); }
.vorlage .titel { font-family: var(--zahl); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.stempel { display: inline-block; transform: rotate(-4deg); border: 4px solid currentColor; border-radius: 10px; padding: 2px 12px;
  font-family: var(--stencil); font-weight: 800; font-size: 1.4rem; }
.stempel-ja { color: #0f7a52; }
.stempel-nein { color: var(--alarm); }

/* Team-Ansicht (Smartphone zuerst) */
.team-seite { max-width: 520px; margin: 0 auto; padding: 0 0 40px; }
.team-kopf { background: var(--navy); color: var(--papier); padding: 14px 16px; }
.team-kopf .oben { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.team-kopf .konto { font-family: var(--zahl); font-weight: 800; font-size: 2.2rem; line-height: .9; text-align: right; }
.team-kopf .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; font-size: .8rem; }
.team-kopf .mini div { background: #26407f; border-radius: 10px; padding: 6px 8px; }
.team-kopf .mini b { display: block; font-size: 1.1rem; }
.hinweisband { padding: 10px 16px; font-weight: 600; font-size: .95rem; }
.hinweisband.alarm { background: var(--alarm); color: var(--weiss); }
.hinweisband.gelb { background: var(--gelb); }
.hinweisband.blau { background: var(--blau); color: var(--weiss); }
.team-inhalt { padding: 16px; }
.schritt { margin-bottom: 22px; }
.schritt h2 { font-size: 1.35rem; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 3px solid var(--navy); border-radius: 16px; padding: 8px; background: var(--weiss); }
.stepper button { width: 56px; height: 56px; font-size: 1.8rem; padding: 0; }
.stepper input { border: 0; text-align: center; font-family: var(--zahl); font-weight: 800; font-size: 2.6rem; width: 3em; min-height: 56px; background: transparent; }
.wahl { display: block; position: relative; margin-bottom: 10px; }
.wahl input { position: absolute; opacity: 0; }
.wahl .feldkarte { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  border: 3px solid var(--navy); border-radius: 14px; background: var(--weiss); cursor: pointer; }
.wahl input:checked + .feldkarte { background: var(--mint); box-shadow: var(--schatten); }
.wahl input:focus-visible + .feldkarte { outline: 3px solid var(--blau-hell); outline-offset: 2px; }
.wahl input:disabled + .feldkarte { border-style: dashed; opacity: .55; cursor: not-allowed; }
.wahl .preis { font-family: var(--zahl); font-weight: 800; font-size: 1.6rem; }
.summe { border-top: 3px solid var(--navy); padding-top: 12px; }
.summe .zeile-betrag { display: flex; justify-content: space-between; padding: 3px 0; }
.summe .gesamt { font-weight: 700; font-size: 1.15rem; }
.abrechnung .zeile-betrag { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.abrechnung .zeile-betrag:last-child { border-bottom: 0; font-weight: 700; }

/* Beamer (16:9, Schrift skaliert mit dem Fenster) */
body.beamer-seite { overflow: hidden; }
.beamer { --s: min(1vw, 1.78vh); font-size: calc(var(--s) * 1.5); width: 100vw; height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--papier); }
.beamer.stufe-vorrat { --akzent: var(--mint); }
.beamer.stufe-knapp { --akzent: var(--gelb); }
.beamer.stufe-kritisch { --akzent: var(--alarm); --akzent-text: var(--weiss); }
.beamer.stufe-leer, .beamer.stufe-krise { --akzent: var(--gelb); background: var(--nacht); color: var(--papier); }
.beamer .band { height: calc(var(--s) * 1.2); background: var(--akzent); }
.beamer.stufe-kritisch .band, .beamer.stufe-leer .band, .beamer.stufe-krise .band { background: repeating-linear-gradient(-45deg, var(--gelb) 0 calc(var(--s)*1.6), var(--navy) calc(var(--s)*1.6) calc(var(--s)*3.2)); }
.beamer .hud { display: flex; align-items: center; gap: calc(var(--s) * 2); padding: calc(var(--s) * 1.2) calc(var(--s) * 3); border-bottom: 3px solid currentColor; }
.beamer .hud .marke { font-family: var(--stencil); font-weight: 800; font-size: 1.6em; }
.beamer .hud .wert { font-family: var(--zahl); font-weight: 800; font-size: 1.8em; }
.beamer .hud .rechts { margin-left: auto; display: flex; gap: calc(var(--s)); flex-wrap: wrap; justify-content: flex-end; }
.beamer .preis { background: var(--akzent); color: var(--akzent-text); border: 2px solid currentColor; border-radius: 999px; padding: .2em .8em; font-weight: 600; }
.beamer .flaeche { flex-grow: 1; display: flex; gap: calc(var(--s) * 3); padding: calc(var(--s) * 2) calc(var(--s) * 3); min-height: 0; }
.beamer .spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--s) * 1.2); }
.beamer .titel-gross { font-family: var(--stencil); font-weight: 800; font-size: 5.5em; line-height: .84; }
.beamer .titel { font-family: var(--stencil); font-weight: 800; font-size: 2em; line-height: 1; }
.beamer .riesig { font-family: var(--zahl); font-weight: 800; font-size: 7em; line-height: .82; }
.beamer .gross { font-size: 1.4em; }
.beamer .qr { width: calc(var(--s) * 16); height: calc(var(--s) * 16); border: 4px solid var(--navy); border-radius: 12px; background: var(--weiss); }
.beamer .code { font-family: var(--zahl); font-weight: 800; font-size: 4.5em; letter-spacing: .06em; line-height: .9; }
.beamer .chip { display: inline-flex; align-items: center; gap: .4em; border: 2px solid currentColor; border-radius: 999px; padding: .25em .9em; font-weight: 600; }
.beamer .chip.ja { background: var(--mint); color: var(--navy); border-color: var(--navy); }
.beamer .chip.offen { border-style: dashed; }
.beamer .chips { display: flex; flex-wrap: wrap; gap: calc(var(--s) * .8); }
.beamer .betrieb { display: flex; justify-content: space-between; align-items: center; border: 3px solid currentColor; border-radius: 14px; padding: .4em .8em; }
.beamer .betrieb.offen { border-style: dashed; opacity: .75; }
.beamer .ereignis { align-self: center; width: 70%; background: var(--papier); color: var(--navy); border: 4px solid var(--navy); border-radius: 18px; box-shadow: 10px 10px 0 var(--navy); overflow: hidden; transform: rotate(-1.5deg); }
.beamer .ereignis .inhalt { padding: 1.2em 1.6em 1.4em; }
.beamer .ereignis .name { font-family: var(--zahl); font-weight: 800; font-size: 5em; line-height: .9; text-transform: uppercase; }
.beamer .ereignis .text { font-size: 1.4em; }
.beamer .mitte { flex-grow: 1; display: flex; align-items: center; justify-content: center; background: var(--karton); padding: calc(var(--s) * 2); }
.beamer.stufe-leer .mitte, .beamer.stufe-krise .mitte { background: transparent; }
.beamer .fuss { display: flex; align-items: center; gap: calc(var(--s)); flex-wrap: wrap; padding: calc(var(--s)) calc(var(--s) * 3); border-top: 3px solid currentColor; }
.beamer svg text { font-family: var(--text); }
.beamer .kasten { border: 3px solid currentColor; border-radius: 16px; padding: .7em 1em; }
.beamer .rang { display: flex; align-items: center; gap: .8em; }
.beamer .rang .nr { font-family: var(--zahl); font-weight: 800; font-size: 2.4em; width: 1.1em; }
.beamer .rang .mitte-r { flex-grow: 1; background: transparent; display: block; padding: 0; }
.beamer .rang .faktor { font-family: var(--zahl); font-weight: 800; font-size: 2em; }
.beamer .vorlagen { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: calc(var(--s) * 1.2); }
.beamer .vorlage { color: var(--navy); }
.beamer.parlament { background: var(--blau); color: var(--weiss); }
.beamer table td, .beamer table th { border-color: currentColor; color: inherit; }
.beamer .warnung { background: var(--alarm); color: var(--weiss); font-family: var(--stencil); font-weight: 800; font-size: 1.6em; padding: .2em .8em; border-radius: 10px; }

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .held .gross { font-size: 3.2rem; }
  .knopf-riesig { font-size: 1.6rem; min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.abstand-oben { margin-top: 12px; }

/* Ergänzungen Team-Ansicht und Beamer-Grafiken */
.klein-hell { font-size: .8rem; opacity: .85; }
.zeile-betrag-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gross-zahl { font-size: 2.2rem; }
.rechtsbuendig { text-align: right; }
.zeile-gross { display: flex; gap: calc(var(--s, 10px) * 2); align-items: center; }
.zentriert { justify-content: center; }
.beamer .spalte.schmal { flex: 0 0 auto; width: calc(var(--s) * 16); justify-content: center; }
.beamer .flaeche-spalte { flex-direction: column; }
.beamer .klein-beamer { font-size: .8em; opacity: .85; }
.beamer .titel-vorlage { font-family: var(--zahl); font-weight: 800; font-size: 1.8em; line-height: .95; text-transform: uppercase; margin: .3em 0; }
.beamer .vorlage { background: var(--papier); border: 3px solid var(--navy); border-radius: 16px; padding: .8em 1em; box-shadow: 6px 6px 0 var(--navy); }
.beamer .rang-kopf { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15em; }
.silo { width: 100%; height: auto; max-height: 100%; }
.silo-huelle { fill: var(--weiss); }
.stufe-leer .silo-huelle, .stufe-krise .silo-huelle { fill: var(--nacht); }
.silo-fuell { fill: var(--akzent); }
.silo-marke { stroke: currentColor; stroke-width: 2; stroke-dasharray: 6 6; opacity: .45; }
.silo-rahmen { fill: none; stroke: currentColor; stroke-width: 6; }
.kurve { width: 100%; height: auto; }
.kurve-achse { stroke: currentColor; stroke-width: 2; }
.kurve-hilfe { stroke: currentColor; stroke-width: 2; stroke-dasharray: 6 6; opacity: .35; }
.kurve-session { stroke: var(--blau-hell); stroke-width: 2; stroke-dasharray: 3 5; }
.kurve-text { fill: currentColor; font-size: 14px; }
.kurve-linie { fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.kurve-punkt { fill: var(--akzent); stroke: currentColor; stroke-width: 4; }
.balken { width: 100%; height: calc(var(--s) * 1.2); display: block; margin: .2em 0; }
.balken-grund { fill: var(--karton); }
.balken-wert { fill: var(--navy); }
.balken-wert.erster { fill: var(--mint); }
.stufe-krise .balken-wert, .stufe-leer .balken-wert { fill: var(--papier); }
.kopf .klein { color: var(--papier); opacity: .85; }
.beamer .kasten-akzent { background: var(--akzent); color: var(--akzent-text); display: flex; justify-content: space-between; align-items: center; }
.beamer .wert-gross { font-family: var(--zahl); font-weight: 800; font-size: 3em; line-height: 1; }
/* Rangliste kompakt, damit sechs Teams auf ein 16:9-Bild passen */
.beamer .rangliste { display: flex; flex-direction: column; gap: calc(var(--s) * .6); }
.beamer .rang .nr { font-size: 1.8em; }
.beamer .rang .faktor { font-size: 1.5em; line-height: 1; }
.beamer .rang-kopf { font-size: 1em; }
.beamer .balken { height: calc(var(--s) * .8); margin: .1em 0; }

/* Admin-Backend */
.admin-menue { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-menue .aktiv { background: var(--navy); color: var(--papier); }
textarea { font: inherit; width: 100%; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--weiss); color: var(--navy); }
fieldset { min-width: 0; }
fieldset.karte legend { padding: 0 6px; }
.einstellung label .etikett-klein { font-size: .75rem; padding: 0 8px; font-weight: 600; vertical-align: middle; }
label.checkbox { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
