/* =====================================================================
   curvey/survey – Stylesheet (Direction B · Night)
   ===================================================================== */

:root {
  --bg: #121014;
  --bg-2: #0E0D10;
  --bg-3: #0A090B;
  --panel: #1A171D;
  --raised: #221F26;
  --line: #2C2830;
  --line-2: #3A353F;
  --fg: #F2EEE8;
  --fg-2: #B3ADB8;
  --muted: #9A949F;
  --faint: #7D7782;
  --dim: #5A5560;
  --accent: oklch(0.88 0.2 125);
  --accent-soft: oklch(0.88 0.2 125 / 0.12);
  --on-accent: #121014;
  --danger: #FFB4A8;
  --danger-line: #4A2A2E;
  --danger-bg: #2A1A1C;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --focus: 0 0 0 0.1875rem oklch(0.88 0.2 125 / 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
/* Nur die Umfrageseite (index.html) wächst auf großen Bildschirmen mit (16px bis ~1400px Breite) */
html.fluid { font-size: clamp(16px, calc(4px + .85vw), 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; background: var(--raised); padding: .1em .4em; border-radius: 0.375rem; }
[hidden] { display: none !important; }
/* Netlify-Badge ausblenden (wird von Netlify automatisch unten rechts eingefügt) */
#nl-badge-frame, #nl-hud-frame { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.mono-label {
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 400;
}
.prewrap { white-space: pre-wrap; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Logo (1d · Rising bars) ---------- */
.logo { display: inline-flex; align-items: center; gap: .36em; font-weight: 800; letter-spacing: -.05em; font-size: 1.125rem; white-space: nowrap; }
.logo-light { font-weight: 400; opacity: .5; }
.logo-mark { width: 1em; height: 1em; flex: none; display: flex; align-items: flex-end; justify-content: center; gap: .09em; }
.logo-mark i { width: .25em; border-radius: 6.1875rem; background: currentColor; display: block; }
.logo-mark i:nth-child(1) { height: 40%; }
.logo-mark i:nth-child(2) { height: 100%; background: var(--accent); }
.logo-mark i:nth-child(3) { height: 70%; }
.logo.lg { font-size: 1.375rem; }
.logo.sm { font-size: 1rem; }

/* ---------- Buttons ---------- */
.ico-bulb { width: 1.15em; height: 1.15em; flex: none; margin: -.1em -.1em -.1em -.25em; color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.375rem; border-radius: 6.1875rem; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { border-color: var(--line-2); background: var(--panel); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .nav a:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.06); }
.btn-light { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-light:hover { background: var(--fg); border-color: var(--fg); filter: brightness(.94); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger-line); }
.btn-ghost { border-color: transparent; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn-lg { padding: 1.125rem 1.625rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 0.875rem; }
.link-btn:hover { text-decoration: underline; }
.icon-btn {
  width: 2.125rem; height: 2.125rem; flex: none; display: inline-grid; place-items: center;
  border-radius: 0.625rem; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--raised); color: var(--fg); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 0.875rem; padding: 0.9375rem 1.125rem;
  background: transparent; color: var(--fg); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--fg); }
.input.sm { padding: 0.625rem 0.875rem; border-radius: 0.75rem; font-size: 0.9375rem; }
textarea.input { resize: vertical; min-height: 3rem; line-height: 1.45; }
select.input { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9375rem) 50%; background-size: 0.3125rem 0.3125rem; background-repeat: no-repeat; padding-right: 2.5rem; }
select.input option { background: var(--panel); color: var(--fg); }
select.input.sm { padding-right: 2.25rem; background-position: calc(100% - 1.125rem) 50%, calc(100% - 0.8125rem) 50%; }
.input-group { display: flex; gap: 0.5rem; }
.input-group .input { flex: 1; min-width: 0; }

.check { display: inline-flex; align-items: center; gap: 0.625rem; cursor: pointer; font-size: 0.9375rem; color: var(--fg-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  width: 1.125rem; height: 1.125rem; border-radius: 0.3125rem; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: transparent; flex: none;
}
.check input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check input:focus-visible + .box { box-shadow: var(--focus); }

/* Schalter */
.switch { position: relative; display: inline-block; width: 2.5rem; height: 1.5rem; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 6.1875rem; background: var(--line); transition: background .15s; }
.switch .track::after {
  content: ''; position: absolute; left: 0.1875rem; top: 0.1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--faint); transition: transform .15s, background .15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(1rem); background: var(--bg); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

/* Einstellungs-Zeilen mit Trennlinien */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.row-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.row-text small { font-size: 0.8125rem; color: var(--muted); }
.row .input.sm { width: auto; }

/* Segment-Umschalter (Pill-Tabs) */
.seg { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 6.1875rem; background: var(--panel); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; color: var(--fg-2); padding: 0.5rem 1rem; border-radius: 6.1875rem;
  cursor: pointer; font-size: 0.875rem; white-space: nowrap;
}
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--fg); color: var(--bg); font-weight: 600; }
.seg.sm button { padding: 0.3125rem 0.6875rem; font-size: 0.75rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.seg.sm button.on { background: var(--line); color: var(--fg); }

.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.4375rem 0.875rem; border-radius: 6.1875rem;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; font-size: 0.875rem; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: .08em; border: 1px solid var(--line); border-radius: 6.1875rem; padding: 0.25rem 0.625rem; color: var(--muted); white-space: nowrap;
}
.pill.live { border-color: var(--accent); color: var(--accent); }
.pill.err { border-color: var(--danger-line); color: var(--danger); }

.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; white-space: nowrap; }
.status .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.status.live .dot { background: var(--accent); }
.status.draft { color: var(--fg-2); }
.status.draft .dot { border: 1.5px solid var(--muted); }
.status.closed { color: var(--muted); }
.status.closed .dot { background: var(--dim); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6.1875rem; padding: 0.1875rem; gap: 0.125rem; }
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: .08em; padding: 0.25rem 0.5625rem; border-radius: 6.1875rem; cursor: pointer;
}
.lang-toggle button.on { background: var(--line); color: var(--fg); }

.error-msg { display: flex; align-items: center; gap: 0.625rem; background: var(--danger-bg); color: var(--danger); padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; }
.error-msg::before { content: '!'; font-family: var(--mono); }
.notice { background: var(--accent-soft); border: 1px solid oklch(0.88 0.2 125 / .35); color: var(--fg); padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; line-height: 1.5; }

/* ---------- Laden, Toasts, Warnung ---------- */
.loading { display: flex; justify-content: center; align-items: center; gap: 0.75rem; padding: 5rem 0; color: var(--muted); }
.spinner { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 0.1875rem solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: calc(100% - 2rem); max-width: 30rem; pointer-events: none;
}
.toast {
  background: var(--fg); color: var(--bg); padding: 0.6875rem 1.125rem; border-radius: 0.875rem; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 0.75rem 1.875rem rgba(0,0,0,.35); animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s;
}
.toast.ok { background: var(--accent); color: var(--on-accent); }
.toast.error { background: #E5484D; color: #fff; }
.toast.hide { opacity: 0; transform: translateY(0.5rem); }
@keyframes toast-in { from { opacity: 0; transform: translateY(0.5rem); } }
.file-warning { background: #E5484D; color: #fff; padding: 0.625rem 1rem; text-align: center; font-size: 0.875rem; position: relative; z-index: 300; }
.file-warning code { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 11, .82); backdrop-filter: blur(0.25rem);
  display: grid; place-items: center; padding: 1.5rem; overflow-y: auto; animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 55rem; background: var(--panel); border: 1px solid var(--line); border-radius: 1.75rem;
  padding: 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; box-shadow: 0 1.875rem 5rem rgba(0,0,0,.5);
}
.modal.wide { max-width: 65rem; padding: 2.25rem; gap: 1.5rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 2.25rem; letter-spacing: -.04em; font-weight: 700; }
.modal-head p { color: var(--muted); margin-top: 0.375rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.625rem; flex-wrap: wrap; }

/* =====================================================================
   Login (L1)
   ===================================================================== */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 35rem; }
