/* 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 250ms 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; }
.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: nowrap; }
.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.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; }
.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; }

/* ---------- 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__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;
}

/* ---------- 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); }
/* 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; }

/* 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; }

  .page { padding: 24px 16px 0; }
  .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 pop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@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-selected:not(.is-own) { animation: pop 340ms ease; }
.chip.is-own.is-new { animation: popIn 420ms cubic-bezier(.2,.8,.2,1); }
.option.is-selected { animation: pop 340ms ease; }
.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; }

