/* quik Sites: Abstimmung mit dem Kunden, Runden mit Auswahl und Freigabe (docs/BAUPLAN.md Abschnitt 34).
   fs-  Feedback einholen (public/js/feedback-start.js): Auswahl in zwei Schritten über dem Editor bzw. der Zusammenarbeit
   fg-  Seite des Kunden, Teil für Teil (public/js/feedback-gefuehrt.js)
   fe-  Editor: Bereich „Feedback“, Zeichen an Abschnitten (public/js/editor/abstimmung.js)
   Farben nur über die Variablen aus app.css (docs/GESTALTUNG.md Abschnitt 13 und 15): Freigegeben grün, Änderung gewünscht
   orange, je Zeile ein Signal; alles andere ruhig in Tinte und Grau. */

/* ====================================================================== Feedback einholen */
.fs { position: fixed; inset: 0; z-index: 60; display: grid; place-items: stretch; padding: 16px; background: var(--scrim); opacity: 0; transition: opacity .18s var(--ease); }
.fs.in { opacity: 1; }
.fs-boot { place-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: var(--surface); color: var(--ink-soft); font-size: var(--fs-sm); box-shadow: var(--shadow-pop); }
.fs-spin { width: 16px; height: 16px; border-radius: 99px; border: 2px solid var(--line-strong); border-top-color: transparent; animation: fs-dreh .8s linear infinite; flex: none; }
@keyframes fs-dreh { to { transform: rotate(360deg); } }
.fs-sheet { display: flex; flex-direction: column; min-height: 0; max-width: 1480px; width: 100%; margin: 0 auto; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-pop); transform: translateY(8px) scale(.995); transition: transform .26s var(--ease); }
.fs.in .fs-sheet { transform: none; }

.fs-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line-soft); flex: none; }
.fs-top-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fs-top-l b { font-size: var(--fs-md); font-weight: 650; letter-spacing: -.015em; }
.fs-top-l span { font-size: var(--fs-xs); color: var(--ink-faint); }
.fs-x { justify-self: end; }
.fs-steps { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fs-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; color: var(--ink-faint); font-size: var(--fs-sm); font-weight: 550; transition: color .2s, background-color .2s; }
.fs-steps li + li::before { content: ""; width: 22px; height: 1px; margin: 0 4px 0 -8px; background: var(--line-strong); }
.fs-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; font-style: normal; font-size: var(--fs-2xs); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .2s, color .2s, box-shadow .2s; }
.fs-steps li.on { color: var(--fg); }
.fs-steps li.on i { background: var(--fg); color: var(--on-fg); box-shadow: none; }
.fs-steps li.done { color: var(--ink-soft); }
.fs-steps li.done i { background: var(--surface-3); color: var(--fg); box-shadow: none; }

