/* =============================================================================
 * styles.css – SETR Customer Discovery
 * Ruhiges, typografisches Interview-Layout: viel Weißraum, große Karten.
 * Keine externen Fonts (System-Stack) → läuft auf jedem Webspace.
 * ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #3a4556;
  --muted: #6b7486;
  --line: #e2e6ec;
  --line-strong: #c9d0da;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --accent-line: #b9cbff;
  --req: #c2410c;
  --error: #b42318;
  --error-soft: #fef3f2;
  --ok: #0f7b4b;
  --warn-soft: #fff7e6;
  --warn-line: #f5d08a;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 4px 16px rgba(14, 23, 38, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 760px;
  --gutter: 16px;
  --nav-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b24;
    --ink: #eef2f7;
    --ink-2: #c3cad5;
    --muted: #8e98a8;
    --line: #253041;
    --line-strong: #364257;
    --accent: #6d93ff;
    --accent-ink: #0b1020;
    --accent-soft: #18233d;
    --accent-line: #3b5296;
    --req: #ff9a62;
    --error: #ff8a80;
    --error-soft: #2a1716;
    --warn-soft: #2a2312;
    --warn-line: #6b5520;
    --shadow: none;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.has-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Topbar + Fortschritt ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; flex-direction: column; gap: 10px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.brand-sub { color: var(--muted); font-size: 13px; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
#progress-section { font-weight: 600; color: var(--ink-2); }
.progress-track { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }

/* ---------- Stage / Screens ---------- */
.stage { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 48px; outline: none; }
.screen { display: flex; flex-direction: column; gap: 14px; }
.screen.enter { animation: enter .32s ease both; }
.screen.enter-back { animation: enterBack .32s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen.enter, .screen.enter-back { animation: none; }
  .progress-fill { transition: none; }
}

