/* ATS-Verwaltung – gleiche Gestaltung auf Handy, Tablet und PC.
   Große Schrift und große Knöpfe, damit auch ältere Kameraden gut zurechtkommen. */
:root {
  --bg: #f3f2ee; --card: #ffffff; --card2: #f7f6f2; --tx: #1a1a18; --mu: #55554f; --bd: #d6d4cc;
  --ac: #c8102e; --ac2: #a50d26; --actx: #ffffff;
  --ok: #1b7a30; --okbg: #e5f3e8; --wa: #9a5800; --wabg: #fbf0dc; --er: #c62828; --erbg: #fbe6e6;
  --sh: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --r: 16px; --fs: 19px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --card: #201f1d; --card2: #2a2926; --tx: #efeee9; --mu: #a9a8a1; --bd: #3c3b37;
    --ac: #e8344f; --ac2: #ff5068; --actx: #ffffff;
    --ok: #6cc77b; --okbg: #1c3321; --wa: #ffb547; --wabg: #3a2c12; --er: #ff6b6b; --erbg: #3d1d1d;
    --sh: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --card: #201f1d; --card2: #2a2926; --tx: #efeee9; --mu: #a9a8a1; --bd: #3c3b37;
  --ac: #e8344f; --ac2: #ff5068; --actx: #ffffff;
  --ok: #6cc77b; --okbg: #1c3321; --wa: #ffb547; --wabg: #3a2c12; --er: #ff6b6b; --erbg: #3d1d1d;
  --sh: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
:root[data-fs="n"] { --fs: 16px } :root[data-fs="g"] { --fs: 19px } :root[data-fs="sg"] { --fs: 23px }

* { box-sizing: border-box }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem }
body { margin: 0; background: var(--bg); color: var(--tx); font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0) }
main { max-width: 920px; margin: 0 auto; padding: .75rem 1rem 3rem }
h1 { font-size: 1.45rem; margin: 0; line-height: 1.2 }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; display: flex; align-items: center; gap: .5rem }
h3 { font-size: 1rem; margin: 1rem 0 .3rem; color: var(--mu) }
a { color: var(--ac) }
small, .klein { font-size: .82rem }
.mu { color: var(--mu) } .ok { color: var(--ok) } .wa { color: var(--wa) } .er { color: var(--er) }
.lead { font-size: 1.05rem }
.ic { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none }

/* ---------- Knöpfe und Felder */
button, input, select, textarea { font: inherit; color: inherit }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; padding: .5rem 1rem;
  border: 1.5px solid var(--bd); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none;
  transition: transform .08s, background .15s, border-color .15s }
.btn:hover { border-color: var(--mu) }
.btn:active { transform: scale(.97) }
.btn:disabled { opacity: .6; cursor: default }
.btn.p { background: var(--ac); border-color: var(--ac); color: var(--actx) }
.btn.p:hover { background: var(--ac2); border-color: var(--ac2) }
.btn.ok { color: var(--ok); border-color: var(--ok) } .btn.er { color: var(--er); border-color: var(--er) }
.btn.xl { min-height: 3.4rem; font-size: 1.05rem; padding: .6rem 1.2rem }
.btn.breit { width: 100%; margin: .4rem 0 }
.btn.rund { width: 2.9rem; padding: 0; border-radius: 50% }
.btn.rund.gross { width: 3.2rem; min-height: 3.2rem }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px }
.feld { display: block; margin: .8rem 0 }
.feld > span:first-child { display: block; font-size: .9rem; color: var(--mu); margin-bottom: .3rem; font-weight: 600 }
.feld input, .feld select, .feld textarea, .platz select { width: 100%; min-height: 3.2rem; padding: .55rem .8rem; border: 1.5px solid var(--bd); border-radius: 12px; background: var(--card) }
.feld textarea { min-height: 7rem; resize: vertical }
.feld.gross input { font-size: 1.6rem; text-align: center; font-weight: 700 }
.feld input:focus, .feld textarea:focus, select:focus { border-color: var(--ac); outline: none }
.pwfeld { display: flex; gap: .5rem } .pwfeld input { flex: 1 }
.suche { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1.5px solid var(--bd); border-radius: 12px; padding: 0 .8rem; margin: .6rem 0 }
.suche input { flex: 1; min-width: 0; min-height: 3.2rem; border: 0; background: none; outline: none }
.suche .ic { color: var(--mu) }
.pill { display: inline-block; border-radius: 99px; padding: .15rem .65rem; font-size: .8rem; font-weight: 700; white-space: nowrap; border: 1.5px solid currentColor; background: var(--card) }
.pill.ok { background: var(--okbg); border-color: transparent } .pill.wa { background: var(--wabg); border-color: transparent } .pill.er { background: var(--erbg); border-color: transparent }
.spin { display: inline-block; width: 1em; height: 1em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dreh .7s linear infinite; vertical-align: -.15em }
@keyframes dreh { to { transform: rotate(360deg) } }

