@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(bricolage.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(inter.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(jbmono.woff2) format("woff2"); }
:root {
  --bg: #F3F5FB;
  --surface: #FFFFFF;
  --surface-2: #E9EDF8;
  --ink: #141A33;
  --muted: #5B6384;
  --line: #D9DEEE;
  --accent: #2F4BFF;
  --accent-ink: #FFFFFF;
  --pop: #FFC93C;
  --pop-ink: #2A2100;
  --bar: #C9D2FF;
  --bar-top: #FFE08A;
  --shadow: 0 1px 2px rgba(20,26,51,.06), 0 12px 32px -12px rgba(20,26,51,.18);
  --f-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 20px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1226; --surface: #171C36; --surface-2: #20274A; --ink: #EEF1FF; --muted: #A1A9CC;
  --line: #2A3259; --accent: #7186FF; --accent-ink: #0E1226; --pop: #FFC93C; --pop-ink: #2A2100;
  --bar: #2D3A80; --bar-top: #6B5410; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0E1226; --surface: #171C36; --surface-2: #20274A; --ink: #EEF1FF; --muted: #A1A9CC;
  --line: #2A3259; --accent: #7186FF; --accent-ink: #0E1226; --pop: #FFC93C; --pop-ink: #2A2100;
  --bar: #2D3A80; --bar-top: #6B5410; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6); color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; transform: rotate(-6deg); }
.logo-text { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.logo-text small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; }
.pill b { font-family: var(--f-mono); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.5);} 80%,100% { box-shadow: 0 0 0 8px rgba(43,182,115,0);} }

/* Main grid */
main.wrap { padding-block: 28px 40px; }
.stage { display: grid; grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }

/* Poll card */
.poll { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 40px) 30px; position: relative; overflow: hidden; min-width: 0; }
.poll-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tag { display: inline-flex; gap: 6px; align-items: center; background: var(--pop); color: var(--pop-ink); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 8px; transform: rotate(-2deg); }
.date { font-size: 13px; color: var(--muted); }
.question { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 8px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 22px; }

.answers { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.answer { position: relative; width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; min-height: 58px; }
.answer:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-1px); }
.answer:active:not([disabled]) { transform: scale(.99); }
.answer[disabled] { cursor: default; }
.letter { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--f-mono); font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.answer-text { flex: 1; min-width: 0; font-weight: 500; position: relative; z-index: 1; }
.pct { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; position: relative; z-index: 1; opacity: 0; transition: opacity .3s .3s; }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bar); transition: width .9s cubic-bezier(.2,.8,.2,1); z-index: 0; }
.voted .pct { opacity: 1; }
.answer.mine { border-color: var(--accent); }
.answer.mine .letter { background: var(--accent); color: var(--accent-ink); }
.answer.top .fill { background: var(--bar-top); }
.badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); margin-left: 8px; vertical-align: 1px; white-space: nowrap; }