.fs-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.fs-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-soft); background: var(--surface); }
.fs-side-h { padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 12px; flex: none; }
.fs-side-h h2 { font-size: var(--fs-lg); letter-spacing: -.015em; }
.fs-kurz { margin: 0; font-size: var(--fs-xs); color: var(--ink-faint); }
.fs-art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: var(--r); }
/* Vier gleich breite Felder, Symbol über dem Wort: auch „Abschnitte“ hat Luft zu beiden Seiten */
.fs-art > button { flex-direction: column; gap: 3px; min-height: 52px; padding: 7px 4px 6px; border-radius: var(--r-sm); font-size: var(--fs-xs); line-height: 1.2; }
.fs-side-b { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 20px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.fs-side-b > * { flex-shrink: 0; }
.fs-leer { margin: 24px 8px; color: var(--ink-faint); font-size: var(--fs-sm); text-align: center; }

/* Vorschlag „Geändert seit der letzten Runde“ */
.fs-vorschlag { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; margin: 0 0 8px; border-radius: 12px; background: var(--surface-2); text-align: left; transition: background-color .15s, box-shadow .2s; }
.fs-vorschlag:hover { background: var(--surface-3); }
.fs-vorschlag.on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); }
.fs-vorschlag b { display: block; font-weight: 600; font-size: var(--fs-sm); }
.fs-vorschlag span:not(.fs-vorschlag-ic) { display: block; font-size: var(--fs-xs); color: var(--ink-faint); }
.fs-vorschlag-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); color: var(--fg); }
.fs-vorschlag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Gruppen je Seite */
.fs-grp { border-radius: 12px; }
.fs-grp > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; border-radius: 10px; cursor: pointer; list-style: none; font-size: var(--fs-sm); user-select: none; }
.fs-grp > summary::-webkit-details-marker { display: none; }
.fs-grp > summary:hover { background: var(--hover); }
.fs-grp > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fs-grp > summary > .ic { color: var(--ink-faint); transition: transform .2s var(--ease); flex: none; }
.fs-grp[open] > summary > .ic { transform: rotate(90deg); }
.fs-grp > summary b { flex: 1; min-width: 0; font-weight: 600; }
.fs-grp-n { font-size: var(--fs-xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-grp-all { flex: none; font-size: var(--fs-xs); padding: 4px 6px; white-space: nowrap; overflow: visible; }
.fs-rows { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px; }

/* Zeile mit Häkchen und Vorschaubild */
.fs-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 12px; border-radius: 12px; cursor: pointer; transition: background-color .15s, box-shadow .2s; }
.fs-row:hover { background: var(--hover); }
.fs-row.on { background: var(--surface-2); }
.fs-row.fest { cursor: default; }
.fs-row > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fs-row:has(> input:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
.fs-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--on-fg); transition: background-color .18s, box-shadow .18s; }
.fs-check .ic { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.fs-row.on .fs-check { background: var(--fg); box-shadow: none; }
.fs-row.on .fs-check .ic { opacity: 1; transform: none; }
.fs-row.fest.on .fs-check { background: var(--surface-3); color: var(--fg); }
.fs-th { position: relative; flex: none; width: 112px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line-soft); }
.fs-th iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 731px; border: 0; transform: scale(.0875); transform-origin: 0 0; pointer-events: none; background: var(--paper); }
.fs-th.is-leer { display: grid; place-items: center; color: var(--ink-faint); background: var(--surface-2); }
.fs-th.is-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fs-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.fs-row-t b { font-weight: 600; font-size: var(--fs-sm); }
.fs-row-t span { font-size: var(--fs-xs); color: var(--ink-faint); min-height: 1em; }
.fs-page.is-cur .fs-th { box-shadow: 0 0 0 1.5px var(--fg); }
.fs-eye { flex: none; }

/* Zeichen für den Stand eines Abschnitts (auch im Editor) */
.fs-dot, .fe-dot { flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--ink-faint); }
.fs-dot.is-frei, .fe-dot.is-frei { background: var(--green-dot); }
.fs-dot.is-aendern, .fe-dot.is-aendern { background: var(--orange-dot); }
.fs-dot.is-wartet, .fe-dot.is-wartet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.fs-dot.is-geaendert, .fe-dot.is-geaendert { background: transparent; box-shadow: inset 0 0 0 2px var(--green-dot); }

/* Entwürfe */
.fs-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 148px; margin: 4px 8px 12px; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--ink-soft); text-align: center; transition: border-color .15s, background-color .15s; }
.fs-drop b { color: var(--fg); font-weight: 600; }
.fs-drop span { font-size: var(--fs-xs); color: var(--ink-faint); }
.fs-drop:hover, .fs-drop.is-over { border-color: var(--fg); background: var(--surface-2); }
.fs-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-bild { cursor: default; }

