/* ============ Stempelwerk – gemeinsame Styles im Design von gicoweb.de ============
   Farben, Schriften und Formen wie auf der Website (Webseiten_GICOWEB/gicoweb.de, assets/css/style.css), seit 25.11.2026:
   Weiß, kühles Hellgrau, Navy als Schrift- und Flächenfarbe, Hellblau als sparsamer Akzent. Überschriften in Manrope,
   Fließtext in Alegreya Sans. Feine Linien statt Schatten, 6 px Ecken, keine Verläufe, kein Glas.
   Die Kundenseiten (Anmeldung, Web-Karte, Aufsteller) tragen die Farben des jeweiligen Geschäfts – Schrift und Formen
   kommen trotzdem von hier. Der Nachbau des Wallet-Passes bleibt in der Systemschrift, wie im echten Wallet. */

/* Alegreya Sans hat keinen 600er-Schnitt – font-weight: 600 fällt auf 700. Die Schrift wirkt bei gleicher Punktgröße
   kleiner; size-adjust gleicht das aus, damit alle Größen hier dieselben sind wie auf der Website. */
@font-face { font-family: "Alegreya Sans"; size-adjust: 121%; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; size-adjust: 121%; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; size-adjust: 121%; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/alegreya-sans-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5f6;
  --ink: #1b2935;
  --ink-hover: #2a3c4b;
  --muted: #55616c;
  --line: #d6dce1;
  --line-strong: #b3bac0;
  --accent: #91d5ff;
  --accent-strong: #4aa8e0;
  --accent-soft: #e6f4fd;
  --accent-text: #2f6f99;
  --on-ink: #ffffff;
  --on-ink-muted: #c3ccd3;
  --on-ink-line: rgba(255, 255, 255, .16);
  --error: #a3261f;
  --error-soft: #f6e1df;
  --success: #1f6b45;
  --success-soft: #e1efe7;
  /* Säulen im Diagramm und Fortschrittsbalken: kräftigeres Blau aus derselben Familie (Kontrast zu Weiß über 3 : 1) */
  --daten: #2a78b5;

  --radius: 6px;
  --font: "Alegreya Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-pass: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bad: var(--error);
  color-scheme: light;
  /* Fläche hinter der Seite (siehe html): oben und unten die Farbe dessen, was dort steht. */
  --rand-oben: var(--bg);
  --rand-unten: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
/* Globale Regeln (GICOWEB/CLAUDE.md):
   - Am Seitenanfang und -ende ist Schluss, auch seitlich: overscroll-behavior an html UND body (Safari/Firefox lesen
     es am html, Chrome bis 139 am body), overflow-x: clip als Absicherung („clip“, nicht „hidden“).
   - Die Fläche hinter der Seite hat die Farbe der jeweiligen Kante (--rand-oben, ab der Seitenmitte --rand-unten über
     die Klasse „am-ende“, gesetzt vom Skript im <head>, Views::layout). body bleibt dafür ohne Hintergrund.
   - Ein Tipp reicht: kein Warten auf den Doppeltipp-Zoom, kein Kasten beim Antippen. */
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
  overflow-x: clip;
  background-color: var(--rand-oben);
}
html.am-ende { background-color: var(--rand-unten); }
html, a, button, img, summary, label, [role="button"] { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  overscroll-behavior: none;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  /* Gleich hohe Ziffern – Alegreya Sans setzt sonst Mediävalziffern (ruhiger für Zahlen, Codes, Uhrzeiten) */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
@media (hover: hover) { a:hover { text-decoration-color: var(--accent-strong); text-decoration-thickness: 2px; } }
a:active { text-decoration-color: var(--accent-strong); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 600 .88em var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* „hidden“ muss immer verstecken – auch wenn eine Klasse display: grid/flex setzt (sonst lag der leere
   „Kamera nicht verfügbar“-Kasten im Scanner dauerhaft über dem Kamerabild: Bildschirm blieb blau). */
[hidden] { display: none !important; }

/* ---------- Marke: G von GICOWEB + „Digi-Stempler“ ---------- */
/* Das G liegt als fertig eingefärbtes Bild vor (public/brand) – keine CSS-Maske, damit beim Neuladen nichts fehlt. */
.marke { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--ink); text-decoration: none; }
.marke img { display: block; height: 26px; width: auto; transition: opacity .15s ease; }
.marke:active img { opacity: .6; }
/* „Digi“ in der Akzentfarbe, „-Stempler“ in Navy. */
.marke__akzent { color: var(--accent-text); }

/* ---------- Buttons ---------- */
/* Wie auf der Website: Navy mit 1 px Rand, 6 px Ecken, nur Text. Rückmeldung über die Farbe, nichts bewegt sich. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
@media (hover: hover) { .btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); } }
.btn:active { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--block { display: flex; width: 100%; }
.btn--brand { background: var(--ink); color: var(--on-ink); }
/* Heller Button: nur Rahmen, Navy-Schrift – beim Überfahren dunkler Rahmen und hellgraue Fläche */
.btn--soft { background: transparent; color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) { .btn--soft:hover { background: var(--bg-soft); border-color: var(--ink); } }
.btn--soft:active { background: var(--bg-soft); border-color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) { .btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; } }
.btn--ghost:active { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; }
.btn--gefahr { background: var(--error); border-color: var(--error); color: #fff; }
@media (hover: hover) { .btn--gefahr:hover { background: #82201a; border-color: #82201a; } }
.btn--gefahr:active { background: #82201a; border-color: #82201a; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 18px; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span, .label { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  line-height: 1.4;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: #7b858e; }
.input[type=file] { padding: 9px 12px; font-size: 15px; }
.hint { font-size: 14.5px; font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }

/* Meldung unten am Bildschirm: Navy-Fläche wie der Footer der Website, ohne Glas und ohne Federn. */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; max-width: min(92vw, 460px); padding: 13px 18px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); font-weight: 500; line-height: 1.4; box-shadow: 0 14px 32px -16px rgba(27, 41, 53, .55); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* Webdesign-Credit wie auf jeder Kunden-Website: sieht aus wie der Text daneben, erst beim Überfahren unterstrichen. */
.gicoweb-credit { color: inherit; text-decoration: none; }
@media (hover: hover) { .gicoweb-credit:hover { text-decoration: underline; text-decoration-color: var(--s-accent, var(--accent-strong)); } }
.gicoweb-credit:focus-visible { text-decoration: underline; }

/* ---------- Wallet-Pass (Nachbau Apple "storeCard") ---------- */
.pass { --p-bg: #222; --p-fg: #fff; --p-label: #bbb; position: relative; width: 100%; max-width: 360px; margin: 0 auto; background: var(--p-bg); color: var(--p-fg); border-radius: 14px; overflow: hidden; box-shadow: 0 22px 48px -22px rgba(27, 41, 53, .55), 0 0 0 1px rgba(27, 41, 53, .08); font-family: var(--font-pass); line-height: 1.35; text-align: left; font-variant-numeric: normal; }
.pass__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; min-height: 58px; }
.pass__logo { height: 32px; width: auto; max-width: 110px; object-fit: contain; }
.pass__name { flex: 1; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass__strip svg { display: block; width: 100%; height: auto; }
.pass__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
.pass__field { display: grid; min-width: 0; }
.pass__field--r { text-align: right; }
.pass .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--p-label); }
.pass .val { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass .val--lg { font-size: 16px; font-weight: 500; } /* so ruhig wie auf gicoweb.de/digi-stempler */
.pass__code { display: grid; justify-items: center; gap: 6px; padding: 18px 0 18px; }
.pass__qr { width: 116px; padding: 8px; background: #fff; border-radius: 6px; line-height: 0; }
.pass__qr svg { width: 100%; height: auto; }
.pass__alt { font: 600 12px/1 var(--mono); letter-spacing: .18em; color: var(--p-label); }
.pass__pad { height: 18px; }
.pass.is-ready { box-shadow: 0 0 0 2px var(--p-accent), 0 22px 48px -22px rgba(27, 41, 53, .55); }

/* Neuer Stempel: blendet nur ein – nichts springt, dreht oder skaliert (wie die Vorschau auf gicoweb.de/stempelwerk). */
.stamp.is-new { animation: stamp-in .6s ease .15s both; }
@keyframes stamp-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp.is-new, .stage .pass { animation: none; } }

/* ---------- Wallet-Buttons (Farben nach den Vorgaben von Apple und Google) ---------- */
.wallet-btns { display: grid; gap: 10px; }
.wbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 8px; background: #000; color: #fff; text-decoration: none; font-family: var(--font-pass); font-weight: 600; font-size: 16px; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; transition: opacity .15s ease; }
.wbtn:active { opacity: .8; }
.wbtn svg { width: 26px; height: 26px; }
.wbtn--google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.wbtn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; }
.wbtn span { line-height: 1.15; text-align: left; }
.demo-note { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }

/* ---------- Kundenseiten (Anmeldung + Web-Karte) ---------- */
/* Die Farben des Geschäfts stehen am <html> (Views::layout), damit auch die Fläche hinter der Seite sie kennt.
   Flache Fläche ohne Verlauf (wie die Website) – oben und unten also dieselbe Farbe. */
html.shop { --s-bg: #222; --s-fg: #fff; --s-accent: #f90; --rand-oben: var(--s-bg); --rand-unten: var(--s-bg); }
.shop-page { position: relative; min-height: 100vh; min-height: 100dvh; color: var(--s-fg); }
.shop-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--s-bg); }
.shop-page a:not(.btn):not(.wbtn) { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.shop-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.shop-top { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-family: var(--font-heading); font-weight: 600; letter-spacing: -.01em; }
.shop-top img { height: 34px; width: auto; }
.shop-page h1 { font-size: clamp(30px, 8.4vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px; }
.shop-page h2 { font-weight: 700; letter-spacing: -.025em; }
.shop-page .lead { font-size: 18px; line-height: 1.5; opacity: .88; margin-bottom: 24px; }
.shop-page .btn--brand { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-accent-ink, #000); }
@media (hover: hover) { .shop-page .btn--brand:hover { background: color-mix(in srgb, var(--s-accent) 88%, var(--s-accent-ink, #000)); border-color: color-mix(in srgb, var(--s-accent) 88%, var(--s-accent-ink, #000)); } }
.shop-page .btn--brand:active { background: color-mix(in srgb, var(--s-accent) 88%, var(--s-accent-ink, #000)); }
.shop-page .btn--soft { color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
@media (hover: hover) { .shop-page .btn--soft:hover { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; } }
.shop-page .btn--soft:active { background: color-mix(in srgb, currentColor 10%, transparent); }
.shop-page .input { background: rgba(255, 255, 255, .97); color: var(--ink); border-color: transparent; }
.shop-page .input:focus { border-color: var(--s-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-accent) 30%, transparent); }
.shop-page .check input { accent-color: var(--s-accent); }
.shop-page .hint { color: inherit; opacity: .7; }
.shop-page .field > span { color: inherit; opacity: .9; }
.shop-page :focus-visible { outline-color: currentColor; }
.stage { margin: 8px 0 28px; }
.stage:not(.loaded) .pass { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; } }
.steps { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; font-size: 15.5px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.steps li::before { content: counter(s); flex: none; width: 1.2em; font-family: var(--font-heading); font-weight: 700; color: var(--s-accent); }
.ready-box { display: grid; gap: 14px; }
.ready-box h2 { font-size: 26px; margin: 0; }
.foot { margin-top: 32px; font-size: 13.5px; line-height: 1.6; opacity: .65; text-align: center; }
.foot a { color: inherit; }

.card-page .status { margin: 24px 0 4px; font-family: var(--font-heading); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; text-align: center; }
.card-page .activity { text-align: center; font-size: 15px; opacity: .72; margin-bottom: 24px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .7; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60, 207, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(60, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

/* ---------- Mitarbeiter-Scanner: Navy wie der Footer der Website ---------- */
html.dunkel { --rand-oben: var(--ink); --rand-unten: var(--ink); color-scheme: dark; }
.staff { color: var(--on-ink); min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.staff .hint { color: var(--on-ink-muted); }
.staff .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; }
.staff .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(145, 213, 255, .22); }
.staff .input::placeholder { color: rgba(255, 255, 255, .35); }
.staff :focus-visible { outline-color: var(--accent); }
.staff .btn--soft { color: #fff; border-color: rgba(255, 255, 255, .32); background: transparent; }
@media (hover: hover) { .staff .btn--soft:hover { background: rgba(255, 255, 255, .08); border-color: #fff; } }
.staff .btn--soft:active { background: rgba(255, 255, 255, .12); border-color: #fff; }
/* Hauptaktion am Kassen-Handy: Hellblau mit Navy-Schrift; Prämie in Weiß (wie der Button im Footer der Website) */
.btn--stamp { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (hover: hover) { .btn--stamp:hover { background: #b4e2ff; border-color: #b4e2ff; } }
.btn--stamp:active { background: #b4e2ff; border-color: #b4e2ff; }
.btn--reward { background: #fff; border-color: #fff; color: var(--ink); }
@media (hover: hover) { .btn--reward:hover { background: var(--accent); border-color: var(--accent); } }
.btn--reward:active { background: var(--accent); border-color: var(--accent); }
.btn--warn { background: transparent; border-color: var(--accent); color: var(--accent); }
@media (hover: hover) { .btn--warn:hover { background: rgba(145, 213, 255, .12); } }
.btn--warn:active { background: rgba(145, 213, 255, .16); }

.pin { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; text-align: center; }
.pin__logo { display: block; height: 52px; width: auto; margin: 0 auto 16px; }
.pin h1 { font-size: 26px; margin-bottom: 2px; }
.pin p { color: var(--on-ink-muted); margin: 0; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 28px 0; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--on-ink-muted); transition: background-color .15s ease, border-color .15s ease; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pad { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; justify-content: center; }
.pad button { height: 64px; border: 1px solid var(--on-ink-line); border-radius: var(--radius); background: rgba(255, 255, 255, .05); color: #fff; font-family: var(--font-heading); font-size: 26px; font-weight: 500; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
@media (hover: hover) { .pad button:hover { border-color: rgba(255, 255, 255, .4); } }
.pad button:active { background: rgba(255, 255, 255, .18); }
.pad button.txt { background: transparent; border-color: transparent; font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--on-ink-muted); }
.pad button.txt[data-k="ok"] { color: var(--accent); }

.scan { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0e161d; }
.scan__bar { grid-row: 1; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--ink); box-shadow: 0 1px 0 var(--on-ink-line); }
.scan__bar strong { font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.scan__bar .count { font-size: 14px; color: var(--on-ink-muted); line-height: 1.3; }
.scan__frame { grid-row: 2; position: relative; z-index: 1; align-self: center; justify-self: center; width: min(68vw, 300px); aspect-ratio: 1; border-radius: var(--radius); box-shadow: 0 0 0 100vmax rgba(14, 22, 29, .55); }
.scan.no-cam .scan__frame { display: none; }
.scan__frame::before { content: ""; position: absolute; inset: -2px; --c: #fff; --l: 36px; --w: 4px; background:
  linear-gradient(var(--c) 0 0) top left / var(--l) var(--w), linear-gradient(var(--c) 0 0) top left / var(--w) var(--l),
  linear-gradient(var(--c) 0 0) top right / var(--l) var(--w), linear-gradient(var(--c) 0 0) top right / var(--w) var(--l),
  linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--w), linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--l),
  linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--w), linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--l);
  background-repeat: no-repeat; border-radius: var(--radius); }
.scan__line { position: absolute; left: 10%; right: 10%; height: 2px; top: 10%; background: var(--accent); animation: scanline 2.2s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 90%; } }
@media (prefers-reduced-motion: reduce) { .scan__line { animation: none; top: 50%; } }
.scan__msg { position: absolute; z-index: 2; left: 0; right: 0; top: calc(50% + min(34vw, 150px) + 18px); padding: 0 16px; text-align: center; font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scan__foot { grid-row: 3; position: relative; z-index: 2; display: flex; gap: 10px; justify-content: center; padding: 14px 16px max(18px, env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -1px 0 var(--on-ink-line); }
.scan__nocam { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 24px; text-align: center; color: var(--on-ink-muted); background: var(--ink); }
.scan__nocam svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 8px; }
.scan__nocam b { color: #fff; }

.sheet-back { position: fixed; inset: 0; z-index: 10; background: rgba(14, 22, 29, .55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.sheet-back.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 10px 18px max(22px, env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; background: var(--ink); box-shadow: 0 0 0 1px var(--on-ink-line); transform: translateY(105%); transition: transform .32s ease; overscroll-behavior: contain; }
.sheet.is-on { transform: none; }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 0 auto 16px; }
.sheet__who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sheet__who h2 { font-size: 24px; margin: 0; }
.sheet__who code { font: 600 13px var(--mono); letter-spacing: .14em; color: var(--on-ink-muted); }
.sheet__strip { border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.sheet__strip svg { display: block; width: 100%; height: auto; }
.sheet__status { font-size: 16px; line-height: 1.45; color: var(--on-ink-muted); margin-bottom: 16px; }
.sheet__status b { color: #fff; }
.sheet__status .warn { color: var(--accent); }
.sheet__actions { display: grid; gap: 10px; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sheet__done { display: grid; justify-items: center; gap: 6px; padding: 18px 0 10px; text-align: center; color: var(--on-ink-muted); }
.sheet__done .big { font: 700 34px/1.1 var(--font-heading); letter-spacing: -.02em; color: #fff; }
.sheet__done .icon { width: 60px; height: 60px; color: var(--accent); }
.sheet__done b { color: #fff; }
.sheet form h2 { font-size: 22px; margin: 4px 0 6px; }
.sheet form p { color: var(--on-ink-muted); margin: 0 0 14px; }
.check-anim { width: 80px; height: 80px; }
.check-anim circle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .5s ease forwards; }
.check-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .35s ease .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.menu { position: absolute; right: 12px; top: calc(max(12px, env(safe-area-inset-top)) + 52px); z-index: 5; min-width: 240px; padding: 6px; border-radius: var(--radius); background: var(--ink); box-shadow: 0 0 0 1px var(--on-ink-line), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.menu label, .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 0; border-radius: 4px; background: none; text-align: left; cursor: pointer; font-size: 16px; line-height: 1.3; }
.menu label + label, .menu label + button { box-shadow: 0 -1px 0 var(--on-ink-line); }
.menu small { display: block; font-size: 13.5px; color: var(--on-ink-muted); }
@media (hover: hover) { .menu label:hover, .menu button:hover { background: rgba(255, 255, 255, .06); } }
.menu label:active, .menu button:active { background: rgba(255, 255, 255, .1); }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .22); position: relative; cursor: pointer; transition: background-color .2s ease; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease, background-color .2s ease; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--ink); }

/* ---------- Druck-Aufsteller ---------- */
.poster-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 16px; box-shadow: 0 1px 0 var(--line); margin-bottom: 28px; }
.poster-tools strong { font-weight: 600; margin-right: 4px; }
.poster { --s-bg: #222; --s-fg: #fff; --s-accent: #f90; width: 105mm; height: 148mm; margin: 0 auto 40px; padding: 9mm 9mm 8mm; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 3.5mm; background: var(--s-bg); color: var(--s-fg); text-align: center; box-shadow: 0 0 0 1px var(--line); overflow: hidden; line-height: 1.35; }
.poster--a5 { width: 148mm; height: 210mm; padding: 14mm 13mm; }
.poster--a4 { width: 210mm; height: 297mm; padding: 20mm 18mm; }
.poster h1 { font-size: 1.4em; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 1.5mm; }
.poster .p-brand { display: flex; justify-content: center; align-items: center; gap: 3mm; font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em; }
.poster .p-brand img { height: 9mm; }
.poster .p-lead { font-size: .85em; opacity: .88; margin: 0; max-width: none; }
.poster .p-qr { align-self: center; justify-self: center; height: 100%; max-height: 100%; aspect-ratio: 1; max-width: 72%; padding: 3.5mm; background: #fff; border-radius: 3mm; line-height: 0; }
.poster .p-qr svg { width: 100%; height: 100%; }
.poster .p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm; font-size: .64em; line-height: 1.25; }
.poster .p-steps b { display: block; font-family: var(--font-heading); font-size: 1.5em; color: var(--s-accent); }
.poster .p-strip svg { width: 78%; height: auto; display: block; margin: 0 auto; border-radius: 2mm; }
.poster { font-size: 16px; }
.poster--a5 { font-size: 22px; }
.poster--a4 { font-size: 30px; }
@media print {
  @page { margin: 0; }
  html { background-color: #fff; }
  .poster-tools { display: none; }
  .poster { box-shadow: none; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Hinweisseiten („Nicht gefunden“ usw.) ---------- */
.meldung { max-width: 560px; margin: 0 auto; padding: clamp(64px, 14vh, 140px) 16px 64px; }
.meldung .marke { margin-bottom: 36px; }
.meldung h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; }
.meldung p { color: var(--muted); font-size: 18px; }
