/* Brandup – Teilnehmer-Bogen
   Tokens nach DESIGN-SYSTEM.md; Maße/Hover nach design/*.dc.html (Main, Q01, Q11, M-Start, M-Q11). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; } /* Sicherheitsnetz: nie seitlich scrollen (am Viewport, sticky bleibt intakt) */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }
::selection { background: var(--lime); color: var(--ink); } /* Markierung in Brandup-Lime (bewusste Ausnahme, s. DESIGN-SYSTEM.md) */

/* Fokus (Horamic): 2px Ring Interaktion mit 2px Abstand, nur Tastatur */
button:focus-visible, a:focus-visible, summary:focus-visible, [role="slider"]:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- Kopfzeile ---------- */
/* Agentur-Modus: dunkler Balken über dem Header (Horamic-Inverse), damit niemand ihn mit dem Teilnehmer-Bogen verwechselt */
.agency-bar {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 24px;
  background: var(--inverse); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.agency-bar b { font-weight: 800; }
.agency-bar__hint { color: var(--n400); flex: 1 1 280px; }
.agency-bar__done {
  margin-left: auto; color: #000; background: #fff; border-radius: var(--r-pill); padding: 6px 14px;
  text-decoration: none; font-weight: 700; transition: opacity var(--ease);
}
.agency-bar__done:hover { opacity: 0.85; color: #000; }
.agency-bar__done[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.agency-bar__link { margin-left: auto; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--n500); font-weight: 600; }
.agency-bar__link:hover { color: #fff; text-decoration-color: #fff; }
.agency-bar__link + .agency-bar__done { margin-left: 0; }
/* Direktlink im Agentur-Browser: Warnton statt Inverse – hier wird nicht bearbeitet, sondern als Person getippt */
.agency-bar--preview { background: var(--warning-surface); color: var(--warning-text); }
.agency-bar--preview .agency-bar__hint { color: var(--text-secondary); }
.agency-bar--preview .agency-bar__done { background: var(--inverse); color: #fff; }
.agency-bar--preview .agency-bar__done:hover { color: #fff; }
.hdr { position: relative; background: var(--card); border-bottom: 1px solid var(--hairline); flex-shrink: 0; }
.hdr__row {
  /* unten +5 px: der Fortschrittsbalken liegt im unteren Innenabstand – so sitzt der Inhalt mittig in der sichtbaren Fläche */
  max-width: 720px; margin: 0 auto; padding: 15px 24px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 61px;
}
.hdr__title { font-size: 14px; font-weight: 600; }
.hdr__client { font-weight: 800; }
.hdr__tpl { color: var(--slate); }
.hdr__tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Speicherstatus: nur sichtbar, wenn gerade etwas passiert (Speichern … → Gespeichert → ausgeblendet) */
.save {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--n500); white-space: nowrap;
  opacity: 0; transition: opacity var(--ease), color var(--ease);
}
.save[data-state="saving"], .save[data-state="saved"], .save[data-state="error"], .save[data-state="fatal"] { opacity: 1; }
.save[data-state="saved"] { color: var(--success-text); }
.save[data-state="error"], .save[data-state="fatal"] { color: var(--error-text); }
.save__icon { display: inline-flex; }
.save__icon svg { display: block; }
.save[data-state="saving"] .save__icon svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.linkchip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: normal;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--strong); border-radius: var(--r-pill);
  padding: 5px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.linkchip:hover { border-color: var(--n300); background: var(--n50); }
.linkchip.is-copied, .linkchip.is-copied:hover { background: var(--success-surface); border-color: var(--success-surface); color: var(--success-text); }
.linkchip svg { display: block; }

/* Gemeinsame Bearbeitung: eigene Initialen in der Kopfzeile (Klick: Namen ändern) und Initialen je Frage */
.mechip {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: #fff;
  background: var(--ink); border: 0; transition: opacity var(--ease);
}
.mechip:hover { opacity: 0.82; }
.q-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.q-top .jump { margin-bottom: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.who--full { margin: 0 0 10px auto; }
.who__circles { display: inline-flex; }
.who__c {
  width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
  background: var(--card); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px var(--strong); cursor: default;
}
.who__c:first-child { margin-left: 0; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--card); } /* zuletzt Bearbeitende vorn, schwarz */
.who__c--more { background: var(--card); color: var(--slate); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px var(--strong); }
.who__text { font-size: 12px; font-weight: 600; color: var(--slate); white-space: normal; min-width: 0; overflow-wrap: anywhere; } /* lange Namen brechen um statt abgeschnitten zu werden */
.ov__label .who { margin-left: auto; }
.ov__label .who__c { width: 20px; height: 20px; font-size: 9px; margin-left: -5px; }
.ov__label .who__c:first-child { margin-left: 0; }

/* Maßlinie */
/* Fortschritt: 5 px Brandup-Verlauf, sitzt mit der Unterkante auf der 1-px-Trennlinie (die Linie ist die Spur), volle Breite */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 5; pointer-events: none; }
.progress__fill {
  height: 100%; width: 0; border-radius: 0 3px 0 0;
  background: var(--gradient); background-repeat: no-repeat;
  transition: width 300ms ease, background-size 300ms ease;
}

/* ---------- Seite ---------- */
.main { flex-grow: 1; overflow-x: clip; } /* clip (nicht hidden): verhindert seitliches Scrollen durch die volle Breite der Abschluss-Leiste, sticky bleibt intakt */
.page { max-width: 720px; margin: 0 auto; padding: 48px 24px 0; }
.page--start { padding-top: 52px; }
.page:focus { outline: none; }

.foot { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 16px 24px 20px; }
/* Pflichtlinks (DSGVO): klein und ruhig unter dem Logo, auf jeder Seite des Fragebogens */
.foot__legal { display: flex; gap: 16px; font-size: 12px; font-weight: 600; }
.foot__legal a { color: var(--slate); text-decoration: none; transition: color var(--ease); }
.foot__legal a:hover, .foot__legal a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__logo { display: block; width: 75.2px; height: 16px; fill: var(--slate); }

/* ---------- Typografie ---------- */
.h1 { font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 20px; }
.lead { font-size: 16px; font-weight: 500; line-height: 1.55; margin: 0 0 14px; max-width: 58ch; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; margin-bottom: 10px; }
.q { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.q:focus { outline: none; }
/* Fragen-Seite: ein Grau (text-secondary) – Rollen über Größe/Stärke: Eyebrow = kleines Label, Hilfe = Fließtext wie .lead */
.help { font-size: 16px; font-weight: 500; color: var(--text-secondary); line-height: 1.55; margin: 0 0 22px; max-width: 64ch; }
.label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 7px; }
.hint { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-top: 7px; }
.hint.is-warn { color: var(--error-text); }
.hint__link { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--n300); text-underline-offset: 3px; white-space: nowrap; transition: color var(--ease), text-decoration-color var(--ease); }
.hint__link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.hint.is-warn::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--error-base); margin-right: 7px; vertical-align: 1px;
}

