@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff; --bg-soft: #fbf6fa; --bg-tint: #fff0f8;
  --ink: #14111c; --ink-2: #4b4656; --ink-3: #6f6a7b; --line: #ece5ef;
  --pink: #ff66c4; --pink-ink: #c81d84; --coral: #ff8a5c; --green: #138a52; --red: #c62f3a;
  --grad: linear-gradient(120deg, #ff66c4 0%, #ff7aa8 45%, #ff8a5c 100%);
  --shadow: 0 2px 6px rgb(20 17 28 / .05), 0 18px 40px -12px rgb(200 29 132 / .18);
  --r: 18px; --r-lg: 28px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shop-bg: #c81d84; --shop-fg: #fff; --shop-accent: #ffd1ec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-soft); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--pink-ink); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1rem; margin-top: 1.4em; }
code { font: .85rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-tint); padding: .15em .4em; border-radius: 6px; }
.break { word-break: break-all; }
.fine { font-size: .82rem; color: var(--ink-3); }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.lead.small { font-size: .95rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .85em 1.4em;
  background: var(--grad); color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -8px rgb(200 29 132 / .55); }
.btn:active { transform: translateY(1px); }
.btn.big { font-size: 1.1rem; padding: 1.05em 1.6em; width: 100%; }
.btn.small { font-size: .85rem; padding: .55em .9em; }
.btn.secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #f1c4c8; }
.text-btn { background: none; border: 0; color: var(--ink-3); font: 600 .9rem var(--font); text-decoration: underline; cursor: pointer; padding: .4em; }

