:root {
  --gelb: #FFCE00; --dunkelgruen: #001A15; --gruen2: #0b2b24; --grau: #E2E2E2;
  --gruen: #1f9d55; --amber: #d98200; --rot: #c0392b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--dunkelgruen); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
[hidden] { display: none !important; }

.seite { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.marke { color: var(--gelb); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 28px; }
h1 { margin: 0 0 10px; font-size: 28px; }
p { margin: 6px 0; font-size: 17px; line-height: 1.45; color: var(--grau); max-width: 420px; }
.gross-text { font-size: 22px; color: #fff; font-weight: 600; }
.klein { font-size: 14px; opacity: .8; margin-top: 18px; }

.kreis { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 700; margin-bottom: 20px; background: rgba(255,255,255,.1); }
.kreis.ok { background: var(--gruen); }
.kreis.spaet { background: var(--amber); }
.kreis.fehler { background: var(--rot); }
.kreis.info { background: #2b6cb0; }
.kreis.laden { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

form { width: 100%; max-width: 360px; margin-top: 14px; }
/* Rahmen auf dem Wrapper statt auf dem input: iOS Safari verschluckt sonst Ränder */
.feld { background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 0 14px; }
.feld:focus-within { border-color: var(--gelb); }
.feld input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 14px 0; color: #111;
  -webkit-appearance: none; appearance: none; border-radius: 0; }
.feld input.code { text-align: center; font-size: 30px; letter-spacing: .4em; font-variant-numeric: tabular-nums; padding-left: .4em; }
.fehler { color: #ff8a80; font-size: 15px; min-height: 22px; margin: 8px auto 0; }

.btn { display: inline-block; margin-top: 14px; border: 0; border-radius: 12px; padding: 14px 22px; font-size: 17px; font-weight: 700;
  background: var(--gelb); color: var(--dunkelgruen); cursor: pointer; font-family: inherit; }
.btn.gross { width: 100%; max-width: 360px; padding: 16px 22px; font-size: 18px; }
.btn.hell { background: rgba(255,255,255,.18); color: #fff; }
.btn:disabled { opacity: .55; }
.btn.laeuft { animation: puls 1.2s ease-in-out infinite; }
.link { background: none; border: 0; color: var(--gelb); font-size: 15px; margin-top: 18px; padding: 6px; cursor: pointer; font-family: inherit; text-decoration: underline; }
.link:disabled { color: rgba(255,255,255,.4); text-decoration: none; }

.vorgemerkt { background: rgba(255,206,0,.14); border: 1px solid rgba(255,206,0,.45); color: #fff; border-radius: 12px;
  padding: 10px 14px; font-size: 15px; line-height: 1.4; max-width: 360px; margin: 6px 0 10px; }

.inapp { position: sticky; top: 0; z-index: 20; background: var(--gelb); color: var(--dunkelgruen); padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  font-size: 15px; line-height: 1.4; text-align: center; }

/* Scanner im Stil "Vollbild-Kamera mit Rahmen" */
.scanner { position: fixed; inset: 0; background: #000; z-index: 10; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-oben, .scan-unten { position: absolute; left: 0; right: 0; text-align: center; padding: 16px 20px; }
.scan-oben { top: 0; padding-top: calc(20px + env(safe-area-inset-top)); background: linear-gradient(rgba(0,26,21,.85), rgba(0,26,21,0)); }
.scan-oben .marke { margin-bottom: 8px; }
.scan-titel { font-size: 20px; font-weight: 700; }
.scan-unten { bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0,26,21,0), rgba(0,26,21,.9)); }
.scan-unten p { margin: 0 auto; }
.rahmen { position: absolute; left: 50%; top: 50%; width: min(68vw, 300px); height: min(68vw, 300px); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); border-radius: 18px; }
.rahmen span { position: absolute; width: 44px; height: 44px; border: 5px solid var(--gelb); }
.rahmen span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.rahmen span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.rahmen span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.rahmen span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.rahmen.treffer span { border-color: var(--gruen); }

/* Sprachumschalter DE | EN */
.sprache { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 30; font-size: 14px; color: rgba(255,255,255,.5); }
.sprache button { background: none; border: 0; color: rgba(255,255,255,.65); font: inherit; font-weight: 700; padding: 6px 6px; cursor: pointer; }
.sprache button.aktiv { color: var(--gelb); }
.inapp:not([hidden]) ~ .sprache { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
