@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/poppins-800.woff2) format('woff2'); }

/* Farben und Formen wie smokeless.at und die Gewinnspielseite */
:root {
  --bg: #171717;
  --bg-deep: #111111;
  --card: rgba(255,255,255,0.04);
  --card-strong: rgba(255,255,255,0.07);
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --text: #ffffff;
  --text-2: rgba(255,255,255,0.72);
  --text-3: rgba(255,255,255,0.58);
  --accent: #59b1b6;
  --accent-hover: #7ccfd4;
  --accent-soft: rgba(89,177,182,0.14);
  --on-accent: #111111;
  --warn: #F3D59B;
  --warn-bg: rgba(240,180,80,0.10);
  --warn-line: rgba(240,180,80,0.32);
  --ok: #7fd1a0;
  --ok-bg: rgba(127,209,160,0.10);
  --ok-line: rgba(127,209,160,0.3);
  --info: #BFE3E5;
  --error: #e08585;
  --jeheer: #D9DDE3;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(circle at 0% 0%, rgba(89,177,182,0.20), rgba(89,177,182,0) 42%) fixed,
              radial-gradient(circle at 100% 100%, rgba(89,177,182,0.14), rgba(89,177,182,0) 48%) fixed, var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
h1, h2, h3, .poppins { font-family: 'Poppins', sans-serif; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(124,207,212,0.6); outline-offset: 2px; }

.logo { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.logo span { color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.eyebrow::before { content: ''; width: 28px; height: 5px; border-radius: 3px; background: var(--accent); flex: none; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; }
.section-title::before { content: ''; width: 22px; height: 5px; border-radius: 3px; background: var(--accent); flex: none; }

/* App-Rahmen: am Handy volle Breite, am Computer eine Spalte in Handybreite */
.app { max-width: 480px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 8px; padding-top: max(14px, env(safe-area-inset-top)); }
.topbar.line { border-bottom: 1px solid var(--line); }
.topbar .t { flex: 1; min-width: 0; }
.topbar .step { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.topbar .title { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.progress { height: 4px; background: rgba(255,255,255,0.08); margin: 0 20px; border-radius: 2px; }
.progress div { height: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(89,177,182,0.6); transition: width 0.25s ease; }
.footer { position: sticky; bottom: 0; padding: 12px 20px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(17,17,17,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.footer .missing { font-size: 13px; color: var(--warn); margin-bottom: 8px; text-align: center; }

.lead { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.small { font-size: 13px; color: var(--text-3); line-height: 1.45; }

/* Knöpfe */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: none; border-radius: 999px; font-size: 16px; font-weight: 600; background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 36px rgba(89,177,182,0.35); text-decoration: none; transition: transform 0.15s ease, background 0.2s ease; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: scale(0.99); }
.btn:disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); color: var(--text); box-shadow: none; }
.btn.small { width: auto; min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-btn { border: none; background: transparent; padding: 10px 0 10px 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Karten und Auswahl */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.row + .row { border-top: 1px solid rgba(255,255,255,0.08); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.row .right { text-align: right; flex: none; }
.row .amount { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--radius); text-align: left; border: 1px solid var(--line); background: var(--card); }
.opt.on { border-color: var(--accent); background: rgba(89,177,182,0.12); box-shadow: 0 0 0 1px var(--accent); }
.opt .main { flex: 1; min-width: 0; }
.opt .name { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; }
.opt .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.radio { width: 24px; height: 24px; border-radius: 999px; flex: none; border: 2px solid rgba(255,255,255,0.35); }
.opt.on .radio { border: 7px solid var(--accent); background: var(--bg-deep); }
.firm-dot { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; color: var(--on-accent); flex: none; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tag.SO13 { background: var(--accent); color: var(--on-accent); }
.tag.JEHEER { background: var(--jeheer); color: var(--on-accent); }
.tag.src { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); font-weight: 600; }
.pill { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill.eingereicht { background: rgba(255,255,255,0.10); color: #E6E6E6; }
.pill.freigegeben { background: rgba(89,177,182,0.18); color: var(--accent-hover); }
.pill.bezahlt { background: rgba(127,209,160,0.16); color: var(--ok); }
.pill.ohne { background: rgba(217,221,227,0.14); color: var(--jeheer); }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.note svg { flex: none; }
.note.info { background: rgba(89,177,182,0.10); border: 1px solid rgba(89,177,182,0.3); color: var(--info); }
.note.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.note.error { background: rgba(224,133,133,0.10); border: 1px solid rgba(224,133,133,0.35); color: #f2b8b8; }

/* Formularfelder */
.field label, .field .label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.req { font-size: 11px; font-weight: 600; color: var(--warn); background: rgba(240,180,80,0.14); padding: 2px 8px; border-radius: 999px; }
.opt-tag { font-size: 11px; font-weight: 600; color: var(--text-3); }
.inp { display: block; width: 100%; min-height: 48px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 16px 'Inter', sans-serif; color: var(--text); background: var(--bg-deep); }
.inp::placeholder { color: rgba(255,255,255,0.4); }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89,177,182,0.2); }
textarea.inp { resize: vertical; min-height: 84px; line-height: 1.4; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; cursor: pointer; }
.check.on { border-color: var(--accent); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; flex: none; }

/* Foto */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 360px; padding: 24px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 22px; background: var(--bg-deep); cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ring { width: 80px; height: 80px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(89,177,182,0.25); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; height: 108px; border-radius: 10px; overflow: hidden; background: #F7F4EC; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #111; font-size: 12px; font-weight: 700; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 999px; border: none; background: rgba(17,17,17,0.75); color: #fff; font-size: 14px; line-height: 1; }
.add-photo { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px dashed var(--line-strong); background: var(--bg-deep); font-size: 15px; font-weight: 600; position: relative; cursor: pointer; }
.add-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.spinner { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(89,177,182,0.25); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tax { padding: 12px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.tax .r { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; padding: 6px 0; }
.tax .r span:not(:first-child) { text-align: right; }
.tax .h { color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line); }

.summary { padding: 4px 16px; }
.summary .r { display: flex; gap: 12px; padding: 11px 0; }
.summary .r + .r { border-top: 1px solid rgba(255,255,255,0.08); }
.summary .k { width: 112px; flex: none; font-size: 13px; color: var(--text-3); }
.summary .v { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.doc-box { padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(89,177,182,0.20), rgba(89,177,182,0.05)); border: 1px solid rgba(89,177,182,0.4); }

/* Anmeldung */
.pin-dots { display: flex; gap: 18px; justify-content: center; margin: 0 0 36px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.35); }
.pin-dots span.on { border: none; background: var(--accent); box-shadow: 0 0 12px rgba(89,177,182,0.7); }
.pin-dots.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; justify-content: center; }
.key { width: 72px; height: 72px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 600; }
.key:active { background: rgba(89,177,182,0.25); }
.key.plain { border: none; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-2); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px; border-radius: var(--radius); }
.tile .k { font-size: 13px; font-weight: 600; }
.tile .v { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tile.open { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.tile.open .k { color: var(--warn); }
.tile.paid { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.tile.paid .k { color: var(--ok); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.seg button { flex: 1; height: 44px; border: none; border-radius: 999px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; background: transparent; color: var(--text-2); }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(89,177,182,0.35); }

.action { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; text-align: left; width: 100%; }
.action.primary { border: none; background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 36px rgba(89,177,182,0.35); }
.action.secondary { border: 1px solid rgba(89,177,182,0.4); background: linear-gradient(135deg, rgba(89,177,182,0.16), rgba(89,177,182,0.03)); }
.action .ic { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.action.primary .ic { background: rgba(17,17,17,0.12); }
.action.secondary .ic { background: rgba(89,177,182,0.16); color: var(--accent); }
.action .name { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; }
.action .sub { font-size: 14px; margin-top: 2px; }
.action.primary .sub { color: rgba(17,17,17,0.78); }
.action.secondary .sub { color: var(--text-2); }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); max-width: 440px; width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: #2a2a2a; border: 1px solid var(--line-strong); font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 50; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