.note { background: #fff; border-left: 4px solid var(--coral); border-radius: 10px; padding: .8em 1em; margin: 0 0 1em; color: var(--ink-2); }
.note.ok { border-color: var(--green); }
.note.err { border-color: var(--red); }

/* ---------- Kundenseiten ---------- */
body.shop { min-height: 100vh; background: linear-gradient(180deg, color-mix(in srgb, var(--shop-bg) 14%, #fff) 0, var(--bg-soft) 320px); }
.phone { max-width: 460px; margin: 0 auto; padding: 20px 16px 32px; }
.shop-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.shop-head img { border-radius: 14px; box-shadow: var(--shadow); }
.shop-head small { color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.shop-head h1 { margin: 0; font-size: 1.5rem; }

.wcard { border-radius: 20px; padding: 16px 16px 18px; box-shadow: 0 24px 50px -20px rgb(20 17 28 / .45); margin: 0 0 18px; }
.wcard-top { display: flex; align-items: center; gap: 10px; }
.wcard-top img { border-radius: 9px; }
.wcard-top strong { flex: 1; font-size: 1.05rem; }
.wcard-count { text-align: right; font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.wcard small { display: block; font-size: .64rem; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.wcard-strip { margin: 12px -16px; }
.wcard-strip svg { display: block; width: 100%; height: auto; }
.wcard-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.wcard-row > div:last-child { text-align: right; }

.wbtns { display: grid; gap: 10px; margin: 18px 0 6px; }
.wbtns form { margin: 0; }
.wbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; padding: 15px; font: 650 1.02rem var(--font); cursor: pointer; border: 0; }
.wbtn.apple { background: #000; color: #fff; }
.wbtn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1.5px #dadce0; }
.wbtns .second { opacity: .9; }
form.alt { text-align: center; margin-bottom: 8px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: #fff; border-radius: 14px; padding: 12px 14px 12px 52px; position: relative; color: var(--ink-3); font-size: .92rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.steps b { display: block; color: var(--ink); }
details.have { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
details.have summary { font-weight: 650; cursor: pointer; }

.result { background: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); text-align: center; }
.result h2 { font-size: 1.4rem; margin: 0 0 .2em; }
.result p { margin: 0; color: var(--ink-2); }
.result-ok h2, .result-reward h2 { color: var(--green); }
.result-reward { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.result-cooldown h2 { color: var(--ink-2); }
.result-error h2 { color: var(--red); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.redeem { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.news { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.news small { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--pink-ink); font-size: .7rem; }
.news p { margin: .2em 0 0; }

body.ok-bg { background: var(--green); color: #fff; }
.redeemed { text-align: center; padding-top: 12vh; }
.redeemed h1 { font-size: 2.6rem; margin: .3em 0 .1em; }
.redeemed .big-reward { font-size: 1.5rem; font-weight: 750; margin: 0 0 1em; }
.redeemed .clock { font-size: 1.1rem; font-weight: 600; background: rgb(255 255 255 / .16); display: inline-block; padding: .4em .9em; border-radius: 999px; }
.redeemed .fine, .redeemed .text-btn { color: rgb(255 255 255 / .85); }
.tick svg { width: 120px; height: 120px; }
.tick circle { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s ease-out forwards; }
.tick path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.foot { text-align: center; font-size: .78rem; color: var(--ink-3); padding: 18px 16px 30px; }
.foot a { color: inherit; }

/* ---------- Startseite / Doku ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); }
.home { max-width: 980px; margin: 0 auto; padding: 18px 16px; }
.home-head { display: flex; justify-content: space-between; align-items: center; }
.hero { padding: 12vh 0 10vh; max-width: 720px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; }
.hero .btn.big { width: auto; }
.eyebrow { color: var(--pink-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc { max-width: 720px; margin: 0 auto; padding: 22px 16px 40px; }
.doc h1 { margin-top: 1em; }

/* ---------- Betreiber ---------- */
.narrow { max-width: 420px; margin: 10vh auto; padding: 0 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.admin-head nav { display: flex; gap: 14px; align-items: center; }
.admin-head nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.admin-head form { margin: 0; }
.admin { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.narrow-admin { max-width: 760px; }
.crumb { color: var(--ink-3); font-size: .9rem; margin: 0 0 .3em; }
.crumb a { color: inherit; }
.panel { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile small { grid-column: 2; color: var(--ink-3); }
.swatch { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat small { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.stat strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.form { display: grid; gap: 12px; }
.form.inline { grid-template-columns: auto 1fr auto; align-items: center; margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: 1rem var(--font); padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); width: 100%; }
input[type=color] { padding: 3px; height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row small { display: block; color: var(--ink-3); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.qr svg { width: 180px; height: 180px; }
.howto li { margin-bottom: .8em; }

/* ---------- Druckvorlage A6 ---------- */
.print-body { background: #eee; }
.print { padding: 20px; }
.a6 { width: 105mm; height: 148mm; background: #fff; margin: 0 auto; display: grid; grid-template-rows: auto auto 1fr auto auto; overflow: hidden; color: var(--ink); font-family: var(--font); }
.a6-top { background: var(--shop-bg); color: var(--shop-fg); text-align: center; padding: 7mm 6mm 5mm; }
.a6-top img { border-radius: 12px; }
.a6-top h1 { font-size: 22pt; margin: 2mm 0 0; }
.a6-top p { margin: 0; font-size: 10pt; opacity: .9; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.a6-reward { text-align: center; padding: 4mm; font-size: 12pt; background: var(--bg-tint); }
.a6-qr { display: flex; align-items: center; gap: 5mm; padding: 5mm 7mm; }
.a6-qr svg { width: 38mm; height: 38mm; flex: none; }
.a6-qr p, .a6-nfc p { font-size: 11pt; margin: 0; line-height: 1.35; }
.a6-qr b, .a6-nfc b { display: inline-grid; place-items: center; width: 7mm; height: 7mm; border-radius: 50%; background: var(--grad); color: #fff; margin-right: 1.5mm; }
.a6-nfc { display: flex; align-items: center; gap: 5mm; margin: 0 7mm 5mm; padding: 4mm 5mm; border: 2px dashed var(--shop-bg); border-radius: 5mm; color: var(--ink); }
.a6-nfc svg { color: var(--shop-bg); flex: none; }
.a6-foot { text-align: center; font-size: 8pt; color: var(--ink-3); padding: 0 0 4mm; }
.noprint { text-align: center; color: var(--ink-3); }
@media print { @page { size: A6; margin: 0; } .print-body { background: #fff; } .print { padding: 0; } .noprint { display: none; } }

@media (max-width: 820px) { .cols, .grid2 { grid-template-columns: 1fr; } .form.inline { grid-template-columns: 1fr; } .admin { padding: 16px; } }

/* Wachstum: Stufen, Einladen, Bewerten, Bericht */
.tiers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.tiers li { background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); color: var(--ink-2); font-size: .92rem; }
.tiers b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; margin-right: 8px; font-size: .8rem; }
.redeem form + form { margin-top: 10px; }
.panel-lite { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel-lite h3 { margin: 0 0 .4em; font-size: 1rem; }
.panel-lite p { margin: 0 0 .8em; color: var(--ink-2); font-size: .92rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 12px; margin: 16px 0; }
.report { width: 100%; border-collapse: collapse; }
.report td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.report td:nth-child(2) { font-weight: 800; text-align: right; }
.report td:nth-child(3) { color: var(--ink-3); text-align: right; width: 5em; font-size: .85rem; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
