/* ==========================================================================
   LSV Steiermark – SiP-Anmeldung
   Farben, Schriften und Formen nach dem LSV-Branding:
   Tannengrün, Signalgrün, Weiß, Anthrazit · Archivo Expanded nur für
   Headlines (Versalien), Nunito Sans für alles andere · keine Verläufe,
   Schatten, Rundungen oder Icons · eine linke Satzkante.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-standard-normal.589f7bc0fac4.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.de2f1fe81758.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  src: url("fonts/nunito-sans-latin-ext-standard-normal.109e0b10b6f9.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  src: url("fonts/nunito-sans-latin-standard-normal.31e56d4b97bd.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tanne: #0A3D2E;      /* Tannengrün – Fläche, Headlines */
  --tief: #06271D;       /* primary-deep – Fläche wie das Cover des Markenhandbuchs */
  --panther: #29453C;    /* Panther: Weiß 14 % auf primary-deep, deckend gemischt (Cover) */
  --signal: #028546;     /* Signalgrün – Aktion, Linie, Fortschritt */
  --soft: #12513C;       /* primary-soft (abgeleitet) */
  --anthrazit: #292929;  /* Fließtext */
  --grau: rgba(41,41,41,.74);   /* Anthrazit gedimmt für Hinweise, kein eigener Farbton */
  --linie: #7E8783;      /* Feldrahmen: 3,7:1 auf Weiß (WCAG 1.4.11) */
  --linie-hell: rgba(41,41,41,.16);  /* line-dark */
  --nebel: #F4F2ED;      /* paper – helle Dokumentflächen */
  --weiss: #FFFFFF;
  --fehler: #B8301F;     /* Korrekturrot laut Handbuch */
  --fehler-flaeche: #FBEEEB;

  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --feld: 54px;
  --fokus-farbe: var(--tanne);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.sip {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--anthrazit);
  background: var(--weiss);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
.sip a { color: var(--tanne); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.sip a:hover { color: var(--tanne); text-decoration-thickness: 2.5px; }
.sip :focus-visible { outline: 2px solid var(--fokus-farbe); outline-offset: 3px; }
.side :focus-visible { outline-color: var(--weiss); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--tanne); color: var(--weiss) !important; padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ Gerüst */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }


/* -------------------------------------------------------- Seitenspalte grün */
/* Aufbau wie das Cover des Markenhandbuchs: Eyebrow und Jahr oben,
   große Versalien unten links, Hairline, Wortmarke und lsv-stmk.at im Fuß,
   der Panther groß rechts, oben angeschnitten und aus dem Format laufend. */
