/* ==========================================================================
   Bewerbungsformular – Märkte der Stadt Hungen
   Modern und hell: weißer Grund mit weichen, unscharfen Farbflächen,
   Glas-Karten und orangen Akzenten. Überschriften in Amaranth (Marktschrift).
   ========================================================================== */
@font-face { font-family: 'Amaranth'; src: url(fonts/amaranth-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amaranth'; src: url(fonts/amaranth-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(fonts/lato-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #fbfaf8;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-line: rgba(255, 255, 255, .9);
  --ink: #1f1c22;
  --ink-2: #4b4650;
  --muted: #8a8490;
  --line: #ece7e1;
  --line-2: #ddd6ce;
  --field: #ffffff;
  --orange: #ec8a24;
  --orange-d: #d0650d;
  --orange-soft: #fff4e8;
  --orange-ring: rgba(236, 138, 36, .22);
  --grad: linear-gradient(135deg, #ffad57 0%, #ec8a24 50%, #d0650d 100%);
  --ok: #2e9d5b;
  --danger: #d1372b;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(40, 20, 0, .04), 0 12px 40px -12px rgba(60, 30, 0, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.55 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Amaranth', 'Lato', system-ui, sans-serif; font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
a { color: var(--orange-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
b, strong { font-weight: 700; }

/* ---------- Hintergrund: weiche, unscharfe Farbflächen ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6; will-change: transform; }
.bg i:nth-child(1) { width: 640px; height: 640px; left: -160px; top: -180px; background: #ffc27e; animation: drift1 22s ease-in-out infinite alternate; }
.bg i:nth-child(2) { width: 580px; height: 580px; right: -180px; top: 22vh; background: #ffab95; opacity: .45; animation: drift2 26s ease-in-out infinite alternate; }
.bg i:nth-child(3) { width: 560px; height: 560px; left: 20vw; bottom: -240px; background: #ffd98f; opacity: .55; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { 33% { transform: translate(14vw, 8vh) scale(1.12); } 66% { transform: translate(4vw, 22vh) scale(.95); } 100% { transform: translate(18vw, 2vh) scale(1.05); } }
@keyframes drift2 { 33% { transform: translate(-12vw, -10vh) scale(1.1); } 66% { transform: translate(-20vw, 12vh) scale(.92); } 100% { transform: translate(-6vw, -4vh) scale(1.08); } }
@keyframes drift3 { 33% { transform: translate(18vw, -14vh) scale(.94); } 66% { transform: translate(-8vw, -22vh) scale(1.12); } 100% { transform: translate(10vw, -8vh) scale(1); } }
.bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,250,248,0) 0%, rgba(251,250,248,.5) 100%); }

/* ---------- Seite ---------- */
.page { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
.boot { text-align: center; padding: 120px 0; color: var(--muted); }
.boot img { animation: pulse 1.4s ease-in-out infinite; border-radius: 14px; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Kopf: Marktgrafik oder schlichter Titel */
.hero { overflow: hidden; margin-bottom: 16px; animation: rise .7s var(--ease) both; padding: 0; }
.hero img.banner { display: block; width: 100%; height: auto; }
.hero-plain { display: flex; align-items: center; gap: 18px; padding: 22px 26px; }
.hero-plain .logo { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px -6px rgba(208,101,13,.5); }
.hero-plain .pre { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); font-weight: 700; }
.hero-plain h1 { font-size: clamp(26px, 5vw, 36px); }

/* Einleitung */
.intro { padding: 30px 32px 26px; margin-bottom: 26px; animation: rise .7s .06s var(--ease) both; }
.eyebrow { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--orange-d); font-weight: 700; margin-bottom: 6px; }
.intro h1 { font-size: clamp(28px, 5vw, 38px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.chip svg { color: var(--orange); flex: none; }
.chip.deadline { background: var(--orange-soft); border-color: #f6d3ad; color: var(--ink); }
.chip.deadline.soon { background: #fdeae6; border-color: #f2bdb3; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-ring); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(236,138,36,0); } }
@media (max-width: 600px) { .chip { white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; } }
.intro .info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.intro .info h3 { font: 700 12px/1 'Lato'; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.intro .info p { margin: 0; }
@media (max-width: 600px) { .intro .info { grid-template-columns: 1fr; } }
.intro .lead { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- Schritte: gleichmäßig verteilt ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); list-style: none; margin: 0 0 18px; padding: 0; position: relative; animation: rise .7s .12s var(--ease) both; }
.steps .track, .steps .bar { position: absolute; top: 19px; left: calc(50% / var(--n)); height: 2px; border-radius: 2px; }
.steps .track { right: calc(50% / var(--n)); background: var(--line-2); }
.steps .bar { background: var(--grad); transition: width .6s var(--ease); }
.steps li { position: relative; z-index: 1; display: flex; justify-content: center; }
.steps button { all: unset; cursor: var(--cur-pointer, pointer); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.steps button:disabled { cursor: default; }
.steps .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font: 700 15px/1 'Lato'; color: var(--muted); transition: all .35s var(--ease); }
.steps .lbl { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s; }
.steps .done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .active .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px var(--orange-ring), 0 6px 14px -4px rgba(208,101,13,.6); }
.steps .active .lbl, .steps .done .lbl { color: var(--ink); }
.steps button:not(:disabled):hover .dot { border-color: var(--orange); }
.steps button:focus-visible .dot { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 600px) { .steps .lbl { display: none; } .steps .dot { width: 34px; height: 34px; font-size: 14px; } .steps .track, .steps .bar { top: 16px; } }

/* ---------- Abschnitt ---------- */
.sec { overflow: hidden; animation: slideIn .5s var(--ease) both; }
.sec.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } }
.sec-head { padding: 28px 32px 0; }
.sec-head h2 { font-size: 28px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.sec-body { padding: 24px 32px 8px; }
@media (max-width: 600px) { .sec-head { padding: 22px 20px 0; } .sec-body { padding: 20px 20px 4px; } .intro { padding: 24px 20px 22px; } }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 16px; align-items: start; }
.f { grid-column: span 3; margin-bottom: 20px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f.s { grid-column: span 2; } .f.l { grid-column: span 4; } .f.t { grid-column: span 2; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .f, .f.s, .f.l, .f.t { grid-column: 1 / -1; } }

.f > label, .f > .lab { display: block; font-size: 14.5px; font-weight: 700; margin: 0 0 7px; color: var(--ink); }
.f .opt-tag { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.f .req { color: var(--orange-d); margin-left: 2px; }
.f .hint { display: block; font-size: 13.5px; color: var(--muted); margin: 7px 0 0; line-height: 1.4; }
.inp { position: relative; }
.inp input, .inp textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 13px;
  padding: 12px 14px; height: 50px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
  box-shadow: 0 1px 2px rgba(40,20,0,.04);
}
.inp textarea { height: auto; min-height: 104px; resize: vertical; line-height: 1.5; }
.inp input::placeholder, .inp textarea::placeholder { color: #b9b2ab; }
.inp input:hover, .inp textarea:hover { border-color: #c9c0b6; }
.inp input:focus, .inp textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-ring); }
.inp .unit { position: absolute; right: 14px; top: 25px; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.inp.has-unit input { padding-right: 44px; }
.inp .ok { position: absolute; right: 13px; top: 15px; width: 20px; height: 20px; color: var(--ok); opacity: 0; transform: scale(.6); transition: all .25s var(--ease); pointer-events: none; }
.inp.valid:not(.has-unit) .ok { opacity: 1; transform: none; }
.inp.valid:not(.has-unit) input { padding-right: 40px; }
.f.invalid .inp input, .f.invalid .inp textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(209,55,43,.1); }
.err { display: none; color: var(--danger); font-size: 13.5px; margin-top: 7px; align-items: center; gap: 6px; }
.f.invalid .err { display: flex; animation: shake .35s; }
.f.invalid .hint { display: none; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Auswahlflächen (Ja/Nein, Strom) */
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 12px; height: 100%; min-height: 56px; padding: 10px 14px; border-radius: 14px; cursor: var(--cur-pointer, pointer); user-select: none;
  background: var(--field); border: 1px solid var(--line-2); transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; line-height: 1.25;
  box-shadow: 0 1px 2px rgba(40,20,0,.04);
}
.opt label:hover { border-color: #c9c0b6; }
.opt label:active { transform: scale(.98); }
.opt .rad { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .2s; background: #fff; }
.opt .rad::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.opt .t { display: flex; flex-direction: column; min-width: 0; }
.opt .t b { font-size: 15.5px; }
.opt .t small { font-size: 13px; color: var(--muted); }
.opt .ico { margin-left: auto; color: var(--orange); flex: none; opacity: .85; }
.opt input:checked + label { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px var(--orange-ring); }
.opt input:checked + label .rad { border-color: transparent; background: var(--grad); }
.opt input:checked + label .rad::after { transform: scale(1); }
.opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.f.invalid .opt label { border-color: #eab3ab; }

/* Datei-Upload */
.f > label.drop { display: flex; font: inherit; margin: 0; }
.drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: rgba(255,255,255,.6); cursor: var(--cur-pointer, pointer); transition: all .2s; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); }
.drop .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-d); display: grid; place-items: center; flex: none; }
.drop b { display: block; font-size: 15px; }
.drop small { color: var(--muted); font-size: 13.5px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 104px; height: 82px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; padding: 4px; animation: rise .35s var(--ease); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(31,28,34,.75); color: #fff; cursor: var(--cur-pointer, pointer); display: grid; place-items: center; font-size: 13px; line-height: 1; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 12px; padding: 18px 32px 26px; }
@media (max-width: 600px) { .nav { padding: 14px 20px 20px; } }
.nav .grow { flex: 1; }
.draft { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity .4s; }
.draft.show { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: 700 15.5px 'Lato', system-ui, sans-serif; cursor: var(--cur-pointer, pointer); text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: #c9c0b6; color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(208,101,13,.8); }
.btn.primary:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 12px 26px -10px rgba(208,101,13,.9); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #38333d; color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn svg { transition: transform .2s; }
.btn:hover svg.arr { transform: translateX(3px); }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Zusammenfassung */
.sum-block { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.75); margin-bottom: 12px; overflow: hidden; }
.sum-block header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sum-block h3 { font: 700 15px 'Lato'; }
.sum-block header button { all: unset; cursor: var(--cur-pointer, pointer); color: var(--orange-d); font-size: 14px; font-weight: 700; }
.sum-block header button:hover { text-decoration: underline; }
.sum-block dl { display: grid; grid-template-columns: 200px 1fr; margin: 0; padding: 10px 18px 12px; gap: 6px 16px; font-size: 15px; }
.sum-block dt { color: var(--muted); }
.sum-block dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 520px) { .sum-block dl { grid-template-columns: 1fr; gap: 0; } .sum-block dd { margin-bottom: 8px; } }
.f > label.check { display: flex; font: inherit; margin: 0 0 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; cursor: var(--cur-pointer, pointer); transition: border-color .2s, background .2s; }
.check input { position: absolute; opacity: 0; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; transition: all .2s; background: #fff; }
.check .box svg { opacity: 0; transform: scale(.5); transition: all .25s var(--ease); color: #fff; }
.check:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.check input:checked ~ .box { background: var(--grad); border-color: transparent; }
.check input:checked ~ .box svg { opacity: 1; transform: none; }
.check input:focus-visible ~ .box { outline: 3px solid var(--orange); outline-offset: 2px; }
.check span.txt { font-size: 15px; }
.f.invalid .check { border-color: #eab3ab; }
.done-sum .sum-block header button { display: none; }
.alert { padding: 13px 16px; border-radius: 14px; background: #fdeae6; color: #8a2016; border: 1px solid #f2bdb3; margin: 0 0 14px; display: flex; gap: 10px; animation: shake .35s; }

/* Danke-Seite & Hinweise */
.notice { text-align: center; padding: 46px 32px 38px; animation: rise .6s var(--ease) both; }
.notice h2 { font-size: clamp(28px, 5vw, 38px); margin: 18px 0 8px; }
.notice p { max-width: 520px; margin: 8px auto; color: var(--ink-2); }
.seal { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 10px var(--orange-ring), 0 16px 32px -10px rgba(208,101,13,.6); animation: pop .7s .1s var(--ease) both; }
.seal svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .55s ease forwards; }
.seal.muted { background: #e9e4de; color: var(--ink-2); box-shadow: 0 0 0 10px rgba(233,228,222,.5); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref { display: inline-block; margin: 16px 0 4px; padding: 10px 20px; border-radius: 14px; background: #fff; border: 1px dashed var(--line-2); font: 700 22px/1 'Lato'; letter-spacing: .05em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.divider { width: 48px; height: 3px; border-radius: 3px; background: var(--grad); margin: 22px auto; }

/* Auswahl mehrerer Veranstaltungen */
.mk-list { display: grid; gap: 12px; }
.mk { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; animation: rise .6s var(--ease) both; }
.mk:hover { transform: translateY(-2px); color: inherit; box-shadow: var(--shadow), 0 16px 32px -16px rgba(60,30,0,.25); }
.mk .date { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; text-align: center; font: 700 22px/1 'Lato'; }
.mk .date small { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.mk h2 { font-size: 21px; }
.mk p { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.mk .go { margin-left: auto; color: var(--orange); }
.mk.closed { opacity: .6; }

/* Fußzeile */
.foot { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; font-size: 13.5px; color: var(--muted); }
.foot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.foot a { color: var(--ink-2); }

/* Hinweisleiste in der Vorschau-Datei */
.demo-bar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.demo-bar b { color: #ffc27e; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Druck: Zusammenfassung für die eigenen Unterlagen */
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body { background: #fff; font-size: 11pt; }
  .bg, .demo-bar, .steps, .nav, .actions, .foot .links, .sum-block header button, .seal, .divider { display: none !important; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; background: #fff; backdrop-filter: none; }
  .hero { margin-bottom: 8mm; }
  .notice { padding: 0; text-align: left; }
  .notice h2 { font-size: 18pt; }
  .print-only { display: block !important; }
  .sum-block { break-inside: avoid; }
}
.print-only { display: none; }

/* Verlaufsflächen ohne Kanten: Verlauf reicht bis unter den Rand und wird nicht wiederholt */
.btn.primary, .steps .active .dot, .opt input:checked + label .rad, .check input:checked ~ .box, .seal, .mk .date, .steps .bar {
  background-origin: border-box; background-repeat: no-repeat; background-clip: border-box;
}
.btn.primary { border: 0; }

/* aktueller Schritt pulsiert sanft */
.steps .active .dot { animation: stepPulse 2.2s ease-out infinite; }
@keyframes stepPulse {
  0%   { box-shadow: 0 0 0 0 rgba(236,138,36,.45), 0 6px 14px -4px rgba(208,101,13,.6); transform: scale(1); }
  50%  { transform: scale(1.06); }
  70%  { box-shadow: 0 0 0 12px rgba(236,138,36,0), 0 6px 14px -4px rgba(208,101,13,.6); }
  100% { box-shadow: 0 0 0 0 rgba(236,138,36,0), 0 6px 14px -4px rgba(208,101,13,.6); transform: scale(1); }
}

/* ---------- Fallende Blätter ---------- */
.leaves { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; top: -60px; animation: leafFall linear infinite; will-change: transform; }
.leaf .sway { width: 100%; height: 100%; animation: leafSway ease-in-out infinite alternate; }
.leaf svg { width: 100%; height: 100%; display: block; animation: leafSpin linear infinite; }
.leaf svg path { fill: currentColor; }
.leaf svg path.v { fill: none; stroke: rgba(80, 25, 5, .35); stroke-width: .9; stroke-linecap: round; }
@keyframes leafFall { from { transform: translateY(-8vh); } to { transform: translateY(112vh); } }
@keyframes leafSway { from { transform: translateX(calc(var(--dx) * -1)) rotate(-8deg); } to { transform: translateX(var(--dx)) rotate(8deg); } }
@keyframes leafSpin { 0% { transform: rotate(0deg) scaleX(1); } 25% { transform: rotate(90deg) scaleX(.6); } 50% { transform: rotate(180deg) scaleX(1); } 75% { transform: rotate(270deg) scaleX(.6); } 100% { transform: rotate(360deg) scaleX(1); } }
@media print { .leaves { display: none; } }




/* ---------- Eigener Mauszeiger: Pfeil und Hand mit Kontur in der eigenen Farbe ---------- */
@media (pointer: fine) {
  :root { --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='4' y1='2' x2='26' y2='28'%3E%3Cstop offset='0' stop-color='%23ffd29a'/%3E%3Cstop offset='1' stop-color='%23f0902e'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M10.8 8.6a2.2 2.2 0 0 1 4.4 0V14a2.1 2.1 0 0 1 4.2 0v.6a2 2 0 0 1 4 .2v.8a1.8 1.8 0 0 1 3.6.4V21.4c0 4-3.3 7.2-7.3 7.2h-3c-2.4 0-4.6-1.2-5.9-3.2L5.8 20.3a2.1 2.1 0 0 1 3.4-2.5L10.8 19.6V8.6Z' fill='rgba(140,60,0,.3)' filter='url(%23s)' transform='translate(.7 1.3)'/%3E%3Cpath d='M10.8 8.6a2.2 2.2 0 0 1 4.4 0V14a2.1 2.1 0 0 1 4.2 0v.6a2 2 0 0 1 4 .2v.8a1.8 1.8 0 0 1 3.6.4V21.4c0 4-3.3 7.2-7.3 7.2h-3c-2.4 0-4.6-1.2-5.9-3.2L5.8 20.3a2.1 2.1 0 0 1 3.4-2.5L10.8 19.6V8.6Z' fill='url(%23g)' stroke='%238a3d00' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M15.2 14v3.2M19.4 14.6v2.8M23.4 15.6v2.4' fill='none' stroke='%238a3d00' stroke-width='1.3' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") 13 6, pointer; --cur-pointer-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='4' y1='2' x2='26' y2='28'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23fff0de'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M10.8 8.6a2.2 2.2 0 0 1 4.4 0V14a2.1 2.1 0 0 1 4.2 0v.6a2 2 0 0 1 4 .2v.8a1.8 1.8 0 0 1 3.6.4V21.4c0 4-3.3 7.2-7.3 7.2h-3c-2.4 0-4.6-1.2-5.9-3.2L5.8 20.3a2.1 2.1 0 0 1 3.4-2.5L10.8 19.6V8.6Z' fill='rgba(140,60,0,.4)' filter='url(%23s)' transform='translate(.7 1.3)'/%3E%3Cpath d='M10.8 8.6a2.2 2.2 0 0 1 4.4 0V14a2.1 2.1 0 0 1 4.2 0v.6a2 2 0 0 1 4 .2v.8a1.8 1.8 0 0 1 3.6.4V21.4c0 4-3.3 7.2-7.3 7.2h-3c-2.4 0-4.6-1.2-5.9-3.2L5.8 20.3a2.1 2.1 0 0 1 3.4-2.5L10.8 19.6V8.6Z' fill='url(%23g)' stroke='%238a3d00' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M15.2 14v3.2M19.4 14.6v2.8M23.4 15.6v2.4' fill='none' stroke='%238a3d00' stroke-width='1.3' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") 13 6, pointer; }
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='4' y1='2' x2='26' y2='28'%3E%3Cstop offset='0' stop-color='%23ffd29a'/%3E%3Cstop offset='1' stop-color='%23f0902e'/%3E%3C/linearGradient%3E%3Cfilter id='s' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M7 5.5 23.5 13.6 16.4 15.8 12.8 22.6Z' fill='rgba(140,60,0,.3)' stroke='rgba(140,60,0,.3)' stroke-width='4' stroke-linejoin='round' filter='url(%23s)' transform='translate(.8 1.4)'/%3E%3Cpath d='M7 5.5 23.5 13.6 16.4 15.8 12.8 22.6Z' fill='%238a3d00' stroke='%238a3d00' stroke-width='5.6' stroke-linejoin='round'/%3E%3Cpath d='M7 5.5 23.5 13.6 16.4 15.8 12.8 22.6Z' fill='url(%23g)' stroke='url(%23g)' stroke-width='3.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto; }
  :is(a, button, summary, select, label[for], label.check, [role=button], [data-go], .sui-btn, .opt label, .drop, .mk, input[type=checkbox], input[type=radio]) { cursor: var(--cur-pointer); }
  /* auf kräftig farbigen Knöpfen: helle Hand, damit sie nicht untergeht */
  :is(.btn.primary, .btn.primary *) { cursor: var(--cur-pointer-light) !important; }
}

.prefill-note { background: #e9f7ee; color: #0b6b31; border: 1px solid #bfe6cc; font-size: 15px; }
@media (prefers-color-scheme: dark) { .prefill-note { background: #12321f; color: #8fe0ad; border-color: #1f5333; } }
