/* High Forest · gemeinsame Struktur aller Entwürfe
   Reset, Reveal-Startzustände, Anfragestrecke (Skin über --wz-Variablen), Entwurfswerkzeug */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.nowrap { white-space: nowrap; }
html.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Reveals: Startzustände gelten nur, solange .js-motion gesetzt ist ---------- */
/* Maske oben und unten erweitert, damit Umlautpunkte (Ä, Ö, Ü in Versalien) und Unterlängen nicht abgeschnitten werden */
.line { display: block; overflow: hidden; padding-block: .22em .14em; margin-block: -.22em -.14em; }
/* Negative Ränder benachbarter Zeilen fallen zusammen, deshalb hier die volle Summe, sonst wachsen die Zeilenabstände */
.line + .line { margin-top: -.36em; }
.line > span { display: block; will-change: transform; }
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-reveal="lines"] { opacity: 1; }
.js-motion [data-reveal="lines"] .line > span { transform: translateY(108%); }
.js-motion [data-reveal="img"] { opacity: 1; clip-path: inset(0 0 100% 0); }
.js-motion [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: left center; }
/* Schmale Bildschirme: Zwischenüberschriften fließen frei statt in festen Zeilen, damit kein Wort verwaist */
@media (max-width: 699px) {
  h2 .line, h2 .line > span { display: inline; }
  h2 .line::after { content: " "; }
  .js-motion h2[data-reveal="lines"] { opacity: 0; }
}
.wz .wz-q:focus, .wz .wz-q:focus-visible { outline: none; }

/* ---------- Anfragestrecke ---------- */
.wz {
  --wz-ink: #263635; --wz-muted: #5f6b69; --wz-line: rgba(38, 54, 53, .2); --wz-line-strong: #263635;
  --wz-field: #fff; --wz-hover: rgba(38, 54, 53, .04); --wz-selected: rgba(38, 54, 53, .06);
  --wz-accent: #263635; --wz-on-accent: #f2ecda; --wz-focus: #8c7a55; --wz-error: #a3312a;
  --wz-radius: 2px; --wz-q-font: inherit; --wz-q-weight: 500;
  container-type: inline-size; color: var(--wz-ink); min-width: 0;
}
.wz-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; min-height: 24px; }
.wz-progress { flex: 1; height: 2px; background: var(--wz-line); position: relative; overflow: hidden; }
.wz-progress i { position: absolute; inset: 0; background: var(--wz-accent); transform-origin: left center; transform: scaleX(var(--p, .25)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wz-count { font-size: 13px; color: var(--wz-muted); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wz-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-block: -10px; background: none; border: 0; padding: 0 8px 0 0; font-size: 13.5px; color: var(--wz-muted); }
.wz-back .icon { transform: rotate(180deg); font-size: 14px; }
.wz-back:hover { color: var(--wz-ink); }
.wz-step { display: none; min-width: 0; }
.wz-step.is-active { display: block; }
.wz-q { font-family: var(--wz-q-font); font-weight: var(--wz-q-weight); font-size: clamp(22px, 15px + 2.2cqi, 30px); line-height: 1.16; letter-spacing: -.01em; margin: 0 0 8px; outline: none; text-wrap: balance; }
.wz-hint { margin: 0 0 24px; color: var(--wz-muted); font-size: 15px; line-height: 1.5; }
.wz-groups { display: grid; gap: 24px; }
.wz-group-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--wz-muted); margin-bottom: 10px; }
.wz-opts { display: grid; gap: 8px; }
@container (min-width: 600px) {
  .wz-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .wz-opts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wz-opt { position: relative; display: block; min-width: 0; }
.wz-opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.wz-opt-body { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border: 1px solid var(--wz-line); border-radius: var(--wz-radius); background: var(--wz-field); transition: border-color .2s, background-color .2s; }
.wz-opt-mark { width: 18px; height: 18px; border: 1px solid var(--wz-line-strong); border-radius: 50%; flex: none; position: relative; opacity: .55; transition: opacity .2s; }
.wz-opt-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--wz-accent); transform: scale(0); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.wz-opt-text { min-width: 0; }
.wz-opt-title { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.wz-opt-sub { display: block; font-size: 13.5px; line-height: 1.4; color: var(--wz-muted); margin-top: 2px; }
.wz-opt:hover .wz-opt-body { border-color: var(--wz-line-strong); background: var(--wz-hover); }
.wz-opt input:checked + .wz-opt-body { border-color: var(--wz-accent); background: var(--wz-selected); box-shadow: inset 0 0 0 1px var(--wz-accent); }
.wz-opt input:checked + .wz-opt-body .wz-opt-mark { opacity: 1; }
.wz-opt input:checked + .wz-opt-body .wz-opt-mark::after { transform: scale(1); }
.wz-opt input:focus-visible + .wz-opt-body { outline: 2px solid var(--wz-focus); outline-offset: 2px; }
.wz-opt--plain { margin-top: 16px; }
.wz-opt--plain .wz-opt-body { min-height: 0; padding: 12px 16px; background: transparent; border-style: dashed; }
.wz-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.wz-next, .wz-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid var(--wz-accent); border-radius: var(--wz-radius); background: var(--wz-accent); color: var(--wz-on-accent); font-weight: 500; font-size: 16px; transition: opacity .2s, transform .2s; }
.wz-next:disabled { opacity: .35; cursor: not-allowed; }
.wz-next:not(:disabled):hover .icon, .wz-submit:hover .icon { transform: translateX(3px); }
.wz-next .icon, .wz-submit .icon { transition: transform .25s; }
.wz-next:focus-visible, .wz-submit:focus-visible, .wz-back:focus-visible { outline: 2px solid var(--wz-focus); outline-offset: 3px; }
.wz-aside { font-size: 13.5px; color: var(--wz-muted); }
.wz-aside a { color: var(--wz-ink); text-underline-offset: 3px; }