.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.display { margin: 0; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -.02em; font-weight: 750; }
.title { margin: 0; font-size: clamp(24px, 4.6vw, 32px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.title-claim { font-style: italic; }
.lead { margin: 0; font-size: 18px; color: var(--ink-2); }
.claim { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink-2); }
.note {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 15px; color: var(--ink-2);
}
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.meta-line { color: var(--ink) !important; }

/* Welcome */
.screen-welcome { gap: 20px; padding-top: 4vh; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* Fallkarte */
.case-card {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.case-card-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.case-card p { margin: 6px 0 0; font-size: 18px; font-weight: 500; }

/* ---------- Fragen ---------- */
.questions { display: flex; flex-direction: column; gap: 34px; margin-top: 18px; }
.question { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-label { padding: 0; font-size: 19px; font-weight: 650; line-height: 1.35; margin-bottom: 4px; }
.req { color: var(--req); font-weight: 700; }
.q-hint { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.q-control { margin-top: 14px; }
.q-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--error); min-height: 0; }
.q-error:empty { display: none; }
.question.has-error .q-control { border-radius: var(--radius); box-shadow: 0 0 0 2px var(--error-soft), 0 0 0 3px var(--error); }

/* Auswahlkarten */
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .choices-2col { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  text-align: left; padding: 16px 18px; min-height: 58px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s, transform .08s;
}
.choice:hover { border-color: var(--line-strong); }
.choice:active { transform: scale(.995); }
.choice.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.choice-indicator {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--line-strong); border-radius: 50%; position: relative; background: var(--surface);
}
.choice-indicator.is-box { border-radius: 6px; }
.choice.is-selected .choice-indicator { border-color: var(--accent); background: var(--accent); }
.choice.is-selected .choice-indicator::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-body { display: flex; flex-direction: column; gap: 3px; }
.choice-label { font-weight: 550; }
.choice-sub { font-size: 14px; color: var(--muted); }
.choices-large .choice { padding: 20px 22px; }
.choices-large .choice-label { font-size: 19px; font-weight: 700; }

.other-input, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 14px 16px; transition: border-color .15s;
}
.other-input { margin-top: 10px; }
.other-input:focus, .textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

/* Slider */
.slider-wrap { padding: 18px 18px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.slider { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.slider.is-untouched { opacity: .45; }
.slider-ticks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.tick {
  padding: 8px 0; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: transparent; font-weight: 650;
}
.tick.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slider-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.slider-labels span:last-child { text-align: right; }
.slider-readout { margin-top: 10px; font-size: 15px; }
.slider-readout.is-empty { color: var(--muted); font-style: italic; }

/* Ranking */
.ranking { display: flex; flex-direction: column; gap: 14px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; min-height: 56px;
  background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: var(--radius);
}
.rank-item.is-empty { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.rank-no { flex: 0 0 auto; font-weight: 800; font-size: 18px; min-width: 32px; color: var(--accent); }
.rank-item.is-empty .rank-no { color: var(--muted); }
.rank-label { flex: 1 1 auto; font-weight: 600; }
.rank-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 15px; line-height: 1;
}
.icon-btn:disabled { opacity: .35; }
.rank-pool-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rank-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 550; font-size: 15px;
}
.chip:hover:not(:disabled) { border-color: var(--accent); }
.chip:disabled { opacity: .4; }
.rank-status { font-size: 14px; color: var(--muted); }

/* Platzhalter */
.screen-placeholder { padding: 28px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink-2);
}
.planned { margin: 0; padding-left: 20px; color: var(--ink-2); }
.planned li { margin-bottom: 6px; }

/* Abschluss */
.screen-end { align-items: flex-start; gap: 18px; padding-top: 4vh; }
.check {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 28px; font-weight: 800;
}
.export-box { width: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.export-title { margin: 0 0 12px; font-weight: 650; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.export-meta { margin: 12px 0 0; font-size: 13px; color: var(--muted); word-break: break-all; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 12px; padding: 12px 22px; font-weight: 650; border: 1.5px solid transparent;
  min-height: 48px; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-xl { padding: 15px 34px; font-size: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn:disabled { opacity: .4; }

/* ---------- Navigationsleiste ---------- */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbar-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.navbar .btn-primary { min-width: 140px; }
.required-legend { font-size: 13px; color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .stage { padding-top: 26px; }
  .brand-sub { display: none; }
  .q-label { font-size: 18px; }
  .navbar .btn { flex: 1; }
  .required-legend { display: none; }
  .rank-item { flex-wrap: wrap; }
  .rank-actions { margin-left: auto; }
  .screen-placeholder { padding: 20px; }
}

/* =============================================================================
 * TEIL 2 – SETR Reveal, Mini-Prototype, Feature Test
 * ========================================================================== */

/* Feature Cards: 3 Spalten, alle gleichwertig */
@media (min-width: 640px) { .choices-3col { grid-template-columns: repeat(3, 1fr); } }
.choice.is-disabled { opacity: .45; cursor: not-allowed; }
.choice.is-disabled:hover { border-color: var(--line); }

/* Reveal – Screen 1 */
.screen-reveal { padding-top: 2vh; }
.reveal-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 9vw, 84px) 24px;
  border-radius: 22px; color: #fff;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(109, 147, 255, .35), transparent 60%),
    linear-gradient(160deg, #0e1726 0%, #15275a 60%, #1f4fd8 130%);
  box-shadow: 0 20px 50px rgba(14, 23, 38, .18);
}
.reveal-panel > * { margin: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-panel > :nth-child(2) { animation-delay: .15s; }
.reveal-panel > :nth-child(3) { animation-delay: .3s; }
.reveal-panel > :nth-child(4) { animation-delay: .45s; }
.reveal-panel > :nth-child(5) { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal-kicker { font-size: 14px; color: rgba(255, 255, 255, .65); margin-bottom: 26px !important; }
.reveal-mark { font-size: clamp(64px, 17vw, 128px); font-weight: 800; letter-spacing: .14em; line-height: 1; padding-left: .14em; }
.reveal-long { margin-top: 14px !important; font-size: clamp(15px, 2.6vw, 18px); letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
.reveal-tagline { margin-top: 30px !important; font-size: clamp(20px, 4.2vw, 28px); font-weight: 650; line-height: 1.3; }
.reveal-verbs { margin-top: 34px !important; font-size: 13px; letter-spacing: .03em; color: rgba(255, 255, 255, .5); }

/* Reveal – Screen 2 */
.screen-ask { gap: 22px; padding-top: 4vh; }
.ask-claim { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -.02em; font-weight: 750; }
.ask-claim-2 { color: var(--accent); }

/* Mini-Prototype: wirkt wie ein Produkt-Fenster */
.proto-frame { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 40px rgba(14, 23, 38, .10); overflow: hidden; }
.proto-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.proto-dots { display: flex; gap: 6px; }
.proto-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.proto-brand { font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.proto-badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink-2); }
.proto-body { padding: clamp(22px, 5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.proto-h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
.proto-sub { margin: 0; color: var(--muted); font-size: 17px; }
.proto-input {
  width: 100%; min-height: 140px; resize: vertical; margin-top: 6px;
  padding: 18px 20px; font-size: 18px; line-height: 1.5;
  border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface);
}
.proto-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.proto-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proto-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proto-chips-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 2px; }
.proto-chip { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 550; }
.proto-chip:hover { border-color: var(--accent); }
.proto-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.proto-analyze { min-width: 130px; }
.proto-output { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.proto-output:not(:empty) { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); animation: rise .45s ease both; }
.proto-notice { padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 14px; color: var(--ink-2); }
.proto-h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.01em; }
.proto-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .proto-grid { grid-template-columns: 1fr 1fr; } }
.proto-field { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.proto-field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.proto-field-value { font-weight: 600; }
.proto-field.is-neutral .proto-field-value { font-weight: 500; font-style: italic; color: var(--muted); }
.proto-field.is-missing { border: 1.5px dashed var(--warn-line); background: var(--warn-soft); }
.proto-field.is-missing .proto-field-value { color: var(--req); }
.proto-missing-title { margin: 8px 0 0; font-weight: 700; font-size: 17px; }
.proto-missing { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .proto-missing { grid-template-columns: repeat(3, 1fr); } }
.proto-missing-card { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--warn-line); background: var(--surface); }
.proto-missing-card strong { display: block; }
.proto-missing-card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.proto-missing-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); border: 1px solid var(--warn-line); font-weight: 800; font-size: 14px; color: var(--req); }
.proto-continue-row { display: flex; justify-content: flex-end; margin-top: 6px; }

@media (max-width: 480px) {
  .proto-actions { flex-direction: column; align-items: stretch; }
  .proto-analyze, .proto-continue-row .btn { width: 100%; }
  .proto-body { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-panel > *, .proto-output:not(:empty) { animation: none; }
}

/* =============================================================================
 * TEIL 3 – Views, Capabilities, Tiers, Skala 0–10, Follow-up, Dankeseite
 * ========================================================================== */
.title { white-space: pre-line; }

/* Kompakte, gleichwertige Karten (Views, Capabilities): 2 Spalten mobil, 3 ab Tablet */
.choices-compact { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .choices-compact { grid-template-columns: repeat(3, 1fr); } }
.choices-compact .choice { padding: 14px; gap: 10px; }

/* Skala mit vielen Stufen (0–10) */
.slider-ticks.is-dense { gap: 4px; }
.slider-ticks.is-dense .tick { padding: 8px 0; font-size: 14px; }
@media (max-width: 480px) { .slider-ticks.is-dense .tick { font-size: 13px; border-radius: 7px; } }

/* Commercial Tiers – drei gleichwertige Karten */
.tiers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.tier-name { font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.tier-claim { font-weight: 600; color: var(--ink-2); font-style: italic; }
.tier-items { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.tier-items li { margin-bottom: 3px; }

/* Follow-up */
.note-info { background: var(--accent-soft); border-color: var(--accent-line); }
.text-input { margin-top: 0; }

/* Dankeseite */
.end-brand { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.end-mark { font-weight: 800; letter-spacing: .1em; font-size: 22px; }
.end-long { color: var(--muted); font-size: 15px; }
.end-claims { color: var(--muted); font-size: 13px; margin-top: 6px; }
.export-quiet { margin: 28px 0 0; font-size: 12px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font-size: inherit; color: var(--muted); text-decoration: underline; }
.link-btn:hover { color: var(--ink-2); }

/* =============================================================================
 * v0.4 – Gruppen, exklusive Optionen, Bewertungsraster, neutrale Kopfzeile
 * ========================================================================== */
.brand.is-neutral .brand-mark { letter-spacing: .01em; font-size: 16px; }

/* Gruppenüberschrift innerhalb einer Auswahlliste (über volle Breite) */
.choice-group {
  grid-column: 1 / -1; margin: 10px 0 0; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.choice-group:first-child { margin-top: 0; }
/* Exklusive Option ("Nichts davon …", "Keine davon …") optisch abgesetzt, nicht hervorgehoben */
.choice.is-exclusive { border-style: dashed; box-shadow: none; }

/* Bewertungsraster: Zeile = Label + 1–5 + N/A */
.scale-grid { display: flex; flex-direction: column; gap: 8px; }
.sg-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 12px; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.sg-row.is-answered { border-color: var(--accent-line); }
.sg-label { display: flex; flex-direction: column; gap: 2px; }
.sg-label strong { letter-spacing: .04em; font-size: 15px; }
.sg-label span { font-size: 13px; color: var(--muted); font-style: italic; }
.sg-cells { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: 6px; }
.sg-cell {
  min-height: 40px; border-radius: 9px; border: 1.5px solid var(--line); background: transparent;
  font-weight: 650; font-size: 15px;
}
.sg-cell.is-na { font-size: 13px; color: var(--muted); }
.sg-cell.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) {
  .sg-row { grid-template-columns: 1fr; gap: 8px; }
  .sg-label { flex-direction: row; align-items: baseline; gap: 8px; }
  .sg-cells { gap: 4px; }
  .sg-cell { min-height: 38px; font-size: 14px; }
}

/* v0.4.1: Matrix mit Text-Spalten (z. B. intern / extern / gemeinsam) */
.sg-text .sg-row { grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr); }
.sg-text .sg-cells { grid-template-columns: repeat(var(--sg-cols, 4), 1fr); }
.sg-text .sg-cell { font-size: 12px; font-weight: 600; line-height: 1.2; padding: 6px 4px; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .sg-text .sg-row { grid-template-columns: 1fr; }
  /* schmale Bildschirme: 2 × 2 statt 4 nebeneinander, damit nichts getrennt wird */
  .sg-text .sg-cells { grid-template-columns: repeat(2, 1fr); }
  .sg-text .sg-cell { font-size: 13px; min-height: 40px; hyphens: manual; overflow-wrap: normal; }
}

/* Debug-Status */
.debug-status { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.debug-kv { display: flex; justify-content: space-between; gap: 10px; }
.debug-kv span { color: var(--muted); }
.debug-kv strong { text-align: right; word-break: break-word; }

/* ---------- Debug-Panel ---------- */
.debug { position: fixed; right: 12px; top: 84px; z-index: 30; font-size: 12px; max-width: min(420px, calc(100vw - 24px)); }
.debug-toggle { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; float: right; }
.debug-body { display: none; clear: both; margin-top: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); }
.debug.is-open .debug-body { display: flex; flex-direction: column; gap: 8px; }
.debug select { max-width: 100%; }
.debug-actions { display: flex; gap: 6px; }
.debug-actions button { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); }
.debug pre { margin: 0; max-height: 50vh; overflow: auto; background: var(--bg); padding: 8px; border-radius: 6px; font-size: 11px; }

/* ---------- Pilotmodus (?pilot=…) ---------- */
.pilot-consent {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.pilot-consent p { margin: 0; color: var(--ink-2); font-size: 16px; }
.pilot-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.pilot-check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.pilot-list { margin: 0 0 12px; padding-left: 22px; color: var(--ink-2); }
.pilot-list li { margin-bottom: 4px; }
.pilot-small { margin: 0; font-size: 13px; color: var(--muted); }
.pilot-done { margin-top: 6px; }
.pilot-durations { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; font-size: 14px; }

/* Debug-Panel: Moderatorbereich + Scrollbarkeit auf kleinen Bildschirmen */
.debug-main { display: flex; flex-direction: column; gap: 8px; }
.debug.is-pilot.is-open .debug-body { max-height: calc(100dvh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.debug-mod { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.debug-mod-title { margin: 0; font-weight: 700; }
.debug-field { display: flex; flex-direction: column; gap: 3px; }
.debug-field span { color: var(--muted); }
.debug-notes {
  width: 100%; min-height: 110px; resize: vertical; padding: 8px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--bg); font-size: 16px; line-height: 1.4;
}
.debug-actions { flex-wrap: wrap; }

/* ---------- Pilot: Ergebnisansicht (nur debug=1) ---------- */
.pilot-results-btn { margin: 0 0 14px; }
.results { gap: 22px; }
.res-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.res-fact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.res-fact span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.res-fact strong { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.res-section { display: flex; flex-direction: column; gap: 8px; }
.res-h2 { margin: 6px 0 0; font-size: 19px; font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.res-rows { display: flex; flex-direction: column; }
.res-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 22px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.res-key { display: flex; flex-direction: column; gap: 2px; }
.res-label { font-weight: 650; font-size: 15px; }
.res-q { font-size: 13px; color: var(--muted); line-height: 1.4; }
.res-val { font-size: 15px; min-width: 0; }
.res-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.res-empty { color: var(--muted); }
.res-list { margin: 0; padding-left: 20px; }
.res-ranks, .res-caps { display: flex; flex-direction: column; gap: 4px; }
.res-rank { display: flex; gap: 10px; }
.res-rank-no { color: var(--muted); min-width: 52px; }
.res-cap { display: flex; justify-content: space-between; gap: 12px; }
.res-cap strong { white-space: nowrap; }
.res-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.res-dot.is-green { background: #16a34a; }
.res-dot.is-yellow { background: #eab308; }
.res-dot.is-red { background: #dc2626; }
@media (max-width: 640px) {
  .res-row { grid-template-columns: 1fr; }
  .res-facts { grid-template-columns: 1fr 1fr; }
}
@media print {
  .topbar, .debug, .res-export, .results .welcome-actions { display: none !important; }
}

/* v0.4.2: Bewertungsdefinitionen sind Teil der Frage, keine Fußnote. */
.q-scaleGrid .q-hint { font-size: 18px; line-height: 1.65; color: var(--ink, #18212b); font-weight: 600; padding: 16px; margin: 12px 0; background: #f0f4f8; border-radius: 10px; }
.slider-labels { font-size: 17px; line-height: 1.5; color: var(--ink, #18212b); font-weight: 600; }
@media (max-width: 600px) { .slider-labels { flex-direction: column; } .slider-labels span:last-child { text-align: left; } }

.language-picker { display: flex; gap: 8px; margin-top: 8px; font-size: 14px; }
.language-picker a { padding: 4px 8px; border-radius: 4px; color: inherit; text-decoration: none; border: 1px solid #c9d1db; }
.language-picker a[aria-current="true"] { font-weight: 700; background: #eaf0f6; color: #172b4d; }

/* Pilot response handoff */
.response-delivery { margin-top: 28px; padding: 24px; border: 1px solid var(--muted); border-radius: 12px; text-align: left; }
.response-delivery p { overflow-wrap: anywhere; margin: 16px 0; }
.response-download { width: 100%; min-height: 58px; font-size: 18px; }
.response-delivery a.btn { display: inline-flex; text-decoration: none; justify-content: center; }
.response-hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 520px) { .response-delivery { padding: 18px; } .response-delivery a.btn { width: 100%; } }

.response-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.response-confirm-actions button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 520px) { .response-confirm-actions button { width: 100%; } }

.response-delivery-link[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