.side {
  position: relative;
  overflow: hidden;
  background: var(--tief);
  color: var(--weiss);
}
.side__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 18px;
}
.side__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.side__kind, .side__year {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.72);
}
.side__event { margin-top: 22px; container-type: inline-size; }
.side__title {
  /* Display XL laut Handbuch: 900 · ls −0.03em · lh 0.86 */
  margin: 0;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  --fs: clamp(2.75rem, 12vw, 4rem);
  font-size: var(--fs); line-height: .86; letter-spacing: -0.03em;
  overflow-wrap: anywhere;   /* letzte Sicherung: lieber umbrechen als abschneiden */
}
.side__when, .side__where { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: var(--weiss); max-width: 26em; }
.side__where { margin-top: 2px; color: rgba(255,255,255,.82); }
.side__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
}
.side__mark img { display: block; width: 72px; height: auto; }
.side__site { color: rgba(255,255,255,.78) !important; text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.side__site:hover { color: var(--weiss) !important; text-decoration: underline; }
.side__panther {
  position: absolute; z-index: 0;
  top: -6%; left: 58%;
  height: 112%; aspect-ratio: 2796 / 3544;
  background: var(--panther);
  -webkit-mask: url("img/panther.a0589af36085.svg") no-repeat center / contain;
          mask: url("img/panther.a0589af36085.svg") no-repeat center / contain;
  pointer-events: none;
}
@media (max-width: 999px) {
  .is-past-start .side__top, .is-past-start .side__when, .is-past-start .side__where,
  .is-past-start .side__foot { display: none; }
  .is-past-start .side__event { margin-top: 0; }
  .is-past-start .side__inner { padding-top: 16px; padding-bottom: 16px; }
  .is-past-start .side__title { --fs: 28px; }
}

@media (min-width: 1000px) {
  .shell { grid-template-columns: minmax(380px, 40%) 1fr; }
  .side { position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .side__inner { height: 100%; padding: clamp(36px, 6.5vh, 64px) clamp(40px, 5vw, 80px) clamp(28px, 4.5vh, 44px); }
  .side__event { margin-top: auto; }
  .side__title { --fs: clamp(4rem, 6.6vw, 7rem); }
  .side__when { margin-top: 26px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); }
  .side__where { font-size: clamp(1.125rem, 1.4vw, 1.375rem); }
  .side__foot { margin-top: clamp(28px, 5vh, 56px); padding-top: 18px; }
  .side__mark img { width: 96px; }
  .side__panther { left: 44%; top: -7%; height: 114%; }
}

/* Titel: so groß wie im Design, aber das längste Wort passt immer in die Spalte.
   --fit kommt als Klasse fit-N vom Server; 100cqi = Breite der Spalte (.side__event). */
@supports (width: 1cqi) {
  .side__title { font-size: clamp(1.25rem, 100cqi / var(--fit, 1), var(--fs)); }
}
/* Umlaut oder Akzent ab dem 2. Wort: Bei Zeilenabstand .86 stoßen die Punkte sonst an die Zeile
   darüber (wie bei H2, die deshalb .94 hat). */
.side__title.fit-akzent { line-height: .94; }
/* Stufen für .fit-N (vom Server, pretix_sip/titlefit.py): Breite des längsten Worts in em.
   Erzeugt mit „python3 pretix_sip/titlefit.py“ – nicht von Hand ändern. */
.fit-0{--fit:1.6} .fit-1{--fit:1.664} .fit-2{--fit:1.731} .fit-3{--fit:1.8} .fit-4{--fit:1.872} .fit-5{--fit:1.947}
.fit-6{--fit:2.025} .fit-7{--fit:2.105} .fit-8{--fit:2.19} .fit-9{--fit:2.277} .fit-10{--fit:2.368} .fit-11{--fit:2.463}
.fit-12{--fit:2.562} .fit-13{--fit:2.664} .fit-14{--fit:2.771} .fit-15{--fit:2.882} .fit-16{--fit:2.997} .fit-17{--fit:3.117}
.fit-18{--fit:3.241} .fit-19{--fit:3.371} .fit-20{--fit:3.506} .fit-21{--fit:3.646} .fit-22{--fit:3.792} .fit-23{--fit:3.944}
.fit-24{--fit:4.101} .fit-25{--fit:4.265} .fit-26{--fit:4.436} .fit-27{--fit:4.613} .fit-28{--fit:4.798} .fit-29{--fit:4.99}
.fit-30{--fit:5.189} .fit-31{--fit:5.397} .fit-32{--fit:5.613} .fit-33{--fit:5.837} .fit-34{--fit:6.071} .fit-35{--fit:6.314}
.fit-36{--fit:6.566} .fit-37{--fit:6.829} .fit-38{--fit:7.102} .fit-39{--fit:7.386} .fit-40{--fit:7.682} .fit-41{--fit:7.989}
.fit-42{--fit:8.308} .fit-43{--fit:8.641} .fit-44{--fit:8.986} .fit-45{--fit:9.346} .fit-46{--fit:9.72} .fit-47{--fit:10.109}
.fit-48{--fit:10.513} .fit-49{--fit:10.933} .fit-50{--fit:11.371} .fit-51{--fit:11.826} .fit-52{--fit:12.299} .fit-53{--fit:12.79}
.fit-54{--fit:13.302} .fit-55{--fit:13.834} .fit-56{--fit:14.388} .fit-57{--fit:14.963} .fit-58{--fit:15.562} .fit-59{--fit:16.184}
.fit-60{--fit:16.831} .fit-61{--fit:17.505} .fit-62{--fit:18.205} .fit-63{--fit:18.933} .fit-64{--fit:19.69} .fit-65{--fit:20.478}
.fit-66{--fit:21.297} .fit-67{--fit:22.149} .fit-68{--fit:23.035} .fit-69{--fit:23.956} .fit-70{--fit:24.915} .fit-71{--fit:25.911}
.fit-72{--fit:26.948}
/* Ende fit-Stufen */

/* Fortschritt: Signalgrün-Linie mit quadratischen Knoten (Markenelement) */
.track { display: none; }
@media (min-width: 1000px) {
  .track {
    display: block; position: relative;
    list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0;
  }
  .track::before {
    content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
    width: 2px; background: var(--signal);
  }
  .track__step {
    position: relative; display: grid; grid-template-columns: 16px 1fr; align-items: center;
    column-gap: 18px; padding: 10px 0;
    color: rgba(255,255,255,.62); font-size: 17px;
  }
  .track__node {
    width: 16px; height: 16px; background: var(--tanne); border: 2px solid rgba(255,255,255,.55);
    transition: background-color .2s, border-color .2s;
  }
  .track__step.is-done { color: rgba(255,255,255,.86); }
  .track__step.is-done .track__node { background: var(--signal); border-color: var(--signal); }
  .track__step.is-current { color: var(--weiss); font-weight: 700; }
  .track__step.is-current .track__node { background: var(--weiss); border-color: var(--weiss); }
}

/* ----------------------------------------------------------- Inhalt weiß */
.main { display: flex; flex-direction: column; padding: 28px 22px 32px; }
.main > .flow, .main > .done { flex: 1 0 auto; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 72px; font-size: 14px; }
.legal a { color: var(--grau); text-decoration: none; }
.legal a:hover { color: var(--tanne); text-decoration: underline; }
@media (min-width: 640px) { .main { padding: 36px 40px 36px; } }
@media (min-width: 1000px) { .main { min-height: 100vh; padding: clamp(28px, 4vh, 44px) clamp(48px, 7vw, 128px) 36px; } }
.main > * { max-width: 620px; }

/* ------------------------------------------------- Ablauf: eine Frage je Bildschirm */
.flow__top { display: none; }
.js .flow__top {
  display: block; position: sticky; top: 0; z-index: 6;
  margin: 0 0 clamp(28px, 7vh, 72px); padding: 14px 0 12px;
  background: var(--weiss);
}
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress__seg { position: relative; height: 4px; background: var(--linie-hell); overflow: hidden; }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--signal); transition: width .3s ease; }
.progress__seg:has(+ .progress__seg) { }
.flow__bar { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; min-height: 24px; }
.flow__chapter { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--grau); }
.flow__back { font-size: 15px; }