.result-bar { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.result-bar p { margin: 0; font-size: 14px; }
.result-bar strong { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* Countdown block */
.countdown { margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cd-label { font-size: 13px; color: var(--muted); max-width: 22ch; }
.cd-label b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 18px; letter-spacing: -.01em; }
.cd-units { display: flex; gap: 8px; }
.cd-unit { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 10px 0 8px; width: 68px; text-align: center; }
.cd-num { font-family: var(--f-mono); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.cd-cap { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; opacity: .7; display: block; margin-top: 5px; }

/* Below poll */
.below { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.mini h3 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.mini .q { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 6px 0 10px; text-wrap: balance; }
.mini .win { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.mini .win span:last-child { white-space: nowrap; font-family: var(--f-mono); font-weight: 700; }
.streak { display: flex; align-items: center; gap: 14px; }
.streak-num { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.week { display: flex; gap: 6px; margin-top: 12px; }
.week span { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); }
.week span.on { background: var(--accent); }

/* Product cards */
.prod { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.prod:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow); }
.prod-img { aspect-ratio: 1 / 1; width: 100%; max-width: 100%; display: block; object-fit: cover; background: var(--surface-2); }
.prod-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.prod-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.prod-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.prod-price { font-family: var(--f-mono); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.etsy { font-size: 12px; font-weight: 600; color: var(--accent); }

.shop-cta { display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line); font-weight: 600; font-size: 14px; }
.shop-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile shop row */
.shop-row { display: none; margin-top: 28px; }
.shop-row-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop-row-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.shop-row-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller .prod { flex: 0 0 62%; scroll-snap-align: start; min-width: 0; }
.nav-btns { display: flex; gap: 6px; }
.nav-btns button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 20px; }
footer .wrap { padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: all .25s; pointer-events: none; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


@media (max-width: 1060px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .shop-row { display: block; }
  .poll { max-width: 760px; margin: 0 auto; width: 100%; }
  .below { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 700px) and (max-width: 1060px) { .scroller .prod { flex-basis: 31%; } }
@media (max-width: 560px) {
  .header-cd-text { display: none; }
  .below { grid-template-columns: 1fr; }
  .cd-unit { width: 60px; }
  .cd-num { font-size: 26px; }
  .countdown { justify-content: flex-start; }
  .logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; }
.legal { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px clamp(18px, 4vw, 40px); box-shadow: var(--shadow); }
.legal h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; margin-top: 0; }
.legal h2 { font-family: var(--f-display); font-size: 20px; margin-top: 28px; }
.todo { background: var(--pop); color: var(--pop-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.error-note { margin-top: 14px; color: #c0392b; font-size: 14px; }

/* ---- Erweiterungen ---- */
.tag.profi { background: var(--ink); color: var(--pop); }
.share-box { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 10px; }
.reaction { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.votes-line { margin: 0; font-size: 13px; color: var(--muted); }
.votes-line strong { font-family: var(--f-mono); color: var(--ink); }
.share-cta { display: grid; gap: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.share-teaser { font-weight: 600; font-size: 14px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-wa { background: #25D366; color: #06331A; }
.btn-story { background: linear-gradient(45deg, #F9A23B, #E1306C 55%, #833AB4); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

.gauge { position: relative; width: 220px; flex: none; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .t { stroke: var(--muted); stroke-width: 2; }
.gauge .t.major { stroke: var(--ink); stroke-width: 3; }
.gauge .t-red { stroke: #E5484D; stroke-width: 2; }
.gauge .t-red.major { stroke-width: 3; }
.gauge #gRed { stroke: #E5484D; opacity: .85; }
.gauge .g-num { font-family: var(--f-mono); font-size: 12px; font-weight: 700; fill: var(--ink); }
.gauge .g-cap { font-family: var(--f-body); font-size: 9px; letter-spacing: .2em; fill: var(--muted); }
.gauge #gNeedle line { stroke: #E5484D; }
.gauge #gNeedle { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.gauge .g-hub { fill: var(--ink); }
.g-read { width: max-content; margin: -4px auto 0; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 5px 10px; font-family: var(--f-mono); font-weight: 700; font-size: 18px; white-space: nowrap; }
.g-read .cd-num { font-size: inherit; display: inline; }
.gauge.redline .g-read { background: #E5484D; color: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .75; } }

.mini-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 10px 0 0; font-size: 13px; }
.mini-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.mini-links a:hover { text-decoration: underline; }

.coupon { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; font-size: 13px; }
.coupon .c-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.coupon .c-bar span { display: block; height: 100%; background: var(--pop); }
.coupon.unlocked { background: var(--pop); color: var(--pop-ink); }
.coupon .c-code { font-family: var(--f-mono); font-weight: 800; font-size: 20px; letter-spacing: .08em; background: #fff; color: #141A33; border: 2px dashed var(--pop-ink); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.coupon .c-title { font-weight: 600; }

.idea-box { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.idea-box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.idea-box summary::-webkit-details-marker { display: none; }
.idea-box summary b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -.01em; }
.idea-box summary span:first-child { font-size: 14px; color: var(--muted); }
.idea-box summary b { color: var(--ink); }
.idea-plus { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 22px; font-weight: 700; transition: transform .2s; }
.idea-box[open] .idea-plus { transform: rotate(45deg); }
#ideaForm { display: grid; gap: 12px; padding: 0 20px 20px; }
#ideaForm label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
#ideaForm small { font-weight: 400; color: var(--muted); }
#ideaForm input, #ideaForm textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
#ideaForm input:focus, #ideaForm textarea:focus { border-color: var(--accent); outline: none; }
.idea-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idea-note { margin: 0; font-size: 12px; color: var(--muted); }
.idea-msg { margin: 0; font-size: 14px; font-weight: 600; }
#ideaForm .btn { justify-self: start; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* Unterseiten: Archiv & einzelne Fragen */
.page-narrow { max-width: 760px; margin: 0 auto; }
.page-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }
.page-sub a { color: var(--accent); }
.archive { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.archive a { display: grid; gap: 4px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.archive a:hover { border-color: var(--accent); transform: translateY(-1px); }
.arc-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 0; }
.arc-q { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.arc-win { font-size: 13px; color: var(--muted); }
.answers .answer { cursor: default; }
.answers.voted div.answer:hover { transform: none; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.today-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 16px 20px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.shop-inline { margin-top: 28px; }
.shop-inline h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.shop-inline p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Admin */
.admin { padding-block: 28px 60px; max-width: 980px; }
.admin h2 { font-family: var(--f-display); margin: 28px 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis b { font-family: var(--f-display); font-size: 34px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; font-family: var(--f-mono); }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.idea.good { border-color: var(--pop); box-shadow: inset 4px 0 0 var(--pop); }
.idea ol { margin: 6px 0 10px; padding-left: 22px; font-size: 14px; }
.idea form { display: flex; gap: 8px; }
.code { background: var(--ink); color: var(--bg); padding: 14px; border-radius: 12px; overflow-x: auto; font-size: 13px; }

@media (max-width: 560px) {
  .gauge { width: 190px; margin: 0 auto; }
  .countdown { justify-content: center; }
  .idea-answers { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid .prod:nth-child(3) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .share-btns .btn { flex: 1 1 auto; justify-content: center; }
}