.login-hero { padding: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; min-height: 100vh; }
.login-hero h1 { font-size: clamp(5.5rem, 10vw, 10rem); line-height: .86; letter-spacing: -.045em; font-weight: 800; position: relative; z-index: 1; margin-bottom: 7.5rem; }
.login-hero h1 .serif { color: var(--accent); }
.login-hero svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 11.25rem; }
.login-panel { background: var(--panel); border-left: 1px solid var(--line); padding: 4.5rem 4rem; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; }
.login-panel h2 { font-size: 2.25rem; letter-spacing: -.04em; font-weight: 700; }
.login-panel .lead { color: var(--muted); margin-top: 0.5rem; }
.login-form { display: flex; flex-direction: column; gap: 1.5rem; }
/* Konten: Umfrage-Code ohne Konto */
.or-sep { display: flex; align-items: center; gap: 0.875rem; color: var(--muted); font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-join-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.code-join { display: flex; flex-direction: column; gap: 0.625rem; }
.code-join-row { display: flex; gap: 0.5rem; }
.code-join-row .input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--mono); letter-spacing: .08em; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4.75rem; }
.pw-wrap button { position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 0.875rem; cursor: pointer; }
.login-foot { border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.login-top { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2; }

/* =====================================================================
   App-Rahmen mit Seitenleiste (D1, S1)
   ===================================================================== */
.shell { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.375rem; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 0 0.625rem 1.5rem; }
.nav { display: flex; flex-direction: column; gap: 0.375rem; }
.nav a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6875rem 0.75rem; border-radius: 0.75rem; font-size: 0.9375rem;
  color: var(--fg-2); text-decoration: none;
}
.nav a:hover { background: var(--panel); color: var(--fg); }
.nav a.on { background: var(--raised); color: var(--fg); font-weight: 600; }
.nav a .ico { font-family: var(--mono); width: 1.125rem; text-align: center; }
.nav a.on .ico { color: var(--accent); }
.team-switch {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem; row-gap: 0.125rem;
  margin: 0 0 0.875rem; padding: 0.625rem 0.75rem; border: 1px solid var(--line); border-radius: 0.875rem;
  background: none; color: var(--fg); text-align: left; cursor: pointer; font: inherit;
}
.team-switch:hover { background: var(--panel); }
.team-switch .mono-label { grid-column: 1 / -1; }
.team-switch b { font-weight: 600; font-size: 0.9375rem; }
.team-switch .caret { color: var(--muted); font-size: 0.75rem; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; }
/* Builder: Seitenleiste als Ausklapp-Menü von links */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 9, 11, .6); opacity: 0; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; }
.side.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; height: auto; width: 16rem; max-width: 86vw; overflow-y: auto;
  background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .25s ease;
}
.drawer-backdrop.open .side.drawer { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer-backdrop, .side.drawer { transition: none; } }
.user-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.875rem; }
.avatar { width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; flex: none; text-transform: uppercase; }
.user-card .who { display: flex; flex-direction: column; font-size: 0.8125rem; min-width: 0; flex: 1; }
.user-card .who b { font-weight: 600; }
.user-card .who span { color: var(--muted); }
.main { padding: 2rem 2.5rem 4rem; display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: 3rem; letter-spacing: -.05em; font-weight: 800; }
.head-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); border-radius: 6.1875rem; padding: 0 1rem; width: 15rem; color: var(--muted); }
.search:focus-within { border-color: var(--fg-2); }
.search input { border: 0; background: transparent; padding: 0.6875rem 0; width: 100%; outline: none; color: var(--fg); font-size: 0.9375rem; }
.search input::placeholder { color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; }
.kpi { background: var(--bg); padding: 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.kpi-val { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.kpi-val small { font-size: 0.9375rem; font-weight: 500; margin-left: 0.375rem; letter-spacing: 0; color: var(--muted); }
.kpi-val small.up { color: var(--accent); }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Umfragen-Tabelle */
.s-table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.s-row {
  display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1.4fr 1fr 2.5rem; gap: 1rem; align-items: center;
  padding: 1.125rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0.75rem; cursor: pointer; position: relative;
}
.s-row:hover { background: var(--panel); }
.s-row.head { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0.75rem 0.5rem; cursor: default; border-radius: 0; }
.s-row.head:hover { background: none; }
.s-name { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.s-name b { font-size: 1.0625rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-name span { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-num { font-family: var(--mono); font-size: 1.0625rem; }
.spark { width: 8.75rem; max-width: 100%; height: 1.875rem; display: block; }
.empty { border: 1px dashed var(--line-2); border-radius: 1.25rem; padding: 3.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.empty h2 { font-size: 1.75rem; letter-spacing: -.03em; }
.empty p { color: var(--muted); max-width: 26.25rem; }
/* Konten: Team-Übersicht und großer Leer-Zustand */
.team-empty { padding: 5.5rem 1.5rem; gap: 1rem; }
.team-empty h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.045em; font-weight: 800; }
.team-empty p { font-size: 1.0625rem; max-width: 32rem; line-height: 1.5; margin-bottom: 0.5rem; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.875rem; }
.team-card {
  display: flex; align-items: center; gap: 0.875rem; padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: 1.125rem;
  background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; min-width: 0;
}
.team-card:hover { background: var(--panel); border-color: var(--line-2); }
.team-card-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.team-card-text b { font-size: 1.0625rem; font-weight: 600; }
.team-card-text span { font-size: 0.8125rem; color: var(--muted); }
.team-card-go { color: var(--muted); }
.team-card:hover .team-card-go { color: var(--accent); }
.ho-row { cursor: pointer; }
.ho-row input { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); flex: none; }

/* Kontextmenü */
.menu {
  position: fixed; z-index: 120; min-width: 13.125rem; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 0.875rem; padding: 0.375rem; box-shadow: 0 1.25rem 3.125rem rgba(0,0,0,.5); animation: fade .1s ease-out;
}
.menu button { display: flex; width: 100%; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border-radius: 0.5625rem; border: 0; background: none; cursor: pointer; font-size: 0.875rem; text-align: left; }
.menu button:hover { background: var(--raised); }
.menu button.danger { color: var(--danger); }
/* Auswahl (z. B. Teams): Punkt vor dem aktiven Eintrag */
.menu button.pick::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; flex: none; }
.menu button.pick.on { font-weight: 600; }
.menu button.pick.on::before { background: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.375rem 0.25rem; }

/* Neue Umfrage (D2) */
.start-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.start-card {
  border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.375rem; display: flex; flex-direction: column; gap: 2.5rem;
  background: transparent; text-align: left; cursor: pointer; color: var(--fg);
}
.start-card:hover { border-color: var(--line-2); }
.start-card.on { border: 0.125rem solid var(--accent); background: var(--raised); padding: 1.3125rem; }
.start-card .ico { font-family: var(--mono); font-size: 1.25rem; }
.start-card.on .ico { color: var(--accent); }
.start-card b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.start-card span.sub { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
/* Import aus Datei */
.import-drop {
  display: flex; align-items: center; gap: 0.875rem; padding: 1rem 1.125rem; border: 1px dashed var(--line-2); border-radius: 1rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.import-drop:hover, .import-drop.drop-on { border-color: var(--accent); background: var(--accent-soft); }
.import-drop-ico { font-size: 1.5rem; color: var(--accent); font-family: var(--mono); }
.import-drop span:last-child { display: flex; flex-direction: column; gap: 0.125rem; }
.import-drop small { color: var(--muted); font-size: 0.8125rem; }
.import-file-msg { font-size: 0.875rem; color: var(--muted); }
.import-file-msg.ok { color: var(--accent); }
.import-file-msg.err { color: var(--danger); }

/* ---------- Ordner ---------- */
.crumb { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-decoration: none; align-self: flex-start; padding: 0.25rem 0.5rem; margin-left: -0.5rem; border-radius: 0.5rem; border: 1px dashed transparent; }
.crumb:hover { color: var(--fg); }
/* Runder ⋯-Button in Kopfzeilen, gleich hoch wie die anderen Buttons */
.btn-more { padding: 0; width: 3.0625rem; height: 3.0625rem; flex: none; font-size: 1.25rem; line-height: 1; }
.folder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; }
.folder-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: 1rem;
  background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: border-color .15s, background .15s;
}
.folder-card:hover { background: var(--panel); border-color: var(--line-2); }
.folder-ico { font-size: 1.25rem; color: var(--accent); flex: none; line-height: 1; }
.folder-ico.big { font-size: 2.5rem; }
.folder-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.folder-text b { font-weight: 600; }
.folder-text span { font-size: 0.8125rem; color: var(--muted); }
.folder-badge { font-family: var(--mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: .08em; padding: 0.25rem 0.5rem; border-radius: 99rem; border: 1px solid var(--line-2); color: var(--muted); flex: none; align-self: flex-start; }
.folder-badge.on { border-color: oklch(0.88 0.2 125 / .4); color: var(--accent); background: var(--accent-soft); }
/* Drag & Drop: Umfrage auf Ordner ziehen */
.s-row.dragging { opacity: .45; }
.folder-card.drop-on, .crumb.drop-on { border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--fg); }
.s-name b .s-pos, .row-text b .s-pos {
  display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; margin-right: 0.5rem; padding: 0 0.25rem; border-radius: 0.375rem;
  background: var(--raised); color: var(--accent); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; vertical-align: 0.125rem;
}
.pick-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; text-align: left; cursor: pointer; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 0.5rem; }
.pick-row:hover { background: var(--panel); }
.pick-row.on { cursor: default; }
.pick-row.on b { color: var(--accent); }
/* Ordner teilen */
.f-share { display: flex; flex-direction: column; gap: 1.5rem; transition: opacity .15s; }
.f-share.off { opacity: .4; pointer-events: none; }
.f-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.f-link { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.375rem 0.375rem 0.375rem 0.875rem; font-family: var(--mono); font-size: 0.8125rem; min-width: 0; }
.f-link .ellipsis { flex: 1; min-width: 0; }
.f-qr-row { display: flex; align-items: center; gap: 0.875rem; margin-top: 0.5rem; }
.f-qr { width: 6.5rem; height: 6.5rem; background: #fff; border-radius: 0.625rem; padding: 0.375rem; flex: none; display: grid; place-items: center; font-size: 0.6875rem; color: #555; text-align: center; }
.f-qr svg { width: 100%; height: 100%; display: block; }
.f-modes .start-card { gap: 0; padding: 1.125rem; }
.f-modes .start-card.on { padding: 1.0625rem; }
.f-modes .start-card b { font-size: 1.0625rem; }
.f-counter { display: flex; align-items: center; gap: 0.875rem; font-size: 0.875rem; color: var(--muted); }
#fsCodeHint.err { color: var(--danger); }
@media (max-width: 700px) {
  .f-share-grid, .f-modes { grid-template-columns: 1fr; }
}
.tpl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
.tpl { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; background: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 0.25rem; }
.tpl:hover { border-color: var(--line-2); }
.tpl.on { border-color: var(--accent); background: var(--raised); }
.tpl b { font-size: 1rem; }
.tpl span { font-size: 0.8125rem; color: var(--muted); }

/* Einstellungen (S1) */
.set-section { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); gap: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.set-section > div:first-child { display: flex; flex-direction: column; gap: 0.25rem; }
.set-section > div:first-child b { font-size: 1.125rem; font-weight: 600; }
.set-section > div:first-child span { font-size: 0.875rem; color: var(--muted); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 45rem; }
.set-section .rows { max-width: 45rem; }
/* Codes: nur anzeigen, ändern nur über „Neu“ */
.input.code-ro { background: var(--panel); color: var(--fg); cursor: default; }
.input.code-ro:focus { border-color: var(--line-2); }
.readonly-box { border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.875rem 1rem; font-size: 1rem; display: flex; justify-content: space-between; gap: 0.75rem; color: var(--fg-2); }

/* =====================================================================
   Builder (B1–B5)
   ===================================================================== */
.builder { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.b-top { height: 4rem; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.b-top-left { display: flex; align-items: center; gap: 0.875rem; min-width: 0; flex: 1; }
.b-top-left .logo-mark { font-size: 1.125rem; }
.b-title { border: 0; background: transparent; font-weight: 600; font-size: 1rem; color: var(--fg); padding: 0.375rem 0.5rem; border-radius: 0.5rem; min-width: 3.75rem; max-width: 17.5rem; }
.b-title:hover { background: var(--panel); }
.b-title:focus { outline: none; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.b-top-right { display: flex; gap: 0.625rem; flex: 1; justify-content: flex-end; }
.b-body { flex: 1; min-height: 0; display: grid; }
.b-body.content { grid-template-columns: 18.75rem minmax(0, 1fr) 21.25rem; }
.b-body.logic { grid-template-columns: 32.5rem minmax(0, 1fr); }
.b-body.design { grid-template-columns: 25rem minmax(0, 1fr); }
.b-body.share { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.b-body.results { display: flex; flex-direction: column; overflow: hidden; }
.pane { min-height: 0; overflow-y: auto; }
.pane-l { border-right: 1px solid var(--line); }
.pane-r { border-left: 1px solid var(--line); }
.canvas { background: var(--bg-2); position: relative; display: flex; align-items: center; justify-content: center; padding: 4.5rem 2rem; overflow-y: auto; }

/* Outline */
.outline { padding: 1.25rem 0.875rem; display: flex; flex-direction: column; gap: 0.375rem; }
.outline .mono-label { padding: 0 0.5rem 0.5rem; }
.o-item {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem; border-radius: 0.75rem; font-size: 0.875rem;
  border: 1px solid transparent; cursor: pointer; background: none; text-align: left; width: 100%; color: var(--fg);
}
.o-item:hover { background: var(--panel); }
.o-item.on { background: var(--raised); border-color: var(--accent); }
.o-item.fixed { color: var(--fg-2); }
.o-item.o-end { margin-top: 0.5rem; }
.o-item .grip { color: var(--dim); cursor: grab; letter-spacing: -0.125rem; }
.o-item .tag { font-family: var(--mono); font-size: 0.6875rem; min-width: 2.75rem; flex: none; white-space: nowrap; color: var(--muted); }
.o-item.on .tag { color: var(--accent); }
.o-item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.o-item .txt.blank { color: var(--dim); font-style: italic; }
.o-item .flag { font-family: var(--mono); font-size: 0.625rem; color: var(--accent); }
.o-item.drag-over { box-shadow: inset 0 0.125rem 0 var(--accent); }
.o-item.dragging { opacity: .4; }
.add-dashed { margin-top: 0.5rem; border: 1px dashed var(--line-2); border-radius: 0.75rem; padding: 0.875rem; text-align: center; font-size: 0.875rem; color: var(--accent); background: none; cursor: pointer; width: 100%; }
.add-dashed:hover { background: var(--panel); }

/* Vorschau-Leinwand */
.canvas-top { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); }
.canvas-hint { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.edit-card {
  width: 38.75rem; max-width: 100%; background: var(--s-bg); color: var(--s-fg); border: 1px solid var(--line);
  border-radius: 1.5rem; padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem; transition: width .2s;
}
.edit-card.mobile { width: 22.5rem; padding: 2rem 1.5rem; }
.edit-card .ce { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; outline: none; border-bottom: 1px dashed var(--s-line); padding-bottom: 0.375rem; min-height: 1.1em; cursor: text; }
.edit-card .ce:focus { border-bottom-color: var(--s-accent); }
.edit-card .ce:empty::before { content: attr(data-placeholder); color: var(--s-muted); opacity: .7; }
.edit-card h2.ce { font-family: var(--s-head); font-size: 2.75rem; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.edit-card.mobile h2.ce { font-size: 1.875rem; }
.edit-card h1.ce { font-family: var(--s-head); font-size: 3.25rem; line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.edit-card p.ce { font-size: 1.0625rem; color: var(--s-muted); border-bottom-style: dotted; }
.edit-card .mono-label { color: var(--s-muted); }
.edit-card .q-img { border-radius: 0.875rem; max-height: 16.25rem; object-fit: contain; align-self: flex-start; }
.e-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.e-opt { display: flex; align-items: center; gap: 0.875rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border: 1px solid var(--s-line); border-radius: var(--s-r-opt); }
.e-opt .key { font-family: var(--mono); font-size: 0.6875rem; border: 1px solid var(--s-muted); border-radius: 0.375rem; padding: 0.125rem 0.4375rem; color: var(--s-muted); flex: none; }
.e-opt input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--s-fg); font-size: 1.125rem; padding: 0.5rem 0; outline: none; }
.e-opt .icon-btn { color: var(--s-muted); }
.e-add { padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--s-accent); background: none; border: 0; cursor: pointer; text-align: left; }
.e-static { opacity: .85; pointer-events: none; }

/* Eigenschaften */
.props { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.props label.lbl { font-size: 0.8125rem; color: var(--muted); }
.props .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.media-drop { border: 1px dashed var(--line-2); border-radius: 0.75rem; padding: 1.125rem; font-size: 0.875rem; color: var(--muted); text-align: center; cursor: pointer; display: block; }
.media-drop:hover { background: var(--panel); color: var(--fg); }
.media-prev { position: relative; }
.media-prev img { width: 100%; border-radius: 0.75rem; display: block; max-height: 11.25rem; object-fit: cover; }
.media-prev .icon-btn { position: absolute; top: 0.375rem; right: 0.375rem; background: rgba(18,16,20,.8); color: var(--fg); }
.props-actions { margin-top: auto; display: flex; gap: 0.5rem; }
/* Einklappbare Abschnitte in den Eigenschaften */
.psec { border-top: 1px solid var(--line); }
.psec + .psec { margin-top: -1.25rem; }
.psec > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer;
  padding: 0.875rem 0; font-size: 0.9375rem; font-weight: 600; color: var(--fg); user-select: none;
}
.psec > summary::-webkit-details-marker { display: none; }
.psec > summary::after { content: "▸"; color: var(--muted); font-size: 0.9375rem; line-height: 1; transition: transform .15s; }
.psec[open] > summary::after { transform: rotate(90deg); }
.psec > summary:hover::after { color: var(--fg); }
.psec > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.375rem; }
.psec-body { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.125rem; }
.psec-body > .rows:first-child { border-top: 0; }
/* Text & Schrift */
.tf { display: flex; flex-direction: column; gap: 0.75rem; }
.tf-target { font-size: 0.8125rem; line-height: 1.4; }
.tf-target b { font-weight: 600; color: var(--fg); }
.tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.tf-row select { flex: 1 1 7rem; min-width: 0; }
.tf-btn {
  width: 2.125rem; height: 2.125rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 0.5625rem;
  background: none; color: var(--fg); font: inherit; font-size: 0.9375rem; cursor: pointer; padding: 0;
}
.tf-btn:hover { background: var(--panel); border-color: var(--line-2); }
.tf-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tf-btn svg { width: 1rem; height: 1rem; }
.tf-sep { width: 1px; height: 1.375rem; background: var(--line); margin: 0 0.125rem; }
.tf-colors { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tf-sw { width: 1.625rem; height: 1.625rem; border-radius: 50%; border: 1px solid rgba(127,127,127,.35); cursor: pointer; padding: 0; position: relative; display: grid; place-items: center; }
.tf-sw:hover { transform: scale(1.08); }
.tf-sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.tf-custom { background: conic-gradient(#E5484D, #FFC53D, #46A758, #0090FF, #8E4EC6, #E5484D); color: #fff; font-weight: 700; font-size: 0.875rem; overflow: hidden; }
.tf-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tf-none { background: none; color: var(--muted); font-size: 0.875rem; }
.tf-clear { align-self: flex-start; }
.tf-hint { font-size: 0.75rem; line-height: 1.45; }
/* Antwortoption ausgewählt: nur fett/kursiv/unterstrichen/Farbe */
.tf.opt-mode .tf-text-only { display: none; }
.props-actions .btn { flex: 1; }

/* Fragetyp-Auswahl (B2) */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.type-col { display: flex; flex-direction: column; gap: 0.5rem; }
.type-col .mono-label { margin-bottom: 0.25rem; }
.type-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 0.75rem; font-size: 0.9375rem; background: none; border: 0; cursor: pointer; text-align: left; color: var(--fg); }
.type-item:hover, .type-item.on { background: var(--raised); }
.type-ico { width: 2rem; height: 2rem; border-radius: 0.5625rem; background: var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 0.8125rem; flex: none; letter-spacing: -.04em; }
.type-ico.long { font-size: 0.5625rem; }
.type-item.on .type-ico { background: var(--accent); color: var(--on-accent); }
.type-foot { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; align-items: center; }
.type-foot b { font-size: 1.25rem; letter-spacing: -.02em; }
.type-foot p { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; margin-top: 0.375rem; }
.type-demo { background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; padding: 1.125rem; display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.type-demo span { flex: 1; border: 1px solid var(--line); border-radius: 0.625rem; padding: 0.625rem; white-space: nowrap; text-align: center; }
.type-demo span.hl { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Logik (B3) */
.rules { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.rules h3 { font-size: 1.75rem; letter-spacing: -.04em; font-weight: 700; }
.rule { border: 1px solid var(--line); border-radius: 1.125rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.rule.on { border-color: var(--accent); background: var(--panel); }
.rule.on .mono-label { color: var(--accent); }
.rule-line { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.rule-line > span { color: var(--muted); }
.rule select, .rule input { border: 1px solid var(--line); border-radius: 0.625rem; padding: 0.5rem 0.75rem; background: var(--bg); color: var(--fg); font-size: 0.9375rem; max-width: 100%; }
.rule select:focus, .rule input:focus { outline: none; border-color: var(--fg-2); }
.rule select.target { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.rule-head { display: flex; justify-content: space-between; align-items: center; }
.flow { background: var(--bg-2); position: relative; padding: 3rem; overflow: auto; }
.flow-inner { position: relative; margin-top: 1.5rem; }
.flow svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.f-node {
  position: absolute; left: 0; width: 16.25rem; height: 3.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel);
  display: flex; align-items: center; padding: 0 1.125rem; gap: 0.625rem; font-size: 0.9375rem;
}
.f-node .tag { font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); flex: none; }
.f-node .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-node.src { border-color: var(--accent); }
.f-node.src .tag { color: var(--accent); }
.f-node.stmt { border-style: dashed; border-color: var(--faint); color: var(--fg-2); }
.f-label {
  position: absolute; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: var(--on-accent); padding: 0.25rem 0.625rem; border-radius: 6.1875rem; white-space: nowrap; transform: translate(-50%, -50%);
  max-width: 13.75rem; overflow: hidden; text-overflow: ellipsis;
}

/* Design (B4) */
.design-panel { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.layout-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
.layout-card, .theme-card { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.8125rem; color: var(--fg-2); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.layout-card.on, .theme-card.on { color: var(--fg); }
.lc-art { height: 4.5rem; border: 1px solid var(--line); border-radius: 0.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.3125rem; padding: 0 0.75rem; overflow: hidden; }
.layout-card.on .lc-art, .theme-card.on .tc-art { border: 0.125rem solid var(--accent); }
.lc-art i { display: block; height: 0.375rem; border-radius: 0.1875rem; background: var(--fg); }
.lc-art i.d { background: var(--dim); }
.lc-art.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0; }
.lc-art.split > div:first-child { background: repeating-linear-gradient(135deg, var(--line) 0 0.25rem, var(--raised) 0.25rem 0.5rem); }
.lc-art.split > div:last-child { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; padding: 0 0.375rem; }
.lc-art.classic { justify-content: flex-start; padding: 0.625rem 0.75rem; gap: 0.25rem; }
.theme-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
.theme-card { align-items: center; }
.tc-art { width: 100%; height: 3.5rem; border-radius: 0.75rem; display: flex; align-items: flex-end; padding: 0.375rem; border: 1px solid var(--line); }
.tc-art i { width: 1.125rem; height: 1.125rem; border-radius: 50%; display: block; }
.tc-art.custom { border-style: dashed; border-color: var(--line-2); display: grid; place-items: center; font-size: 1.125rem; }
.swatch { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; }
.swatch-btn { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem; border: 1px solid var(--line-2); border-radius: 99rem; background: var(--panel); color: var(--fg); font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; cursor: pointer; transition: border-color .15s; }
.swatch-btn:hover, .swatch-btn[aria-expanded="true"] { border-color: var(--fg-2); }
.swatch-btn i { width: 1.625rem; height: 1.625rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: block; }

/* Farbwähler-Pop-up */
.cpick { position: fixed; z-index: 130; width: 16.5rem; padding: 0.875rem; display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 1.25rem; box-shadow: 0 1.5rem 3.75rem -1rem rgba(0,0,0,.6); animation: pop-in .18s ease-out both; }
.cp-sv { position: relative; height: 10rem; border-radius: 0.75rem; cursor: crosshair; touch-action: none; }
.cp-hue { position: relative; height: 0.875rem; border-radius: 99rem; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-knob { position: absolute; width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 0.1875rem solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4); transform: translate(-50%, -50%); pointer-events: none; display: block; }
.cp-hue .cp-knob { top: 50%; }
.cp-row { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line-2); border-radius: 0.75rem; padding: 0.375rem 0.625rem 0.375rem 0.375rem; font-family: var(--mono); font-size: 0.875rem; }
.cp-row:focus-within { border-color: var(--fg-2); }
.cp-prev { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); flex: none; }
.cp-hash { color: var(--muted); }
.cp-hex { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--fg); font: inherit; text-transform: uppercase; letter-spacing: .08em; }
.cp-sugs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.cp-sugs button { aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .12s; }
.cp-sugs button:hover { transform: scale(1.12); }
.cp-sugs button.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.swatch .chip-color { width: 1.125rem; height: 1.125rem; border-radius: 0.3125rem; border: 1px solid var(--line-2); }
.design-preview { background: var(--bg-2); display: flex; align-items: center; justify-content: center; gap: 2.5rem; padding: 2.5rem; overflow: auto; flex-wrap: wrap; }
.dp-desk, .dp-mob { background: var(--s-bg); color: var(--s-fg); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.dp-desk { width: 35rem; height: 23.75rem; border-radius: 1.125rem; }
.dp-desk.split { display: grid; grid-template-columns: 1fr 1fr; }
.dp-mob { width: 13.75rem; height: 27.5rem; border-radius: 2rem; }
.dp-inner { padding: 2.25rem; display: flex; flex-direction: column; gap: 1.125rem; justify-content: center; height: 100%; }
.dp-mob .dp-inner { padding: 1.5rem 1.125rem; gap: 0.75rem; }
.dp-cover { background: repeating-linear-gradient(135deg, var(--s-surface) 0 0.75rem, transparent 0.75rem 1.5rem); background-size: cover; background-position: center; }
.dp-inner h3 { font-family: var(--s-head); font-size: 2.25rem; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.dp-desk.split .dp-inner h3 { font-size: 1.75rem; }
.dp-mob .dp-inner h3 { font-size: 1.5rem; letter-spacing: -.04em; }
.dp-opt { border: 1px solid var(--s-line); border-radius: var(--s-r-btn); padding: 0.75rem 1.125rem; font-size: 1rem; }
.dp-mob .dp-opt { padding: 0.5625rem 0.75rem; font-size: 0.8125rem; }
.dp-opt.on { background: var(--s-accent); color: var(--s-on-accent); border-color: var(--s-accent); }
.dp-logo { max-height: 1.75rem; max-width: 7.5rem; object-fit: contain; align-self: flex-start; }
.dp-logo-default { align-self: flex-start; font-size: 0.875rem; }
.dp-logo-default .logo-mark i:nth-child(2) { background: var(--s-accent); }

/* Teilen (B5) */
.share-col { background: var(--bg); padding: 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; overflow-y: auto; min-height: 0; }
.share-col h3.big { font-size: 2.5rem; letter-spacing: -.05em; font-weight: 800; }
.share-col h3.big .serif { color: var(--accent); }
.share-col h3 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 700; }
.link-box { flex: 1; min-width: 0; border: 1px solid var(--fg); border-radius: 0.875rem; padding: 0.9375rem 1.125rem; font-size: 0.9375rem; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-row { display: grid; grid-template-columns: 11.25rem 1fr; gap: 1.5rem; align-items: center; }
.qr-box { width: 11.25rem; height: 11.25rem; border-radius: 1.125rem; background: #fff; padding: 0.625rem; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.ph { background: repeating-linear-gradient(135deg, var(--raised) 0 0.5rem, var(--line) 0.5rem 1rem); color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }

/* Ergebnisse (G1/G2) */
.r-tabs { padding: 1.25rem 2rem 0; display: flex; gap: 1.5rem; font-size: 0.9375rem; border-bottom: 1px solid var(--line); flex: none; align-items: flex-end; }
.r-tabs button { padding: 0 0 0.875rem; background: none; border: 0; border-bottom: 0.125rem solid transparent; color: var(--muted); cursor: pointer; font-size: 0.9375rem; }
.r-tabs button.on { border-bottom-color: var(--accent); color: var(--fg); font-weight: 600; }
.r-tabs .r-tools { margin-left: auto; display: flex; gap: 0.625rem; padding-bottom: 0.625rem; align-items: center; }
.r-body { flex: 1; min-height: 0; overflow-y: auto; }
.r-summary { padding: 1.75rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.r-summary .kpis { grid-column: 1 / -1; }
.q-card { border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.q-card .q-card-head { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8125rem; color: var(--muted); }
.q-card h3 { font-size: 1.625rem; letter-spacing: -.03em; font-weight: 700; line-height: 1.1; }
.bars { display: flex; flex-direction: column; gap: 0.875rem; }
.bar-row { display: grid; grid-template-columns: minmax(5rem, 8.75rem) 1fr 3.25rem; gap: 1rem; align-items: center; font-size: 0.9375rem; }
.bar-row > span:first-child { overflow-wrap: anywhere; }
.bar-track { height: 1.75rem; background: var(--panel); border-radius: 0.5rem; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0.5rem; background: var(--fg); }
.bar-fill.top { background: var(--accent); }
.bar-fill.low { background: var(--faint); }
.bar-row .pct { font-family: var(--mono); text-align: right; }
.dist svg { width: 100%; height: 10.625rem; display: block; }
.dist-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.text-answers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; max-height: 18.75rem; overflow-y: auto; }
.text-answers li { background: var(--panel); border-radius: 0.75rem; padding: 0.625rem 0.875rem; font-size: 0.9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.big-stat { font-size: 3.5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.big-stat .serif { color: var(--accent); }

.r-resp { display: grid; grid-template-columns: minmax(0, 1fr) 27.5rem; min-height: 100%; }
.r-resp.no-drawer { grid-template-columns: minmax(0, 1fr); }
.r-list { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.r-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.r-table { display: flex; flex-direction: column; border-top: 1px solid var(--line); overflow-x: auto; }
.r-row { display: grid; gap: 1rem; padding: 1rem 0.5rem; font-size: 0.9375rem; border-bottom: 1px solid var(--line); border-radius: 0.625rem; cursor: pointer; align-items: center; min-width: 35rem; }
.r-row:hover { background: var(--panel); }
.r-row.on { background: var(--panel); box-shadow: inset 0.1875rem 0 0 var(--accent); }
.r-row.head { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0.75rem 0.5rem; cursor: default; }
.r-row.head:hover { background: none; }
.r-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-btn { background: none; border: 0; cursor: pointer; color: var(--dim); font-size: 1rem; padding: 0; }
.star-btn.on { color: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); gap: 0.75rem; }
.drawer { border-left: 1px solid var(--line); background: var(--panel); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.375rem; overflow-y: auto; min-height: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--muted); flex-wrap: wrap; }
.drawer-item { display: flex; flex-direction: column; gap: 0.375rem; border-top: 1px solid var(--line); padding-top: 1.125rem; }
.drawer-item small { font-size: 0.8125rem; color: var(--muted); }
.drawer-item div { font-size: 1.25rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-item div.none { color: var(--dim); font-size: 1rem; }
.drawer-actions { margin-top: auto; display: flex; gap: 0.5rem; }
.drawer-actions .btn { flex: 1; }

/* =====================================================================
   Teilnehmer-Ansicht (R1–R6) – Farben über Theme-Variablen
   ===================================================================== */
.rs {
  --s-bg: #121014; --s-fg: #F2EEE8; --s-muted: #9A949F; --s-line: #2C2830; --s-surface: #1A171D;
  --s-accent: oklch(0.88 0.2 125); --s-on-accent: #121014; --s-error: #FFB4A8; --s-error-bg: #2A1A1C;
  --s-head: var(--font); --s-r-opt: 0.875rem; --s-r-btn: 6.1875rem; --s-r-card: 1.5rem;
  min-height: 100vh; background: var(--s-bg); color: var(--s-fg);
}
.rs-frame { min-height: 100vh; display: flex; }
.rs-frame.split { display: grid; grid-template-columns: 1fr 1fr; }
.rs-cover { background: repeating-linear-gradient(135deg, var(--s-surface) 0 0.75rem, transparent 0.75rem 1.5rem); background-size: cover; background-position: center; position: sticky; top: 0; height: 100vh; }
.rs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; width: 100%; max-width: 47.5rem; margin: 0 auto; padding: 0 1.75rem; }
.rs-frame.split .rs-main { max-width: none; padding: 0 clamp(1.75rem, 5.5vw, 5rem); }
.rs-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 1.75rem 0 0; }
.rs-head .logo { font-size: 1.25rem; }
.rs-head .logo-mark i:nth-child(2) { background: var(--s-accent); }
.rs-logo { max-height: 2rem; max-width: 10rem; object-fit: contain; }
.rs .lang-toggle { border-color: var(--s-line); }
.rs .lang-toggle button { color: var(--s-muted); }
.rs .lang-toggle button.on { background: var(--s-line); color: var(--s-fg); }
.rs-nav { display: flex; flex-direction: column; gap: 0.875rem; padding-top: 1.5rem; }
.rs-nav-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); min-height: 1.25rem; }
.rs-back { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.rs-back:hover { color: var(--s-fg); }
.rs-segs { display: flex; gap: 0.375rem; }
.rs-segs i { flex: 1; height: 0.1875rem; border-radius: 6.1875rem; background: var(--s-line); display: block; }
.rs-segs i.done { background: var(--s-accent); }
.rs-segs i.cur { background: var(--s-fg); }
.rs-bar { height: 0.25rem; border-radius: 6.1875rem; background: var(--s-line); overflow: hidden; }
.rs-bar i { display: block; height: 100%; background: var(--s-accent); border-radius: 6.1875rem; transition: width .3s; }
.rs-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 3rem 0 1.5rem; }
.rs-body.top { justify-content: flex-start; }
.rs-enter { animation: rs-in .28s ease-out; }
@keyframes rs-in { from { opacity: 0; transform: translateY(0.875rem); } }
.rs-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.75rem 0; }
.rs-hint { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); }
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.625rem; border-radius: var(--s-r-btn);
  font-weight: 700; font-size: 1rem; border: 1px solid var(--s-accent); background: var(--s-accent); color: var(--s-on-accent);
  cursor: pointer; white-space: nowrap; transition: filter .15s, transform .05s;
}
.rs-btn:hover { filter: brightness(1.06); }
.rs-btn:active { transform: translateY(1px); }
.rs-btn:disabled { opacity: .5; cursor: wait; }
.rs-btn:focus-visible { outline: 0.125rem solid var(--s-fg); outline-offset: 0.1875rem; }
.rs-btn.light { background: var(--s-fg); border-color: var(--s-fg); color: var(--s-bg); }
.rs-btn.outline { background: transparent; color: var(--s-fg); border-color: var(--s-fg); font-weight: 600; }
.rs-btn.block { width: 100%; padding: 1.125rem; font-size: 1.125rem; }
.rs-label { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-accent); }
.rs-h1 { font-family: var(--s-head); font-size: clamp(2.75rem, 8vw, 4.5rem); line-height: .92; letter-spacing: -.055em; font-weight: 800; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.rs-h2 { font-family: var(--s-head); font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1; letter-spacing: -.045em; font-weight: 700; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.rs-h2 .req { color: var(--s-accent); }
.rs .acc, .edit-card .acc { color: var(--s-accent); }
.rs-lead { font-size: 1.0625rem; line-height: 1.5; color: var(--s-muted); }
.rs-desc { font-size: 0.9375rem; color: var(--s-muted); margin-top: -0.75rem; }
.rs-img { border-radius: var(--s-r-opt); max-height: 21.25rem; object-fit: contain; align-self: flex-start; }
.rs-note { font-size: 0.875rem; color: var(--s-muted); border: 1px solid var(--s-line); border-radius: 0.75rem; padding: 0.625rem 0.875rem; }
.rs-error { display: flex; align-items: center; gap: 0.625rem; background: var(--s-error-bg); color: var(--s-error); padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; }
.rs-error::before { content: '!'; font-family: var(--mono); }

/* Code-Eingabe */
.rs-code { width: 100%; border: 0; border-bottom: 0.125rem solid var(--s-fg); background: transparent; color: var(--s-fg); padding: 0.75rem 0; font-family: var(--mono); font-size: 2rem; letter-spacing: .14em; text-transform: uppercase; outline: none; }
.rs-code::placeholder { color: var(--s-line); }
.rs-code:focus { border-bottom-color: var(--s-accent); }

/* Antwortoptionen */
.rs-opts { display: flex; flex-direction: column; border-top: 1px solid var(--s-line); }
.rs-opt {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0.25rem; border: 0; border-bottom: 1px solid var(--s-line);
  background: transparent; color: var(--s-fg); font-size: 1.25rem; text-align: left; cursor: pointer; width: 100%;
  transition: background .12s, padding .12s, border-radius .12s;
}
.rs-opt:hover { background: var(--s-surface); }
.rs-opt:focus-visible { outline: 0.125rem solid var(--s-accent); outline-offset: -0.125rem; }
.rs-opt .key { font-family: var(--mono); font-size: 0.75rem; border: 1px solid var(--s-muted); border-radius: 0.375rem; padding: 0.125rem 0.5rem; color: var(--s-muted); flex: none; }
.rs-opt .chk { margin-left: auto; font-weight: 700; }
.rs-opt.on { background: var(--s-accent); color: var(--s-on-accent); border-radius: var(--s-r-opt); padding: 1.25rem 1rem; border-bottom-color: transparent; }
.rs-opt.on .key { border-color: var(--s-on-accent); color: var(--s-on-accent); }
.rs-other { width: 100%; border: 0; border-bottom: 0.125rem solid var(--s-fg); background: transparent; color: var(--s-fg); font-size: 1.25rem; padding: 0.625rem 0; outline: none; margin-top: 0.5rem; }
.rs-other:focus { border-bottom-color: var(--s-accent); }
.rs-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.rs-yesno .rs-opt { border: 1px solid var(--s-line); border-radius: var(--s-r-opt); justify-content: center; padding: 1.75rem 1rem; font-size: 1.375rem; font-weight: 600; }

/* Text */
.rs-text { width: 100%; border: 0; border-bottom: 0.125rem solid var(--s-fg); background: transparent; color: var(--s-fg); font-size: 1.375rem; padding: 0.75rem 0; outline: none; font-family: inherit; }
.rs-text:focus { border-bottom-color: var(--s-accent); }
.rs-text::placeholder { color: var(--s-muted); opacity: .6; }
textarea.rs-text { min-height: 7.5rem; resize: vertical; line-height: 1.4; }
.rs-text[type=date] { color-scheme: dark light; }
.rs-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); }

/* Slider */
.rs-slider-val { font-family: var(--serif); font-style: italic; font-size: clamp(7.5rem, 26vw, 11.25rem); line-height: 1; color: var(--s-accent); }
.rs-slider-val.untouched { opacity: .35; }
.rs-range { -webkit-appearance: none; appearance: none; width: 100%; height: 1.875rem; background: transparent; cursor: pointer; --p: 50%; }
.rs-range::-webkit-slider-runnable-track { height: 0.375rem; border-radius: 6.1875rem; background: linear-gradient(to right, var(--s-fg) var(--p), var(--s-line) var(--p)); }
.rs-range::-moz-range-track { height: 0.375rem; border-radius: 6.1875rem; background: var(--s-line); }
.rs-range::-moz-range-progress { height: 0.375rem; border-radius: 6.1875rem; background: var(--s-fg); }
.rs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--s-accent); border: 0.125rem solid var(--s-fg); margin-top: -0.75rem; }
.rs-range::-moz-range-thumb { width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--s-accent); border: 0.125rem solid var(--s-fg); }
.rs-range:focus-visible { outline: 0.125rem solid var(--s-accent); outline-offset: 0.375rem; border-radius: 6.1875rem; }
.rs-ends { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--s-muted); }
.rs-ends span:last-child { text-align: right; }

/* Skalen / NPS */
.rs-boxes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.5rem; }
.rs-box {
  aspect-ratio: 1; border: 1.5px solid var(--s-line); border-radius: min(var(--s-r-opt), 0.75rem); display: grid; place-items: center;
  font-size: 1.125rem; background: transparent; color: var(--s-fg); cursor: pointer; min-width: 0; padding: 0;
}
.rs-box:hover { background: var(--s-surface); }
.rs-box.on { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-on-accent); font-weight: 700; }
.rs-box:focus-visible { outline: 0.125rem solid var(--s-accent); outline-offset: 0.125rem; }
.rs-boxes.many { gap: 0.3125rem; }
.rs-boxes.many .rs-box { font-size: 0.9375rem; }

/* Sterne */
.rs-stars { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.rs-star { background: none; border: 0; font-size: 3rem; line-height: 1; color: var(--s-line); cursor: pointer; padding: 0 0.125rem; transition: transform .1s, color .1s; }
.rs-star.on { color: var(--s-accent); }
.rs-star:hover { transform: scale(1.1); }
.rs-star:focus-visible { outline: 0.125rem solid var(--s-accent); border-radius: 0.5rem; }

/* Rangfolge */
.rs-rank { display: flex; flex-direction: column; gap: 0.5rem; }
.rs-rank-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.75rem 0.75rem 1rem; border: 1px solid var(--s-line); border-radius: var(--s-r-opt); font-size: 1.125rem;
  background: var(--s-bg); position: relative; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .22s cubic-bezier(.2, .8, .25, 1), box-shadow .2s, border-color .2s; }
.rs-rank.sorting .rs-rank-item { cursor: grabbing; }
.rs-rank-item.dragging { z-index: 2; transition: box-shadow .2s, border-color .2s; border-color: var(--s-accent); box-shadow: 0 1rem 2.25rem -0.75rem rgba(0,0,0,.45); }
.rs-rank-item.settling { z-index: 2; border-color: var(--s-accent); }
.rs-grip { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border: 0; border-radius: 0.625rem; background: transparent; color: var(--s-muted); cursor: grab; touch-action: none; }
.rs-grip:hover, .rs-grip:focus-visible { color: var(--s-fg); background: var(--s-line); outline: none; }
.rs-grip svg { width: 1.375rem; height: 1.375rem; }
.rs-rank-item .pos { font-family: var(--mono); font-size: 0.8125rem; color: var(--s-accent); width: 1.375rem; }
.rs-rank-item .lbl { flex: 1; min-width: 0; }

.rs-select { width: 100%; border: 1px solid var(--s-fg); border-radius: var(--s-r-opt); padding: 1rem 1.125rem; background: var(--s-bg); color: var(--s-fg); font-size: 1.125rem; }

/* Danke + Live-Ergebnisse */
.rs-live { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.rs-live-row { display: flex; flex-direction: column; gap: 0.375rem; }
.rs-live-row .top { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9375rem; }
.rs-live-row .top .mono { font-family: var(--mono); }
.rs-live-track { height: 0.625rem; border-radius: 6.1875rem; background: var(--s-line); overflow: hidden; }
.rs-live-track i { display: block; height: 100%; border-radius: 6.1875rem; background: var(--s-accent); }
.rs-live-q { font-size: 0.8125rem; color: var(--s-muted); margin-top: 0.375rem; }
.rs-branding { font-family: var(--mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); text-align: center; }
.rs-list { display: flex; flex-direction: column; gap: 0.625rem; }
.rs-list-item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 1.125rem 1.25rem; border: 1px solid var(--s-line); border-radius: var(--s-r-opt); background: transparent; color: var(--s-fg); font-size: 1.125rem; cursor: pointer; text-align: left; }
.rs-list-item:hover { background: var(--s-surface); }
.rs-ident { display: flex; flex-direction: column; gap: 1rem; }
.rs-ident label { display: flex; flex-direction: column; gap: 0.375rem; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); }
.rs-ident .rs-text { font-size: 1.125rem; text-transform: none; letter-spacing: 0; font-family: var(--font); }