.screen + .screen { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--linie-hell); }
.js .screen { display: none; }
.js .screen.is-current { display: block; margin: 0; padding: 0; border: 0; animation: sip-in .28s ease both; }
.js .screen.is-current.is-back { animation-name: sip-in-back; }
@keyframes sip-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sip-in-back { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.q {
  /* H2 laut Handbuch: clamp(2rem, 4.5vw, 3.75rem) · 700 · lh 0.94 (Umlaute) */
  margin: 0; max-width: 13em;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: .94; letter-spacing: -0.02em;
  color: var(--tanne);
  hyphens: manual; overflow-wrap: break-word;
}
.q:focus { outline: none; box-shadow: none; }
.q__lead { margin: 20px 0 0; font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 300; line-height: 1.5; color: var(--anthrazit); max-width: 30em; }
.screen__body { margin-top: clamp(30px, 5vh, 48px); }
.screen__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 36px; }
.screen__hint { display: none; font-size: 14px; color: var(--grau); }
.js .screen__nav [data-next] { display: inline-flex; }
@media (hover: hover) and (pointer: fine) { .js .screen__hint { display: inline; } }
.js .screen[data-auto] .screen__nav { margin-top: 24px; }
@media (max-width: 639px) {
  .js .screen__nav {
    position: sticky; bottom: 0; z-index: 5;
    margin: 32px -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
    background: var(--weiss); border-top: 1px solid var(--linie-hell);
  }
  .js .screen__nav .btn { flex: 1 1 100%; }
}

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Felder */
.f { margin: 0 0 28px; }
.f[hidden] { display: none; }
.f__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.f__label {
  display: block; margin: 0 0 8px; padding: 0;
  font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--anthrazit);
}
.f__opt { font-weight: 400; font-size: 15px; color: var(--grau); }
.f__hint, .f__help { font-size: 15px; line-height: 1.5; color: var(--grau); }
.f__hint { margin: -2px 0 10px; }
.f__help { margin: 10px 0 0; max-width: 38em; }
.f__help p { margin: 0 0 6px; }
.f__help p:last-child { margin: 0; }
.f__help--check { margin-left: 38px; }
.f__sub { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.f__err { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--fehler); }

