/* Kontaktcode – Optik nach DESIGN.md (helles Monochrom, shadcn-Stil), dunkel = reines Schwarz. */
:root {
  --canvas: #f5f5f5; --paper: #ffffff; --alt: #fafafa; --ink: #0a0a0a; --ink-soft: #171717;
  --mid: #737373; --hairline: #e5e5e5; --ember: #e7000b;
  --font: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 0 0 1px rgba(23,23,23,.05), 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-dock: 0 1px 1px rgba(23,23,23,.06), 0 12px 32px rgba(23,23,23,.14), 0 4px 12px rgba(23,23,23,.08);
  --glass: rgba(255,255,255,.72); --glass-border: rgba(255,255,255,.6);
  --r-card: 24px; --r-pill: 18px; --r-nested: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000; --paper: #000; --alt: #050505; --ink: #fff; --ink-soft: #f2f2f2; --mid: #8f8f8f;
    --hairline: #262626; --shadow: none; --glass: rgba(20,20,20,.72); --glass-border: rgba(255,255,255,.12);
    --shadow-dock: 0 12px 32px rgba(0,0,0,.6);
  }
}
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./geist.woff2') format('woff2'); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.43; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
#app { max-width: 520px; margin: 0 auto; padding: 0 16px calc(120px + env(safe-area-inset-bottom)); min-height: 100dvh; }

.topbar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marke { font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }

.view { display: none; }
.view.aktiv { display: block; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.75px; font-weight: 600; margin: 12px 0 4px; }
h2 { font-size: 18px; line-height: 1.56; font-weight: 600; margin: 0 0 8px; letter-spacing: -.2px; }
p { margin: 0 0 12px; }
.sub { color: var(--mid); margin: 0 0 20px; }
.hinweis { color: var(--mid); font-size: 13px; margin: 8px 0 0; }
.hinweis.fehler { color: var(--ember); }
.lbl { display: block; font-size: 12px; line-height: 1.33; letter-spacing: .6px; text-transform: uppercase; color: var(--mid); font-weight: 500; margin: 0 0 6px; }

.karte { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; margin-bottom: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 0; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--canvas); transition: opacity .15s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--canvas); color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid var(--hairline); }
.btn-gefahr { color: var(--ember); }
.btn-breit { width: 100%; margin-top: 12px; }
.btn-klein { height: 32px; padding: 0 12px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 12px; font: inherit; color: var(--mid); text-decoration: underline; cursor: pointer; }
.reihe { display: flex; gap: 8px; margin-top: 12px; }
.reihe .btn { flex: 1; }

.feld { margin-bottom: 12px; }
.feld input { width: 100%; height: 40px; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--canvas); color: var(--ink); font: inherit; font-size: 16px; outline: 0; }
.feld input:focus { border-color: var(--hairline); background: var(--paper); }

.code-eingabe { display: block; width: 100%; height: 84px; margin: 0; text-align: center; font-size: 44px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--canvas); color: var(--ink); font-family: inherit; font-variant-numeric: tabular-nums; outline: 0; }
.code-eingabe:focus { border-color: var(--hairline); background: var(--paper); }
.code-eingabe::placeholder { color: var(--hairline); }
@media (prefers-color-scheme: dark) { .feld input, .code-eingabe { border-color: var(--hairline); } }

.seg { display: flex; gap: 4px; background: var(--canvas); border-radius: var(--r-pill); padding: 4px; margin-bottom: 8px; }
.seg button { flex: 1; height: 32px; border: 0; border-radius: 14px; background: transparent; color: var(--mid); font: inherit; font-weight: 500; cursor: pointer; }
.seg button.an { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .seg { border: 1px solid var(--hairline); } .seg button.an { background: #1a1a1a; } }

.karte-code { text-align: center; padding: 28px 20px; }
.code-anzeige { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: .18em; text-indent: .18em; font-variant-numeric: tabular-nums; }
.code-anzeige.aus { color: var(--mid); text-decoration: line-through; }
.code-status { margin-top: 12px; font-weight: 500; }

.schritte { padding-left: 20px; margin: 0 0 8px; }
.schritte li { margin-bottom: 8px; }

.kkarte .kname { font-size: 24px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; }
.kzeilen { margin: 12px 0 4px; }
.kzeile { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.kzeile:last-child { border-bottom: 1px solid var(--hairline); }
.kkarte .reihe { flex-direction: column; }
.kkarte .reihe .btn { flex: none; }
.klabel { color: var(--mid); flex: none; }
.kwert { text-align: right; word-break: break-all; }

.kontakt-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); color: inherit; text-decoration: none; }
.kontakt-zeile:first-child { border-top: 0; padding-top: 0; }
.kavatar { width: 40px; height: 40px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.kinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kinfo .hinweis { margin: 0; }
.kname-klein { font-weight: 500; }
.kpfeil { color: var(--mid); font-size: 20px; }
.zurueck { display: inline-block; color: var(--mid); text-decoration: none; margin: 12px 0; }

.sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 4px; }
.set h3 { font-size: 14px; margin: 0 0 8px; }
.set label { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.set input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.set input:disabled + span { color: var(--mid); }

.dock { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-dock); z-index: 10; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 68px; padding: 8px 4px; border-radius: 22px; color: var(--mid); text-decoration: none; font-size: 11px; font-weight: 500; }
.dock a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dock a.an { color: var(--ink); background: var(--canvas); }

.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 500; z-index: 20; box-shadow: var(--shadow-dock); }
.toast.fehler { background: var(--ember); color: #fff; }

.fuss { text-align: center; color: var(--mid); font-size: 12px; margin-top: 40px; }
.fuss a { color: inherit; }
.rechtstext h2 { margin-top: 16px; }
.rechtstext ul { padding-left: 20px; }