/* Klassisch scrollen */
.rs-classic { display: flex; flex-direction: column; gap: 3.5rem; padding: 2.5rem 0; }
.rs-classic .rs-q { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--s-line); }
.rs-classic .rs-h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
.rs-q.has-error .rs-h2 { color: var(--s-error); }

/* Vorschau-Banner */
.preview-banner { position: fixed; top: 0.75rem; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; padding: 0.375rem 0.875rem; border-radius: 6.1875rem; }
.preview-close {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 6.1875rem; padding: 0.75rem 1.375rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.35);
}
.preview-close:hover { opacity: .9; }
/* Platz unten, damit der Button keine Weiter-Buttons verdeckt */
.rs.has-preview { padding-bottom: 5rem; }
.rs.has-preview .rs-frame { min-height: calc(100vh - 5rem); }
.rs.has-preview .rs-cover { height: calc(100vh - 5rem); }

/* =====================================================================
   Schriften der Umfrage (Theme-Variablen)
   ===================================================================== */
.rs, .edit-card, .dp-desk, .dp-mob { font-family: var(--s-body, var(--font)); }
.rs-h1, .rs-h2, .edit-card h1.ce, .edit-card h2.ce, .dp-inner h3 { letter-spacing: var(--s-track, -.045em); }
.rs-h1, .edit-card h1.ce { font-weight: var(--s-hw, 800); }
.rs-h2, .edit-card h2.ce, .dp-inner h3 { font-weight: min(var(--s-hw, 700), 700); }