/* Bühne: Vorschau mit Auswahlrahmen */
.fs-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--canvas-bg, var(--bg)); }
.fs-canvas { position: relative; margin: 24px auto 0; overflow: hidden; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-soft), 0 24px 48px -32px rgba(var(--shadow-rgb), .4); }
.fs-frame { display: block; border: 0; background: var(--paper); transform-origin: 0 0; }
.fs-tip { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--fg); color: var(--on-fg); font-size: var(--fs-sm); font-weight: 550; white-space: nowrap; box-shadow: var(--shadow-pop); pointer-events: none; opacity: 0; transition: opacity .2s, transform .25s var(--ease); }
.fs-stage.is-wahl .fs-tip { opacity: 1; transform: translate(-50%, 0); }
.fs-wait { position: absolute; inset: 0; display: none; place-items: center; background: var(--bg); }
.fs-stage.is-loading .fs-wait { display: grid; }
.fs-stage.is-aus .fs-canvas, .fs-stage.is-aus .fs-tip, .fs-stage.is-leer .fs-canvas { visibility: hidden; }
.fs-sheet[data-schritt="2"] .fs-tip { opacity: 0; }
/* Entwürfe auf der Bühne */
.fs-gal { display: none; position: absolute; inset: 0; overflow-y: auto; padding: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; gap: 18px; transition: background-color .15s; }
.fs-stage.is-aus .fs-gal { display: grid; }
.fs-gal.is-over { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--fg); }
.fs-gal-it { margin: 0; display: flex; flex-direction: column; gap: 8px; animation: fg-auf .3s var(--ease) both; }
.fs-gal-it img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-soft), 0 16px 32px -24px rgba(var(--shadow-rgb), .45); }
.fs-gal-it figcaption { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-sm); }
.fs-gal-it figcaption span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--fg); color: var(--on-fg); font-size: var(--fs-2xs); font-weight: 650; }
.fs-gal-it figcaption b { font-weight: 550; }
.fs-gal-leer { grid-column: 1 / -1; place-self: center; margin-top: 14vh; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink-faint); font-size: var(--fs-sm); }
.fs-gal-leer b { color: var(--fg); font-weight: 600; margin-top: 10px; }
.fs-gal-ill { display: flex; gap: 6px; }
.fs-gal-ill i { width: 46px; height: 60px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.fs-gal-ill i:nth-child(2) { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--fg); }

/* Schritt 2 */
.fs-form { padding: 4px 20px 24px; gap: 18px; }
.fs-form .fld { margin: 0; }
.fs-frist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fs-frist .input { width: auto; flex: 0 0 auto; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 550; transition: background-color .15s, color .15s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-chip:hover { background: var(--surface-3); color: var(--fg); }
.fs-chip.on { background: var(--fg); color: var(--on-fg); }
.fs-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-vor { margin-top: 8px; align-items: center; }
.fs-vor-t { font-size: var(--fs-xs); color: var(--ink-faint); margin-right: 2px; }
.fs-fragen { border: 1px solid var(--line-soft); border-radius: 12px; }
.fs-fragen > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 600; }
.fs-fragen > summary::-webkit-details-marker { display: none; }
.fs-fragen > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.fs-opt { margin-left: auto; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-faint); }
.fs-fragen-b { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 14px; }
.fs-frage { display: flex; flex-direction: column; gap: 6px; }
.fs-frage-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-xs); color: var(--ink-soft); }
.fs-frage-t i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); font-style: normal; }
.fs-frage-t b { font-weight: 600; }
.fs-fest { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fs-fest b { display: block; font-weight: 600; font-size: var(--fs-sm); }
.fs-fest span:not(.fs-fest-ic) { display: block; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.45; }
.fs-fest-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); }
/* Schritt 2: Die Bühne zeigt weiter die Seite, ruhig und ohne Auswahl */
.fs-sheet[data-schritt="2"] .fs-canvas { opacity: .9; }