/* ---------- Kopfzeile */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  max-width: 920px; margin: 0 auto; padding: .6rem 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px) }
.wache-btn { display: flex; align-items: center; gap: .6rem; min-height: 3.2rem; padding: .3rem .9rem .3rem .6rem; border: 1.5px solid var(--bd); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; min-width: 0 }
.wache-btn:disabled { cursor: default; color: inherit }
.wache-btn .ic { color: var(--ac); width: 1.7em; height: 1.7em }
.wache-btn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.wache-btn small { display: block; color: var(--mu) }
.wache-btn span { min-width: 0 }
.pfeil { color: var(--mu); font-size: 1.2rem; margin-left: auto }
.seitenkopf { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .4rem 0 1rem }
.seitenkopf h1 { flex: 1; min-width: 8rem }
.btn.zur { padding-left: .6rem }
.hallo { font-size: 1.1rem; margin: .3rem 0 .8rem }

/* ---------- Leiste unten (Reiter) – auf allen Geräten gleich */
main.mit-reiter { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0)) }
.reiter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1.5px solid var(--bd);
  padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -4px 16px rgba(0,0,0,.06) }
.reiter > div { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr) }
.reiter button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 4.2rem; padding: .35rem .1rem;
  border: 0; background: none; color: var(--mu); cursor: pointer; font-size: .74rem; font-weight: 600; position: relative }
.reiter button .ic { width: 1.7rem; height: 1.7rem }
.reiter button.an { color: var(--ac) }
.reiter button.an::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ac) }
.reiter button:active { transform: scale(.96) }

/* ---------- Filter-Chips und Umschalter */
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 0 .5rem; scrollbar-width: none }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; min-height: 2.6rem; padding: .3rem .9rem; border: 1.5px solid var(--bd); border-radius: 99px; background: var(--card); cursor: pointer; font-weight: 600; white-space: nowrap }
.chip span { color: var(--mu); font-weight: 700; margin-left: .2rem }
.chip.an { background: var(--ac); border-color: var(--ac); color: var(--actx) } .chip.an span { color: var(--actx) }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card2); border: 1.5px solid var(--bd); border-radius: 14px; padding: 4px; margin-bottom: .4rem }
.seg button { min-height: 2.8rem; border: 0; border-radius: 10px; background: none; cursor: pointer; font-weight: 600; color: var(--mu); padding: .2rem .3rem }
.seg button.an { background: var(--card); color: var(--tx); box-shadow: var(--sh) }
.zeile .zusatz { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .25rem }
.pfeil.ic, .ic.pfeil { color: var(--mu); width: 1.2rem; height: 1.2rem; margin-left: auto }