/* Sprungmenü (Eyebrow als Auslöser) */
.jump { position: relative; margin-bottom: 10px; }
.jump__btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em;
  cursor: pointer; border-radius: 4px; transition: color var(--ease);
}
.jump__btn:hover, .jump__btn[aria-expanded="true"] { color: var(--ink); }
.jump__btn svg { transition: transform var(--ease); }
.jump__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.jump__panel {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: -8px; width: 340px;
  display: flex; overflow: hidden;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 24, 32, 0.18);
}
.jump__panel[hidden] { display: none; }
.jump__scroll {
  flex: 1; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 6px 8px 8px;
}
/* Schmale, runde Scrollleiste im Brandup-Grau statt der eckigen System-Leiste.
   Chrome/Safari: ::-webkit-scrollbar (runder Daumen mit Abstand); Firefox: Standard-Eigenschaften.
   Getrennt, weil Chrome die Webkit-Regeln ignoriert, sobald scrollbar-color gesetzt ist. */
@supports not selector(::-webkit-scrollbar) {
  .jump__scroll { scrollbar-width: thin; scrollbar-color: var(--strong) transparent; }
}
.jump__scroll::-webkit-scrollbar { width: 10px; }
.jump__scroll::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.jump__scroll::-webkit-scrollbar-thumb {
  background: var(--strong); border-radius: 999px;
  border: 3px solid var(--card); /* Innenabstand zur Kartenkante */
}
.jump__scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.jump__section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); padding: 12px 10px 6px; }
.jump__section:first-child { padding-top: 6px; }
.jump__list { list-style: none; margin: 0; padding: 0; }
.jump__item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none; color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.35;
  transition: background-color var(--ease), border-color var(--ease);
}
.jump__item:hover { background: var(--n50); }
.jump__item:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 0; }
/* aktuelle Frage = Navigations-Auswahl (Horamic): Hover-Fläche + 3px Brand-Kante */
.jump__item.is-current { background: var(--n50); box-shadow: inset 3px 0 0 var(--n900); }
/* Status je Frage (Übersicht, Sprungmenü): offen = leerer Ring (wie unberührter Regler), beantwortet = Häkchen.
   Bewusst kein Orange – offene Fragen sind ein normaler Zustand, keine Warnung. */
.mark { width: 14px; height: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.mark::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--n400); box-sizing: border-box; }
.mark.is-done { border-radius: 50%; background: var(--done); color: #fff; }
.mark.is-done::before { display: none; }
.mark svg { display: block; }
.jump__list--end { border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 8px; }
.jump__nr { color: var(--slate); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Beispiel (aufklappbar) */
/* Beispiel: Pill-Button + aufklappbare ruhige Fläche */
.example { margin: -6px 0 22px; }
.example__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 11px;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: var(--text-secondary);
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-pill); cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.example__btn:hover, .example__btn[aria-expanded="true"] { color: var(--ink); border-color: var(--n300); }
.example__btn svg { display: block; flex-shrink: 0; }
.example__btn svg:last-child { transition: transform var(--ease); }
.example__btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.example__panel { margin-top: 10px; background: var(--n50); border-radius: 12px; padding: 12px 16px; }
.example__text { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); margin: 0; }
.example__note { font-size: 12px; font-weight: 600; color: var(--slate); margin: 6px 0 0; }