.sip input[type="text"], .sip input[type="email"], .sip input[type="tel"], .sip input[type="number"],
.sip input[type="date"], .sip select, .sip textarea, .sip .in {
  display: block; width: 100%;
  height: var(--feld);
  padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--anthrazit);
  background: var(--weiss);
  border: 1.5px solid var(--linie);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.sip textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.sip input:hover, .sip select:hover, .sip textarea:hover { border-color: var(--anthrazit); }
.sip input:focus-visible, .sip select:focus-visible, .sip textarea:focus-visible {
  border-color: var(--tanne); outline: 2px solid var(--tanne); outline-offset: 0;
}
.sip input::placeholder, .sip textarea::placeholder { color: #8A938E; opacity: 1; }
.sip select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230A3D2E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.f--error input, .f--error select, .f--error textarea, .f--error .card, .f--error .sig__pad { border-color: var(--fehler); }
.in--date { max-width: 220px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair__part .f__label { margin-bottom: 8px; }
@media (max-width: 380px) { .pair { grid-template-columns: 1fr; } }

/* Telefon: Ländervorwahl + Nummer (Markup von pretix) */
.f--phone .nameparts-form-group { display: grid; grid-template-columns: minmax(118px, 34%) 1fr; gap: 10px; }
.f--phone select { font-size: 16px; text-overflow: ellipsis; }

/* Antwortkarten statt Dropdown */
.cards { display: grid; gap: 10px; margin-top: 4px; }
.cards--row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.card {
  position: relative; display: grid; grid-template-columns: 20px 1fr; align-items: start; column-gap: 14px;
  padding: 16px 18px; min-height: var(--feld);
  background: var(--weiss); border: 1.5px solid var(--linie);
  font-size: 17px; line-height: 1.4; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--anthrazit); }
.card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card__box {
  width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--tanne); background: var(--weiss);
  transition: background-color .12s, border-color .12s;
}
.card:has(input:checked) { border-color: var(--tanne); background: var(--nebel); outline: 1px solid var(--tanne); outline-offset: -2px; }
.card:has(input:checked) .card__box { background: var(--signal); border-color: var(--signal); }
.card:has(input:checked) .card__box::after { content: ""; display: block; margin: 4px; width: 8px; height: 8px; background: var(--weiss); }
.card:has(input:focus-visible) { outline: 2px solid var(--tanne); outline-offset: 3px; }
.cards--row .card { grid-template-columns: 20px 1fr; align-items: center; }

/* Checkbox */
.check { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; align-items: start; cursor: pointer; font-size: 17px; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative; width: 24px; height: 24px; margin-top: 0;
  border: 2px solid var(--tanne); background: var(--weiss);
}
.check input:checked + .check__box { background: var(--signal); border-color: var(--signal); }
.check input:checked + .check__box::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px;
  border: solid var(--weiss); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--tanne); outline-offset: 3px; }
.check__text a { font-weight: 700; }
.consents { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--linie-hell); }
.consents .f { margin-bottom: 18px; }