/* ---------- Übersicht: Fahrzeug-Füllstand und „Zu erledigen“ */
.fz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .6rem }
.fz-balken { display: flex; flex-direction: column; gap: .35rem; padding: .75rem .9rem; border: 1.5px solid var(--bd); border-radius: var(--r); background: var(--card); text-align: left; cursor: pointer; box-shadow: var(--sh) }
.fz-balken .fz-kopf { display: flex; justify-content: space-between; gap: .5rem; font-weight: 700 }
.fz-balken .fz-kopf span { color: var(--ok) } .fz-balken .fz-kopf b { color: var(--tx) }
.fz-balken .balken { height: 8px; background: var(--bd); border-radius: 99px; overflow: hidden }
.fz-balken .balken i { display: block; height: 100%; background: var(--ok); border-radius: 99px }
.fz-balken small { color: var(--mu) }
.fz-balken.er { border-color: var(--er) } .fz-balken.er .fz-kopf span { color: var(--er) } .fz-balken.er .balken i { background: var(--er) }
.erl-liste { padding: .2rem .4rem }
.erl { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 3.6rem; padding: .55rem .5rem; border: 0; border-bottom: 1px solid var(--bd); background: none; text-align: left; cursor: pointer }
.erl:last-child { border-bottom: 0 }
.erl > .ic:first-child { width: 1.6rem; height: 1.6rem; color: var(--wa) } .erl > .ic.er { color: var(--er) } .erl > .ic.wa { color: var(--wa) }
.erl span { flex: 1; min-width: 0 } .erl b { display: block } .erl small { display: block; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.erl.mehr b { color: var(--ac) }

/* ---------- Startseite */
.ampel { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem }
.amp { border: 0; border-radius: var(--r); padding: .9rem .4rem; cursor: pointer; font-weight: 600; font-size: .9rem; box-shadow: var(--sh) }
.amp b { display: block; font-size: 2.1rem; line-height: 1.1 }
.amp.ok { background: var(--okbg); color: var(--ok) } .amp.wa { background: var(--wabg); color: var(--wa) } .amp.er { background: var(--erbg); color: var(--er) }
.amp:active, .kachel:active, .zeile:active, .wahl-k:active { transform: scale(.98) }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: .7rem }
.kachel { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 7.4rem; padding: 1rem; border: 1.5px solid var(--bd); border-radius: var(--r);
  background: var(--card); cursor: pointer; text-align: left; box-shadow: var(--sh); transition: transform .08s, border-color .15s }
.kachel:hover { border-color: var(--ac) }
.kachel .ic { width: 2.2rem; height: 2.2rem; color: var(--ac) }
.kachel b { font-size: 1.05rem; line-height: 1.2 } .kachel small { color: var(--mu) }
.kachel.rot { background: var(--ac); border-color: var(--ac); color: var(--actx) }
.kachel.rot .ic, .kachel.rot small { color: var(--actx) }
.hinweis { display: flex; align-items: center; gap: .8rem; width: 100%; margin: .9rem 0 0; padding: .9rem 1rem; border: 1.5px solid var(--wa); border-radius: var(--r);
  background: var(--wabg); color: inherit; text-align: left; cursor: pointer }
.hinweis .ic { color: var(--wa); width: 2rem; height: 2rem }
.hinweis span { flex: 1; min-width: 0 } .hinweis small { display: block; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.hinweis.klein { cursor: default; margin: .6rem 0 }
.hinweis.er { border-color: var(--er); background: var(--erbg) } .hinweis.er > .ic { color: var(--er) }

/* ---------- Karten, Listen */
.karte { background: var(--card); border: 1.5px solid var(--bd); border-radius: var(--r); padding: .9rem 1rem; margin: .6rem 0; box-shadow: var(--sh) }
.karte.leer, .leer { color: var(--mu); text-align: center; padding: 1.4rem 1rem; display: flex; gap: .5rem; justify-content: center; align-items: center }
.reihe { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap }
.zeile { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 4rem; margin: .45rem 0; padding: .7rem 1rem; border: 1.5px solid var(--bd); border-radius: var(--r);
  background: var(--card); text-align: left; cursor: pointer; box-shadow: var(--sh) }
.zeile:hover { border-color: var(--mu) }
.zeile > .ic { color: var(--ac); width: 1.8rem; height: 1.8rem }
.zeile > span:not(.pill):not(.pfeil) { flex: 1; min-width: 0 }
.zeile b { display: block } .zeile small { display: block; color: var(--mu) }
details.aus { margin-top: 1.4rem } details.aus summary { cursor: pointer; font-weight: 700; padding: .6rem 0; color: var(--mu) }
.status-band { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--r); margin-bottom: .6rem }
.status-band .ic { width: 2.4rem; height: 2.4rem }
.status-band b { display: block; font-size: 1.15rem } .status-band small { display: block; color: var(--tx); opacity: .8 }
.status-band.ok { background: var(--okbg); color: var(--ok) } .status-band.wa { background: var(--wabg); color: var(--wa) } .status-band.er { background: var(--erbg); color: var(--er) }
.aktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .5rem; margin: .6rem 0 }
.aktionen.klein { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)) }
.frist { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .8rem 1rem; margin: .45rem 0; background: var(--card); border: 1.5px solid var(--bd); border-radius: var(--r) }
.frist > div:first-child { flex: 1 1 14rem } .frist small { display: block; color: var(--mu) }
.frist-r { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end }
.eintrag { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--bd) }
.eintrag .e-d { flex: none; width: 6.2rem; font-weight: 700; color: var(--mu) }
.eintrag small { display: block; color: var(--mu) }
.stat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .6rem }
.stat div { background: var(--card); border: 1.5px solid var(--bd); border-radius: var(--r); padding: .8rem; text-align: center; font-size: .88rem; color: var(--mu) }
.stat b { display: block; font-size: 1.8rem; color: var(--tx) }