/* Fuß */
.fs-foot { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 16px 10px 20px; border-top: 1px solid var(--line-soft); flex: none; background: var(--surface); }
.fs-sum { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.fs-sum span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-sum-n { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-weight: 650; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.fs-sum-n.on { background: var(--fg); color: var(--on-fg); }
.fs-go { min-width: 132px; justify-content: center; }
.fs-go .ic { flex: none; }

/* Fertig */
.fs-done { grid-column: 1 / -1; place-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(520px, calc(100% - 40px)); padding: 32px 0; text-align: center; }
.fs-done h2 { font-size: var(--fs-2xl); letter-spacing: -.022em; margin-top: 6px; }
.fs-done p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.fs-done .copy-row { width: 100%; margin-top: 10px; }
.fs-done-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 99px; background: var(--fg); color: var(--on-fg); animation: fs-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.fs-done-ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: fs-zug .4s .2s var(--ease) forwards; }
@keyframes fs-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fs-zug { to { stroke-dashoffset: 0; } }
.fs-done-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-soft); }
.fs-done-facts span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1100px) { .fs-main { grid-template-columns: 360px minmax(0, 1fr); } }
/* Schmal: nur die Liste (Vorschaubilder zeigen genug), Blatt über den ganzen Bildschirm */
@media (max-width: 860px) {
  .fs { padding: 0; }
  .fs-sheet { border-radius: 0; }
  .fs-top { grid-template-columns: minmax(0, 1fr) auto; height: 56px; padding: 0 8px 0 16px; }
  .fs-steps { display: none; }
  .fs-main { grid-template-columns: minmax(0, 1fr); }
  .fs-side { border-right: 0; }
  .fs-stage { display: none; }
  .fs-side-h { padding: 16px 16px 10px; }
  .fs-side-b { padding: 4px 8px 16px; }
  .fs-form { padding: 4px 16px 20px; }
  .fs-art > button { min-height: 52px; padding-inline: 2px; }
  .fs-th { width: 96px; height: 56px; }
  .fs-th iframe { transform: scale(.075); height: 747px; }
  .fs-foot { padding: 10px 12px 10px 16px; }
  .fs-foot .btn { min-height: 44px; }
  .fs-go { min-width: 0; }
  .fs-sum span:last-child { white-space: normal; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .fs, .fs-sheet, .fs-tip, .fs-check .ic, .fs-sum-n { transition: none; }
  .fs-done-ic, .fs-done-ic path { animation: none; stroke-dashoffset: 0; }
  .fs-spin { animation-duration: 2s; }
}

/* ====================================================================== Editor: Bereich „Feedback“, Zeichen */
.fe-mark { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px; color: var(--ink-soft); font-size: var(--fs-2xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.qe-row:hover > .fe-mark, .qe-row.on > .fe-mark, .qe-row:focus-within > .fe-mark { display: none; }
.fe-top { position: relative; gap: 7px; }
.fe-top .qe-lbl { white-space: nowrap; }
.fe-b { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 24px; }
.fe-b > * { flex-shrink: 0; }
.fe-load { display: grid; place-items: center; padding: 40px 0; }

.fe-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 8px 8px; text-align: center; }
.fe-empty b { font-weight: 600; margin-top: 8px; }
.fe-empty p { margin: 0 0 10px; font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.5; max-width: 30ch; }
/* Bild: drei Abschnitte, einer gewählt (Rahmen mit Häkchen) */
.fe-empty-ill { position: relative; display: flex; flex-direction: column; gap: 5px; width: 96px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.fe-empty-ill i { display: block; height: 16px; border-radius: 4px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.fe-empty-ill i:nth-child(2) { height: 22px; box-shadow: 0 0 0 1.5px var(--fg); }
.fe-empty-ill i:nth-child(2)::after { content: ""; position: absolute; right: 4px; top: 25px; width: 14px; height: 14px; border-radius: 99px; background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }

.fe-bil { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.fe-bil .ringv { flex: none; }
.fe-bil .ringv b { font-size: 10.5px; }
.fe-bil-t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-bil-t b { font-weight: 600; font-size: var(--fs-sm); }
.fe-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fe-chips:empty { display: none; }
.fe-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.fe-runde { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; border-radius: 12px; border: 1px solid var(--line-soft); }
.fe-runde-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); }
.fe-runde-ic.is-frei { background: var(--green-tint); color: var(--green-ink); }
.fe-runde-ic.is-aendern { background: var(--orange-tint); color: var(--orange-ink); }
.fe-runde-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fe-runde-t b { font-weight: 600; font-size: var(--fs-sm); }
.fe-runde-t span { font-size: var(--fs-xs); color: var(--ink-faint); }
.fe-next { width: 100%; justify-content: center; }

.fe-list-h { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 6px; }
.fe-list-h h3 { font-size: var(--fs-sm); font-weight: 600; }
.fe-seg { display: flex; width: 100%; }
.fe-seg > button { flex: 1; justify-content: center; padding-inline: 6px; font-size: var(--fs-xs); }
.fe-nur { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; height: 28px; padding: 0 4px 0 10px; border-radius: 99px; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 550; }
.fe-none { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border-radius: 12px; color: var(--ink-faint); font-size: var(--fs-sm); background: var(--surface-2); }
.fe-list { display: flex; flex-direction: column; gap: 6px; }
.fe-p { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 6px 10px 10px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); transition: opacity .25s, border-color .15s; }
.fe-p:hover { border-color: var(--line-strong); }
.fe-p.done { opacity: .62; }
.fe-p.done .fe-p-t { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.fe-tick, .fe-nr { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; transition: background-color .18s, box-shadow .18s, color .18s; }
.fe-nr { color: var(--ink-soft); font-size: var(--fs-2xs); font-weight: 650; }
.fe-tick:hover { box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--ink-faint); }
.fe-tick.on { background: var(--fg); box-shadow: none; color: var(--on-fg); }
.fe-tick .ic { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.fe-tick.on .ic { transform: scale(1.05); }
.fe-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fe-p-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fe-p-h { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; line-height: 1.3; border-radius: 6px; }
.fe-p-h b { max-width: 100%; font-weight: 600; font-size: var(--fs-sm); }
.fe-p-h span { font-size: var(--fs-xs); color: var(--ink-faint); }
.fe-p-h:hover b { text-decoration: underline; text-underline-offset: 2px; }
.fe-p-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fe-p-t { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fe-p-a { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--ink-faint); }
.fe-p-m { flex: none; }
@media (prefers-reduced-motion: reduce) { .fe-p, .fe-tick, .fe-tick .ic { transition: none; } }
@media (max-width: 640px) { .fe-top .qe-lbl { display: none; } .fe-top { padding-inline: .6em; } }

/* ====================================================================== Seite des Kunden: Teil für Teil */
.fg { min-height: 100vh; min-height: 100dvh; }
.fg-top { gap: 16px; }
.fg-top .gast-top-t { flex: 1 1 auto; }
/* Fortschritt: Strich-Leiste unten im Blatt zwischen „Zurück“ und „Weiter“ (Zahl im Tooltip) */
.fg-fort { display: flex; justify-content: center; flex: 1 1 auto; min-width: 0; padding: 0 6px; }
.fg-bar { display: flex; gap: 3px; width: 100%; max-width: 200px; }
.fg-seg { flex: 1; min-width: 6px; height: 6px; border-radius: 99px; background: var(--surface-3); transition: background-color .25s, transform .2s; padding: 0; position: relative; }
/* größere Tippfläche */
.fg-seg::after { content: ""; position: absolute; inset: -9px -1px; }
.fg-seg:hover { transform: scaleY(1.5); }
.fg-seg.is-frei { background: var(--green-dot); }
.fg-seg.is-aendern { background: var(--orange-dot); }
.fg-seg.on { transform: scaleY(1.5); box-shadow: 0 0 0 1px var(--surface); }
.fg-seg.on:not(.is-frei):not(.is-aendern) { background: var(--fg); }
.fg-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fg-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Begrüßung */
.fg-start { flex: 1; display: grid; place-items: center; padding: 32px 20px 48px; }
.fg-start-c { width: min(520px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); animation: fg-auf .35s var(--ease) both; }
.fg-start-k, .fg-k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.fg-start h1 { font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -.022em; margin-top: -8px; }
.fg-msg { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.fg-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.fg-msg span { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-faint); }
.fg-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-soft); }
.fg-facts li { display: inline-flex; align-items: center; gap: 7px; }
/* „So geht’s“: Link in der Zeile der Fakten, die drei Schritte im Popover */
.fg-so { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.fg-how-pop { margin: 0; padding: 6px 8px; list-style: none; counter-reset: fg; display: grid; gap: 10px; }
.fg-how-pop li { counter-increment: fg; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.45; }
.fg-how-pop li::before { content: counter(fg); grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--fg); color: var(--on-fg); font-size: var(--fs-2xs); font-weight: 650; }
.fg-how-pop b { color: var(--fg); font-size: var(--fs-sm); font-weight: 600; }
.fg-start .fld { margin: 0; }
.fg-los { align-self: flex-start; min-height: 44px; padding-inline: 1.3em; gap: 8px; }
@keyframes fg-auf { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Teil: Vorschau links, Entscheidung rechts */
.fg-teil { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.fg-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--canvas-bg, var(--bg)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fg-canvas { position: relative; overflow: hidden; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-soft), 0 24px 48px -32px rgba(var(--shadow-rgb), .45); animation: fg-auf .3s var(--ease) both; }
.fg-frame { display: block; border: 0; background: var(--paper); transform-origin: 0 0; }
.fg-stage.is-mode .fg-canvas { box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -32px rgba(var(--shadow-rgb), .45); }
.fg-tip { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--fg); color: var(--on-fg); font-size: var(--fs-sm); font-weight: 550; white-space: nowrap; box-shadow: var(--shadow-pop); pointer-events: none; opacity: 0; transition: opacity .2s, transform .25s var(--ease); }
.fg-stage.is-mode .fg-tip { opacity: 1; transform: translate(-50%, 0); }
.fg-wait { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px; background: var(--bg); color: var(--ink-soft); font-size: var(--fs-sm); }
.fg-stage.is-loading .fg-wait { display: flex; }
/* Entwurf als Bild */
.fg-stage.is-bild { overflow: auto; justify-content: flex-start; padding: 24px; }
.fg-stage.is-bild .fg-canvas { overflow: visible; background: transparent; box-shadow: none; }
.fg-bild { position: relative; display: block; max-width: min(100%, 1280px); }
.fg-bild img { display: block; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-soft), 0 24px 48px -32px rgba(var(--shadow-rgb), .45); user-select: none; }
.fg-bild.is-mode { cursor: crosshair; }
.fg-bild.is-mode img { box-shadow: 0 0 0 2px var(--accent); }
.fg-bild-pins { position: absolute; inset: 0; pointer-events: none; }
.fg-pin { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50% 50% 50% 4px; background: var(--fg); color: var(--on-fg); border: 2px solid var(--surface); font-size: var(--fs-xs); font-weight: 650; box-shadow: var(--shadow-pop); }
.fg-pin.neu { background: var(--surface); color: var(--fg); border-color: var(--fg); }
.fg-pin.done { background: var(--surface-3); color: var(--ink-soft); }