/* Unterschrift */
.sig__pad {
  position: relative; height: 220px;
  background: var(--weiss); border: 1.5px solid var(--linie);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.sig__pad:focus-within { border-color: var(--tanne); }
.sig__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sig__line { position: absolute; left: 22px; right: 22px; bottom: 58px; border-top: 1.5px solid var(--anthrazit); pointer-events: none; }
.sig__x { position: absolute; left: 0; top: -30px; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; color: var(--anthrazit); }
.sig__hint { position: absolute; left: 22px; bottom: 20px; margin: 0; font-size: 14px; color: var(--grau); pointer-events: none; }
.sig.is-signed .sig__hint { visibility: hidden; }
.sig__clear { position: absolute; right: 14px; top: 10px; }
.sig__toggle { margin-top: 12px; }
.sig__upload input[type="file"] { height: auto; padding: 12px; font-size: 15px; }

/* Zusammenfassung */
.summary { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; margin: 0; border-top: 1px solid var(--linie-hell); font-size: 17px; }
.summary dt, .summary dd { padding: 13px 0; border-bottom: 1px solid var(--linie-hell); }
.summary dt { color: var(--grau); font-size: 15px; padding-top: 15px; }
.summary dd { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; overflow-wrap: anywhere; }
.summary__edit { flex: none; font-size: 15px; }
@media (max-width: 480px) {
  .summary { grid-template-columns: 1fr; }
  .summary dt { padding-bottom: 0; border-bottom: 0; }
  .summary dd { padding-top: 2px; }
}
.minor { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--signal); background: var(--nebel); }
.minor p { margin: 0; }
.declare { margin: 0 0 28px; padding: 22px 24px; background: var(--nebel); font-size: 16px; line-height: 1.55; }
.declare p { margin: 0 0 10px; }
.declare ul { margin: 6px 0 0; padding: 0; list-style: none; }
.declare li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.declare li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--signal); }
.declare li:last-child { margin-bottom: 0; }
.declare strong { color: var(--tanne); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .01em;
  color: var(--weiss) !important; background: var(--signal);
  border: 0; border-radius: 0; text-decoration: none !important;
  cursor: pointer; transition: background-color .15s;
}
.btn:hover { background: var(--tanne); }
.btn:focus-visible { outline: 2px solid var(--tanne); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--quiet { background: transparent; color: var(--tanne) !important; box-shadow: inset 0 0 0 2px var(--tanne); }
.btn--quiet:hover { background: var(--nebel); }
.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--tanne);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.link:hover { color: var(--tanne); text-decoration-thickness: 2.5px; }

/* Hinweise */
.notice { margin: 0 0 32px; padding: 16px 20px; border-left: 4px solid var(--tanne); background: var(--nebel); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice--error { border-color: var(--fehler); background: var(--fehler-flaeche); color: #5A1712; font-weight: 600; }
.notice:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sending { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(255,255,255,.92); }
.sending[hidden] { display: none; }
.sending__text { margin: 0; font-size: 19px; font-weight: 700; color: var(--tanne); }

/* --------------------------------------------------- Bestätigung, geschlossen */
.display {
  margin: 0;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 7.5vw, 68px); line-height: .92; letter-spacing: -0.02em; color: var(--tanne);
}
.display:focus { outline: none; box-shadow: none; }
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.5; max-width: 32em; }
.done__mark { width: 56px; height: 56px; margin-bottom: 30px; background: var(--signal); position: relative; }
.done__mark::after {
  content: ""; position: absolute; left: 20px; top: 10px; width: 13px; height: 25px;
  border: solid var(--weiss); border-width: 0 4px 4px 0; transform: rotate(45deg);
}
.next { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.next::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--signal); }
.next__item { position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 22px; padding: 0 0 28px; }
.next__item::before { content: ""; width: 16px; height: 16px; margin-top: 5px; background: var(--signal); grid-row: 1 / span 2; }
.next__num { display: none; }
.next__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--tanne); }
.next__item p { margin: 0; color: var(--anthrazit); }
.done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.done__fine { margin: 28px 0 0; font-size: 15px; color: var(--grau); max-width: 36em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .side, .screen__nav, .flow__top { display: none !important; }
}

/* Testlauf-Hinweis (Event im Testmodus) */
.testrun { margin: 0 0 24px; padding: 10px 14px; border-left: 4px solid var(--fehler); font-size: 14px; line-height: 1.4; color: var(--anthrazit); }