/* ---------- Fahrzeuge */
.fz-k { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap }
.fz-k h2 { flex: 1; margin: 0 } .fz-k h2 .ic { color: var(--ac) }
.platzgruppe { margin: .7rem 0; padding: .3rem .8rem; border-left: 4px solid var(--ac); background: var(--card2); border-radius: 0 12px 12px 0 }
.platzgruppe.ersatz { border-left-color: var(--mu) }
.platzgruppe h3 { margin: .4rem 0 .1rem; color: var(--tx) }
.platz { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid var(--bd) }
.platz:last-child { border: 0 }
.platz-l { width: 5.2rem; font-weight: 700; color: var(--mu); flex: none }
.platz select { flex: 1 1 12rem; width: auto; min-height: 3rem }
.platz-n { flex: 1 1 10rem }
.platz-wahl { flex: 1 1 12rem; display: flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .4rem .8rem; border: 1.5px solid var(--bd); border-radius: 12px;
  background: var(--card); cursor: pointer; text-align: left; font-weight: 600 }
.platz-wahl:hover { border-color: var(--ac) }
.platz-wahl > .ic { color: var(--mu); width: 1.2em; height: 1.2em }
.bar { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap }
.bar input { width: 5rem; min-height: 3rem; padding: .3rem .5rem; border: 1.5px solid var(--bd); border-radius: 10px; background: var(--card); text-align: center }
.bar.er input { border-color: var(--er); color: var(--er); font-weight: 700 } .bar span { color: var(--mu); font-size: .82rem }

/* ---------- Verwaltung */
.mitglied.aus { opacity: .7; border-style: dashed }
.mitglied small { display: block; color: var(--mu) }
.mitglied select { min-height: 3rem; border: 1.5px solid var(--bd); border-radius: 10px; background: var(--card); padding: .3rem .6rem }
.vt { padding: .3rem 0 } .vt input { flex: 1 1 10rem; min-height: 2.9rem; padding: .3rem .6rem; border: 1.5px solid var(--bd); border-radius: 10px; background: var(--card) }
.vt .mon { display: inline-flex; align-items: center; gap: .3rem; color: var(--mu) } .vt .mon input { width: 4.5rem; flex: none }
.gross-t { font-size: 1.25rem }
.aa { font-weight: 800; width: 2.2rem; text-align: center }

/* ---------- Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center }
.login-k { width: 100%; max-width: 26rem; text-align: center }
.login-k form { text-align: left; margin-top: 1rem }
.logo { width: 5rem; height: 5rem; margin: 0 auto .8rem; border-radius: 22px; background: var(--ac); color: #fff; display: grid; place-items: center; box-shadow: var(--sh) }
.logo .ic { width: 3rem; height: 3rem } .logo.grau { background: var(--mu) }
.code { font: 700 1.6rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; color: var(--ac) }
.wzmsg { color: var(--er); font-weight: 600; min-height: 1.2em; margin: .5rem 0 }

/* ---------- Assistent (Overlay) */
.ov { position: fixed; inset: 0; z-index: 20; display: none; background: rgba(10, 10, 10, .45); backdrop-filter: blur(3px) }
.ov.an { display: flex; align-items: flex-end; justify-content: center; animation: einblenden .18s ease-out }
.sheet { width: 100%; max-width: 640px; max-height: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0); animation: hoch .22s cubic-bezier(.2,.8,.3,1) }
@media (min-width: 700px) {
  .ov.an { align-items: center; padding: 2rem }
  .sheet { height: auto; max-height: min(52rem, 100%); border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden }
}
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: max(.8rem, env(safe-area-inset-top, 0)) 1rem .6rem }
.schritt { font-weight: 700 }
.fortschritt { height: 6px; background: var(--bd); margin: 0 1rem; border-radius: 99px; overflow: hidden }
.fortschritt i { display: block; height: 100%; background: var(--ac); border-radius: 99px; transition: width .25s }
.sheet-b { flex: 1; overflow-y: auto; padding: .4rem 1rem 1rem; animation: rein .2s ease-out }
.sheet-f { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--bd); background: var(--card) }
.sheet-f .btn { flex: 1 }
.frage { font-size: 1.35rem; margin: 1rem 0 .9rem; display: block; line-height: 1.3 }
.wahl { display: grid; gap: .6rem; margin: .4rem 0 }
.wahl.zwei { grid-template-columns: 1fr 1fr } .wahl.drei { grid-template-columns: repeat(3, 1fr) }
.wahl-k { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 4.2rem; padding: .8rem 1rem; border: 2px solid var(--bd); border-radius: var(--r);
  background: var(--card); cursor: pointer; text-align: left; transition: transform .08s, border-color .15s, background .15s }