/* =====================================================================
   Neue Umfrage: Startkarte, Einblenden, Hervorhebung
   ===================================================================== */
.intro-stage {
  flex: 1; min-height: 0; overflow-y: auto; background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.375rem; padding: 3rem 1.25rem;
}
.intro-card { animation: pop-in .6s cubic-bezier(.2, .9, .25, 1.12) both; box-shadow: 0 2.5rem 5.625rem -1.875rem rgba(0,0,0,.7); }
.intro-card.pop-out { animation: pop-out .38s cubic-bezier(.55, 0, .75, .1) forwards; }
.intro-hint { animation: fade .6s .35s both; text-align: center; }
.intro-hint.fade-out { animation: fade-out .25s forwards; }
@keyframes pop-in { from { opacity: 0; transform: translateY(2.875rem) scale(.9); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-2.25rem) scale(.93); } }
@keyframes fade-out { to { opacity: 0; } }
.intro-req {
  display: flex; align-items: center; gap: 0.875rem; cursor: pointer; padding: 0.875rem 1rem;
  border: 1px solid var(--s-line); border-radius: 0.875rem; color: var(--s-fg);
}
.intro-req span:last-child { display: flex; flex-direction: column; gap: 0.125rem; }
.intro-req b { font-weight: 600; font-size: 0.9375rem; }
.intro-req small { color: var(--s-muted); font-size: 0.8125rem; }
.intro-card .rs-btn { font-size: 1.0625rem; padding: 1rem 1.875rem; }
.b-top.dim .seg, .b-top.dim .b-top-right, .b-top.dim #savePill { opacity: .2; pointer-events: none; transition: opacity .3s; }