/* Start: Eckdaten */
/* Startseite: Willkommen + „So läuft’s“ */
.welcome { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--slate); }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.steps__item { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; }
.steps__nr { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.steps__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.steps__text { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text-secondary); }
.start-cta--welcome { margin-top: 32px; }
/* „Kurz vorab“: persönlicher Link direkt unter dem Namen (braucht ihn) */
.linkbox { max-width: 420px; margin: 0 0 8px; }
.linkbox__text { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-secondary); margin: 0 0 10px; }
.link__out { margin-top: 10px; height: 40px; font-size: 13px; }
.facts { border-top: 1px solid var(--hairline); margin: 26px 0 30px; max-width: 560px; }
.facts__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { color: var(--slate); font-size: 14px; font-weight: 600; margin: 0; padding-top: 1px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.namefield { max-width: 420px; margin: 0 0 28px; }
.start-cta { display: flex; justify-content: flex-end; }

/* ---------- Eingaben ---------- */
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--n200); border-radius: var(--r-input);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input { height: 48px; padding: 0 15px; }
.input:hover, .textarea:hover { border-color: var(--n300); }
.textarea { line-height: 1.55; padding: 12px 15px; resize: vertical; height: 150px; display: block; }
.textarea--note { height: 72px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--focus-color); box-shadow: var(--input-focus); }
.input[aria-invalid="true"] { border-color: var(--error-base); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: normal;
  text-decoration: none; white-space: nowrap; flex-shrink: 0; cursor: pointer;
  border: 1px solid transparent;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn--primary { background: var(--ink); border-color: var(--ink); color: #ffffff; }
/* Horamic: Primär schwarz → Opacity; Sekundär hovert vollflächig in Interaktion */
.btn--primary:hover { opacity: 0.85; }
.btn--ghost { background: var(--card); border-color: var(--n100); color: var(--text-secondary); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn { transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), opacity var(--ease); }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 36px 0 8px; }

/* ---------- Skalen ---------- */
.legend { display: flex; gap: 18px; font-size: 12px; font-weight: 600; color: var(--slate); margin-bottom: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.legend i.is-future { background: var(--future); }
.legend i.is-untouched { background: var(--card); border: 2px solid var(--muted); }

.pair { margin-bottom: 20px; }
.pair__poles { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.track { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.track__label { width: 52px; font-size: 12px; font-weight: 600; color: var(--slate); flex-shrink: 0; }

.slider {
  position: relative; flex-grow: 1; height: 16px;
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
}
/* größere Trefferfläche für Finger, ohne das Layout zu verändern */
.slider::before { content: ''; position: absolute; left: -8px; right: -8px; top: -9px; bottom: -9px; }
.slider__rail { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--strong); pointer-events: none; }
.slider__knob {
  position: absolute; top: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); transform: translateX(-50%); box-shadow: var(--knob-shadow);
  cursor: grab;
  transition: left var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.slider__knob.is-future { background: var(--future); }
/* Unberührt: hohler grauer Punkt – erst die erste Bewegung färbt ihn (Heute schwarz, Künftig Lime) */
.slider__knob.is-untouched { background: var(--card); border: 2px solid var(--muted); box-shadow: none; }
.slider__knob.is-untouched:hover { border-color: var(--n600); box-shadow: 0 0 0 5px rgba(16, 24, 32, 0.06); }
.slider__knob::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.slider__knob:hover { box-shadow: var(--knob-shadow), 0 0 0 5px rgba(16, 24, 32, 0.06); }
.slider.is-dragging .slider__knob { transition: none; cursor: grabbing; box-shadow: var(--knob-shadow), 0 0 0 6px rgba(16, 24, 32, 0.08); }
.slider.is-dragging { cursor: grabbing; }

.note-label { margin: 22px 0 7px; } /* deutlicher Abstand zu den Skalen (vorher 6px) */

/* ---------- Chips (Q10) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: normal; padding: 9px 16px;
  border-radius: var(--r-pill); background: var(--card); color: var(--ink); border: 1px solid var(--strong); cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.chip:hover { border-color: var(--n300); background: var(--n50); }
.chip.is-selected, .chip.is-selected:hover { background: var(--select-surface); border-color: var(--select-border); box-shadow: inset 0 0 0 1px var(--select-border); }
.chip.is-disabled, .chip.is-disabled:hover { color: var(--disabled-text); background: var(--disabled-surface); border-color: var(--disabled-border); cursor: default; }
/* Eigene Begriffe: ausgewählt wie Katalog-Chips, × zum Entfernen erscheint bei Hover/Fokus (Touch: immer) */
.chip.is-own { display: inline-flex; align-items: center; gap: 6px; cursor: default; padding-right: 8px; max-width: 100%; }
.chip.is-own > span { min-width: 0; overflow-wrap: anywhere; } /* lange Komposita sprengen die Chip-Box nicht */
.chip__remove {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: -2px 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--n600); cursor: pointer; padding: 0;
  opacity: 0; transition: opacity var(--ease), background-color var(--ease), color var(--ease);
}
.chip.is-own:hover .chip__remove, .chip.is-own:focus-within .chip__remove { opacity: 1; }
.chip__remove:hover { background: var(--n900); color: #fff; }
@media (hover: none) { .chip__remove { opacity: 1; } }
.addrow { display: flex; gap: 10px; }
.addrow .input { flex-grow: 1; min-width: 0; }
.btn--add { gap: 6px; padding: 0 20px 0 18px; min-height: 48px; }
.btn[disabled] { cursor: default; opacity: 0.5; }
/* Begriffsauswahl als eigener Bereich */
.chipbox { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 0 20px 20px; margin-bottom: 24px; }
.chipbox .chips { margin-bottom: 0; }
.chipbox__own { border-top: 1px solid var(--hairline); margin-top: 20px; padding-top: 18px; }
.chipbox__own .hint { margin-top: 8px; }
.chips__head { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap;
  margin: 0 -20px 18px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.chips__rule { font-size: 14px; font-weight: 600; color: var(--ink); }
.chips__count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; margin-left: auto; }
.chips__count b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--n400); box-sizing: border-box; transition: background-color var(--ease), border-color var(--ease); }
.pips i.is-on { background: var(--ink); border-color: var(--ink); }
.field-gap { margin-bottom: 18px; }
.textarea--everyday { height: 84px; }

/* ---------- Rangfolge (Typ rank): gewählte Einträge oben in Reihenfolge, darunter die Auswahl ---------- */
.rank { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank__item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 12px;
  background: var(--select-surface); border: 1px solid var(--select-border); box-shadow: inset 0 0 0 1px var(--select-border);
  border-radius: 12px; transition: transform var(--ease), box-shadow var(--ease); user-select: none;
}
@media (hover: hover) { .rank__item { cursor: grab; } }
.rank__item.is-dragging { transition: none; z-index: 2; cursor: grabbing; box-shadow: inset 0 0 0 1px var(--select-border), var(--shadow-float); }
.rank__grip { display: inline-flex; align-items: center; gap: 10px; color: var(--n400); touch-action: none; cursor: grab; padding: 8px 2px; }
.rank__pos {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--card); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.rank__text { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rank__tools { display: inline-flex; flex-shrink: 0; }
.rank__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--n600); cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.rank__btn:hover { background: var(--n100); color: var(--ink); }
.rank__btn[disabled], .rank__btn[disabled]:hover { opacity: 0.3; background: transparent; color: var(--n600); cursor: default; }
.rank__remove:hover { background: var(--n900); color: var(--card); }
.rank__empty { margin: 0 0 20px; padding: 14px 16px; border: 1px dashed var(--n300); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.rankbox__pool .label { margin-bottom: 10px; }
@media (max-width: 600px) {
  .rank__item { gap: 8px; padding-left: 8px; }
  .rank__btn { width: 32px; height: 36px; }
  .rank__text { font-size: 14px; }
}
/* kurze Auswahl in einem Feld (fields, kind: choice), z. B. Ja / Nein / Weiß ich nicht */
.chips--pick { margin-bottom: 0; gap: 8px; }

/* ---------- Marken (Q13): je Zeitpunkt Marke + Eigenschaften ---------- */
.brands__group { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.brands__group:last-child { margin-bottom: 0; }
/* Zwischenüberschrift je Zeitpunkt – klar unter der Frage (26/800), deutlich über den Feld-Labels (13/600) */
.brands__group legend { padding: 0; margin: 0 0 12px; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.brands__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 12px; }
.brands__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0 0 6px; }
.textarea--twofield { height: 92px; }
/* Mehrere Felder (fields) */
.fieldset { display: flex; flex-direction: column; gap: 18px; }
.textarea--field { height: 92px; }
.choice__details { display: flex; flex-direction: column; gap: 18px; }
.choice__details .label { margin-top: 0; }
/* Liste (list): wiederholbare Einträge als ruhige Karten */
.list { display: flex; flex-direction: column; gap: 12px; }
.list__item { position: relative; margin: 0; min-width: 0; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.list__head { font-size: 13px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.02em; margin: 0 0 -4px; }
.list__remove { position: absolute; top: 12px; right: 12px; background: none; border: 0; padding: 4px 8px; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.list__remove:hover { background: var(--hover-bg); color: var(--error-text); }
.list__field .label { margin-bottom: 6px; }
.textarea--item { height: 76px; }
.list__add { margin-top: 12px; }

/* ---------- Aussagen (Q14) ---------- */
.options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; padding: 13px 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--strong); border-radius: var(--r-input); cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.option:hover { border-color: var(--n300); background: var(--n50); }
.option.is-selected, .option.is-selected:hover { background: var(--select-surface); border-color: var(--select-border); box-shadow: inset 0 0 0 1px var(--select-border); }
.option__dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: transparent; border: 1.5px solid var(--strong); transition: background-color var(--ease), border-color var(--ease);
}
.option.is-selected .option__dot { background: var(--select-border); border-color: var(--select-border); }
.textarea--reason { height: auto; min-height: 104px; padding: 13px 15px; }

/* ---------- Übersicht ---------- */
.hdr--wide .hdr__row { max-width: 1000px; }
.page--wide { max-width: 1000px; padding-top: 44px; }
.h1--overview { font-size: 34px; line-height: 1.1; margin-bottom: 12px; }
.lead--wide { max-width: 64ch; margin-bottom: 16px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-input); padding: 14px 16px; font-size: 14px; font-weight: 500; line-height: 1.5;
}
.notice svg { flex-shrink: 0; margin-top: 1px; }
.notice b { font-weight: 700; }
/* Warnbanner (Horamic-Warnung-Triade): offene Fragen vor dem Absenden */
.notice--warn { background: var(--warning-surface); border-color: var(--warning-surface); padding: 16px 18px; gap: 12px; }
.notice--warn svg { color: var(--warning-base); }
.notice--reopen { margin: 0 0 22px; border-color: var(--strong); } /* von der Agentur wieder geöffnet */
.notice--reopen .notice__action { border-color: var(--strong); }
.notice__title { margin: 0; font-size: 16px; font-weight: 800; color: var(--warning-text); line-height: 1.35; }
.notice__text { margin: 3px 0 0; color: var(--text-secondary); }
.notice__action {
  margin-top: 12px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card);
  border: 1px solid #FFD2A8; cursor: pointer; transition: border-color var(--ease);
}
.notice__action:hover { border-color: var(--warning-text); }
.ov { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ov__section { font-size: 14px; font-weight: 600; color: var(--slate); margin: 14px 0 0; }
.ov__section:first-child { margin-top: 0; }
.ov__item {
  display: block; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-input);
  padding: 13px 15px; text-decoration: none; color: var(--ink);
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.ov__item:hover { border-color: var(--strong); background: var(--hover-bg); color: var(--ink); }
.ov__label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 3px; }
.ov__answer {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-size: 14px; font-weight: 500; white-space: pre-line;
}
.ov__open { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav--overview { margin-top: 28px; }
/* Übersicht: Abschluss-Leiste klebt unten, Hintergrund und Linie laufen über die volle Fensterbreite */
.nav--sticky {
  position: sticky; bottom: 0; z-index: 10;
  margin-bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(249, 250, 251, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 100vmax rgba(249, 250, 251, 0.94);
  clip-path: inset(0 -100vmax);
}
.nav--sticky::before {
  content: ''; position: absolute; top: 0; left: -100vmax; right: -100vmax; height: 1px; background: var(--hairline);
}
.form-error { font-size: 14px; font-weight: 500; color: var(--error-text); line-height: 1.5; margin: 14px 0 0; }
.form-error::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--error-base); margin-right: 8px; vertical-align: 1px;
}