.wz-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 24px; padding: 12px 0; border-top: 1px solid var(--wz-line); border-bottom: 1px solid var(--wz-line); font-size: 14px; color: var(--wz-muted); }
.wz-summary b { color: var(--wz-ink); font-weight: 500; }
.wz-summary button { background: none; border: 0; min-height: 44px; padding: 0 0 0 12px; margin: -12px 0 -12px auto; font-size: 13px; color: var(--wz-muted); text-decoration: underline; text-underline-offset: 3px; }
.wz-fields { display: grid; gap: 16px; }
@container (min-width: 600px) {
  .wz-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz-field--full { grid-column: 1 / -1; }
}
.wz-field { min-width: 0; }
.wz-field > label, .wz-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.wz-field > label span, .wz-legend span { font-weight: 400; color: var(--wz-muted); }
.wz-field input, .wz-field textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--wz-line); border-radius: var(--wz-radius); background: var(--wz-field); font-size: 16px; line-height: 1.4; transition: border-color .2s; }
.wz-field textarea { min-height: 96px; resize: vertical; }
.wz-field input:hover, .wz-field textarea:hover { border-color: var(--wz-line-strong); }
.wz-field input:focus, .wz-field textarea:focus { outline: 2px solid var(--wz-focus); outline-offset: 1px; border-color: var(--wz-line-strong); }
.wz-field [aria-invalid="true"] { border-color: var(--wz-error); }
.wz-error { display: block; margin-top: 6px; font-size: 13px; color: var(--wz-error); }
.wz-ways { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-way { position: relative; }
.wz-way input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.wz-way span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--wz-line); border-radius: var(--wz-radius); background: var(--wz-field); font-size: 15px; transition: border-color .2s, background-color .2s; }
.wz-way input:checked + span { border-color: var(--wz-accent); background: var(--wz-selected); box-shadow: inset 0 0 0 1px var(--wz-accent); }
.wz-way input:focus-visible + span { outline: 2px solid var(--wz-focus); outline-offset: 2px; }
.wz-more { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; font-size: 14px; }
.wz-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--wz-muted); text-decoration: underline; text-decoration-color: var(--wz-line); text-underline-offset: 4px; cursor: pointer; }
.wz-link:hover { color: var(--wz-ink); text-decoration-color: currentColor; }
.wz-link input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.wz-link:has(input:focus-visible) { outline: 2px solid var(--wz-focus); outline-offset: 3px; }
.wz-alert { margin: 0 0 16px; padding: 10px 14px; border-left: 2px solid var(--wz-error); background: var(--wz-hover); font-size: 14px; }
.wz-help { display: block; margin-top: 6px; font-size: 13px; color: var(--wz-muted); }
.wz-submit { width: 100%; margin-top: 24px; }
.wz-trust { display: grid; gap: 8px; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--wz-muted); }
.wz-trust li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.wz-trust .icon { margin-top: 3px; font-size: 14px; color: var(--wz-ink); }
.wz-legal { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--wz-muted); }
.wz-legal a { color: inherit; text-underline-offset: 3px; }