@keyframes slide-l { from { opacity: 0; transform: translateX(-2.5rem); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(2.5rem); } }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } }
.builder.reveal .pane-l { animation: slide-l .55s cubic-bezier(.2, .8, .2, 1) both; }
.builder.reveal .canvas { animation: rise .55s .12s cubic-bezier(.2, .8, .2, 1) both; }
.builder.reveal .pane-r { animation: slide-r .55s .2s cubic-bezier(.2, .8, .2, 1) both; }
.builder.reveal .b-top .seg, .builder.reveal .b-top-right { animation: fade .5s .3s both; }

.pane-l.attn { position: relative; animation: attn-glow 1.8s ease-in-out infinite; }
@keyframes attn-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px oklch(0.88 0.2 125 / .25), inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 0 0.125rem var(--accent), inset 0 0 3.125rem oklch(0.88 0.2 125 / .12); }
}
.add-dashed.attn { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; animation: attn-btn 1.8s ease-in-out infinite; }
@keyframes attn-btn { 50% { transform: scale(1.03); box-shadow: 0 0 0 0.375rem oklch(0.88 0.2 125 / .15); } }
.attn-hint { font-size: 0.8125rem; color: var(--accent); text-align: center; line-height: 1.45; padding: 0.25rem 0.5rem; animation: fade .5s .6s both; }
.canvas-empty { max-width: 27.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.875rem; animation: rise .5s .2s both; }
.canvas-empty h3 { font-size: 2rem; letter-spacing: -.04em; font-weight: 700; }
.canvas-empty p { color: var(--muted); line-height: 1.5; }
.ce-plus {
  width: 4.5rem; height: 4.5rem; border-radius: 50% 50% 50% 0; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 2.125rem; border: 1px dashed var(--accent); margin-bottom: 0.375rem;
}