/* ---------- Workshop-Tafel (Typ board) ----------
   Volle Fensterbreite. Oben die frei eingetragene Frage, links die Zeilen (fest beim Blättern), rechts je Beispiel
   eine Karte; die Felder liegen ohne eigene Box in der Karte, das Fazit unten in dezentem Lime. Karten schieben sich
   links unter die Beschriftung („Schlitz“ mit auslaufendem Schatten); Pfeile + Balken statt Browser-Scrollbalken. */
.hdr--full .hdr__row { max-width: none; padding-left: 32px; padding-right: 32px; }
/* Seite füllt die Fensterhöhe: die Leiste steht auch bei wenig Inhalt unten (über der Fußzeile) */
.main:has(> .page--board) { display: flex; flex-direction: column; }
.page.page--board { max-width: none; width: 100%; padding: 26px 32px 0; flex: 1 0 auto; display: flex; flex-direction: column; }
.wb { --wb-lblw: 176px; --wb-gap: 14px; --wb-bleed: 32px; --wb-r: 18px; }
.wb__title {
  font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance;
  margin: 0 0 48px -6px; max-width: 38ch; padding: 2px 6px; border-radius: 10px; outline: none; cursor: text;
  transition: background-color var(--ease), box-shadow var(--ease);
}
.wb__title:hover { background: var(--hover-bg); }
.wb__title:focus { background: var(--card); box-shadow: inset 0 0 0 2px var(--focus-color); }
.wb__title:empty::before, .wb__lbl-t:empty::before { content: attr(data-placeholder); color: var(--n300); }
/* Frage und Zeilen sind überschreibbar: Stift beim Darüberfahren */
.wb__title:not(:focus):hover::after, .wb__lbl-t:not(:focus):hover::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23839BAD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wb__title:not(:focus):hover::after { width: 22px; height: 22px; margin-left: 12px; vertical-align: 0; }