/* Strecke als Überlagerung (wenn sie in einem <dialog> liegt) */
dialog.wz-dialog { width: min(760px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: transparent; color: inherit; overflow: auto; overscroll-behavior: contain; }
dialog.wz-dialog::backdrop { background: rgba(8, 12, 11, .72); }
html.dialog-open { overflow: hidden; }
.wz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wz-done-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--wz-accent); border-radius: 50%; margin-bottom: 20px; font-size: 18px; color: var(--wz-accent); }
.wz-done ol { counter-reset: n; display: grid; gap: 12px; margin: 20px 0 24px; }
.wz-done li { counter-increment: n; display: grid; grid-template-columns: 28px minmax(0, 1fr); font-size: 15.5px; line-height: 1.5; }
.wz-done li::before { content: counter(n, decimal-leading-zero); font-size: 12px; letter-spacing: .08em; color: var(--wz-muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.wz-draft { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--wz-line); font-size: 12.5px; color: var(--wz-muted); }

/* ---------- Entwurfswerkzeug (nur in der Entwurfsphase, fliegt vor Livegang raus) ---------- */
.dt { position: fixed; left: 12px; bottom: 12px; z-index: 900; font: 500 12px/1.3 ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif; color: #f2ecda; opacity: .78; transition: opacity .2s; }
.dt:hover, .dt:focus-within, .show-offen .dt { opacity: 1; }
.dt-bar { display: inline-flex; align-items: center; background: #101615; border: 1px solid rgba(242, 236, 218, .22); border-radius: 999px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.dt-bar a, .dt-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; background: none; border: 0; color: inherit; text-decoration: none; white-space: nowrap; }
.dt-bar a { border-right: 1px solid rgba(242, 236, 218, .18); color: rgba(242, 236, 218, .72); }
/* eingeklappt zeigt das Werkzeug nur den Entwurfsnamen, damit es den ersten Eindruck nicht stört */
.dt-bar a, .dt-bar button span { display: none; }
.dt:hover .dt-bar a, .dt:focus-within .dt-bar a, .show-offen .dt-bar a { display: inline-flex; }
.dt:hover .dt-bar button span, .dt:focus-within .dt-bar button span, .show-offen .dt-bar button span { display: inline; }
.dt-bar a:hover, .dt-bar button:hover { background: rgba(242, 236, 218, .1); color: #f2ecda; }
.dt-bar b { font-weight: 600; }
.dt-list { display: none; width: min(380px, calc(100vw - 24px)); max-height: 50vh; overflow: auto; margin-bottom: 8px; padding: 14px 16px; background: #101615; border: 1px solid rgba(242, 236, 218, .22); border-radius: 10px; font-weight: 400; }
.dt-list p { margin: 0 0 8px; color: rgba(242, 236, 218, .66); }
.dt-list li { padding: 6px 0; border-top: 1px solid rgba(242, 236, 218, .12); }
.show-offen .dt-list { display: block; }
.show-offen [data-offen] { outline: 2px dashed #d9822b !important; outline-offset: 3px; }
@media (max-width: 999px) { .dt { bottom: 70px; left: 8px; } }
