/* ============================================================
   Formular (wizard.jsx), Redesign Task 041.
   Telefon zuerst: eine App-Fläche über die ganze Höhe, Kopf, Lineal, der
   Schritt scrollt, unten die Leiste mit „Weiter". Tablet (bis 1023 px) zeigt
   das Telefon-Layout mittig. Ab 1024 px: zwei Spalten, rechts „Ihre Angaben".
   Tokens kommen aus styles.css.
   ============================================================ */

@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes rowsIn { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes rowsOut { from { grid-template-rows: 1fr; opacity: 1; } to { grid-template-rows: 0fr; opacity: 0; } }
@keyframes stepInR { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes stepOutL { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes stepInL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stepOutR { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes slideL { from { opacity: 0; transform: translateX(36px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-36px); } }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(179, 38, 30, .45); } to { box-shadow: 0 0 0 12px rgba(179, 38, 30, 0); } }
@keyframes ping2 { from { box-shadow: 0 0 0 0 rgba(179, 38, 30, .45); } to { box-shadow: 0 0 0 12px rgba(179, 38, 30, 0); } }

html, body.wz-body { height: 100%; }
body.wz-body { overflow: hidden; }
/* Tabellenziffern nur bei Zahlen: in Schibsted Grotesk macht tnum auch den Punkt breit. */
.ruler__top b, .refcard b, .sending__head span, .cal__day, .fbar__info b { font-variant-numeric: tabular-nums; }

/* ---------- Grundgerüst ---------- */
.wz {
  position: relative; height: 100vh; height: 100dvh; max-width: 440px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden; overflow: clip; background: var(--mist);
}
@media (min-width: 1024px) { .wz { max-width: none; } }

.wz-hdr {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--mist);
}
.wz-hdr .brand { padding-left: 8px; }
.wz-hdr__kind { font-size: 16px; font-weight: 700; }
@media (min-width: 1024px) {
  .wz-hdr { height: 76px; padding-top: 0; padding-bottom: 0; }
  .wz-hdr .brand { padding-left: 0; }
}

.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 12px;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:disabled { color: var(--disabled); cursor: default; }
.icon-btn--plain { width: 36px; height: 36px; border-radius: 10px; background: transparent; }

.link-btn {
  min-height: 44px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn--start { align-self: flex-start; margin-top: -8px; padding: 0 2px; }
.btn--sm { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; }

/* ---------- Lineal ---------- */
.wz-ruler { position: relative; z-index: 6; flex-shrink: 0; padding: 4px 20px 0; }
@media (min-width: 1024px) { .wz-ruler { padding-top: 8px; } }
.ruler__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.ruler__top b { font-weight: 700; }
.ruler__top span { color: var(--muted); }
.ruler__body { position: relative; margin-top: 2px; }
.ruler__marks { position: relative; height: 26px; }
.mark {
  position: absolute; bottom: -8px; transform: translateX(-50%); z-index: 2;
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.mark span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; line-height: 1; font-weight: 800;
  animation: pop .25s var(--ease-out) both; transition: box-shadow .2s;
}
.mark--req span { background: var(--red); color: var(--white); }
.mark--opt span { background: var(--amber); color: var(--ink); }
.mark.is-open span { box-shadow: 0 0 0 2px var(--mist), 0 0 0 4px var(--ink); }

.ruler__segs { display: flex; align-items: center; min-width: 0; }
.seg {
  --tick: var(--line);
  position: relative; flex: 1 1 0; min-width: 0; height: 36px; margin: 0; padding: 0;
  border: 0; background: transparent; display: flex; align-items: center; cursor: pointer;
}
.seg:disabled { cursor: default; }
.seg__band { position: absolute; left: -3px; right: 3px; top: 10px; height: 16px; border-radius: 3px; background: transparent; transition: background-color .35s; }
.seg__tick { position: relative; flex: 1 1 0; min-width: 0; height: 24px; display: flex; align-items: center; }
.seg__tick::before { content: ""; width: 2px; height: 10px; background: var(--tick); transition: background-color .35s; }
.seg__band + .seg__tick::before { height: 20px; }
.seg--done { --tick: var(--ink); }
.seg--done .seg__band { background: var(--lime); }
.seg--cur { --tick: var(--ink); }
.seg--req { --tick: var(--red); }
.seg--req .seg__band { background: var(--red-soft); }
.seg--opt { --tick: var(--amber-ink); }
.seg--opt .seg__band { background: var(--amber-soft); }
.seg__name {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px); padding-right: 6px;
  text-align: center; font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--tick); transition: color .35s;
}
.seg--todo .seg__name { color: var(--muted); }
.seg.is-cur .seg__name { color: var(--ink); font-weight: 800; }
.ruler__end { flex-shrink: 0; width: 2px; height: 20px; background: var(--line); }
.ruler__caret { position: relative; height: 10px; }
.ruler__caret span {
  position: absolute; top: 0; transform: translateX(-50%); width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 8px solid var(--ink);
  transition: left .35s var(--ease-io);
}
.ruler__names { height: 36px; }