.wb__box { position: relative; margin-right: calc(-1 * var(--wb-bleed)); }
.wb__wrap {
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scroll-padding-left: calc(var(--wb-lblw) + var(--wb-gap)); padding: 4px 0 26px; scrollbar-width: none;
}
.wb__wrap::-webkit-scrollbar { display: none; }
body.wb-resizing .wb__wrap, body.wb-dragging .wb__wrap { scroll-snap-type: none; scroll-behavior: auto; }
body.wb-resizing { cursor: col-resize; user-select: none; }
.wb__slot {
  position: absolute; left: var(--wb-lblw); top: -20px; bottom: -14px; width: 44px; pointer-events: none; z-index: 6; opacity: 0; transition: opacity 250ms ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 64px, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 64px, #000 calc(100% - 72px), transparent 100%);
}
.wb__slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 24, 32, 0.14), rgba(16, 24, 32, 0.05) 40%, rgba(16, 24, 32, 0)); }
.wb__slot::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(16, 24, 32, 0.14); }
.wb__box.is-scrolled .wb__slot { opacity: 1; }

.wb__grid { position: relative; display: grid; column-gap: var(--wb-gap); row-gap: 0; width: max-content; padding-right: var(--wb-bleed); }
/* linke Spalte als durchgehende Fläche: deckt ab, was darunter durchrollt */
.wb__rail { position: sticky; left: 0; z-index: 4; background: var(--paper); margin: -4px 0 -26px; }
.wb__lbl {
  position: sticky; left: 0; z-index: 5; align-self: start; padding: 16px 18px 12px 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text-secondary); transition: color var(--ease);
}
.wb__lbl-n {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--n300); color: var(--slate);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.wb__lbl-t { border-radius: 6px; padding: 1px 4px; margin-left: -4px; cursor: text; outline: none; transition: background-color var(--ease), box-shadow var(--ease); }
.wb__lbl-t:hover { background: var(--hairline); }
.wb__lbl-t:focus { background: var(--card); box-shadow: inset 0 0 0 2px var(--focus-color); color: var(--ink); }
.wb__lbl.is-active { color: var(--ink); }
.wb__lbl.is-active .wb__lbl-n { background: var(--ink); border-color: var(--ink); color: var(--card); }
.wb__lbl--fazit { color: var(--ink); }
.wb__lbl--fazit .wb__lbl-n, .wb__lbl--fazit.is-active .wb__lbl-n { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.wb__lbl-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

.wb__card {
  pointer-events: none; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--wb-r);
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 4px 16px rgba(16, 24, 32, 0.03);
  scroll-snap-align: start; scroll-margin-left: calc(var(--wb-lblw) + var(--wb-gap));
}
.wb__head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 18px 20px 14px; }
.wb__head-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 18px; }
.wb__head-n { font-size: 12px; font-weight: 700; color: var(--slate); letter-spacing: 0.02em; transition: color var(--ease); }
.wb__head.is-active .wb__head-n { color: var(--ink); }
.wb__remove {
  border: 0; background: transparent; padding: 2px 6px; margin: -2px -6px -2px 0; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--slate); opacity: 0;
  transition: opacity var(--ease), color var(--ease), background-color var(--ease);
}
.wb__head:hover .wb__remove, .wb__head:focus-within .wb__remove, .wb__remove.is-armed { opacity: 1; }
.wb__remove:hover { color: var(--ink); background: var(--hover-bg); }
.wb__remove.is-armed { color: var(--error-text); background: var(--error-surface); }
.wb__remove:focus-visible { outline: none; box-shadow: var(--focus-ring); opacity: 1; }
.wb__head-t {
  width: 100%; border: 0; background: transparent; padding: 2px 0 5px; border-radius: 0; outline: none;
  font-family: inherit; font-size: 19px; font-weight: 800; letter-spacing: -0.005em; color: var(--ink); transition: box-shadow var(--ease);
}
.wb__head-t::placeholder { color: var(--n300); }
.wb__head-t:hover { box-shadow: inset 0 -2px 0 var(--strong); }
.wb__head-t:focus { box-shadow: inset 0 -2px 0 var(--focus-color); }

