@import url("schriften.css");
/* Ein Werkzeug: ruhige Flächen, eine Akzentfarbe nur für die wichtigste Handlung, Linien statt Kästen. */
:root {
  --grund: #120a10; --flaeche: #1b1218; --flaeche2: #261a22; --linie: #33252e; --linie2: #4a3843;
  --text: #f4ece6; --neben: #a9979b; --akzent: #ff5a24; --akzent-text: #240604;
  --gut: #62e3b0; --warm: #ffd9a6; --rot: #ff9d90;
  --rund: 12px;
  --anzeige: "Unbounded", system-ui, sans-serif; --schrift: "Geist", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--grund); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 400 .9375rem/1.5 var(--schrift); }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: .9375rem; font-weight: 600; }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.neben { color: var(--neben); }
.klein { font-size: .8125rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }

/* Gerüst */
.geruest { min-height: 100svh; }
.haupt { width: 100%; padding: 1.25rem 16px 6.5rem; max-width: 64rem; margin-inline: auto; display: grid; gap: 1.5rem; align-content: start; grid-template-columns: minmax(0, 1fr); }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; padding: .3rem .4rem max(.3rem, env(safe-area-inset-bottom)); background: #18101599; backdrop-filter: blur(14px); border-top: 1px solid var(--linie); }
.leiste .wort, .leiste .fuss { display: none; }
.leiste nav { display: contents; }
.leiste a.punkt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem 0 .3rem; border-radius: 10px; font-size: .6875rem; font-weight: 500; color: var(--neben); }
.leiste a.punkt[aria-current="page"] { color: var(--text); }
.leiste a.scan { color: var(--akzent); font-weight: 600; }
.leiste a.scan[aria-current="page"] { color: var(--akzent); }
@media (min-width: 860px) {
  .geruest { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
  .leiste { position: sticky; top: 0; bottom: auto; height: 100svh; flex-direction: column; gap: .15rem; padding: 1.25rem .75rem; background: none; backdrop-filter: none; border-top: 0; border-right: 1px solid var(--linie); }
  .leiste .wort { display: block; order: -2; padding: 0 .65rem 1.25rem; }
  .leiste .fuss { display: block; margin-top: auto; }
  .leiste a.punkt { flex: none; flex-direction: row; gap: .65rem; padding: .5rem .65rem; font-size: .9375rem; }
  .leiste a.punkt:hover { background: var(--flaeche); color: var(--text); }
  .leiste a.punkt[aria-current="page"] { background: var(--flaeche2); }
  .leiste a.scan { order: -1; margin-bottom: .75rem; background: var(--akzent); color: var(--akzent-text); justify-content: flex-start; }
  .leiste a.scan:hover, .leiste a.scan[aria-current="page"] { background: #ff6f3f; color: var(--akzent-text); }
  .haupt { padding: 2rem 2.5rem 4rem; }
}
.wortmarke { display: block; height: 2rem; width: auto; }

.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.kopf .titel { min-width: 0; flex: 1 1 12rem; }
.zurueck { display: inline-flex; align-items: center; gap: .3rem; color: var(--neben); font-size: .875rem; margin-bottom: .35rem; }
.zurueck:hover { color: var(--text); }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.abschnitt { display: grid; gap: .6rem; align-content: start; }
.abschnitt > .abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 32px; }
.zwei { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .zwei { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .4rem .85rem; border-radius: 10px; border: 1px solid var(--linie2); background: transparent; font-weight: 500; cursor: pointer; white-space: nowrap; }
.knopf:hover { background: var(--flaeche2); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.haupt-knopf { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.knopf.haupt-knopf:hover { background: #ff6f3f; }
.knopf.gefahr { color: var(--rot); }
.knopf.ohne { border-color: transparent; color: var(--neben); }
.knopf.ohne:hover { color: var(--text); }
.knopf.rund { padding: 0; width: 38px; }
.knopf.breit { width: 100%; }

/* Listen: eine Fläche, Linien dazwischen */
.liste { background: var(--flaeche); border-radius: var(--rund); overflow: hidden; }
.zeile { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: .6rem .9rem; border: 0; border-top: 1px solid var(--linie); background: none; text-align: left; }
.zeile:first-child { border-top: 0; }
a.zeile, button.zeile { cursor: pointer; }
a.zeile:hover, button.zeile:hover { background: var(--flaeche2); }
.zeile .mitte { flex: 1 1 auto; min-width: 0; }
.zeile strong { font-weight: 500; display: block; overflow-wrap: anywhere; }
.zeile .unter { display: block; color: var(--neben); font-size: .8125rem; overflow-wrap: anywhere; }
.pfeil { color: var(--linie2); flex: none; }
.schild { display: inline-block; padding: .05rem .5rem; border-radius: 99px; font-size: .75rem; font-weight: 500; background: var(--flaeche2); color: var(--neben); white-space: nowrap; }
.schild.warm { background: #4a2614; color: var(--warm); }
.schild.gut { background: #12362a; color: var(--gut); }
.schild.rot { background: #4a1f1c; color: var(--rot); }
.punkt-neu { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); flex: none; }
.leer { padding: 2rem 1rem; text-align: center; color: var(--neben); display: grid; gap: .75rem; justify-items: center; background: var(--flaeche); border-radius: var(--rund); }

/* Schalter */
.schalter { position: relative; flex: none; width: 42px; height: 24px; }
.schalter input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); margin: 0; opacity: 0; cursor: pointer; }
.schalter i { position: absolute; inset: 0; border-radius: 99px; background: var(--linie2); transition: background 140ms; pointer-events: none; }
.schalter i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform 180ms cubic-bezier(.3, 1.3, .5, 1); }
.schalter input:checked + i { background: var(--akzent); }
.schalter input:checked + i::after { transform: translateX(18px); }
.schalter input:focus-visible + i { outline: 2px solid var(--warm); outline-offset: 2px; }

/* Felder */
input, select, textarea { width: 100%; min-height: 40px; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--linie2); background: var(--grund); }
input::placeholder, textarea::placeholder { color: #7d6d72; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--warm); outline-offset: 0; border-color: transparent; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
input[type="file"] { padding: .4rem; }
select { appearance: auto; }
select.klein-wahl { width: auto; min-height: 32px; padding: .15rem .4rem; font-size: .875rem; }
label.feld { display: grid; gap: .25rem; font-size: .875rem; font-weight: 500; }
label.feld .hilfe { font-weight: 400; color: var(--neben); font-size: .8125rem; }
.formular { display: grid; gap: .9rem; }
.suche { position: relative; flex: 1 1 14rem; }
.suche svg { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--neben); }
.suche input { padding-left: 2.1rem; }
.filter { display: flex; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
@media (min-width: 860px) { .filter { margin-inline: 0; padding-inline: 0; } }
.filter button { flex: none; min-height: 32px; padding: .15rem .7rem; border-radius: 99px; border: 1px solid var(--linie); background: none; color: var(--neben); font-size: .8125rem; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--grund); font-weight: 500; }
.karte-text { background: var(--flaeche); border-radius: var(--rund); padding: .9rem; display: grid; gap: .65rem; }

/* Blatt: von rechts am Desktop, von unten am Handy */
dialog.blatt { position: fixed; margin: 0; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 90svh; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: var(--flaeche); color: var(--text); overflow: hidden; }
dialog.blatt[open] { display: flex; flex-direction: column; animation: blatt-unten 280ms cubic-bezier(.16, 1, .3, 1); }
dialog.blatt::backdrop { background: #0009; animation: dunkel 200ms ease; }
@keyframes blatt-unten { from { transform: translateY(40px); opacity: 0; } }
@keyframes dunkel { from { opacity: 0; } }
@media (min-width: 860px) {
  dialog.blatt { inset: 0 0 0 auto; width: 30rem; height: 100svh; max-height: none; border-radius: 0; border-left: 1px solid var(--linie); }
  dialog.blatt[open] { animation-name: blatt-seite; }
  @keyframes blatt-seite { from { transform: translateX(40px); opacity: 0; } }
}
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem .85rem 1.1rem; border-bottom: 1px solid var(--linie); }
.blatt-kopf h2 { font-size: 1.0625rem; overflow-wrap: anywhere; }
.blatt-inhalt { padding: 1.1rem; overflow-y: auto; display: grid; gap: 1rem; align-content: start; flex: 1 1 auto; padding-bottom: max(1.1rem, env(safe-area-inset-bottom)); }
.blatt-fuss { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; padding-top: .25rem; }
.wahl-liste { display: grid; gap: .1rem; margin-inline: -.5rem; }
.wahl-liste button { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .5rem; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; }
.wahl-liste button:hover { background: var(--flaeche2); }
.wahl-liste button.gefahr { color: var(--rot); }
.qr-gross { display: block; width: min(100%, 17rem); margin-inline: auto; padding: 10px; background: #fff; color: #000; border-radius: 12px; }
.qr-gross path { fill: currentColor; }

/* Meldungen */
.meldungen { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; gap: .4rem; justify-items: center; pointer-events: none; }
@media (min-width: 860px) { .meldungen { left: auto; right: 1.5rem; bottom: 1.5rem; justify-items: end; } }
.meldung { max-width: 26rem; padding: .55rem .85rem; border-radius: 10px; background: var(--text); color: var(--grund); font-weight: 500; font-size: .875rem; box-shadow: 0 6px 24px #0007; animation: meldung 220ms cubic-bezier(.16, 1, .3, 1); }
.meldung.fehler { background: #5c211c; color: #ffe3de; }
@keyframes meldung { from { transform: translateY(10px); opacity: 0; } }

/* Anmeldung */
.anmelden { min-height: 100svh; display: grid; place-content: center; gap: 1.25rem; padding: 16px; width: min(22rem, 100%); margin-inline: auto; }
.anmelden .wortmarke { height: 3.25rem; }

/* Scannen */
.kamera { position: relative; width: 100%; max-width: 26rem; aspect-ratio: 1; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #000; }
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kamera::after { content: ""; position: absolute; inset: 14%; border: 2px solid #ffffffd0; border-radius: 16px; box-shadow: 0 0 0 100vmax #0007; pointer-events: none; }
.scan-spalte { display: grid; gap: .9rem; width: 100%; max-width: 26rem; margin-inline: auto; }
.scan-hinweis { text-align: center; }
.fortschritt { height: 6px; border-radius: 99px; background: var(--flaeche2); overflow: hidden; width: 100%; max-width: 12rem; }
.fortschritt i { display: block; height: 100%; background: var(--warm); }
.zwei-felder { display: grid; gap: .9rem; }
.checkliste .zeile strong { font-weight: 500; }
.haken { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--linie2); flex: none; display: grid; place-items: center; color: var(--grund); }
.haken.an { background: var(--gut); border-color: var(--gut); }
.haken svg.ic { width: 14px; height: 14px; stroke-width: 2.6; }
.verlauf { display: grid; gap: .55rem; padding: .85rem .9rem; background: var(--flaeche); border-radius: var(--rund); }
.verlauf p { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; }
.verlauf time { color: var(--neben); white-space: nowrap; font-size: .8125rem; }
.vorschau-bild { width: 100%; max-height: 10rem; object-fit: cover; object-position: top; border-radius: 10px; display: block; }
.datei-zeile { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border-radius: 10px; background: var(--grund); font-size: .875rem; }
.datei-zeile a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  dialog.blatt[open], dialog.blatt::backdrop, .meldung { animation: none; }
  .schalter i, .schalter i::after { transition: none; }
}
.zeile-knopf { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.zeile-knopf:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.reihe-eng { display: flex; flex: none; }
.tabs { margin-top: -.75rem; }
.kartenleiste { display: flex; align-items: center; gap: .6rem; }
.wachsen { flex: 1 1 12rem; min-width: 0; display: block; }
