/**
 * Interview „Neue Versammlung“ (W4-01, W4-06): eine Frage je Bildschirm, große Antwortkarten (mindestens 48 px), Fortschrittsleiste, Schrittliste beim Anlegen.
 * Nur Layout und Akzent; Farben kommen aus den Admin-Variablen (--ink, --muted, --line, --bg-elev, --bg-soft, --ui-tint). Wurzel `.as-iv` (zusammen mit `.as-wizard`,
 * dessen Felder, Gruppen und Hinweise aus assembly-admin.css mitgenutzt werden). 1366 × 768 und 375 × 812 ohne waagrechten Bildlauf.
 */
.view-assembly .admin-page-head:has(+ .as-iv) .admin-page-head__lead { display: none; }
.as-wizard.as-iv { max-width: 52rem; padding-bottom: 4px; --iv-danger: #b3261e; --iv-ok: #14653a; --iv-card-min: 48px; }
[data-theme="dark"] .as-iv { --iv-danger: #f87171; --iv-ok: #4ade80; }
.as-iv * { box-sizing: border-box; }
.as-iv .as-error { border-color: var(--iv-danger); color: var(--iv-danger); }
.as-iv__sections { display: flex; gap: 4px; list-style: none; margin: 8px 0 6px; padding: 0; flex-wrap: wrap; }
.as-iv__section { font-size: 0.8125rem; color: var(--muted); padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; }
.as-iv__section.is-current { color: var(--ui-tint-ink, var(--ink)); border-color: var(--ui-tint, currentColor); background: var(--ui-tint-soft, transparent); font-weight: 700; }
.as-iv__section.is-done { color: var(--ink); }
.as-iv__bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 0 0 10px; }
.as-iv__bar > span { display: block; height: 100%; background: var(--ui-tint, currentColor); border-radius: inherit; transition: width 0.25s ease; }
.as-iv__screen { min-width: 0; }
.as-iv__h { font-size: 1.5rem; line-height: 1.25; margin: 2px 0 4px; overflow-wrap: anywhere; }
.as-wizard.as-iv .as-iv__h:focus, .as-wizard.as-iv .as-iv__h:focus-visible { outline: none; }
.as-iv__help { margin: 0 0 10px; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.as-iv__later { margin: 0; font-size: 0.8125rem; color: var(--muted); text-align: center; flex: 1 1 auto; min-width: 0; }
.as-iv__lead { margin: 0 0 10px; font-weight: 600; }
.as-iv__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.as-iv__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.as-iv__legend { padding: 0; margin: 0 0 6px; font-weight: 600; font-size: 0.9375rem; }
.as-iv__cards { display: grid; gap: 8px; }
.as-iv__cards--1 { grid-template-columns: minmax(0, 1fr); }
.as-iv__cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-iv__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-iv__card { position: relative; display: flex; min-height: var(--iv-card-min); cursor: pointer; }
.as-iv__input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.as-iv__card-body { display: flex; flex-direction: column; gap: 2px; justify-content: center; width: 100%; min-width: 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg-elev); overflow-wrap: anywhere; }
.as-iv__card:hover .as-iv__card-body { border-color: var(--ui-separator-strong, var(--line)); }
.as-iv__card:has(.as-iv__input:checked) .as-iv__card-body { border-color: var(--ui-tint, currentColor); background: var(--ui-tint-soft, var(--bg-soft)); }
.as-iv__card:has(.as-iv__input:focus-visible) .as-iv__card-body, .as-iv__switch:has(.as-iv__input:focus-visible, input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.as-iv__card-name { font-weight: 700; }
.as-iv__card-text { font-size: 0.875rem; color: var(--muted); }
.as-iv__sketch { align-self: flex-start; color: var(--ink); margin-bottom: 4px; flex: none; }
.as-iv__subcards { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.as-iv__switches { display: flex; flex-direction: column; gap: 8px; }
.as-iv__switch { display: flex; align-items: center; gap: 12px; min-height: var(--iv-card-min); padding: 8px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg-elev); cursor: pointer; }
.as-iv__switch > input { width: 22px; height: 22px; flex: none; }
.as-iv__switch-body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.as-iv__sub, .as-iv__keybox { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.as-iv__file { position: relative; min-height: 48px; display: inline-flex; align-items: center; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.as-iv__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.as-iv__file:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.as-iv__note { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); overflow-wrap: anywhere; }
.as-iv__fold { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--bg-elev); }
.as-iv__fold > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.as-iv__fold[open] { padding-bottom: 12px; }
.as-iv__opt { padding: 10px 0; border-top: 1px solid var(--line); }
.as-iv__opt-h { font-size: 1rem; margin: 0 0 8px; }
.as-iv__summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.as-iv__row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 4px 6px 4px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.as-iv__row .as-small { min-height: 32px; padding: 2px 10px; }
[data-as-iv-screen="I-10"] .as-iv__help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.as-iv__row[data-as-iv-row="results"], .as-iv__row[data-as-iv-row="open"] { grid-column: 1 / -1; }
.as-iv__row--open { padding-right: 10px; }
.as-iv__row--open .as-small { margin: 2px 2px 2px 0; }
.as-iv__sentence { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 0.875rem; line-height: 1.3; }
.as-iv .as-small { flex: none; }
.as-iv__steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.as-iv__step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.as-iv__step-mark { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.as-iv__step[data-state="run"] .as-iv__step-mark { border-color: var(--ui-tint, currentColor); border-top-color: transparent; animation: as-iv-spin 0.9s linear infinite; }
.as-iv__step[data-state="done"] .as-iv__step-mark { background: var(--iv-ok); border-color: var(--iv-ok); }
.as-iv__step[data-state="fail"] .as-iv__step-mark { background: var(--iv-danger); border-color: var(--iv-danger); }
.as-iv__step[data-state="skip"] { opacity: 0.6; }
.as-iv__step-state { font-size: 0.875rem; color: var(--muted); text-align: right; }
@keyframes as-iv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .as-iv__bar > span { transition: none; } .as-iv__step[data-state="run"] .as-iv__step-mark { animation: none; } }
.as-iv__todo { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: iv-todo; }
.as-iv__todo li { counter-increment: iv-todo; }
.as-iv__todo-link { display: flex; align-items: center; min-height: var(--iv-card-min); padding: 10px 14px 10px 46px; position: relative; border: 2px solid var(--line); border-radius: 14px; background: var(--bg-elev); color: var(--ink); text-decoration: none; font-weight: 600; }
.as-iv__todo-link::before { content: counter(iv-todo); position: absolute; left: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-tint-soft, var(--bg-soft)); color: var(--ui-tint-ink, var(--ink)); display: grid; place-items: center; font-size: 0.8125rem; }
.as-iv__todo-link:hover { border-color: var(--ui-tint, currentColor); }
.as-iv__todo-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.as-iv .as-actions { margin-top: 12px; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
/* Wahlvorlage im Interview: nur Bestätigungen und „Vorlage anpassen“; Beschreibung steht auf der Karte, Hinweisliste und Gliederung gehören in die Tagesordnung. */
.as-iv [data-as-tpl-desc], .as-iv [data-as-hints], .as-iv [data-as-outline] { display: none; }
.as-iv .as-actions .btn { min-width: 8rem; }
.as-iv a.btn { text-decoration: none; }
.as-iv .as-e2-note { margin: 0; }
.as-iv .as-field input[type="time"], .as-iv .as-field input[type="url"] { width: 100%; max-width: 100%; min-height: 44px; }
.as-iv__field { margin: 0; }
@media (max-width: 640px) {
  .as-iv__cards--2, .as-iv__cards--3, .as-iv__subcards { grid-template-columns: minmax(0, 1fr); }
  .as-iv__h { font-size: 1.3rem; }
  .as-iv__summary { grid-template-columns: minmax(0, 1fr); }
  .as-iv__row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; }
  .as-iv .as-actions { flex-wrap: wrap; }
  .as-iv__later { order: 3; flex: 1 0 100%; font-size: 0.75rem; }
  .as-iv .as-actions .btn { flex: 1 1 0; min-width: 0; }
  .as-iv__step { grid-template-columns: 22px minmax(0, 1fr); }
  .as-iv__step-state { grid-column: 2; text-align: left; }
}
.as-iv__leave { margin: 0 0 12px; padding: 14px; border: 2px solid var(--ui-tint, currentColor); border-radius: 14px; background: var(--bg-elev); }
.as-iv__leave h3 { margin: 0 0 4px; font-size: 1.05rem; }
.as-iv__leave p { margin: 0 0 10px; }
.as-iv__leave .as-actions { margin-top: 0; justify-content: flex-start; }
.as-iv__note--info { margin-top: 10px; }
.as-iv__todo-why { display: block; margin: 4px 0 0 46px; font-size: 0.9375rem; color: var(--muted); }