.wb__cell {
  position: relative; z-index: 1; display: block; align-self: start; width: 100%; min-height: 84px; margin: 0; resize: none; overflow: hidden;
  border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: transparent; padding: 16px 20px 18px; outline: none;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ink);
  transition: background-color var(--ease), box-shadow var(--ease);
}
.wb__cell::placeholder { color: var(--muted); }
.wb__cell:hover { background: var(--paper); }
.wb__cell:focus { background: var(--hover-bg); box-shadow: inset 3px 0 0 var(--focus-color); overflow-y: auto; }
/* langer Text: höchstens ~6 Zeilen, sanft ausgeblendet; beim Hineinklicken volle Länge */
.wb__cell.is-clipped { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.wb__cell--fazit { background: var(--fazit); border-top: 0; border-radius: 0 0 var(--wb-r) var(--wb-r); font-size: 17px; font-weight: 700; line-height: 1.5; }
.wb__cell--fazit::placeholder { color: rgba(0, 0, 0, 0.4); }
.wb__cell--fazit:hover, .wb__cell--fazit:focus { background: var(--fazit-hover); }

/* Kartenbreite ziehen: Griff mittig zwischen zwei Karten; Linie läuft oben und unten aus */
.wb__grip { position: relative; z-index: 3; justify-self: end; width: 16px; margin-right: calc(-8px - var(--wb-gap) / 2); cursor: col-resize; touch-action: none; }
.wb__grip::before {
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; border-radius: 2px; opacity: 0; transition: opacity var(--ease);
  background: linear-gradient(180deg, transparent, var(--n300) 22%, var(--n300) 78%, transparent);
}
.wb__grip::after {
  content: ""; position: absolute; left: 3px; top: 50%; width: 10px; height: 40px; margin-top: -20px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink); box-shadow: var(--knob-shadow); opacity: 0; transform: scaleY(0.6);
  transition: opacity var(--ease), transform var(--ease), background-color var(--ease);
}
.wb__grip:hover::before, .wb__grip.is-drag::before { opacity: 1; }
.wb__grip:hover::after, .wb__grip.is-drag::after { opacity: 1; transform: none; }
.wb__grip.is-drag::before { background: linear-gradient(180deg, transparent, var(--ink) 22%, var(--ink) 78%, transparent); }
.wb__grip.is-drag::after { background: var(--ink); }

.wb__add {
  position: relative; z-index: 1; border: 1.5px dashed var(--n300); border-radius: var(--wb-r); background: transparent; color: var(--text-secondary);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}
.wb__add:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); background: var(--card); }
.wb__add:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wb__add:disabled { opacity: 0.5; cursor: default; }
.wb__add-plus {
  width: 34px; height: 34px; border-radius: 50%; background: var(--hairline); display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; transition: background-color var(--ease), color var(--ease);
}
.wb__add:hover:not(:disabled) .wb__add-plus { background: var(--ink); color: var(--card); }

/* Blättern zwischen den Karten: direkt unter den Karten, Balken bis zum rechten Inhaltsrand */
.wb__cnav { display: flex; align-items: center; gap: 8px; margin: -6px 0 0 calc(var(--wb-lblw) + var(--wb-gap)); }
.wb__navbtn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--strong); background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: border-color var(--ease), opacity var(--ease), transform var(--ease);
}
.wb__navbtn svg { display: block; }
.wb__navbtn:hover:not(:disabled) { border-color: var(--ink); }
.wb__navbtn:active:not(:disabled) { transform: scale(0.95); }
.wb__navbtn:disabled { opacity: 0.35; cursor: default; }
.wb__navbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wb__track { position: relative; flex: 1 1 auto; height: 24px; margin-left: 10px; cursor: pointer; touch-action: none; }
.wb__track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 999px; background: var(--hairline); }
.wb__thumb {
  position: absolute; top: 9px; height: 6px; left: 0; border-radius: 999px; background: var(--slate); cursor: grab;
  transition: background-color var(--ease), top var(--ease), height var(--ease);
}
.wb__track:hover .wb__thumb, body.wb-dragging .wb__thumb { background: var(--ink); top: 8px; height: 8px; }
body.wb-dragging, body.wb-dragging .wb__thumb { cursor: grabbing; user-select: none; }

/* Leiste unten: Zurück · Tastenhinweis · Weiter / Abschließen */
.nav--board { margin-top: auto; }
.page--board .wb { margin-bottom: 28px; }
.nav__keys { font-size: 13px; font-weight: 600; color: var(--slate); text-align: center; }
.nav__keys kbd {
  font-family: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--strong); border-bottom-width: 2px; border-radius: 6px;
  padding: 0 5px; background: var(--card); color: var(--ink);
}