.pop-scrim {
  position: fixed; inset: 0; z-index: 5; width: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(14, 26, 36, .12); cursor: default; animation: fade .2s both;
}
.pop__arrow {
  position: absolute; top: calc(100% + 2px); z-index: 8; width: 12px; height: 12px; margin-left: -6px;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); animation: fade .2s both;
}
.pop {
  position: absolute; top: calc(100% + 8px); z-index: 7; width: 280px; padding: 12px 12px 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 10px; animation: rise .22s var(--ease-out) both;
}
.pop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pop__head > span { display: flex; flex-direction: column; gap: 1px; padding-top: 4px; }
.pop__head small { font-size: 13px; color: var(--muted); }
.pop__head b { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.pop__line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }

.dot {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.dot--big { width: 26px; height: 26px; font-size: 14px; }
.dot--req { background: var(--red); color: var(--white); }
.dot--opt { background: var(--amber); color: var(--ink); }
.dot--ok { background: var(--lime); color: var(--ink); }

/* ---------- Spalten und Scrollfläche ---------- */
.wz-row { position: relative; flex-grow: 1; min-height: 0; display: flex; }
.wz-main { flex-grow: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wz-scroll, .done-scroll {
  flex-grow: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
}
.wz-scroll { padding: 0 20px 28px; }
@media (max-width: 1023.98px) {
  .wz-scroll, .done-scroll, .cclist { scrollbar-width: none; }
  .wz-scroll::-webkit-scrollbar, .done-scroll::-webkit-scrollbar, .cclist::-webkit-scrollbar { display: none; }
}
@media (min-width: 1024px) {
  .wz-row { gap: 72px; }
  .wz-scroll { padding: 0 0 48px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}

/* ---------- Fußleiste ---------- */
.fbar { flex-shrink: 0; display: flex; flex-direction: column; padding: 12px 20px 22px; background: var(--mist); box-shadow: 0 -1px 0 var(--line); }
.fbar__info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.fbar__info:empty { display: none; }
.fbar__info b { font-weight: 700; }
.fbar__info .is-red { color: var(--red); }
.fbar__info a { color: var(--muted); }
.fbar__next { width: 100%; }
.fbar__next.is-dis { background: var(--line); color: var(--ink); }
.fbar__back { flex-shrink: 0; height: 56px; padding: 0 20px 0 14px; font-size: 17px; gap: 6px; }
@media (min-width: 1024px) {
  .fbar { flex-direction: row; align-items: center; gap: 20px; padding: 16px 0 28px; }
  .fbar__back { order: 0; }
  .fbar__info { order: 1; flex-grow: 1; justify-content: flex-end; gap: 20px; margin-bottom: 0; }
  .fbar__info:empty { display: flex; }
  .fbar__next { order: 2; width: auto; min-width: 220px; margin-left: auto; padding: 0 32px; }
  .fbar--done { padding-top: 16px; }
}

/* ---------- Überschriften und Felder ---------- */
.fh2 { margin-top: 22px; font-size: 34px; line-height: 1.02; font-weight: 800; letter-spacing: -1.2px; }
.flead { margin-top: 10px; max-width: 34ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.fh3 { margin-top: 28px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
.fh3 + .fgrid { margin-top: 14px; }
.fh3--when { margin-top: 34px; }
.fh3-lead { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.fh3-lead + .fgrid { margin-top: 14px; }
@media (min-width: 1024px) {
  .fh2 { margin-top: 28px; font-size: 48px; letter-spacing: -1.8px; }
  .flead { max-width: 48ch; font-size: 17px; }
}

.fine { margin: 14px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.fs { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.fs legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.fs--big { margin-top: 26px; }
.fs--big legend { margin-bottom: 12px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
.legend-sub { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--muted); }

.fgrid { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.fgrid--top { margin-top: 18px; }
.row2 { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fgrid .row2 { margin-top: 0; }
.row-zip { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }

.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; font-weight: 700; }
.fld--gap { margin-top: 22px; }
.fld-wrap { display: flex; flex-direction: column; gap: 6px; }
.req { margin-left: 2px; color: var(--red); }
.fld__err { font-size: 13px; font-weight: 700; color: var(--red); }
.fld__help { font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.fld__auto { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--muted); animation: rise .2s var(--ease-out) both; }

.inp {
  width: 100%; height: 52px; margin: 0; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .2s;
}
.inp::placeholder { color: var(--muted); opacity: .8; }
.inp.is-err { border-color: var(--red); }
.inp.is-auto { border-color: var(--lime); }
.inp--area { height: auto; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.inp--btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.inp--btn.is-empty { color: var(--muted); }
.inp--btn svg { flex-shrink: 0; color: var(--ink); }
.inp--plate { font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.inp--plate::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; }

.note { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border-radius: 14px; font-size: 15px; line-height: 1.45; }
.note svg { flex-shrink: 0; margin-top: 1px; }
.note small { display: block; font-size: 13px; color: var(--muted); }
.note b { display: block; font-size: 16px; font-weight: 700; }
.fold__in > .note { margin-top: 0; }

/* Kacheln (Unfallverursacher, Tageszeit) und Chips (Anlass) */
.tiles--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  min-height: 64px; margin: 0; padding: 8px 6px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.2; font-weight: 700; cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.tile.is-on { background: var(--lime); transform: scale(.97); }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile--time { position: relative; min-height: 48px; padding: 0 36px; transform: none !important; }
.tile--time.is-wide { grid-column: 1 / -1; }
.tile__chk {
  position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  display: grid; place-items: center; transform: scale(0); opacity: 0;
  transition: transform .25s var(--ease-pop), opacity .18s;
}
.tile.is-on .tile__chk { transform: scale(1); opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 20px; background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .25s, border-color .2s;
}
.chip--pick { min-height: 44px; border: 1.5px solid transparent; border-radius: 22px; }
.chip--pick.is-on { background: var(--lime); border-color: var(--lime); }
.chip--req { padding: 0 10px 0 14px; background: var(--red-soft); font-size: 14px; }
.fs .chips + .fld__err { display: block; margin-top: 8px; }

/* Schalter mit drei Rasten */
.seg3 {
  position: relative; display: flex; padding: 3px; background: var(--surface); border-radius: 14px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.seg3__glider {
  position: absolute; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 11px; background: var(--lime);
  transition: left .28s var(--ease-out), opacity .15s, transform .2s;
}
.seg3__glider.is-drag { transform: scale(.96); transition: opacity .15s, transform .2s; }
.seg3__opt {
  position: relative; flex: 1 1 0; min-width: 0; height: 50px; display: grid; place-items: center;
  color: var(--muted); font-size: 16px; font-weight: 700; cursor: pointer; transition: color .2s;
}
.seg3__opt.is-hi { color: var(--ink); }
.seg3__opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.seg3__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 11px; }
.seg3--tall .seg3__opt { height: 58px; padding: 0 6px; font-size: 15px; line-height: 1.15; text-align: center; }

/* ---------- Schritt 2: Fotos ---------- */
.why {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 2px 0 0; padding: 0;
  border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer;
}
.why__ic { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.why__ic svg { transition: transform .25s; }
.why[aria-expanded="true"] .why__ic svg { transform: rotate(180deg); }
.why__text { margin-top: 2px; padding: 14px 16px; background: var(--surface); border-radius: 14px; font-size: 15px; line-height: 1.5; animation: rise .3s both; }

.pgrid { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pcard { display: flex; gap: 14px; padding: 10px; background: var(--surface); border: 2px solid transparent; border-radius: 16px; transition: border-color .25s; }
.pcard.is-on { border-color: var(--lime); }
.pcard.is-stale { border-color: var(--amber); }
.pcard__img { position: relative; width: 112px; height: 84px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #DCE5D6; }
.pcard__img img, .pcard__doc { width: 100%; height: 100%; object-fit: cover; }
.pcard__ex { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: 11px; font-weight: 600; }
.pcard__ok { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px; background: var(--lime); color: var(--ink); display: grid; place-items: center; animation: pop .3s var(--ease-pop) both; }
.pcard__body { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcard__body > b { font-size: 16px; font-weight: 700; }
.pcard__body > span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.pcard__btn {
  align-self: flex-start; margin-top: auto; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer;
}
.pcard__btn.is-on { background: transparent; color: var(--ink); }
.pmore__btn {
  width: 100%; min-height: 52px; border: 1.5px dashed var(--line); border-radius: 16px; background: transparent;
  color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.pmore__btn.is-over { border-color: var(--ink); background: var(--surface); }
.pmore__list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.mthumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.mthumb.is-stale { outline: 2px solid var(--amber); outline-offset: -2px; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.mthumb button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; cursor: pointer; }
@media (min-width: 1024px) {
  .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { flex-direction: column; gap: 12px; }
  .pcard__img { width: 100%; height: 150px; }
  .pmore { grid-column: 1 / -1; }
}

/* ---------- Schritt 5: Dokumente ---------- */
.dslots { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.dslot { padding: 14px; background: var(--surface); border: 2px solid transparent; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s; }
.dslot.is-on { border-color: var(--lime); }
.dslot__head { display: flex; gap: 12px; align-items: flex-start; }
.dslot__ic { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--mist); display: grid; place-items: center; transition: background-color .25s; }
.dslot.is-on .dslot__ic { background: var(--lime); }
.dslot__n {
  position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  border: 2px solid var(--surface); background: var(--ink); color: var(--white);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; animation: pop .2s var(--ease-out) both;
}
.dslot__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dslot__t b { font-size: 16px; font-weight: 700; }
.dslot__t span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.dslot__list {
  list-style: none; margin: 0; padding: 0; max-height: 166px; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 6px;
}
.dslot__list.is-many { padding-bottom: 18px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); }
.dslot__list li { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 10px; background: var(--mist); border-radius: 12px; animation: rise .25s var(--ease-out) both; }
.dslot__list li.is-stale { outline: 2px solid var(--amber); outline-offset: -2px; }
.dslot__list li svg { flex-shrink: 0; }
.dslot__file { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.dslot__file b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dslot__file span { font-size: 12px; color: var(--muted); }
.dslot__list button { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dslot__add {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1.5px dashed var(--line); border-radius: 12px; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ---------- Schritt 6: Versicherung ---------- */
.ta { position: relative; }
.ta.is-open { z-index: 8; }
.ta.is-open .inp { border-color: var(--ink); }
.ta__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; padding: 4px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
  animation: rise .18s var(--ease-out) both;
}
.ta__list button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer;
}
.ta__list button:hover, .ta__list button:focus-visible { background: var(--mist); }
.ta__list b { font-weight: 800; }

.fs--law { position: relative; margin-top: 32px; }
.legend-q { display: inline-flex; align-items: center; gap: 4px; }
.qmark { width: 36px; height: 36px; margin: -8px -8px -8px -4px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.qmark span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; transition: background-color .2s; }
.qmark.is-on span { background: var(--lime); }
.tip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 8; padding: 12px 40px 12px 14px;
  background: var(--ink); color: var(--white); border-radius: 14px; box-shadow: 0 12px 28px rgba(14, 26, 36, .25);
  font-size: 14px; font-weight: 400; line-height: 1.5; animation: rise .2s var(--ease-out) both;
}
.tip__x { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }

/* ---------- Schritt 7: Kontakt ---------- */
.sug {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 6px 12px 6px 10px;
  border: 0; border-radius: 10px; background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; animation: rise .2s var(--ease-out) both;
}
.sug svg { flex-shrink: 0; }
.sug span { min-width: 0; overflow-wrap: anywhere; }
.sug b { font-weight: 800; }
.tel { display: flex; align-items: stretch; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.tel.is-err { border-color: var(--red); }
.tel:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.tel__cc {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 10px 0 12px;
  border: 0; border-right: 1.5px solid var(--line); background: transparent; color: var(--ink); font-size: 16px; cursor: pointer;
}
.tel__cc:focus-visible { outline: none; background: var(--mist); }
.tel__cc small { font-size: 12px; font-weight: 800; color: var(--muted); }
.tel__cc b { font-weight: 700; }
.tel input { flex-grow: 1; min-width: 0; height: 100%; margin: 0; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.tel input:focus-visible { outline: none; }

/* ---------- Schritt 8: Termin und Ort ---------- */
.locs { display: flex; flex-direction: column; gap: 8px; }
.loc {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; margin: 0; padding: 12px 14px 12px 12px;
  border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.loc.is-on { background: var(--lime); transform: scale(.98); }
.loc:disabled { opacity: .55; cursor: default; }
.loc__ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--mist); display: grid; place-items: center; transition: background-color .25s; }
.loc.is-on .loc__ic { background: var(--surface); }
.loc__t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc__t b { font-size: 16px; font-weight: 700; }
.loc__t span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.loc__dot {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--white); transition: background-color .2s, border-color .2s;
}
.loc__dot svg { transform: scale(0); opacity: 0; transition: transform .25s var(--ease-pop), opacity .18s; }
.loc.is-on .loc__dot { background: var(--ink); border-color: var(--ink); }
.loc.is-on .loc__dot svg { transform: scale(1); opacity: 1; }

/* Feld unter den Karten: klappt über grid-template-rows auf und wieder zu */
.fold { display: grid; }
.fold.is-in { animation: rowsIn .34s var(--ease-out) both; }
.fold.is-out { animation: rowsOut .28s var(--ease-io) both; }
.fold > div { min-height: 0; overflow: hidden; margin: 0 -6px; }
.fold__in { padding: 12px 6px 4px; }
.fold__in > .fgrid { margin-top: 4px; }
.addr-card { display: flex; align-items: center; gap: 10px; padding: 12px 6px 12px 14px; background: var(--surface); border-radius: 14px; animation: fade .25s both; }
.addr-card > span { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addr-card small { font-size: 13px; color: var(--muted); }
.addr-card b { font-size: 16px; font-weight: 700; }
.addr-card > span > span { font-size: 15px; }
.addr-card .link-btn { flex-shrink: 0; }

/* ---------- Schritt 9: Übersicht ---------- */
.rmiss { margin-top: 18px; padding: 14px; background: var(--surface); border: 2px solid var(--red); border-radius: 16px; }
.rmiss.ping { animation: ping .8s var(--ease-out); }
.rmiss.ping2 { animation: ping2 .8s var(--ease-out); }
.rmiss__head { display: flex; gap: 10px; align-items: flex-start; }
.rmiss__head > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rmiss__head b { font-size: 16px; font-weight: 800; }
.rmiss__head span span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.rmiss__chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.rready { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border-radius: 14px; font-size: 15px; line-height: 1.45; animation: rise .3s var(--ease-out) both; }
.ralert { margin-top: 14px; padding: 14px; background: var(--surface); border: 2px solid var(--red); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.ralert--warn { border-color: var(--amber); margin-top: 22px; }
.ralert b { font-size: 16px; font-weight: 800; }
.ralert p, .ralert ul { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ralert ul { padding-left: 18px; overflow-wrap: anywhere; }
.ralert .btn { align-self: flex-start; margin-top: 6px; }
.ralert__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ralert__acts .btn { margin-top: 0; }

.rsecs { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.rsec { padding: 12px 6px 14px 14px; background: var(--surface); border-radius: 16px; }
.rsec__head { display: flex; align-items: center; gap: 10px; }
.rsec__t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.rsec__t small { font-size: 13px; color: var(--muted); }
.rsec__t b { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.rsec__thumbs { margin: 10px 8px 0 36px; display: flex; gap: 6px; flex-wrap: wrap; }
.rsec__thumbs img, .rsec__ph { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; }
.rsec__ph { background: #DCE5D6; display: grid; place-items: center; color: #5E7258; }
.rsec__rows { margin: 10px 8px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.rsec__rows > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rsec__rows > div.is-wide { grid-column: 1 / -1; }
.rsec__rows dt { margin: 0; font-size: 13px; color: var(--muted); }
.rsec__rows dd { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.rsec__req { margin: 10px 8px 0 36px; font-size: 14px; line-height: 1.4; color: var(--red); }
.rsec__opt { margin: 8px 8px 0 36px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.rsec__opt b { color: var(--ink); }

.consent { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 2px solid transparent; border-radius: 16px; cursor: pointer; transition: border-color .2s; }
.check.is-err { border-color: var(--red); }
.check.ping { animation: ping .8s var(--ease-out); }
.check.ping2 { animation: ping2 .8s var(--ease-out); }
.check:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.check input { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.check__box {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.check.is-err .check__box { border-color: var(--red); }
.check__box svg { transform: scale(0); opacity: 0; transition: transform .25s var(--ease-pop), opacity .18s; }
.check input:checked + .check__box { background: var(--lime); border-color: var(--lime); }
.check input:checked + .check__box svg { transform: scale(1); opacity: 1; }
.consent-text { padding-top: 2px; font-size: 15px; line-height: 1.45; }
.consent-text a { font-weight: 700; }
.consent + .fine { font-size: 14px; }

/* ---------- Spalte „Ihre Angaben" (Desktop) ---------- */
.aside { width: 360px; flex-shrink: 0; padding: 28px 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; }
.aside::-webkit-scrollbar { display: none; }
.aside__card { background: var(--surface); border-radius: 20px; overflow: hidden; }
.aside__img { height: 132px; overflow: hidden; }
.aside__img img { width: 100%; height: 100%; object-fit: cover; }
.aside__h { padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 2px; }
.aside__h small { font-size: 13px; color: var(--muted); }
.aside__h b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.aside ol { list-style: none; margin: 0; padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.arow {
  width: 100%; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .25s;
}
.arow.is-cur { background: var(--mist); cursor: default; }
.arow:not(.is-cur):hover { background: var(--mist); }
.adot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; transition: background-color .35s, color .35s; }
.adot--done { background: var(--lime); color: var(--ink); }
.adot--cur { background: var(--ink); color: var(--white); }
.adot--req { background: var(--red); color: var(--white); }
.adot--opt { background: var(--amber); color: var(--ink); }
.adot--todo { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.arow__t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.arow__t b { font-size: 15px; font-weight: 700; }
.arow.is-cur .arow__t b { font-weight: 800; }
.arow__t span { font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside__note { margin: 4px 6px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Schrittwisch ----------
   Lime-Fläche wischt horizontal herein, zeigt kurz Logo, „Schritt n von N" und
   den Titel, dann hinaus. Vorwärts von rechts, zurück gespiegelt. */
.sw { position: absolute; inset: 0; z-index: 50; background: var(--lime); display: flex; flex-direction: column; justify-content: center; padding: 0 32px; }
.sw.is-in.is-fwd { animation: stepInR .2s var(--ease-io) both; }
.sw.is-in.is-bwd { animation: stepInL .2s var(--ease-io) both; }
.sw.is-out.is-fwd { animation: stepOutL .22s var(--ease-io) both; }
.sw.is-out.is-bwd { animation: stepOutR .22s var(--ease-io) both; }
.sw__in { display: flex; flex-direction: column; gap: 28px; }
.sw.is-fwd .sw__in { animation: slideL .22s .05s var(--ease-out) both; }
.sw.is-bwd .sw__in { animation: slideR .22s .05s var(--ease-out) both; }
.sw__brand { display: flex; align-items: center; gap: 8px; }
.sw__brand svg { fill: var(--ink); }
.sw__brand span { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; }
.sw__t { display: flex; flex-direction: column; gap: 6px; }
.sw__t b { font-size: 16px; font-weight: 700; }
.sw__t span { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1.4px; }
@media (min-width: 1024px) { .sw__t span { font-size: 72px; letter-spacing: -2.6px; } }

/* ---------- Blätter (Telefon) und Dialoge (Desktop) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.sheet-scrim { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; background: var(--scrim); cursor: pointer; animation: fade .25s both; }
div.sheet-scrim { cursor: default; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 440px; margin: 0 auto; padding: 10px 16px 24px;
  background: var(--mist); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(14, 26, 36, .18);
  animation: sheetUp .32s var(--ease-out) both;
}
.sheet--tall { height: 600px; max-height: calc(100% - 40px); padding-bottom: 0; display: flex; flex-direction: column; }
.is-closing .sheet { animation: sheetDown .22s var(--ease-io) both; }
.is-closing .sheet-scrim { animation: fadeOut .22s both; }
.sheet__grip { display: block; flex-shrink: 0; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: var(--line); }
.sheet__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sheet__head b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
@media (min-width: 1024px) {
  .sheet {
    top: 0; right: 0; bottom: 0; left: 0; width: 440px; max-width: calc(100% - 48px); height: fit-content; max-height: calc(100% - 80px);
    margin: auto; padding-top: 20px; border-radius: 24px; box-shadow: 0 24px 64px rgba(14, 26, 36, .28);
    animation: dlgIn .26s var(--ease-out) both;
  }
  .sheet--tall { height: 600px; }
  .is-closing .sheet { animation: dlgOut .18s var(--ease-io) both; }
}

/* Kalender */
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.cal__month { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.cal__nav { display: flex; gap: 6px; }
.cal__chips { display: flex; gap: 8px; margin: 12px 4px 10px; }
.cal__wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 4px 0; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal__day { height: 44px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; }
.cal__day.is-on { background: var(--lime); box-shadow: none; font-weight: 800; }
.cal__day:disabled { color: var(--disabled); cursor: default; }

/* Ländervorwahl */
.search { flex-shrink: 0; position: relative; margin-top: 12px; }
.search svg { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.search .inp { height: 48px; padding: 0 14px 0 42px; }
.cclist { flex-grow: 1; min-height: 0; list-style: none; margin: 10px -4px 0; padding: 0 0 24px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.cclist li { flex-shrink: 0; }
.cclist button { width: 100%; min-height: 48px; margin: 0; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; transition: background-color .2s; }
.cclist button.is-on { background: var(--lime); }
.cclist button.is-on span { font-weight: 800; }
.cclist small { width: 26px; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.cclist span { flex-grow: 1; min-width: 0; }
.cclist b { flex-shrink: 0; font-weight: 700; }
.cclist__none { padding: 14px 12px; font-size: 15px; color: var(--muted); }

/* Senden: blockierend, Fortschritt nach Dateien (Task 020) */
.sending { padding: 0 4px 6px; }
.sending__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sending__head b { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.sending__head span { font-size: 15px; font-weight: 700; }
.sending__lbl { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.sending__bar { position: relative; height: 26px; margin-top: 16px; }
.sending__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 16px; border-radius: 3px; background: var(--surface); }
.sending__bar span { position: absolute; left: 0; top: 5px; height: 16px; border-radius: 3px; background: var(--lime); transition: width .38s var(--ease-out); }
.sending__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 12px); opacity: .5; }
.sending p { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Bestätigung ---------- */
.done { padding: 0 20px 28px; }
.done__ruler { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.done__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); animation: pop .4s var(--ease-pop) both; }
.done__segs { align-self: stretch; display: flex; align-items: center; min-width: 0; }
.done__segs .seg { cursor: default; }
.done__segs .seg__band { transform-origin: left center; animation: fill .32s var(--ease-io) both; }
.done__segs .ruler__end { background: var(--ink); }
.done h1 { margin-top: 22px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -1.4px; }
.done__l1 { display: inline; padding: 0 6px; margin-left: -6px; animation: fade .5s .3s both; }
.done__l2 { animation: fade .5s .45s both, mark .6s .8s var(--ease-io) both; }
.done__lead { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); animation: fade .5s .9s both; }
.refcard { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 14px 8px 14px 16px; background: var(--surface); border-radius: 16px; animation: rise .5s 1s var(--ease-out) both; }
.refcard > span:first-child { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.refcard small { font-size: 13px; color: var(--muted); }
.refcard b { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; }
.done__help { margin: 10px 2px 0; font-size: 14px; line-height: 1.45; color: var(--muted); animation: fade .5s 1.1s both; }
.done__next h2 { margin: 30px 0 16px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; animation: fade .5s 1.15s both; }
.done__next ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.done__next li { display: flex; gap: 12px; animation: rise .5s var(--ease-out) both; }
.done__col { flex-shrink: 0; width: 30px; display: flex; flex-direction: column; align-items: center; }
.done__dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.done__dot.is-first { background: var(--lime); }
.done__line { flex-grow: 1; width: 2px; margin: 4px 0; background: var(--line); }
.done__next li:last-child .done__line { background: transparent; }
.done__t { flex-grow: 1; min-width: 0; padding: 3px 0 18px; display: flex; flex-direction: column; gap: 3px; }
.done__t b { font-size: 17px; font-weight: 750; }
.done__t span { font-size: 15px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .done { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 96px; align-items: start; padding-bottom: 56px; }
  .done__ruler { grid-column: 1 / -1; margin-top: 40px; }
  .done h1 { margin-top: 36px; font-size: 64px; letter-spacing: -2.4px; }
  .done__next { padding-top: 36px; }
}

/* Kopieren: Text rollt, Haken zeichnet sich, zwei Ringe und Konfetti */
.copy { position: relative; flex-shrink: 0; display: flex; }
.copy__ring { position: absolute; border: 2.5px solid var(--lime); pointer-events: none; }
.copy__ring--2 { border-width: 2px; }
.copy__conf { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.copy__btn {
  position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 12px;
  border: 0; border-radius: 12px; background: var(--mist); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .25s, transform .35s var(--ease-pop);
}
.copy__btn.is-copied { background: var(--lime); }
.copy__btn.is-press { transform: scale(.94); }
.copy__ic { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.copy__ic svg { position: absolute; left: 0; top: 0; }
.copy__ic-a { transition: opacity .2s, transform .3s var(--ease-out); }
.copy__btn.is-copied .copy__ic-a { opacity: 0; transform: scale(.5) rotate(-30deg); }
.copy__ic-b path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s .12s var(--ease-io); }
.copy__btn.is-copied .copy__ic-b path { stroke-dashoffset: 0; }
.copy__txt { display: inline-grid; overflow: hidden; }
.copy__a, .copy__b { grid-area: 1 / 1; }
.copy__a { transition: transform .32s var(--ease-io), opacity .2s; }
.copy__b { opacity: 0; transform: translateY(110%); transition: transform .34s .05s var(--ease-out), opacity .25s .05s; }
.copy__btn.is-copied .copy__a { opacity: 0; transform: translateY(-110%); }
.copy__btn.is-copied .copy__b { opacity: 1; transform: none; }

/* ---------- Hinweise ---------- */
.wz-toasts { position: fixed; left: 16px; right: 16px; bottom: 100px; z-index: 60; max-width: 408px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.wz-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 14px; background: var(--ink); color: var(--white); border-radius: 14px; box-shadow: var(--shadow-pop); font-size: 14px; line-height: 1.45; animation: rise .25s var(--ease-out) both; }
.wz-toast--warn svg:first-child { color: var(--amber); }
.wz-toast svg { flex-shrink: 0; margin-top: 1px; }
.wz-toast p { flex-grow: 1; margin: 0; }
.wz-toast button { width: 32px; height: 32px; flex-shrink: 0; margin: -6px 0; border: 0; border-radius: 8px; background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }

/* ---------- Absturz ---------- */
.wz-crash { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 640px; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; overflow-y: auto; }
.wz-crash h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -1.4px; }
.wz-crash p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.wz-crash__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-crash__reset { font-size: 14px; }
.wz-crash__reset .link-btn { padding: 0; min-height: 0; font-size: 14px; }

.wz-noscript { padding: 40px 20px; max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.5; }

/* Desktop-Ränder zuletzt: die Kurzschreibweisen oben würden .wrap--form sonst überschreiben. */
@media (min-width: 1024px) {
  .wz-ruler, .wz-row, .sw, .done, .fbar--done {
    padding-left: max(48px, calc((100% - 1120px) / 2));
    padding-right: max(48px, calc((100% - 1120px) / 2));
  }
  /* Kopfzeile in der 1280er-Spalte der Seite, und die Scrollleisten-Rinne bleibt
     frei wie auf der Startseite: sonst springt das Logo nach rechts, sobald der
     Vorhang aufgeht. */
  html { scrollbar-gutter: stable; }
  .wz-hdr {
    padding-left: max(48px, calc((100% - 1280px) / 2));
    padding-right: max(48px, calc((100% - 1280px) / 2));
  }
}