/* Stilvorlagen & Schriften (Design-Tab) */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.preset {
  display: flex; flex-direction: column; gap: 0.1875rem; padding: 0.5rem 0.5rem 0.625rem; border-radius: 1rem; text-align: left;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; transition: border-color .15s, transform .1s;
}
.preset:hover { border-color: var(--line-2); transform: translateY(-1px); }
.preset.on { border: 0.125rem solid var(--accent); padding: 0.4375rem 0.4375rem 0.5625rem; }
.preset-art { height: 3.625rem; border-radius: 0.625rem; display: flex; align-items: center; justify-content: space-between; padding: 0 0.875rem; margin-bottom: 0.375rem; border: 1px solid rgba(127,127,127,.18); }
.preset-art span { font-size: 1.625rem; line-height: 1; }
.preset-art i { width: 2.125rem; height: 0.875rem; display: block; }
.preset b { font-size: 0.875rem; font-weight: 600; padding: 0 0.25rem; }
.preset small { font-size: 0.75rem; color: var(--muted); padding: 0 0.25rem; line-height: 1.35; }
/* Einstellungen: Standard-Theme als Button mit Vorschau, Auswahl im Fenster */
.theme-pick { display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0.875rem 0.375rem 0.375rem; border: 1px solid var(--line); border-radius: 0.875rem; background: none; color: var(--fg); font: inherit; cursor: pointer; }
.theme-pick:hover { border-color: var(--line-2); background: var(--panel); }
.theme-pick b { font-size: 0.9375rem; font-weight: 600; }
.theme-pick-art { width: 4.5rem; height: 2.375rem; border-radius: 0.5625rem; display: flex; align-items: center; justify-content: space-between; padding: 0 0.5rem; border: 1px solid rgba(127,127,127,.18); flex: none; }
.theme-pick-art span { font-size: 1.125rem; line-height: 1; }
.theme-pick-art i { width: 1.25rem; height: 0.5rem; border-radius: 99rem; display: block; }
.theme-pick-change { font-size: 0.8125rem; color: var(--accent); margin-left: 0.25rem; }
.theme-grid { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.875rem; }
.theme-grid .preset-art { height: 6rem; padding: 0 1.25rem; }
.theme-grid .preset-art span { font-size: 2.5rem; }
.theme-grid .preset-art i { width: 3rem; height: 1.125rem; }
.font-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.font-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.875rem; text-align: left;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; min-width: 0;
}
.font-card:hover { border-color: var(--line-2); }
.font-card.on { border-color: var(--accent); background: var(--raised); }
.fc-aa { font-size: 1.625rem; line-height: 1; width: 2.5rem; flex: none; }
.font-card.on .fc-aa { color: var(--accent); }
.fc-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-txt b { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-txt small { font-size: 0.75rem; color: var(--muted); }

/* =====================================================================
   Tutorial
   ===================================================================== */
.tour { position: fixed; inset: 0; z-index: 400; opacity: 0; transition: opacity .3s; }
.tour.on { opacity: 1; }
.tour-block { position: absolute; inset: 0; }
.tour-spot {
  position: absolute; border-radius: 1rem; pointer-events: none;
  box-shadow: 0 0 0 624.938rem rgba(8, 7, 10, .74), 0 0 0 0.125rem var(--accent), 0 0 2.5rem 0.25rem oklch(0.88 0.2 125 / .35);
  transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1);
}
.tour-spot::after {
  content: ''; position: absolute; inset: -0.375rem; border-radius: 1.25rem; border: 0.125rem solid var(--accent);
  animation: spot-pulse 1.8s ease-out infinite;
}
@keyframes spot-pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.tour-spot.none { box-shadow: 0 0 0 624.938rem rgba(8, 7, 10, .74); }
.tour-spot.none::after { display: none; }
.tour-card {
  position: absolute; width: 23.75rem; max-width: calc(100vw - 1.5rem); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 1.375rem; padding: 1.375rem; display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: 0 1.875rem 5rem rgba(0, 0, 0, .55);
  transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1), opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tour-card.hide { opacity: 0; transform: translateY(0.625rem) scale(.97); pointer-events: none; }
