:root {
  --bg: #f6f3ee; --card: #fff; --ink: #1d1b19; --muted: #6f6a63; --line: #e6e0d7;
  --accent: #d2451e; --accent-ink: #fff; --good: #2f7d4f; --soft: #fbeee8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161412; --card: #221f1c; --ink: #f2eee8; --muted: #a39d94; --line: #36322d; --soft: #3a2a23; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -.01em; }
.kicker { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0; }
textarea, input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; margin-top: 12px; }
.idea { position: relative; }
.idea h3 { margin: 0 0 4px; font-size: 1.15rem; }
.idea .emoji { font-size: 1.6rem; margin-right: 6px; }
.idea dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; font-size: .92rem; }
.idea dt { color: var(--muted); }
.idea dd { margin: 0; }
.idea .problem { font-style: italic; color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vote { min-width: 76px; border: 2px solid var(--accent); background: transparent; color: var(--accent); border-radius: 12px; padding: 8px 10px; font-weight: 800; }
.vote.on { background: var(--accent); color: var(--accent-ink); }
.dots { letter-spacing: 2px; }
.pending { color: var(--muted); }
.pending::after { content: ' …'; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; display: none; max-width: calc(100% - 32px); }
.badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--accent); font-weight: 700; }

/* Beamer */
.stage { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 32px; min-height: 100vh; }
.stage h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.qr { background: #fff; padding: 18px; border-radius: 20px; display: inline-block; margin: 18px 0 10px; }
.qr canvas, .qr img { display: block; width: 100%; height: auto; }
.url { font-weight: 800; font-size: 1.25rem; word-break: break-all; }
.steps { padding-left: 1.2em; margin: 18px 0; }
.steps li { margin: 6px 0; }
.rank { counter-reset: r; }
.rank .idea { display: grid; grid-template-columns: 54px 1fr 90px; gap: 14px; align-items: start; }
.rank .num { font-size: 2rem; font-weight: 800; color: var(--muted); }
.rank .count { text-align: right; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.rank .count small { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.rank .idea:first-child { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.setup dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 8px 0 0; font-size: .9rem; }
.setup dt { font-weight: 700; white-space: nowrap; }
.setup dd { margin: 0; color: var(--muted); }
.setup dd b { color: var(--ink); }
.live { display: grid; grid-template-columns: 1fr auto; gap: 24px; border-color: var(--good); box-shadow: 0 0 0 2px var(--good) inset; }
.live h2 { margin: 4px 0 0; font-size: 1.8rem; }
.qr.small { padding: 10px; margin: 12px 0 6px; max-width: 200px; }
.phone { width: 300px; height: 600px; border: 10px solid #111; border-radius: 34px; overflow: hidden; background: #fff; }
.phone iframe { width: 375px; height: 750px; border: 0; transform: scale(.8); transform-origin: 0 0; }
.banner { display: block; text-decoration: none; background: var(--good); color: #fff; border-radius: 16px; padding: 14px 16px; margin: 12px 0; font-weight: 700; }
@media (max-width: 1100px) { .live { grid-template-columns: 1fr; } .phone { display: none; } }
.admin { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.admin button { font-size: .8rem; padding: 4px 10px; }
.spec ol, .spec ul { padding-left: 1.2em; }
.spec pre { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 15px/1.45 ui-monospace, Menlo, monospace; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; padding: 16px; gap: 10px; } .rank .idea { grid-template-columns: 36px 1fr 60px; } }
[hidden] { display: none !important; }
.idea.seed { border-style: dashed; background: transparent; }
.rank .idea.seed:first-child { border-color: var(--line); box-shadow: none; }
.divider { margin: 28px 0 4px; padding-top: 14px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.prompt { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; font: 14px/1.5 ui-monospace, Menlo, monospace; -webkit-user-select: text; user-select: text; }
.howto { padding-left: 1.3em; margin: 8px 0 0; }
.howto li { margin: 6px 0; }

/* Leerer Zustand: dicker Pfeil zum QR-Code */
.cta { display: flex; align-items: center; gap: 24px; padding: 32px 28px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #f0642f, #d2451e 55%, #a8321a); box-shadow: 0 18px 40px -18px rgba(210,69,30,.7); margin: 14px 0; }
.cta-arrow { font-size: clamp(4rem, 8vw, 7.5rem); line-height: 1; font-weight: 900; animation: nudge 1s ease-in-out infinite; }
.cta-big { font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; animation: pulse 2s ease-in-out infinite; }
.cta-sub { margin-top: 10px; font-size: 1.1rem; opacity: .92; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-26px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@media (max-width: 900px) { .cta { flex-direction: column; text-align: center; } .cta-arrow { transform: rotate(90deg); animation: nudgeUp 1s ease-in-out infinite; } }
@keyframes nudgeUp { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(-20px); } }
@media (prefers-reduced-motion: reduce) { .cta-arrow, .cta-big { animation: none; } }

/* Pfeil im Zwischenraum neben dem QR-Code, bleibt immer stehen */
.stage { position: relative; }
@media (min-width: 901px) { .stage { column-gap: 140px; } .cta .cta-arrow { display: none; } }
.gap-arrow { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; color: var(--accent); pointer-events: none; }
.gap-arrow span { font-size: 6.5rem; line-height: 1; font-weight: 900; animation: nudge 1s ease-in-out infinite; text-shadow: 0 6px 18px rgba(210,69,30,.35); }
.gap-arrow small { font-weight: 900; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; animation: pulse 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gap-arrow span, .gap-arrow small { animation: none; } }
.take { padding: 12px 0; border-top: 1px solid var(--line); }
.take:first-of-type { border-top: 0; }
.take .prompt { margin-top: 8px; }
.mini { padding: 5px 10px !important; font-size: .85rem; }
.small { font-size: .88rem; margin-top: 4px; }
.take .problem { font-style: italic; color: var(--muted); font-size: .92rem; margin-top: 6px; }
details.take summary { cursor: pointer; list-style: none; }
details.take summary::-webkit-details-marker { display: none; }
details.take summary b::before { content: '▸ '; color: var(--muted); }
details.take[open] summary b::before { content: '▾ '; }
.apps { display: grid; gap: 10px; margin-top: 12px; }
.appcard { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.appcard:active { transform: scale(.99); }
.appcard b { display: block; font-size: 1.05rem; }
.appcard b::after { content: ' ↗'; color: var(--accent); }
.appcard .small { display: block; }
.appico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.appcode { display: block; margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--accent); }
.appcode:empty { display: none; }

/* ---------- Ideenrunde ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; text-decoration: none; color: inherit; }
.brand i { font-style: normal; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.hero2 { margin: 26px 0 8px; }
.hero2 h1 { font-size: 2rem; }
.feat { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 16px 0; }
.feat div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: .92rem; }
.feat b { display: block; margin-bottom: 2px; }
.tabs2 { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.tabs2 button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tabs2 button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.err { color: var(--accent); font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 500; cursor: pointer; background: var(--bg); }
.seg label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.seg input { width: auto; margin-right: 6px; }
.seg small { display: block; color: var(--muted); }
.board-row { display: grid; gap: 6px; }
.board-row h3 { margin: 0; font-size: 1.1rem; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.links a, .links button { font-size: .85rem; padding: 6px 10px; text-decoration: none; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--accent); font-weight: 700; margin-left: 6px; vertical-align: middle; }
.pill.off { background: var(--line); color: var(--muted); }
.summary h2 { margin: 4px 0 8px; }
.summary .themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.summary .themes span { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: .88rem; }
.summary blockquote { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid var(--accent); font-style: italic; color: var(--muted); }
.closed { background: var(--line); color: var(--ink); border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; }