/* ---------- Modal ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(14, 16, 19, 0.44);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade-in 150ms ease;
}
.modal {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow-modal);
  padding: 28px 30px; width: 520px; max-width: 100%;
}
.modal:focus { outline: none; }
.modal__title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.modal__text { font-size: 15px; font-weight: 500; line-height: 1.55; margin: 0; color: var(--text-secondary); }
.modal__field { margin: 16px 0 0; } /* z. B. Link zum Markieren, wenn das Kopieren gescheitert ist */
.modal__field .input { width: 100%; }
/* Konflikt: beide Fassungen einer Frage nebeneinander (mobil untereinander) */
.conflict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 16px 0 0; }
.conflict__version { border: 1px solid var(--n200); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.conflict__label { font-size: 13px; font-weight: 600; color: var(--n500); margin: 0 0 6px; }
.conflict__text { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--n900); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 10.5em; overflow: auto; }
@media (max-width: 600px) { .conflict { grid-template-columns: minmax(0, 1fr); } }
/* Buttons teilen sich die Breite gleichmäßig – passen immer, auch bei langen Beschriftungen */
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.modal__actions .btn { padding: 13px 18px; min-width: 0; white-space: normal; text-align: center; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Danke / Geschlossen ---------- */
.page--end { padding-top: 64px; }
/* Hinweisseiten (renderMessage): alles horizontal und vertikal mittig */
.is-message .main { display: flex; }
.is-message .foot__logo { display: none; } /* Hinweisseiten zeigen das Logo groß oben – die Pflichtlinks bleiben */
.page--message { margin: auto; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.message__logo { display: block; width: 188px; height: auto; margin: 0 0 40px; }
.message__title { margin-bottom: 14px; }
.message__text { margin: 0 auto; max-width: 46ch; }
.message__action { margin-top: 28px; }
.h1--end { margin-bottom: 16px; }
.end-action { margin: 22px 0 0; }
.page--end > .notice { margin: 0 0 24px; }
.btn--mail { gap: 8px; }
.btn--mail svg { display: block; flex-shrink: 0; }

/* ---------- Datenschutz-Seite (/datenschutz/, statisch) ---------- */
/* Aufbau wie die Hinweisseiten: Wortmarke oben statt Kopfzeile, Fußzeile nur mit den Pflichtlinks */
.page.page--legal { padding: 56px 24px 40px; }
.legal__brand { display: block; width: 113px; height: auto; margin: 0 0 36px; }
.page--legal .lead { max-width: 60ch; margin-bottom: 28px; }
.page--legal p, .page--legal li, .page--legal address { font-size: 15px; font-weight: 500; line-height: 1.55; }
.page--legal p { margin: 0 0 12px; max-width: 68ch; }
.page--legal address { font-style: normal; margin: 0 0 12px; }
.page--legal ul { margin: 0 0 14px; padding-left: 20px; max-width: 68ch; }
.page--legal li { margin: 0 0 8px; }
.page--legal li::marker { color: var(--slate); }
.page--legal strong { font-weight: 700; }
.page--legal h2 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; scroll-margin-top: 24px; }
.page--legal h3 { font-size: 16px; line-height: 1.4; font-weight: 800; margin: 24px 0 8px; }
.page--legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--hover-bg); border-radius: 6px; padding: 1px 5px; white-space: nowrap; } /* Namen nie mitten im Wort trennen */
/* Links: Horamic-Textlink – grau, unterstrichen, Hover Schwarz */
.page--legal a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--n300); text-underline-offset: 3px; transition: color var(--ease), text-decoration-color var(--ease); }
.page--legal a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.legal__section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--hairline); }
.legal__toc { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px 24px; margin: 0 0 8px; }
.page--legal .legal__toc-title { font-size: 13px; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; margin: 0 0 10px; }
.legal__toc ol { margin: 0; padding-left: 22px; }
.legal__toc li { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.legal__toc li:last-child { margin-bottom: 0; }
.legal__toc li::marker { color: var(--slate); font-feature-settings: 'tnum'; }
/* Tabellen als Karte; mobil wird jede Zeile zu einem Block mit Beschriftung */
.legal__table { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 4px 20px; margin: 16px 0 18px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 500; line-height: 1.5; }
.legal__table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--slate); padding: 14px 16px 10px 0; border-bottom: 1px solid var(--hairline); }
.legal__table td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); }
.legal__table th:last-child, .legal__table td:last-child { padding-right: 0; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table td:first-child { font-weight: 600; }
.legal__table th:first-child, .legal__table td:first-child { width: 30%; }
.page--legal .legal__stand { margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--slate); }
.is-legal .foot { padding-top: 8px; }
.foot__legal a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) {
  .page.page--legal { padding: 32px 16px 32px; }
  .legal__brand { width: 94px; margin-bottom: 28px; }
  .page--legal h2 { font-size: 19px; }
  .legal__section { padding-top: 28px; margin-top: 28px; }
  .legal__toc { padding: 16px 18px; }
}
/* Tabellen als Karten schon unter 680 px – darüber passt die breiteste Tabelle (Cookie-Namen brechen nicht um) sicher */
@media (max-width: 680px) {
  .legal__table { padding: 4px 16px; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal__table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .legal__table tr:last-child { border-bottom: 0; }
  .legal__table td, .legal__table td:first-child { display: block; width: auto; padding: 0 0 6px; border: 0; }
  .legal__table td:last-child { padding-bottom: 0; }
  /* sichtbare Spaltenbeschriftung wie der Tabellenkopf (13/700); für Screenreader leer – den Kopf gibt es dort schon */
  .legal__table td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 1px; }
}
@media print {
  .legal__toc { display: none; }
  .legal__table { border: 0; padding: 0; }
}

/* Platzhalter für noch nicht gebaute Fragetypen */
.pending {
  border: 1px dashed var(--strong); border-radius: 16px; background: var(--card);
  padding: 22px 24px; font-size: 14px; font-weight: 500; color: var(--slate); line-height: 1.5;
}

/* ---------- Mobil (Referenz M-Start / M-Q11, 390 px) ---------- */
.only-mobile { display: none; }