.fg-panel { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; padding: 24px; background: var(--surface); border-left: 1px solid var(--line-soft); }
.fg-panel > * { flex-shrink: 0; }
.fg-panel-h h2 { margin-top: 4px; font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -.018em; overflow-wrap: anywhere; }
.fg-frage { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fg-frage-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line-soft); font-size: var(--fs-2xs); font-weight: 650; letter-spacing: .02em; }
.fg-frage div > span { display: block; font-size: var(--fs-xs); color: var(--ink-faint); }
.fg-frage p { margin: 2px 0 0; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.fg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fg-acts .btn { min-height: 48px; justify-content: center; gap: 8px; font-size: var(--fs-base); }
.fg-aendern.on { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--fg); }
.fg-done { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--green-tint); }
.fg-done.pop { animation: fg-pop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.fg-done b { display: block; font-weight: 600; }
.fg-done span:not(.fg-done-ic) { font-size: var(--fs-xs); color: var(--ink-soft); }
.fg-done-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: var(--green-dot); color: var(--on-green); }
@keyframes fg-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.fg-hint { margin: 0; font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.45; }

.fg-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); animation: fg-auf .25s var(--ease) both; }
.fg-form-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-soft); min-width: 0; }
.fg-form-h > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fg-ta { resize: vertical; min-height: 76px; line-height: 1.5; }
.fg-form-f { display: flex; justify-content: flex-end; gap: 8px; }
.fg-punkte { display: flex; flex-direction: column; gap: 8px; }
.fg-p { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px 10px 10px; border-radius: 12px; border: 1px solid var(--line-soft); }
.fg-p.done { opacity: .7; }
.fg-p b { font-size: var(--fs-sm); font-weight: 600; }
.fg-p p { margin: 2px 0 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fg-p .fg-p-ant { font-size: var(--fs-sm); color: var(--ink-soft); padding-left: 10px; border-left: 2px solid var(--line-soft); margin-top: 6px; }
.fg-p-at { display: block; font-size: var(--fs-xs); color: var(--ink-faint); overflow-wrap: anywhere; }
.fg-p-nr { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: var(--fg); color: var(--on-fg); font-size: var(--fs-2xs); font-weight: 650; }
.fg-p-nr.neu { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.fg-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.fg-nav .btn { min-height: 44px; gap: 6px; }
.fg-nav-n { font-size: var(--fs-xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Zusammenfassung, Dank */
.fg-page { flex: 1; display: flex; justify-content: center; padding: 32px 20px 56px; }
.fg-summe, .fg-danke { width: min(640px, 100%); display: flex; flex-direction: column; gap: 18px; animation: fg-auf .3s var(--ease) both; }
.fg-s-h h1 { margin-top: 4px; font-size: var(--fs-2xl); letter-spacing: -.022em; }
.fg-s-bil { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fg-s-bil > span { font-size: var(--fs-sm); color: var(--ink-soft); }
.fg-s-bar { display: flex; gap: 3px; }
.fg-s-bar i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); }
.fg-s-bar i.is-frei { background: var(--green-dot); }
.fg-s-bar i.is-aendern { background: var(--orange-dot); }
.fg-s-list { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); overflow: hidden; }
.fg-s-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); transition: background-color .15s; }
.fg-s-row:last-child { border-bottom: 0; }
.fg-s-row:hover { background: var(--hover); }
.fg-s-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fg-s-row .grow { min-width: 0; display: flex; flex-direction: column; }
.fg-s-row b { font-weight: 600; }
.fg-s-row .grow span { font-size: var(--fs-xs); color: var(--ink-faint); }
.fg-s-row > .ic { color: var(--ink-faint); flex: none; }
.fg-s-st { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.fg-s-st.is-frei { background: var(--green-dot); color: var(--on-green); box-shadow: none; }
.fg-s-st.is-aendern { background: var(--orange-tint); color: var(--orange-ink); box-shadow: none; }
.fg-s-st.is-offen .ic { opacity: 0; }
.fg-rest { align-self: flex-start; }
.fg-s-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.fg-s-form .fld { margin: 0; }
.fg-s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-s-two.is-eins { grid-template-columns: minmax(0, 1fr); }
.fg-als { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.fg-als b { color: var(--fg); font-weight: 600; }
.fg-s-auf { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.fg-s-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fg-send { min-height: 48px; padding-inline: 1.4em; gap: 8px; }
.fg-s-go .fg-hint { flex: 1; min-width: 200px; }
.fg-danke { align-items: center; text-align: center; padding-top: 16px; }
.fg-danke h1 { font-size: var(--fs-2xl); letter-spacing: -.022em; }
.fg-danke > p { margin: -6px 0 0; color: var(--ink-soft); max-width: 46ch; }
.fg-nachweis { width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.fg-nw-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.fg-nw-h b { font-weight: 650; }
.fg-nw-h span { font-size: var(--fs-xs); color: var(--ink-soft); text-align: right; }
.fg-nachweis dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 14px; margin: 12px 0; font-size: var(--fs-sm); }
.fg-nachweis dt { color: var(--ink-faint); }
.fg-nachweis dd { margin: 0; overflow-wrap: anywhere; }
.fg-nachweis code { font: 600 var(--fs-xs) / 1 var(--font); letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); font-variant-numeric: tabular-nums; font-feature-settings: var(--code-ff); }
.fg-nw-list { margin: 0; padding: 12px 0 0; list-style: none; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); }
.fg-nw-list li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); min-width: 0; }
.fg-nw-list li > span:last-child { font-size: var(--fs-xs); color: var(--ink-soft); white-space: nowrap; }
.fg-nw-list .fg-s-st { width: 20px; height: 20px; }
.fg-danke-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fg-danke .gast-ct { width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); }
/* Nachweis eingeklappt: eine Zeile wie eine Karte, aufgeklappt die Angaben und „Drucken oder als PDF“ */
.fg-nw-auf { width: 100%; text-align: left; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.fg-nw-auf > summary { padding: 0 16px; min-height: 48px; }
.fg-nw-auf > .ru-auf-x { padding: 0 16px 14px; }
.fg-nw-auf .fg-nachweis { padding: 0; border: 0; background: transparent; }
.fg-nw-auf .fg-danke-acts { justify-content: flex-start; margin-top: 12px; }
.fg-danke > .fg-danke-p { width: 100%; }

/* Handy: Vorschau oben in Handybreite, Entscheidung darunter, die Seite rollt als Ganzes */
@media (max-width: 860px) {
  .fg-top .gast-top-t { flex: 1 1 0; }
  .fg-teil { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .fg-stage { height: 56vh; height: 56dvh; justify-content: flex-start; }
  .fg-stage.is-kurz { height: auto; max-height: 56dvh; }
  .fg-canvas { border-radius: 0; box-shadow: none; }
  .fg-stage.is-bild { height: auto; padding: 12px; }
  .fg-panel { border-left: 0; border-top: 1px solid var(--line-soft); padding: 18px 16px 24px; overflow: visible; }
  .fg-start-c { padding: 22px 18px; border-radius: 16px; }
  .fg-s-two { grid-template-columns: minmax(0, 1fr); }
  .fg-page { padding: 20px 14px 40px; }
  .fg-s-form { padding: 16px; }
  .fg-send { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-start-c, .fg-canvas, .fg-form, .fg-summe, .fg-danke, .fg-done.pop { animation: none; }
  .fg-seg, .fg-tip { transition: none; }
}
/* Drucken: nur der Nachweis */
@media print {
  .gast-top, .gast-foot, .fg-danke-acts, .fg-danke .gast-ct, .fs-done-ic { display: none !important; }
  .fg-page { padding: 0; }
  .fg-nachweis { border: 0; padding: 0; }
}

/* ====================================================================== Veröffentlichen: Stand der Freigabe */
.fz { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.fz[hidden] { display: none; }
.fz-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: var(--surface); color: var(--ink-soft); }
.fz-ic.is-frei { background: var(--green-tint); color: var(--green-ink); }
.fz-ic.is-aendern { background: var(--orange-tint); color: var(--orange-ink); }
.fz-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.fz-t b { font-weight: 600; font-size: var(--fs-sm); }
.fz-t span { font-size: var(--fs-xs); color: var(--ink-soft); }
.fz-a { flex: none; font-size: var(--fs-sm); }

/* Abstimmung im Team (public/js/feedback.js): Teile der Runde mit Entscheidung */
.fb-teile { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-soft); }
.fb-teile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fb-teile-h b { font-weight: 600; font-size: var(--fs-sm); }
.fb-teile ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fb-teile li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-sm); }
.fb-teile li .fb-meta { display: inline; white-space: nowrap; }
.fb-teile > .btn { align-self: flex-start; }
