/* frag-nicht – Stylesheet
   Keine externen Schriften oder Ressourcen (DSGVO). */

:root {
  --paper: #f5f2ec;
  --card: #ffffff;
  --ink: #1c1b19;
  --ink-2: #3d3b36;
  --muted: #6f6b62;
  --line: #e6e1d7;
  --line-2: #cfc8ba;
  --accent: #d9481f;
  --accent-hover: #c23d17;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6dd;
  --ok: #2c7a4b;
  --ok-soft: #ddf0e4;
  --warn: #946000;
  --warn-soft: #f8edd4;
  --err: #b8322a;
  --err-soft: #f9e1dd;
  --info: #3456c8;
  --info-soft: #e2e8fa;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 6px 20px rgba(28, 27, 25, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17171a;
    --card: #222226;
    --ink: #f2f0eb;
    --ink-2: #d6d3cc;
    --muted: #a39f96;
    --line: #34343a;
    --line-2: #4a4a52;
    --accent: #f0643c;
    --accent-hover: #ff7650;
    --accent-ink: #1a1210;
    --accent-soft: #3b2620;
    --ok: #6cc893;
    --ok-soft: #1f3528;
    --warn: #e6b44f;
    --warn-soft: #3a3020;
    --err: #f08a80;
    --err-soft: #3f2422;
    --info: #8fa8ff;
    --info-soft: #232b45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--line); padding: .1em .35em; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .85rem; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }

/* ---------- Wortmarke ---------- */
.wordmark { font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.wm-strike { position: relative; margin-left: .18em; color: var(--muted); font-weight: 700; }
.wm-strike::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 52%;
  height: .16em; background: var(--accent); border-radius: 2px; transform: rotate(-8deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px; padding: .55em 1.1em;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err-soft); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-sm { min-height: 34px; padding: .3em .85em; font-size: .9rem; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }
.inline-form { display: inline; margin: 0; }

/* ---------- Formulare ---------- */
.input, select.input, textarea.input {
  display: block; width: 100%;
  min-height: 46px; padding: .65em .8em;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 1rem; /* ≥16px: kein Auto-Zoom auf iOS */
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; }
.form label > .input, .form label > select, .form label > textarea { margin-top: .35rem; font-weight: 400; }
.form .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.form h2 { margin-top: 1.5rem; }
.form h2:first-child { margin-top: 0; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .35rem; font-weight: 400; }
.radio-row label { display: flex; gap: .4rem; align-items: center; margin: 0; font-weight: 500; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.plain legend { font-weight: 600; font-size: .95rem; padding: 0; }

/* ---------- Badges & Meldungen ---------- */
.badge {
  display: inline-block; padding: .15em .6em; border-radius: 999px;
  font-size: .78rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  background: var(--line); color: var(--ink-2); vertical-align: middle;
}
.badge-open { background: var(--ok-soft); color: var(--ok); }
.badge-scheduled { background: var(--info-soft); color: var(--info); }
.badge-closed { background: var(--line); color: var(--muted); }
.badge-draft { background: var(--warn-soft); color: var(--warn); }
.badge-core { background: var(--accent-soft); color: var(--accent); }
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--ok-soft); color: var(--ok); font-weight: 550; }
.flash-error { background: var(--err-soft); color: var(--err); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-info { background: var(--info-soft); color: var(--info); }

/* =================================================================
   ADMIN
   ================================================================= */
.admin { font-size: 15px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.page { padding-top: 1.5rem; padding-bottom: 3rem; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 58px; flex-wrap: wrap; }
.brand { font-size: 1.3rem; text-decoration: none; }
.mainnav { display: flex; gap: .25rem; margin-left: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mainnav a { padding: .45rem .75rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mainnav a:hover { color: var(--ink); background: var(--paper); }
.mainnav a.is-active { color: var(--ink); background: var(--paper); }
@media (max-width: 720px) {
  .topbar-inner { padding-top: .5rem; gap: .25rem; }
  .mainnav { margin-left: 0; width: 100%; padding-bottom: .5rem; }
}
.admin-foot { color: var(--muted); font-size: .8rem; padding-bottom: 2rem; }

.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }

.page-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0 0 .25rem; }
.page-head .sub { color: var(--muted); margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.section-title { margin: 2rem 0 .75rem; font-size: 1.05rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }

/* Kacheln */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
  min-height: 150px;
}
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile-kicker { font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile-title { font-size: 1.25rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.tile-stats { display: flex; gap: 1.25rem; margin-top: auto; }
.tile-stats div { display: flex; flex-direction: column; }
.tile-stats strong { font-size: 1.35rem; line-height: 1.1; }
.tile-stats span { font-size: .78rem; color: var(--muted); }
.tile-new { border-style: dashed; border-width: 1.5px; align-items: center; justify-content: center; color: var(--muted); font-weight: 650; box-shadow: none; background: transparent; }
.tile-new:hover { color: var(--ink); }
.tile-new .plus { font-size: 2rem; line-height: 1; font-weight: 300; }

/* Listen */
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1rem; align-items: center;
  padding: .9rem 0; border-top: 1px solid var(--line);
}
.list-item:first-child { border-top: 0; }
.list-date { text-align: center; min-width: 56px; padding: .35rem .4rem; border-radius: 10px; background: var(--paper); line-height: 1.1; }
.list-date .d { display: block; font-size: 1.25rem; font-weight: 750; }
.list-date .m { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 650; }
.list-main a { font-weight: 650; text-decoration: none; font-size: 1.02rem; }
.list-main a:hover { text-decoration: underline; }
.list-sub { color: var(--muted); font-size: .88rem; }
.list-side { display: flex; gap: 1rem; align-items: center; text-align: right; }
.metric { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.metric strong { font-size: 1.1rem; }
.metric span { font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) {
  .list-item { grid-template-columns: auto 1fr; }
  .list-side { grid-column: 2; justify-content: flex-start; text-align: left; flex-wrap: wrap; }
  .metric { align-items: flex-start; }
}

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-best td { background: var(--ok-soft); }
.table .names { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.heat { display: inline-block; min-width: 3.2em; padding: .15em .45em; border-radius: 6px; text-align: center; font-weight: 650; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.kpi strong { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.kpi span { font-size: .8rem; color: var(--muted); }

/* Ergebnisse */
.result-block { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.result-block:first-of-type { border-top: 0; padding-top: .25rem; }
.result-block h3 { margin-bottom: .6rem; font-size: 1rem; }
.result-block h3 .qn { color: var(--muted); font-weight: 600; margin-right: .35rem; }
.stat-row { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; flex-wrap: wrap; }
.stat-big { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-big small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-meta { font-size: .88rem; }
.dist { display: flex; gap: 6px; align-items: flex-end; height: 120px; max-width: 520px; }
.dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.dist-count { font-size: .78rem; color: var(--muted); height: 1.2em; }
.dist-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--paper); border-radius: 6px; overflow: hidden; }
.dist-bar div { width: 100%; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 0; }
.dist-key { font-size: .8rem; font-weight: 650; margin-top: .25rem; }
.bar { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr auto; gap: .75rem; align-items: center; margin-bottom: .5rem; font-size: .92rem; }
.bar-track { height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; min-width: 6.5em; text-align: right; }
@media (max-width: 560px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
.texts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.texts li { background: var(--paper); border-radius: var(--radius-sm); padding: .7rem .9rem; border-left: 3px solid var(--line-2); }
.rank-results { margin: 0; padding-left: 1.4rem; }
.rank-results li { margin-bottom: .35rem; }
.rank-results li .muted { margin-left: .5rem; font-size: .85rem; }

/* Teilen-Box */
.share { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .share { grid-template-columns: 1fr 220px; } }
.copy-field { display: flex; gap: .5rem; align-items: stretch; margin-bottom: .75rem; }
.copy-field .input { flex: 1; font-family: var(--mono); font-size: .9rem; }
.copy-block { margin-bottom: .75rem; }
.copy-block label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.qr-box { text-align: center; }
.qr-box .qr { background: #fff; border-radius: var(--radius-sm); padding: 10px; border: 1px solid var(--line); display: inline-block; line-height: 0; }
.qr-box .qr svg { width: 180px; height: 180px; display: block; }
.qr-box .btn-row { justify-content: center; margin-top: .6rem; }

/* Frageneditor */
.qedit { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; background: var(--card); }
.qedit > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  padding: .75rem .9rem;
}
.qedit > summary::-webkit-details-marker { display: none; }
.qedit > summary:hover { background: var(--paper); border-radius: var(--radius-sm); }
.qedit[open] > summary { border-bottom: 1px solid var(--line); }
.qedit-num { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.qedit-title { font-weight: 600; }
.qedit-title .badge { margin-left: .35rem; }
.qedit-type { color: var(--muted); font-size: .82rem; display: block; font-weight: 500; }
.qedit-body { padding: 1rem .9rem; }
.qedit-tools { display: flex; gap: .25rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.type-fields[hidden] { display: none; }
.qedit-section > summary .qedit-num { background: transparent; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li.ok { color: var(--ok); }
.checks li.fail { color: var(--err); font-weight: 650; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty p { margin-bottom: 1rem; }
.danger-zone { border-color: var(--err-soft); }
.login-card { max-width: 400px; margin: 10vh auto 0; }
.login-card h1 { text-align: center; font-size: 2rem; margin-bottom: 1.5rem; }

details.more > summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details.more[open] > summary { margin-bottom: .75rem; }

/* =================================================================
   ÖFFENTLICHE UMFRAGE
   ================================================================= */
.public { font-size: 17px; }
.pub { max-width: 680px; margin: 0 auto; padding: 28px 16px 24px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.pub-head { margin: 8px 4px 18px; }
.kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .4rem; }
.pub-title { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .35rem; }
.pub-meta { color: var(--muted); margin: 0; }
.pub-intro { margin: 0 4px 12px; font-size: 1.05rem; color: var(--ink-2); }
.pub-note { display: flex; gap: .5rem; align-items: center; margin: 0 4px 20px; color: var(--muted); font-size: .88rem; }
.pub-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.pub-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.pub-center { text-align: center; padding: 40px 22px; }
.lead { font-size: 1.15rem; }
.pub-foot { max-width: 680px; margin: 0 auto; padding: 18px 20px 40px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.pub-foot .wordmark { color: var(--ink); }
.pub-links { display: flex; gap: 1rem; }
.pub-links a { color: var(--muted); }
.preview-bar { background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .88rem; padding: .6rem .9rem; border-radius: var(--radius-sm); margin-bottom: 14px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: transparent; z-index: 30; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; border-radius: 0 3px 3px 0; }

.thanks-mark svg { width: 64px; height: 64px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .5rem; }
.thanks-mark circle { stroke: var(--ok-soft); fill: var(--ok-soft); }

/* Frage-Karten */
.q {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 20px; margin: 0 0 14px; box-shadow: var(--shadow); min-width: 0;
  transition: border-color .2s;
}
.q legend { float: left; width: 100%; padding: 0; margin-bottom: .75rem; font-weight: 650; font-size: 1.08rem; line-height: 1.35; }
.q legend + * { clear: both; }
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px; margin-right: .55rem; border-radius: 8px;
  background: var(--paper); color: var(--muted); font-size: .8rem; font-weight: 750; vertical-align: 2px;
}
.req { color: var(--accent); font-weight: 700; }
.q-help { color: var(--muted); font-size: .95rem; margin: -.25rem 0 .9rem; }
.q-hint { color: var(--muted); font-size: .85rem; margin: -.25rem 0 .75rem; }
.q-error { color: var(--err); font-weight: 600; font-size: .92rem; margin: -.25rem 0 .75rem; }
.q.has-error { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.form-error { background: var(--err-soft); color: var(--err); font-weight: 600; padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 14px; }
.q-section { margin: 28px 4px 12px; }
.q-section h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.q-section p { color: var(--muted); }

/* Skala */
.scale { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
.scale-11 { grid-template-columns: repeat(6, 1fr); }
@media (min-width: 600px) { .scale-11 { grid-template-columns: repeat(11, 1fr); gap: 6px; } }
.scale-opt, .choice, .dchoice { position: relative; margin: 0; }
.scale-opt input, .choice input, .dchoice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scale-opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; border: 1.5px solid var(--line-2); border-radius: 13px;
  font-weight: 700; font-size: 1.1rem; cursor: pointer; background: var(--card); user-select: none;
  transition: background .12s, border-color .12s, color .12s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.scale-11 .scale-opt span { min-height: 50px; font-size: 1rem; }
.scale-opt span:active { transform: scale(.96); }
.scale-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.scale-opt input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
@media (hover: hover) { .scale-opt span:hover { border-color: var(--ink); } }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.scale-ends span:last-child { text-align: right; }

/* Auswahl */
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 12px; align-items: center; cursor: pointer;
  padding: 13px 15px; min-height: 54px;
  border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--card);
  transition: border-color .12s, background .12s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .choice:hover { border-color: var(--ink); } }
.choice-mark { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-2); border-radius: 50%; position: relative; transition: all .12s; }
.choice-multi .choice-mark { border-radius: 6px; }
.choice input:checked ~ .choice-mark { border-color: var(--accent); background: var(--accent); }
.choice input:checked ~ .choice-mark::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible ~ .choice-mark { outline: 3px solid var(--info); outline-offset: 2px; }
.choice-text { line-height: 1.35; }
.choices.is-maxed .choice:not(:has(input:checked)) { opacity: .5; }

/* Matrix */
.matrix { display: grid; gap: 0; }
.mrow { padding: 14px 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; padding-top: 4px; }
.mrow-label { font-weight: 550; margin-bottom: 10px; }
.matrix .scale-opt span { min-height: 48px; }

/* Ranking */
.rank { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--card);
  transition: transform .18s ease, border-color .2s, background .2s;
}
.rank-item.moved { border-color: var(--accent); background: var(--accent-soft); }
.rank-pos { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: .9rem; background: var(--paper); color: var(--muted); }
.rank.is-set .rank-pos { background: var(--accent); color: var(--accent-ink); }
.rank-text { flex: 1; line-height: 1.3; }
.rank-btns { display: flex; gap: 6px; }
.rank-btns button {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card);
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.rank-btns button:hover { border-color: var(--ink); }
.rank-btns button[disabled] { opacity: .3; cursor: default; }
.rank-btns svg { width: 20px; height: 20px; fill: currentColor; }
.rank-ok.is-set { border-color: var(--ok); color: var(--ok); }

/* Terminabfrage */
.dates { display: grid; gap: 0; }
.drow { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drow:first-child { border-top: 0; padding-top: 2px; }
.drow-label { font-weight: 600; }
.drow-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dchoice span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 6px;
  border: 1.5px solid var(--line-2); border-radius: 11px; cursor: pointer; font-weight: 600; font-size: .92rem; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.dchoice-yes input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.dchoice-maybe input:checked + span { background: var(--warn); border-color: var(--warn); color: #fff; }
.dchoice-no input:checked + span { background: var(--muted); border-color: var(--muted); color: var(--card); }
.dchoice input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
@media (min-width: 600px) {
  .drow { grid-template-columns: 1fr 330px; align-items: center; }
}

.submit-row { margin-top: 22px; }
.submit-row .small { margin-top: .75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =================================================================
   Druck (QR-Aushang)
   ================================================================= */
.print-page { background: #fff; color: #111; }
.poster { max-width: 720px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.poster .kicker { color: #d9481f; }
.poster h1 { font-size: 2.6rem; letter-spacing: -.03em; margin: .25rem 0 1.5rem; }
.poster .qr svg { width: 340px; height: 340px; }
.poster .lead { font-size: 1.4rem; margin-top: 1.5rem; }
.poster .url { font-family: var(--mono); font-size: 1.15rem; margin-top: .5rem; word-break: break-all; }
.poster .wordmark { font-size: 1.2rem; }
.print-actions { text-align: center; padding: 16px; }
@media print {
  .print-actions { display: none; }
  .poster { padding-top: 15mm; }
}
.q:not(.has-error) .q-error { display: none; }

/* Skala mit „k.A.“ und Live-Beschriftung */
.scale.has-na { grid-template-columns: repeat(5, 1fr) .9fr; }
.scale-na span { font-size: .85rem; font-weight: 650; color: var(--muted); border-style: dashed; }
.scale-na input:checked + span { background: var(--ink-2); border: 1.5px solid var(--ink-2); color: var(--card); }
.scale-chosen { color: var(--accent); font-weight: 650; }
.scale-ends .scale-chosen { flex: 1; text-align: center; }
.mrow-label .scale-chosen { margin-left: .4rem; font-size: .88rem; white-space: nowrap; }
.mrow-label .scale-chosen:not(:empty)::before { content: "· "; color: var(--muted); font-weight: 400; }