.tour-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.tour-head .mono-label { color: var(--accent); }
.tour-sections { display: flex; gap: 0.3125rem; }
.tour-sections button { flex: 1; height: 0.25rem; border: 0; padding: 0; border-radius: 6.1875rem; background: var(--line-2); cursor: pointer; transition: background .3s; }
.tour-sections button.done { background: oklch(0.88 0.2 125 / .45); }
.tour-sections button.on { background: var(--accent); }
.tour-card h3 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 700; margin-top: 0.25rem; }
.tour-card p { color: var(--fg-2); line-height: 1.55; font-size: 0.9375rem; }
.tour-dots { display: flex; gap: 0.3125rem; margin-top: 0.125rem; }
.tour-dots i { width: 0.375rem; height: 0.375rem; border-radius: 6.1875rem; background: var(--line-2); transition: width .3s, background .3s; }
.tour-dots i.done { background: var(--fg-2); }
.tour-dots i.on { width: 1.25rem; background: var(--accent); }
.tour-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.375rem; }
/* Buttons rechts als Gruppe; wird es eng, rutschen sie in eine eigene Zeile statt überzulaufen */
.tour-btns { display: flex; gap: 0.5rem; margin-left: auto; }
.tour-btns .btn { white-space: nowrap; }
.tour-skip { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.tour-skip:hover { color: var(--fg); }
.tour-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding: 0.5rem 0.25rem; }
.tour-check {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
  font-size: 1.875rem; font-weight: 800; animation: pop-in .6s cubic-bezier(.2, .9, .25, 1.3) both;
}

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 700px) {
  .tour-card { left: 0.75rem !important; right: 0.75rem; top: auto !important; bottom: 0.75rem; width: auto; }
  .presets { gap: 0.5rem; }
}
@media (max-width: 1180px) {
  .b-body.content { grid-template-columns: 15rem minmax(0, 1fr) 18.75rem; }
  .b-body.logic { grid-template-columns: 26.25rem minmax(0, 1fr); }
  .b-body.design { grid-template-columns: 21.25rem minmax(0, 1fr); }
  .r-resp { grid-template-columns: minmax(0, 1fr) 22.5rem; }
  .login { grid-template-columns: 1fr 30rem; }
}