.wahl-k:hover { border-color: var(--ac) }
.wahl-k > .ic { width: 1.9rem; height: 1.9rem; color: var(--ac) }
.wahl-k > span:not(.pill):not(.aa) { flex: 1; min-width: 0 }
.wahl-k b { display: block; font-size: 1.08rem } .wahl-k small { display: block; color: var(--mu) }
.wahl-k.an { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 9%, var(--card)) }
.wahl-k.ok > .ic { color: var(--ok) } .wahl-k.ok.an { border-color: var(--ok); background: var(--okbg) }
.wahl-k.er > .ic { color: var(--er) } .wahl-k.er.an { border-color: var(--er); background: var(--erbg) }
.wahl-k.haken.an > .ic { color: var(--ok) }
.wahl.drei .wahl-k { flex-direction: column; justify-content: center; text-align: center; gap: .3rem }
.mess { min-height: 2rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem }
.mess span { display: flex; align-items: center; gap: .4rem }
.zus { background: var(--card); border: 1.5px solid var(--bd); border-radius: var(--r); padding: .2rem 1rem }
.zus div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--bd) }
.zus div:last-child { border: 0 } .zus span { color: var(--mu) } .zus b { text-align: right }
.fertig { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 2rem 1.2rem }
.fertig .btn { min-width: 12rem; margin-top: 1rem }
.gross-ic { width: 6rem; height: 6rem; border-radius: 50%; display: grid; place-items: center; animation: plopp .35s cubic-bezier(.2,1.6,.4,1) }
.gross-ic .ic { width: 3.4rem; height: 3.4rem; stroke-width: 2.5 }
.gross-ic.ok { background: var(--okbg); color: var(--ok) } .gross-ic.er { background: var(--erbg); color: var(--er) }
@keyframes einblenden { from { opacity: 0 } }
@keyframes hoch { from { transform: translateY(40px); opacity: .4 } }
@keyframes rein { from { transform: translateX(14px); opacity: 0 } }
@keyframes plopp { from { transform: scale(.4); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* ---------- Meldung unten */
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0)); z-index: 30; transform: translate(-50%, 150%); max-width: min(34rem, calc(100% - 2rem));
  padding: .9rem 1.2rem; border-radius: 14px; background: var(--tx); color: var(--bg); font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.3); transition: transform .25s }
.toast.show { transform: translate(-50%, 0) } .toast.er { background: var(--er); color: #fff }

/* ---------- Druck */
#pr { display: none }
@media print {
  body { background: #fff; padding: 0 } #app, #ov, #toast, .reiter { display: none !important }
  #pr { display: block; color: #000; font: 11pt/1.4 system-ui, sans-serif }
  #pr table { width: 100%; border-collapse: collapse; margin: 6px 0 } #pr th, #pr td { border: 1px solid #888; padding: 4px 6px; text-align: left; font-size: 10pt; vertical-align: top }
  #pr h1 { font-size: 16pt } #pr h2 { font-size: 13pt } #pr h3 { font-size: 11.5pt; color: #000 }
  .sig { margin-top: 48px; display: flex; gap: 40px } .sig div { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 10pt }
  .pr-fuss { margin-top: 24px; font-size: 9pt; color: #444; border-top: 1px solid #aaa; padding-top: 4px }
}
