/* Themen-Voting – Oberfläche. Farben und Abstände bewusst zentral, damit Designänderungen hier stattfinden. */

/* Feste Schrift aus dem lokalen Ordner fonts/ (siehe README). Fehlen die Dateien, greift die Systemschrift. */
@font-face { font-family: "AppFont"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/Roboto-Regular.woff2") format("woff2"), url("fonts/Roboto-Regular.ttf") format("truetype"); }
@font-face { font-family: "AppFont"; font-weight: 500 640; font-style: normal; font-display: swap;
  src: url("fonts/Roboto-Medium.woff2") format("woff2"), url("fonts/Roboto-Medium.ttf") format("truetype"); }
/* Optional: einheitliche Emoji-Darstellung auf allen Systemen (fonts/NotoColorEmoji.ttf, SIL OFL). Fehlt die Datei, nutzt der Browser die System-Emojis. */
@font-face { font-family: "EmojiFont"; src: url("fonts/NotoColorEmoji.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "AppFont"; font-weight: 641 900; font-style: normal; font-display: swap;
  src: url("fonts/Roboto-Bold.woff2") format("woff2"), url("fonts/Roboto-Bold.ttf") format("truetype"); }
:root {
  --bg: #f6f5f2; --ink: #1c1c1a; --muted: #6b6a66; --faint: #a3a19b; --line: #e2e0da; --line-strong: #d6d4cd;
  --panel: #fff; --hover: #f1efea; --accent: #3866b8; --accent-dark: #24467f; --accent-soft: #f0f4fb;
  --danger: #a2402b; --danger-soft: #f7ebe8; --radius: 12px;
  --ok: #2e9e5b; --ok-soft: #e8f5ec;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 "AppFont", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
button, input, textarea { font: inherit; color: inherit; }
:focus { outline: none; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::placeholder { color: var(--faint); }
::selection { background: rgba(56,102,184,.22); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.skip:focus { top: 16px; color: #fff; }
.main:focus { outline: none; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.btn { border: 0; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; background: var(--ink); color: #fff; }
.btn:hover { background: var(--accent); }
.btn:disabled { opacity: .4; cursor: default; background: var(--ink); }
.btn-secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); font-weight: 400; padding: 9px 16px; }
.btn-secondary:hover { background: var(--panel); border-color: var(--faint); }
.btn-ghost { border: 0; background: none; padding: 5px 8px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-ghost.danger:hover { background: var(--danger-soft); color: var(--danger); }
.link { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; text-align: left; align-self: flex-start; }
.link:hover { color: var(--accent-dark); }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-sep { color: var(--faint); font-size: 13px; }
.qr-dialog { border: 0; border-radius: 16px; padding: 0; background: var(--panel); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); max-width: min(92vw, 420px); width: 100%; }
.qr-dialog::backdrop { background: rgba(28,28,26,.55); backdrop-filter: blur(2px); }
.qr-box { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; }
.qr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qr-title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.qr-close { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.qr-close:hover { background: var(--hover); color: var(--ink); }
.qr-text { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.qr-code { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-code svg { width: min(280px, 70vw); height: auto; display: block; }
.qr-url { margin: 0; font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.qr-url a { color: var(--muted); }
.qr-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.qr-actions .btn { flex: 1 1 auto; text-align: center; }

/* Login + Landing */
.gate, .landing { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card, .landing-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.gate-title, .landing-title { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.gate-label { font-size: 13px; color: var(--muted); margin-bottom: -8px; }
.gate-input { border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-size: 16px; background: var(--panel); }
.gate-input:focus { border-color: var(--accent); }
.gate-error { font-size: 13px; color: var(--danger); }
.landing-text { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.landing-foot { font-size: 13px; padding-top: 6px; }

/* App */
.app { padding-bottom: 60px; }
.loading, .empty { padding: 60px 0; text-align: center; color: var(--muted); }
.hd { max-width: 1180px; margin: 0 auto; padding: 40px 32px 0; display: flex; flex-direction: column; gap: 24px; }
.hd-top { display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.hd-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; margin-left: auto; }
.logo { display: block; height: 44px; width: auto; }
.gate-card .logo, .landing-card .logo { height: 40px; margin-bottom: 10px; align-self: flex-start; }
.hd-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 420px; }
.title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; text-wrap: pretty; }
.title-input { margin: 0 0 0 -8px; padding: 2px 8px; width: calc(100% + 8px); max-width: 760px; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.title-input:hover { border-color: var(--line-strong); background: var(--panel); }
.title-input:focus { border-color: var(--accent); background: var(--panel); }

.steps { display: flex; align-items: center; gap: 10px; font-size: 13px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; gap: 10px; color: var(--faint); }
.step .sep { width: 24px; height: 1px; background: var(--line-strong); }
.step .lab { display: flex; align-items: center; gap: 8px; }
.step .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line-strong); }
.step { color: var(--muted); }
.step.past { color: var(--muted); } .step.past .num { border-color: var(--faint); }
.step.cur { color: var(--ink); font-weight: 600; } .step.cur .num { background: var(--ink); border-color: var(--ink); color: #fff; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 70px; }
.bar-left, .bar-right { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; min-width: 0; }
.bar-right { gap: 20px; }
.bar .budget, .bar .people, .bar .progress, .bar .ctl { align-self: center; }
.bar .btn, .bar .finish-btn, .bar .btn-secondary { height: 36px; padding-top: 0; padding-bottom: 0; line-height: 34px; }
.bar .finish-btn { align-self: center; }
.bar .status, .bar .budget-text, .bar .counter { line-height: 36px; }
.bar.sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.btn-secondary.muted { color: var(--muted); }
.btn-secondary.muted:hover { color: var(--ink); }
.status { font-size: 14px; color: var(--muted); text-wrap: pretty; }
.budget { display: flex; gap: 6px; }
.budget span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); }
.budget span.on { background: var(--accent); }
.budget-text { font-size: 14px; }
.ctl { display: flex; align-items: center; gap: 10px; }
.ctl-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { flex: none; white-space: nowrap; border: 0; padding: 7px 12px; font-size: 13px; cursor: pointer; background: var(--panel); color: var(--ink); }
.seg button:hover { background: var(--hover); }
.seg button.on { background: var(--ink); color: #fff; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--panel); }
.stepper button { flex: none; border: 0; width: 36px; height: 34px; cursor: pointer; background: var(--panel); font-size: 16px; }
.stepper button:disabled { color: var(--faint); cursor: default; }
.stepper button:hover { background: var(--hover); }
.stepper .val { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.counter { white-space: nowrap; font-size: 13px; color: var(--muted); }
.progress { display: flex; align-items: center; gap: 12px; }
.counter { line-height: 1; }
.people { display: grid; grid-template-columns: repeat(10, 11px); gap: 4px; }
.people span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); transition: background .3s; }
.people span.on { background: var(--ok); }
.finish-btn { border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 16px; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; display: flex; align-items: center; gap: 8px; }
.finish-btn:hover { border-color: var(--faint); }
.finish-btn.on { background: var(--ok-soft); border-color: var(--ok); color: #1f6e3f; }
.finish-btn .chk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1.5px solid var(--line-strong); color: #fff; }
.finish-btn.on .chk { background: var(--ok); border-color: var(--ok); }
.timer { display: flex; align-items: baseline; gap: 8px; line-height: 36px; }
.timer .lab { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.timer .val { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.timer .val.low { color: var(--danger); }

.main { max-width: 1180px; margin: 0 auto; padding: 28px 32px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 18px 18px 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s, box-shadow .15s; user-select: none; }
.card:hover { box-shadow: 0 3px 14px rgba(28,28,26,.07); }
.card.votable .card-hit { cursor: pointer; } .card.blocked .card-hit { cursor: not-allowed; }
.card-hit { display: flex; flex-direction: column; gap: 8px; flex: 1; width: 100%; text-align: left; border: 0; background: none; padding: 0; margin: 0; color: inherit; border-radius: 8px; }
.card-hit::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* ganze Karte klickbar, Minus liegt darüber */
.card-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.card .card-foot { position: relative; z-index: 1; pointer-events: none; }
.card .minus, .card .card-actions { pointer-events: auto; }
.card-votes { display: flex; align-items: center; gap: 8px; }
.minus-slot { width: 36px; height: 36px; flex: none; }
.card.mine { background: var(--accent-soft); border-color: var(--accent); }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; overflow-wrap: anywhere; }
.card-desc { font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.vote-label { white-space: nowrap; font-size: 13px; color: var(--muted); }
.card.mine .vote-label { color: var(--accent); font-weight: 600; }
.card.blocked .vote-label { color: var(--muted); }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); transition: background .15s; }
.card.mine .dot.on, .card .dot.on { background: var(--accent); }
.card.blocked .dot { border-color: var(--line-strong); }
.mydots { display: flex; gap: 5px; }

.minus { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.minus:hover { border-color: var(--accent); color: var(--accent); }
.card-actions { display: flex; gap: 2px; margin-left: -8px; }
.card.edit { border-color: var(--accent); gap: 12px; user-select: text; }
.card.edit .field { display: flex; flex-direction: column; gap: 4px; }
.card.edit input, .card.edit textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; border-radius: 0; transition: border-color .15s; }
.card.edit input:focus, .card.edit textarea:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.card.edit input { padding: 2px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card.edit textarea { padding: 2px 0 8px; font-size: 14px; line-height: 1.5; resize: none; color: #4a4945; }
.card.edit .count { align-self: flex-end; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1; }
.card.edit .count.full { color: var(--danger); }
.card.edit .edit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.card.edit .edit-btns { display: flex; gap: 4px; margin-left: auto; }
.card.edit .btn-ghost, .card.edit .btn-small { white-space: nowrap; }
.emoji-toggle { border: 0; background: none; width: 32px; height: 32px; border-radius: 6px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.emoji-toggle:hover, .emoji-toggle.on { background: var(--hover); color: var(--ink); }
.emoji-picker { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.emoji-search-wrap { position: relative; border-bottom: 1px solid var(--line); }
.card.edit .emoji-search-wrap input.emoji-search { display: block; width: 100%; border: 0; padding: 9px 36px 9px 12px; font-size: 13px; font-weight: 400; line-height: 1.4; background: transparent; appearance: none; }
.card.edit .emoji-search-wrap input.emoji-search:focus { background: #fbfaf8; }
.emoji-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: 0; background: #c9c7c0; color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0 0 1px; }
.emoji-clear:hover { background: var(--muted); }
.emoji-none { grid-column: 1 / -1; padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.emoji-cats { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); overflow: hidden; }
.emoji-cats button { flex: 1 1 auto; border: 0; background: none; padding: 7px 6px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.emoji-cats button:hover { background: var(--hover); }
.emoji-cats button.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); padding: 6px; max-height: 150px; overflow-y: auto; }
.emoji-grid button { border: 0; background: none; height: 32px; font-size: 19px; line-height: 1; border-radius: 6px; cursor: pointer; font-family: "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-grid button:hover { background: var(--hover); }
.btn-small { border: 0; border-radius: 6px; padding: 7px 14px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-small:disabled { opacity: .4; cursor: default; }
.add { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #cfccc4; border-radius: var(--radius); background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; }
.add:hover { border-color: var(--accent); color: var(--accent); background: #fbfaf8; }
.add .plus { font-size: 26px; line-height: 1; font-weight: 300; }

.ranking { list-style: none; margin: 0; padding: 0; max-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; grid-template-areas: "rank text score actions"; align-items: center; gap: 18px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .12s; }
.row.mod { grid-template-columns: 10px 36px minmax(0,1fr) auto auto; grid-template-areas: "grip rank text score actions"; cursor: grab; }
.grip { grid-area: grip; } .rank { grid-area: rank; } .row-text { grid-area: text; } .score { grid-area: score; } .row-actions { grid-area: actions; }
.row-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; min-width: 0; }
.arrow { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.arrow:hover { background: var(--hover); color: var(--ink); }
.arrow:disabled { color: var(--line-strong); cursor: default; background: none; }
.row.dragging { opacity: .4; }
.row.over-top { box-shadow: 0 -3px 0 0 var(--accent); }
.row.over-bottom { box-shadow: 0 3px 0 0 var(--accent); }
.row.done { opacity: .55; }
.grip { width: 10px; height: 16px; background-image: radial-gradient(circle, var(--faint) 1.3px, transparent 1.6px); background-size: 5px 5.4px; }
.rank { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--muted); }
.row.top .rank { color: var(--accent); } .row.done .rank { color: var(--muted); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; overflow-wrap: anywhere; }
.row.done .row-title { text-decoration: line-through; }
.row-desc { font-size: 14px; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; }
.score { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; max-width: 132px; justify-content: flex-end; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.total { white-space: nowrap; min-width: 78px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.total b { font-size: 18px; font-weight: 650; }
.done-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0 10px; height: 36px; margin-left: 6px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap; }
.done-btn:hover { background: var(--hover); }
.done-btn .chk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; border: 1.5px solid #cfccc4; }
.done-btn.on { color: var(--ink); } .done-btn.on .chk { background: var(--accent); border-color: var(--accent); }
.done-tag { font-size: 13px; color: var(--muted); }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 32px 32px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.foot-links { display: flex; gap: 10px; }
.foot-links:empty { display: none; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--panel); align-self: center; }
.lang button { border: 0; background: none; padding: 6px 12px; font-size: 12px; color: var(--muted); cursor: pointer; min-height: 30px; }
.lang button:hover { background: var(--hover); color: var(--ink); }
.lang button.on, .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.foot-note { margin: 0; }
.foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-note a:hover, .foot-note a:focus-visible { color: var(--accent); }
.gate .foot, .landing .foot { width: 100%; max-width: 420px; padding: 20px 0 0; justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 12px; }
.gate, .landing { grid-template-rows: 1fr auto; align-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 16px; background: var(--ink); color: #e9e7e1; border-radius: 999px; font-size: 13px; box-shadow: 0 8px 28px rgba(0,0,0,.18); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

/* Ende der Abstimmung */
.flash { position: fixed; inset: 0; background: var(--ok); pointer-events: none; z-index: 50; animation: flash 1.8s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 10% { opacity: .8; } 100% { opacity: 0; } }
.row.moved { animation: moved 1s ease-out; }
@keyframes moved { 0%, 20% { background: #dbe6f7; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,102,184,.25); } 100% { background: var(--panel); border-color: var(--line); box-shadow: none; } }
.after { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.after .btn-secondary.muted { border-color: var(--line); } .after .btn-secondary.muted:hover { border-color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .row.moved { animation: moved 1s steps(1, end); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 51; }

@media (max-width: 640px) {
  .hd, .main, .foot { padding-left: 18px; padding-right: 18px; }
  .hd { padding-top: 20px; gap: 18px; }
  .title, .title-input { font-size: 24px; }
  .hd-side { width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
  .hd-side nav { width: 100%; min-width: 0; }
  .logo { height: 32px; }
  .steps { gap: 6px; font-size: 12px; flex-wrap: wrap; } .step { gap: 6px; } .step .sep { width: 12px; }
  .hd-top { gap: 16px; }
  .bar { gap: 10px 16px; padding: 12px 0; min-height: 0; }
  .bar.sticky { margin: 0 -18px; padding-left: 18px; padding-right: 18px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.18); }
  .bar-left, .bar-right { width: 100%; justify-content: space-between; }
  .bar .status, .bar .budget-text, .bar .counter { line-height: 1.4; }
  .bar .budget-text { flex: 1 1 100%; font-size: 13px; }
  .bar .finish-btn { flex: 1 1 auto; justify-content: center; }
  .main { padding-top: 18px; }
  .card { min-height: 0; padding: 16px 16px 14px; }

  .card.edit input, .card.edit textarea, .card.edit .emoji-search-wrap input.emoji-search, .title-input { font-size: 16px; }
  .emoji-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); } .emoji-grid button { height: 40px; }
  .row { grid-template-columns: 30px minmax(0,1fr) auto; grid-template-areas: "rank text score" "actions actions actions"; gap: 10px 12px; padding: 14px 16px; }
  .row.mod { grid-template-columns: 10px 30px minmax(0,1fr) auto; grid-template-areas: "grip rank text score" "actions actions actions actions"; }
  .row-actions:empty { display: none; }
  .row.mod .row-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
  .dots { display: none; }
  .rank { font-size: 18px; }
  .after { flex-direction: column; } .after .btn { width: 100%; text-align: center; }
  .toast { white-space: normal; text-align: center; }
}

/* Sammeln (Moderation): Schritt 1 Themen, Schritt 2 Einstellungen */
.hd-rule { border-top: 1px solid var(--line); }
.sec-head { margin: 0 0 18px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sec-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.sec-head .status { margin: 0; }
.setup { margin-top: 40px; }
.setup .sec-head { margin-bottom: 12px; }
.setup .bar-right { width: 100%; align-items: center; }
.setup .bar .btn { margin-left: auto; }
@media (max-width: 960px) { .setup .bar .btn { margin-left: 0; flex: 1 1 100%; } }
