/* Pixel-Look, Oberfläche fürs Handy.
   Neutrales Grau wie am Leuchtpult: der Hintergrund hat keinen Farbstich, damit sich der Look
   der Bilder unverfälscht beurteilen lässt. Eine einzige Signalfarbe (Bernstein) für die Hauptaktion. */
:root {
  --grund: #2b2b2b;
  --flaeche: #363636;
  --linie: #505050;
  --text: #f1f1f1;
  --leise: #b4b4b4;
  --akzent: #f2b13e;
  --auf-akzent: #231a05;
  --warn: #ff9c8a;
  --gut: #96d6a6;
  --rand: 16px;
  --leiste: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom) + 24px);
}
main, .kopf { max-width: 560px; margin: 0 auto; padding: 0 var(--rand); }
.kopf { padding-top: 18px; display: flex; align-items: baseline; justify-content: space-between; }
h1 { font-size: 1.7rem; line-height: 1.15; font-weight: 680; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: 1.1rem; font-weight: 650; margin: 34px 0 10px; }
p { margin: 0 0 12px; }
a { color: var(--text); text-underline-offset: 3px; }
.gross { font-size: 1.3rem; line-height: 1.25; font-weight: 600; margin-bottom: 6px; }
.leise { color: var(--leise); font-size: 0.92rem; }
.warn { color: var(--warn); }
.gut { color: var(--gut); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  border: 1.5px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.knopf.still { background: transparent; color: var(--leise); }
.knopf.klein { min-height: 44px; padding: 6px 12px; font-size: 0.92rem; font-weight: 550; }
.knopf.breit { display: flex; width: 100%; }
.knopf.aus { opacity: 0.35; pointer-events: none; }
.knopf:disabled { opacity: 0.6; }
.knopf-form { display: inline; margin: 0; }
.reihe { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }

/* Meldungen */
.meldung { padding: 12px 14px; border-radius: 10px; background: var(--flaeche); border-left: 4px solid var(--linie); }
.meldung.ok { border-left-color: var(--gut); }
.meldung.hinweis { border-left-color: var(--akzent); }
.meldung.fehler { border-left-color: var(--warn); }

/* Formulare */
label { display: block; font-weight: 600; font-size: 0.95rem; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea, input[type=file] {
  width: 100%; padding: 12px; border: 1.5px solid var(--linie); border-radius: 10px;
  background: #222; color: var(--text); font: inherit;
}
textarea { resize: vertical; line-height: 1.4; }
.stapel > .knopf { margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { font-weight: 650; padding: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { margin: 0; }
.wahl input { position: absolute; opacity: 0; }
.wahl span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--linie); border-radius: 24px; font-weight: 600; }
.wahl input:checked + span { background: var(--text); color: var(--grund); border-color: var(--text); }
.wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.ablage { display: block; margin: 0; padding: 26px 16px; border: 2px dashed var(--linie); border-radius: 14px; text-align: center; cursor: pointer; }
.ablage .gross, .ablage .leise { display: block; }
.ablage input { margin-top: 14px; border: 0; background: transparent; padding: 0; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.haken input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--akzent); }
details { margin: 18px 0 0; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--leise); }
details.block { margin-top: 30px; }

/* Startseite */
.ansage { margin-bottom: 20px; }
.vorschau { display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: end; margin-top: 14px; text-decoration: none; }
.vorschau img { display: block; width: 100%; height: auto; }
.vorschau span { color: var(--leise); padding-bottom: 2px; }
.stand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 22px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.stand > div { padding: 14px 10px 14px 0; }
.stand > div + div { padding-left: 12px; border-left: 1px solid var(--linie); }
.stand dt { font-size: 0.9rem; color: var(--leise); }
.stand dt a { color: inherit; }
.stand dd { margin: 0; font-size: 2.1rem; line-height: 1.15; font-weight: 680; font-variant-numeric: tabular-nums; }
.stand dd.dazu { font-size: 0.8rem; line-height: 1.3; font-weight: 400; color: var(--leise); }

/* Entwürfe */
.oben { margin-bottom: 16px; }
.entwurf { margin: 0 0 44px; padding-bottom: 28px; border-bottom: 1px solid var(--linie); scroll-margin-top: 8px; }
.entwurf:last-child { border-bottom: 0; }
.bild { position: relative; margin: 0 calc(-1 * var(--rand)); background: #1c1c1c; aspect-ratio: 4 / 5; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bild .vorher { opacity: 0; }
.umschalter { position: absolute; opacity: 0; }
.umschalter:checked ~ .vorher { opacity: 1; }
.schalter { position: absolute; right: 10px; bottom: 10px; margin: 0; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 22px; background: rgba(20, 20, 20, 0.78); font-size: 0.9rem; cursor: pointer; }
.schalter .mit { display: none; }
.umschalter:checked ~ .schalter .mit { display: inline; }
.umschalter:checked ~ .schalter .ohne { display: none; }
.umschalter:focus-visible ~ .schalter { outline: 3px solid var(--akzent); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; color: var(--leise); font-size: 0.88rem; overflow-wrap: anywhere; }
.marke { color: var(--text); font-weight: 650; }
.ausschnitt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ausschnitt .leise { width: 100%; }
.entscheidung { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 20px; }
.entscheidung .knopf { width: 100%; min-height: 56px; font-size: 1.05rem; }
.text .knopf { margin-top: 10px; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--linie); scroll-margin-top: 8px; }
.liste p { margin: 0 0 2px; }
.liste .mitte { flex: 1; min-width: 0; }
.liste details { margin: 0; }
.daumen { width: 54px; height: 68px; object-fit: cover; flex: none; background: #1c1c1c; }
.folge { counter-reset: platz; }
.pfeile { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pfeil { width: 48px; padding: 0; }
.leer { padding: 28px 0; }
.wege { list-style: none; margin: 0 0 8px; padding: 0; }
.wege a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linie); font-weight: 650; text-decoration: none; }
.wege a span { display: block; font-weight: 400; }
.schritte { padding-left: 22px; margin: 0 0 8px; }
.schritte li { margin-bottom: 8px; }
.pruefliste { margin: 0 0 14px; }
.pruefliste > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.pruefliste dt { color: var(--leise); }
.pruefliste dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* Zahlen */
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.tabelle th, .tabelle td { padding: 9px 6px; border-bottom: 1px solid var(--linie); text-align: right; }
.tabelle th { color: var(--leise); font-weight: 500; }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; padding-left: 0; min-width: 9.5rem; }
.rollen { overflow-x: auto; margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand); }

/* Leiste unten */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #222; border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom);
}
.leiste a { display: flex; align-items: center; justify-content: center; height: var(--leiste); color: var(--leise); text-decoration: none; font-size: 0.78rem; font-weight: 550; white-space: nowrap; }
.leiste a[aria-current] { color: var(--text); box-shadow: inset 0 3px 0 var(--akzent); }
.zaehler { margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--akzent); color: var(--auf-akzent); font-size: 0.7rem; line-height: 18px; text-align: center; }
.zaehler.ruhig { background: var(--linie); color: var(--text); }

/* Seiten ohne Leiste (Anmelden, Fehler) */
.allein { padding: 14vh 0 0; }
.allein main { max-width: 380px; }

@media (max-width: 380px) {
  .leiste a { font-size: 0.7rem; }
  .zaehler { margin-left: 2px; padding: 0 4px; }
}
@media (min-width: 600px) {
  .bild { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .bild .vorher { transition: opacity 0.12s; }
}