@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { min-height: auto; padding: 2rem 1.5rem 0; gap: 1.5rem; }
  .login-hero h1 { font-size: min(15vw, 7.5rem); margin-bottom: 4.5rem; }
  .login-hero svg { height: 5.625rem; }
  .login-panel { border-left: 0; border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; }
  /* Am Handy zuerst: wer nur teilnehmen will, sieht es sofort */
  .code-join-wrap { order: -1; }
  .code-join-wrap .or-sep { order: 1; }

  /* Admin: oben schmale Leiste, Navigation als Tab-Leiste unten */
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; gap: 0.5rem; background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { padding: 0; }
  .team-switch { margin: 0 auto 0 0.25rem; padding: 0.375rem 0.625rem; min-width: 0; max-width: 42vw; }
  .team-switch .mono-label { display: none; }
  .team-switch b { font-size: 0.875rem; }
  /* Ausklapp-Menü behält am Handy den Aufbau der Desktop-Seitenleiste */
  .side.drawer { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1.25rem 1rem; gap: 0.375rem; border-bottom: 0; z-index: auto; }
  .side.drawer .logo { padding: 0 0.625rem 1.25rem; }
  .side.drawer .team-switch { margin: 0 0 0.875rem; padding: 0.625rem 0.75rem; max-width: none; }
  .side.drawer .team-switch .mono-label { display: block; }
  .side.drawer .nav { position: static; flex-direction: column; gap: 0.375rem; padding: 0; background: none; border: 0; }
  .side.drawer .nav a { flex: none; flex-direction: row; gap: 0.75rem; padding: 0.6875rem 0.75rem; font-size: 0.9375rem; justify-content: flex-start; text-align: left; }
  .side.drawer .side-foot { margin-top: auto; flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .side.drawer .side-foot .lang-toggle { display: inline-flex; align-self: flex-start; }
  .side.drawer .user-card { padding: 0.75rem; border: 1px solid var(--line); gap: 0.625rem; }
  .side.drawer .user-card .who { display: flex; }
  @media (max-width: 480px) {
    /* Platz für den Teamnamen; Sprache bleibt in den Einstellungen umschaltbar */
    .side:not(.drawer):has(.team-switch) .side-foot .lang-toggle { display: none; }
  }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; flex-direction: row; gap: 0.25rem;
    padding: 0.375rem 0.75rem calc(0.375rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .nav a { flex: 1; flex-direction: column; gap: 0.125rem; padding: 0.4375rem 0.25rem; font-size: 0.75rem; justify-content: center; text-align: center; }
  .nav a .ico { font-size: 1.0625rem; width: auto; }
  .side-foot { margin: 0; flex-direction: row; align-items: center; gap: 0.375rem; }
  .user-card { padding: 0; border: 0; gap: 0.25rem; }
  .user-card .avatar { width: 1.875rem; height: 1.875rem; font-size: 0.875rem; }
  .user-card .who { display: none; }
  .main { padding: 1.5rem 1rem calc(6rem + env(safe-area-inset-bottom)); gap: 1.375rem; }
  body:has(.shell) .toasts { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  .kpi { padding: 1rem 1.125rem; }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-head h1 { font-size: 2.375rem; }
  .search { width: 100%; }
  .head-actions { width: 100%; }
  .head-actions .search { flex: 1; width: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-val { font-size: 1.875rem; }
  .s-row { grid-template-columns: minmax(0, 1fr) auto 2.5rem; }
  .s-row > .c-resp, .s-row > .c-spark, .s-row > .c-upd { display: none; }
  .s-row.head > .c-resp, .s-row.head > .c-spark, .s-row.head > .c-upd { display: none; }
  .set-section { grid-template-columns: 1fr; gap: 1rem; }
  .set-grid { grid-template-columns: 1fr; }
  .start-cards, .tpl-list { grid-template-columns: 1fr; gap: 0.5rem; }
  .start-card { flex-direction: row; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border-radius: 1rem; }
  .start-card.on { padding: 0.8125rem 0.9375rem; }
  .start-card .ico { width: 1.5rem; text-align: center; flex: none; }
  .start-card b { font-size: 1.0625rem; }
  .start-card span.sub { font-size: 0.8125rem; margin-top: 0.125rem; }
  .tpl { padding: 0.75rem 0.875rem; }

  .modal-backdrop { padding: 0.75rem; place-items: start center; }
  .modal, .modal.wide { padding: 1.375rem 1.125rem; border-radius: 1.375rem; gap: 1.25rem; }
  .modal-head h2, .modal-head h2[style] { font-size: 1.625rem !important; }
  .modal-head .search { width: 100%; }
  .modal-actions .btn { flex: 1; }

  .type-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem 0.5rem; }
  .type-col { gap: 0.125rem; min-width: 0; }
  .type-item { padding: 0.5rem; gap: 0.5rem; font-size: 0.875rem; min-width: 0; line-height: 1.2; }
  .type-ico { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }
  .type-foot { grid-template-columns: 1fr; gap: 0.875rem; padding-top: 1.125rem; }
  .type-foot b { font-size: 1.0625rem; }
  .type-foot p { font-size: 0.875rem; }

  .builder { height: auto; min-height: 100vh; overflow: visible; overflow-x: clip; }
  .b-top {
    height: auto; display: flex; flex-wrap: wrap; gap: 0.625rem; padding: 0.625rem 0.75rem;
    position: sticky; top: 0; z-index: 30; background: var(--bg);
  }
  .b-top-left { flex: 1 1 100%; gap: 0.375rem; }
  .b-top-left .logo-mark { display: none; }
  .b-title { flex: 1; width: auto !important; min-width: 0; max-width: none; font-size: 1.0625rem; }
  .b-top #savePill { font-size: 0.625rem; padding: 0.1875rem 0.5rem; }
  .b-top-right { order: 2; flex: 1 1 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.5rem; }
  .b-top-right .btn { padding: 0.5625rem 0.75rem; font-size: 0.8125rem; min-width: 0; }
  .b-top .seg { order: 3; flex: 1 1 100%; display: flex; gap: 0.125rem; padding: 0.1875rem; }
  .b-top .seg button { flex: 1 1 auto; padding: 0.5rem 0.25rem; font-size: 0.7813rem; letter-spacing: -.01em; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
  .b-body.content, .b-body.logic, .b-body.design, .b-body.share { grid-template-columns: minmax(0, 1fr); }
  .b-body > * { min-width: 0; }
  .pane { overflow: visible; }
  .pane-l .outline { overflow-x: auto; }
  .pane-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .pane-r { border-left: 0; border-top: 1px solid var(--line); }
  /* Inhalt: Gliederung als horizontale Chip-Leiste, Hinzufügen-Knopf bleibt rechts sichtbar */
  .canvas { padding: 1.25rem 0.75rem 4rem; }
  .canvas-top { display: none; }
  .canvas-hint { white-space: normal; padding: 0 1.25rem; line-height: 1.5; }
  .edit-card, .edit-card.mobile { width: 100%; padding: 1.625rem 1.25rem; gap: 1.25rem; border-radius: 1.25rem; }
  .edit-card h2.ce, .edit-card.mobile h2.ce { font-size: 1.75rem; }
  .edit-card h1.ce { font-size: 2.25rem; }
  .e-opt input { font-size: 1rem; }
  .canvas-empty { padding: 1.5rem 0.5rem; }
  .canvas-empty h3 { font-size: 1.625rem; }
  .outline { flex-direction: row; align-items: center; overflow-x: auto; padding: 0.625rem 0 0.625rem 0.75rem; gap: 0.375rem; scrollbar-width: none; }
  .outline::-webkit-scrollbar { display: none; }
  .outline .mono-label, .outline .attn-hint, .o-item .grip { display: none; }
  .o-item { width: auto; flex: none; max-width: 12.5rem; padding: 0.5rem 0.75rem; gap: 0.375rem; border-color: var(--line); border-radius: 6.1875rem; }
  .o-item .tag { min-width: 0; }
  .o-item.o-end { margin-top: 0; }
  .outline .add-dashed {
    margin: 0; width: auto; flex: none; padding: 0.5625rem 0.875rem; border-radius: 6.1875rem; white-space: nowrap;
    position: sticky; right: 0; background: var(--bg); box-shadow: -0.875rem 0 0.875rem var(--bg);
  }
  .outline .add-dashed:hover { background: var(--bg); }
  .props { padding: 1.25rem 1rem; }
  .share-col { padding: 1.5rem 1rem; gap: 1.5rem; }
  .share-col h3.big { font-size: 2.125rem; }
  .qr-row { grid-template-columns: 7.5rem 1fr; gap: 1rem; }
  .qr-box { width: 7.5rem; height: 7.5rem; border-radius: 0.875rem; padding: 0.375rem; }
  .row { flex-wrap: wrap; }
  .row-text { flex: 1 1 12.5rem; }
  .flow { padding: 1.5rem 1rem; min-height: 26.25rem; }
  .rules { padding: 1.25rem 1rem; }
  .design-panel { padding: 1.25rem 1rem; }
  .r-summary { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 1rem; gap: 0.875rem; }
  .q-card { padding: 1.25rem 1.125rem; }
  .q-card h3 { font-size: 1.375rem; }
  .r-tabs { padding: 0.75rem 1rem 0; flex-wrap: wrap; row-gap: 0.75rem; }
  .r-tabs .r-tools { order: -1; flex: 1 1 100%; margin: 0; padding: 0; justify-content: space-between; }
  .r-resp { grid-template-columns: 1fr; }
  .r-list { padding: 1.25rem 1rem; }
  .drawer { border-left: 0; border-top: 1px solid var(--line); }
  .design-preview { padding: 1.5rem 1rem; }
  .dp-desk { width: 100%; max-width: 35rem; height: 21.25rem; }
}

@media (max-width: 760px) {
  .rs-frame.split { display: flex; }
  .rs-frame.split .rs-cover { display: none; }
  .rs-frame.split .rs-main { padding: 0 1.5rem; }
  .rs-main { padding: 0 1.5rem; }
  .rs-opt { font-size: 1.125rem; padding: 1.125rem 0.25rem; }
  .rs-opt.on { padding: 1.125rem 0.875rem; }
  .rs-boxes.many { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rs-star { font-size: 2.5rem; }
  .rs-h1 { font-size: clamp(2rem, 9.6vw, 3.5rem); }
  .rs-h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .rs-head { padding-top: 1.25rem; }
  .rs-body { padding: 2rem 0 1.25rem; gap: 1.25rem; }
  .rs-foot { padding: 1rem 0 calc(1.25rem + env(safe-area-inset-bottom)); }
  .rs-foot > .rs-btn { flex: 1; padding: 1rem 1.25rem; }
  .rs-yesno .rs-opt { padding: 1.375rem 0.75rem; font-size: 1.25rem; }
  .rs-code { font-size: 1.75rem; }
  .bar-row { grid-template-columns: minmax(4.375rem, 6.875rem) 1fr 2.75rem; gap: 0.625rem; }
}

/* Touch-Geräte: Tastatur-Hinweise ("Enter drücken", "1–9") ausblenden */
@media (hover: none) and (pointer: coarse) {
  .rs-foot .rs-hint, .rs-meta span:first-child, .rs-opt .key, .canvas-hint { display: none; }
  .rs-meta { justify-content: flex-end; }
}