@media (max-width: 600px) {
  .only-mobile { display: revert; }
  .only-desktop { display: none; }

  .hdr__row { padding: 12px 16px 17px; align-items: flex-start; gap: 10px; min-height: 0; }
  .hdr--q .hdr__title { font-size: 13px; line-height: 1.35; }
  .hdr__tools { gap: 8px; }
  /* Speicherstatus nur als Symbol mit fester Breite – die Kopfzeile springt beim Speichern nicht (Text bleibt für Screenreader) */
  .save { width: 16px; justify-content: center; }
  .save__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Fehler mobil nicht nur als Symbol: schmales Band unter der Kopfzeile */
  .save[data-state="error"] .save__text, .save[data-state="fatal"] .save__text {
    left: 0; right: 0; top: 100%; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; z-index: 2;
    padding: 6px 16px; background: var(--error-surface); color: var(--error-text); font-size: 13px; font-weight: 600; text-align: center;
  }

  .page { padding: 24px 16px 0; }
  .hdr--full .hdr__row { padding-left: 16px; padding-right: 16px; }
  .page.page--board { padding: 20px 16px 0; }
  .wb { --wb-lblw: 124px; --wb-bleed: 16px; }
  .wb__title { font-size: 28px; margin-bottom: 32px; }
  .wb__lbl { font-size: 14px; padding-right: 12px; }
  .nav__keys { display: none; }
  .page--start { padding: 28px 20px 0; }
  .h1 { font-size: 27px; line-height: 1.12; margin-bottom: 14px; }
  .lead { font-size: 15px; margin-bottom: 12px; }
  .facts { margin: 18px 0 22px; }
  .welcome { font-size: 15px; margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .steps__item { padding: 12px 14px; }
  .facts__row { grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; }
  .facts dt { font-size: 13px; padding-top: 0; }
  .facts dd { font-size: 14px; line-height: 1.45; }
  .namefield { max-width: none; margin-bottom: 20px; }
  .start-cta .btn { display: flex; width: 100%; padding: 12px 22px; }

  .eyebrow { font-size: 12px; letter-spacing: 0; margin-bottom: 8px; }
  .jump { margin-bottom: 8px; }
  .who--full { margin: -2px 0 10px 0; }
  .q-top { gap: 0 12px; }
  .jump__btn { font-size: 12px; letter-spacing: 0; }
  .jump__panel { left: 0; width: calc(100vw - 32px); }
  .jump__scroll { max-height: 65vh; }
  .q { font-size: 20px; line-height: 1.3; letter-spacing: 0; margin-bottom: 10px; }
  .help { font-size: 15px; margin-bottom: 16px; }

  .legend { gap: 14px; font-size: 11px; margin-bottom: 14px; }
  .legend span { gap: 5px; }
  .legend i { width: 9px; height: 9px; }
  .pair { margin-bottom: 18px; }
  .pair__poles { font-size: 13px; margin-bottom: 7px; }
  .track { gap: 10px; }
  .track__label { width: 46px; font-size: 11px; }

  .nav { gap: 10px; margin-top: 20px; }
  .page--wide { padding-top: 24px; }
  .page--end { padding-top: 40px; }
  .h1--overview { font-size: 27px; line-height: 1.12; }
  .chip { padding: 8px 14px; }
  .brands__row { grid-template-columns: 1fr; gap: 10px; }
  .brands__group legend { font-size: 16px; margin-bottom: 10px; }
  .brands__group { margin-bottom: 26px; }
  .chipbox { padding: 0 14px 16px; border-radius: 14px; }
  .chips__head { margin: 0 -14px 14px; padding: 12px 14px; }
  .chipbox__own { margin-top: 16px; padding-top: 14px; }
  .btn--add__text { display: none; }
  .btn--add { padding: 0 14px; }
  .modal { padding: 22px 20px; }
  .modal__title { font-size: 18px; }
  .modal__actions { grid-template-columns: 1fr; }
  .modal__actions .btn:last-child { grid-row: 1; } /* mobil: Hauptaktion oben */
  .nav--overview .btn--primary { padding: 11px 18px; }
  .nav .btn { padding: 11px 20px; }

  .foot { padding: 14px 16px 18px; }
  .foot__logo { width: 65.8px; height: 14px; }
}

/* ---------- Micro-Interactions ---------- */
.btn, .chip, .option, .example__btn, .linkchip, .notice__action { transition-property: color, background-color, border-color, box-shadow, opacity, transform; transition-duration: 150ms; transition-timing-function: ease; }
.btn:active, .example__btn:active, .linkchip:active, .notice__action:active { transform: scale(0.97); }
.chip:not(.is-disabled):active, .option:active { transform: scale(0.97); }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes dotPop { 0% { transform: scale(0.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.chip.is-own.is-new { animation: popIn 420ms cubic-bezier(.2,.8,.2,1); }
.option.is-selected .option__dot { animation: dotPop 360ms ease; }
.pips i.is-new { animation: dotPop 360ms ease; }
.example__panel, .jump__panel { animation: reveal 300ms cubic-bezier(.2,.8,.2,1); }
.modal { animation: modalIn 320ms cubic-bezier(.2,.8,.2,1); }
.slider__knob { transition: left var(--ease), box-shadow var(--ease), background-color var(--ease), transform 150ms ease; }
.slider.is-dragging .slider__knob, .slider__knob:active { transform: translateX(-50%) scale(1.25); }
/* Fortschritt federt beim Wachsen leicht nach */
.progress__fill { transition: width 750ms cubic-bezier(.3,1.12,.3,1), background-size 750ms cubic-bezier(.3,1.12,.3,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Druck / PDF: nur Kopf + Antworten (Danke-Seite „Als PDF sichern“) ---------- */
@media print {
  /* Druck über das Browser-Menü: Seite wie angezeigt, ohne Kopfzeile, Konfetti und Animations-Zwischenstände */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hdr, .agency-bar, .scrim, canvas { display: none !important; }
}

/* Touch-Geräte: Eingabefelder mit 16 px – sonst zoomt iOS beim Antippen hinein und die Seite wird breiter als der Bildschirm */
@media (pointer: coarse), (max-width: 720px) {
  .input, .textarea { font-size: 16px; }
}
/* Sehr schmale Geräte (iPhone SE & Co., ≤ 360 px): Navigationsbuttons kompakter, damit „Verbindlich abschicken“ passt */
@media (max-width: 360px) {
  .nav { gap: 10px; }
  .nav .btn { padding-left: 14px; padding-right: 14px; }
}
/* Lange Wörter (Links, E-Mail-Adressen) in Antworten und Namen umbrechen statt über den Rand zu ragen */
body { overflow-wrap: break-word; }

