:root {
  --bg: #f1f6fc; --card: #fff; --ink: #14233a; --muted: #5a6b82; --line: #d8e2ef;
  --brand: #d4101f; --brand-ink: #fff; --accent: #0b5cb5; --accent-dark: #08488f; --accent-soft: #e6f0fb;
  --s-abgelaufen: #8e1111; --s-abgelaufen-bg: #8e1111; --s-abgelaufen-ink: #fff;
  --s-rot: #d93025; --s-rot-bg: #fde0de; --s-rot-ink: #8a1c13;
  --s-gelb: #e3a600; --s-gelb-bg: #fff3c4; --s-gelb-ink: #6b4e00;
  --s-bestellen: #e07b00; --s-bestellen-bg: #ffe8cf; --s-bestellen-ink: #7a3e00;
  --s-ok: #1e8e3e; --s-ok-bg: #e3f4e8; --s-ok-ink: #145c29;
  --s-unbekannt: #7a7f87; --s-unbekannt-bg: #eceef1; --s-unbekannt-ink: #444;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom); font-size: 15px; line-height: 1.4; }
a { color: var(--accent); }
h1 { font-size: 1.45rem; margin: .2rem 0 .6rem; }
h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.loading { padding: 2rem; color: var(--muted); }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; background: #fff; color: var(--accent); padding: .35rem 1rem; padding-top: calc(.35rem + env(safe-area-inset-top)); border-bottom: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(11,92,181,.12); }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--accent); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { height: 40px; width: auto; }
.mainnav { display: flex; gap: .25rem; flex: 1; }
.mainnav a { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-dark); text-decoration: none; padding: .35rem .6rem; border-radius: 8px; font-weight: 600; font-size: .93rem; }
.mainnav a img { height: 26px; width: auto; max-width: 34px; object-fit: contain; }
.mainnav a.active { background: var(--accent); color: #fff; }
.mainnav a:hover:not(.active) { background: var(--accent-soft); }
.whoami { margin-left: auto; font-size: .85rem; color: var(--muted); }
.settings-link { color: var(--accent); text-decoration: none; font-size: 1.25rem; padding: .2rem .45rem; border-radius: 8px; }
.settings-link:hover, .settings-link.active { background: var(--accent-soft); }
.bottomnav { display: none; }
body.locked > header, body.locked > main, body.locked > nav { display: none; }
#login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(160deg, #e6f0fb, #fff 55%, #fde8ea); padding: 1rem; overflow: auto; }
.login-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(11,92,181,.2); padding: 1.5rem; width: min(380px, 94vw); display: flex; flex-direction: column; gap: .8rem; }
.login-card label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
.login-card h1 { text-align: center; margin: 0; color: var(--accent-dark); }
.login-logo { width: 150px; align-self: center; }
.err { color: var(--brand); font-weight: 600; font-size: .9rem; min-height: 1.2em; }

.pagehead { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 .8rem; }
.pagehead img { height: 64px; width: auto; max-width: 96px; object-fit: contain; }
.pagehead h1 { margin: 0; color: var(--accent-dark); }
.tile { display: flex !important; align-items: center; gap: 1rem; }
.tile-img { width: 110px; height: 90px; object-fit: contain; flex: 0 0 auto; }
.tile-img.sm { width: 70px; height: 56px; }
.aedhead { display: flex; align-items: center; gap: .8rem; }
.hint-box { background: #fff8e1; border: 1px solid #f0d77a; border-left: 5px solid #e3a600; border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: 1rem; }
.hint-box summary { cursor: pointer; font-weight: 700; color: #6b4e00; }
.hint-box .hint { margin-top: .5rem; }
.kvgrid div b { display: block; }
.lage { font-size: .84rem; color: var(--accent-dark); }
.chg { display: inline-block; background: #fff3c4; color: #6b4e00; border-radius: 6px; padding: .1rem .5rem; font-size: .83rem; }
.ci.ro .tick { cursor: default; font-weight: 700; }
.ci.ro .tick.on { background: var(--s-ok); border-color: var(--s-ok); color: #fff; }
.ci.ro.open { background: #fff7f7; border-color: #f0c4c4; }
.ci.ro .note { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.ci.ro .chgline { margin-top: .35rem; }
.qty { width: 4.5rem; text-align: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.grid2 .card { margin: 0; }
.adm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: .4rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.adm-row.zrow-adm { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.adm-row .acts { display: flex; gap: .2rem; }
.adm-row .acts button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.adm-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.adm-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.adm-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: .8rem; background: #fafcff; }
.checklist { display: grid; gap: .3rem; max-height: 50vh; overflow: auto; margin-top: .6rem; }
.chk { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.chk input { width: 1.2rem; height: 1.2rem; }
.chk.strong { background: var(--accent-soft); font-weight: 600; }
.zrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.zrow .zname { flex: 1 1 140px; }
.zrow .zexp { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
dialog form { max-height: 92vh; overflow: auto; }

main { max-width: 1200px; margin: 0 auto; padding: 1rem; }

/* Reiter */
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .2rem 0 .5rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tabs a { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); white-space: nowrap; font-size: .92rem; }
.tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs a.special { font-weight: 600; }
.tabs a.add { border-style: dashed; color: var(--muted); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--s-ok); }
.dot.s-abgelaufen, .dot.s-fehlt { background: var(--s-abgelaufen); }
.dot.s-rot { background: var(--s-rot); } .dot.s-gelb { background: var(--s-gelb); }
.dot.s-bestellen { background: var(--s-bestellen); } .dot.s-unbekannt { background: var(--s-unbekannt); }

/* Karten & Buttons */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cards .card { margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { outline: 2px solid var(--accent); }
.btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: .55rem .9rem; border-radius: 8px; font: inherit; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: #b9c0ca; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.danger { color: #a30d0d; border-color: #f0b8b8; }
.btn.big { font-size: 1.05rem; padding: .75rem 1.2rem; }
.btn.small { padding: .3rem .6rem; min-height: 32px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: default; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem 1rem; margin: .5rem 0; }
.meta div span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.meta div b { font-weight: 600; }

/* Status */
.chip { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--s-ok-bg); color: var(--s-ok-ink); border: 1px solid transparent; }
.chip.s-abgelaufen, .chip.s-fehlt { background: var(--s-abgelaufen-bg); color: var(--s-abgelaufen-ink); }
.chip.s-rot { background: var(--s-rot-bg); color: var(--s-rot-ink); border-color: var(--s-rot); }
.chip.s-gelb { background: var(--s-gelb-bg); color: var(--s-gelb-ink); border-color: var(--s-gelb); }
.chip.s-bestellen { background: var(--s-bestellen-bg); color: var(--s-bestellen-ink); }
.chip.s-unbekannt { background: var(--s-unbekannt-bg); color: var(--s-unbekannt-ink); }
.chip.s-neutral { background: #eef1f6; color: var(--muted); font-weight: 500; }
.counts { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); margin: .3rem 0 .8rem; }
.check-state { font-size: .88rem; }
.check-state.due { color: var(--s-rot-ink); font-weight: 600; }
.check-state.soon { color: var(--s-gelb-ink); font-weight: 600; }
.bigstat { font-size: 2rem; font-weight: 700; line-height: 1; }
.alert { border-left: 5px solid var(--s-rot); }
.alert.warn { border-left-color: var(--s-gelb); }
.alert.ok { border-left-color: var(--s-ok); }

/* Tabellen */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
.tbl th, .tbl td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #eef1f6; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); position: sticky; top: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #f7f9fc; }
.tbl td.num { text-align: center; font-weight: 600; }
.thumb { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.thumb.empty { display: inline-block; background: #f1f3f6; cursor: default; }

/* Inhaltsliste */
.fach { margin-bottom: 1rem; }
.fach > h2 { display: flex; align-items: center; gap: .6rem; background: var(--accent); color: #fff; margin: 0; padding: .5rem .8rem; border-radius: var(--radius) var(--radius) 0 0; font-size: 1rem; }
.fach > h2 img { height: 34px; border-radius: 4px; background: #fff; cursor: zoom-in; }
.modul { background: var(--card); border: 1px solid var(--line); border-top: 0; }
.modul:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.modul > h3 { margin: 0; padding: .4rem .8rem; background: #f3f5f9; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 60px 1fr auto; gap: .3rem .8rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); align-items: center; }
.item:last-child { border-bottom: 0; }
.item .name { font-weight: 600; }
.item .soll { font-size: .85rem; color: var(--muted); }
.item .dates { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; max-width: 360px; }
.item .note { grid-column: 2 / 4; font-size: .84rem; color: var(--muted); }
.item.hidden { display: none; }

/* Checkliste */
.check-head { position: sticky; top: 52px; z-index: 5; }
.progress { height: 8px; background: #e6e9ee; border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.progress > div { height: 100%; background: var(--s-ok); width: 0; transition: width .2s; }
.ci { display: grid; grid-template-columns: 44px 72px 1fr; gap: .5rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; margin-bottom: .5rem; align-items: start; }
.ci.done { background: #f2fbf4; border-color: #b9e2c4; }
.ci .tick { width: 40px; height: 40px; border-radius: 8px; border: 2px solid #9aa3ae; background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.5rem; color: #fff; padding: 0; }
.ci.done .tick { background: var(--s-ok); border-color: var(--s-ok); }
.ci .thumb { width: 72px; height: 72px; }
.ci .name { font-weight: 600; }
.ci .units { display: grid; gap: .35rem; margin-top: .5rem; }
.unit { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.unit .idx { width: 1.6rem; color: var(--muted); font-size: .85rem; }
.unit input[type=date] { padding: .35rem .4rem; border: 2px solid var(--line); border-radius: 6px; font: inherit; min-width: 150px; }
.unit.s-abgelaufen input[type=date] { border-color: var(--s-abgelaufen); background: #f9e1e1; }
.unit.s-rot input[type=date] { border-color: var(--s-rot); background: var(--s-rot-bg); }
.unit.s-gelb input[type=date] { border-color: var(--s-gelb); background: var(--s-gelb-bg); }
.unit.s-bestellen input[type=date] { border-color: var(--s-bestellen); }
.unit.s-ok input[type=date] { border-color: #a6d8b4; }
.unit.is-fehlt input[type=date] { opacity: .35; }
.toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; user-select: none; font-size: .88rem; background: #fff; }
.toggle input { width: 1.05rem; height: 1.05rem; }
.toggle.on { background: var(--s-abgelaufen); color: #fff; border-color: var(--s-abgelaufen); }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.stepper button { width: 36px; height: 36px; font-size: 1.2rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.stepper input { width: 4rem; text-align: center; padding: .4rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
.ci textarea, .ci input.bem { width: 100%; margin-top: .45rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.ci .extra { grid-column: 2 / 4; }
.savebar { position: sticky; bottom: 0; background: rgba(244,245,247,.96); padding: .7rem 0; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); z-index: 6; }

/* Formulare */
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem 1rem; }
.form label, .field { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
.form label.wide { grid-column: 1 / -1; }
input[type=text], input[type=date], input[type=number], input[type=password], select, textarea { font: inherit; padding: .5rem .55rem; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; color: var(--ink); min-height: 40px; }
textarea { min-height: 70px; resize: vertical; }
.edit-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 112px; gap: .6rem; align-items: start; padding: .7rem; border-bottom: 1px solid var(--line); background: var(--card); }
.edit-row .er-main { display: grid; gap: .5rem; min-width: 0; }
.edit-row .er-main > .art { font-weight: 600; }
.er-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem .8rem; align-items: end; }
.er-grid label { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.er-grid label.toggle { flex-direction: row; align-items: center; align-self: end; font-size: .88rem; color: var(--ink); }
.er-grid .lagefeld { grid-column: 1 / -1; }
.edit-row input, .edit-row select { min-height: 38px; padding: .35rem .45rem; width: 100%; }
.edit-row input[type=checkbox] { width: 1.05rem; min-height: 0; }
.edit-row .acts { display: flex; gap: .2rem; }
.edit-row .acts button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.edit-head { font-size: .75rem; text-transform: uppercase; color: var(--muted); background: #eef1f6; }
.imgbtn { width: 52px; height: 52px; border: 1px dashed #aab; border-radius: 6px; background: #fafbfc center/contain no-repeat; cursor: pointer; font-size: 1.3rem; color: #99a; }

dialog { border: 0; border-radius: 12px; padding: 0; max-width: min(560px, 94vw); width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,15,25,.45); }
dialog .dlg-body { padding: 1.1rem 1.2rem; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1.2rem; background: #f4f5f7; }
dialog.zoom { max-width: 92vw; background: transparent; box-shadow: none; }
dialog.zoom img { max-width: 92vw; max-height: 86vh; display: block; margin: auto; background: #fff; border-radius: 8px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #222; color: #fff; padding: .6rem 1rem; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#print { display: none; }

@media (max-width: 760px) {
  .mainnav { display: none; }
  main { padding: .7rem .7rem 90px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: .72rem; padding: .4rem 0 .5rem; display: flex; flex-direction: column; align-items: center; }
  .bottomnav a img { height: 28px; width: auto; max-width: 38px; object-fit: contain; margin-bottom: 2px; }
  .bottomnav a.active { color: var(--accent); font-weight: 700; border-top: 3px solid var(--brand); margin-top: -1px; }
  .whoami { display: none; }
  .brand span { display: none; }
  .pagehead img { height: 48px; max-width: 70px; }
  .tile-img { width: 80px; height: 66px; }
  .er-grid { grid-template-columns: 1fr 1fr; }
  .item { grid-template-columns: 52px 1fr; }
  .item .dates { grid-column: 1 / 3; justify-content: flex-start; max-width: none; }
  .item .note { grid-column: 1 / 3; }
  .ci { grid-template-columns: 44px 1fr; }
  .ci .thumb { width: 60px; height: 60px; }
  .ci .imgcell { display: none; }
  .ci .extra { grid-column: 1 / 3; }
  .ci .main-with-img { display: flex; gap: .6rem; }
  .edit-row { grid-template-columns: 56px minmax(0, 1fr); }
  .edit-row .acts { grid-column: 1 / 3; }
  .adm-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .adm-row .acts { grid-column: 1 / 4; }
  .check-head { position: static; }
  .savebar { bottom: 58px; }
  .hide-mobile { display: none; }
  h1 { font-size: 1.25rem; }
}
@media (min-width: 761px) { .only-mobile { display: none; } .ci .mobile-img { display: none; } }

.lsearch { position: relative; }
.lsearch input[type=search] { width: 100%; font-size: 1.1rem; padding: .7rem .8rem; }
.sug { position: absolute; left: 1rem; right: 1rem; z-index: 15; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(11,92,181,.2); overflow: hidden; }
.sug button { display: block; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.sug button:hover { background: var(--accent-soft); }
.lres { margin-top: .8rem; }
.l-row { display: grid; grid-template-columns: minmax(0, 2fr) 90px minmax(0, 1.3fr) minmax(0, 1.3fr) 40px; gap: .4rem; padding: .5rem; border-bottom: 1px solid var(--line); align-items: center; }
.l-row input, .l-row select { width: 100%; min-height: 38px; }
.l-row button { height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
@media (max-width: 760px) { .l-row { grid-template-columns: 1fr 90px; } .l-row select, .l-row input[data-k=bemerkung] { grid-column: 1 / 3; } .bottomnav a { font-size: .66rem; } }
/* ---------- Standorte ---------- */
.ortgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.ortcard { margin: 0; padding: 0 0 .8rem; overflow: hidden; text-align: center; }
.ortcard img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ortcard h2 { margin: .6rem 0 .3rem; font-size: 1.35rem; color: var(--accent-dark); }
.ortcard div { margin-top: .2rem; padding: 0 .6rem; }
.orthead img { width: 100%; max-height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; cursor: zoom-in; }
.findrow { display: flex; gap: .5rem; flex-wrap: wrap; }
.findrow input[type=search], .findrow select { flex: 1 1 220px; min-width: 0; }
.maptools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .6rem; }
.maptools .sp { flex: 1; }
.mapscroll { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.map { position: relative; width: 100%; }
.map img { display: block; width: 100%; height: auto; }
.map.marking { cursor: crosshair; outline: 3px dashed var(--brand); outline-offset: -3px; }
.map.marking .marker { pointer-events: none; opacity: .6; }
.map.marking .marker.moving { opacity: 1; }
.marker, .legdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55); color: #fff; font: 800 12px/1 system-ui, sans-serif; display: grid; place-items: center; padding: 0; }
.marker { position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 2; }
.legdot { display: inline-grid; width: 20px; height: 20px; font-size: 11px; }
.m-aed { background: #11803a; } .m-rucksack { background: #d4101f; } .m-fahrzeug { background: #0b5cb5; }
.marker.found, .marker.moving { width: 32px; height: 32px; z-index: 4; outline: 3px solid #ffd400; }
.marker.found::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 4px solid #ffb000; animation: puls 1.3s ease-out infinite; pointer-events: none; }
@keyframes puls { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marker.found::after { animation: none; transform: scale(1.3); } }
.markbanner { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.markbanner.found { background: #fff8dc; border-color: #e3a600; }
.markbanner.warn { background: #fff3f3; border-color: #e08a8a; }
.mapsel { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--ink); font-size: .95rem; margin-top: .5rem; }
.acts-cell { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
@media (max-width: 1250px) { .mainnav a img { display: none; } .mainnav { flex-wrap: wrap; } .whoami { display: none; } }
@media (max-width: 760px) { .mainnav { display: none; } .bottomnav a { font-size: .58rem; } .bottomnav a img { height: 24px; max-width: 30px; } .ortcard img { height: 160px; } .acts-cell { justify-content: flex-start; } }
/* ---------- Druck / PDF ---------- */
@media print {
  @page { size: A4; margin: 11mm 10mm 14mm; }
  body { background: #fff; font-size: 9.5pt; color: #14233a; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; }
  #print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print .ph { display: flex; align-items: center; gap: 5mm; border-bottom: 1.2mm solid #0b5cb5; padding-bottom: 3mm; margin-bottom: 3mm; position: relative; }
  #print .ph::after { content: ''; position: absolute; left: 0; bottom: -2.4mm; width: 28mm; height: 1.2mm; background: #d4101f; }
  #print .plogo { height: 20mm; width: auto; }
  #print .pt h1 { font-size: 17pt; margin: 0; color: #08488f; line-height: 1.15; }
  #print .psub { font-size: 9.5pt; color: #5a6b82; margin-top: 1mm; }
  #print .pmeta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4mm; margin: 5mm 0 3mm; }
  #print .pmeta div, #print .psign div { border: .3mm solid #c5d3e6; border-radius: 1.5mm; padding: 1.5mm 3mm; min-height: 10mm; }
  #print .pmeta span, #print .psign span { display: block; font-size: 7pt; text-transform: uppercase; letter-spacing: .04em; color: #5a6b82; }
  #print .pmeta b { font-size: 10.5pt; }
  #print .ptable { width: 100%; border-collapse: collapse; }
  #print .ptable th { background: #0b5cb5; color: #fff; font-size: 8pt; text-align: left; padding: 1.6mm 2mm; text-transform: uppercase; letter-spacing: .03em; }
  #print .ptable td { padding: 1.3mm 2mm; border-bottom: .2mm solid #d8e2ef; vertical-align: middle; font-size: 9pt; }
  #print thead { display: table-header-group; }
  #print tr { break-inside: avoid; }
  #print tr.pfach { break-after: avoid; }
  #print tr.pfach td { background: #08488f; color: #fff; font-weight: 700; font-size: 10pt; padding: 1.6mm 2mm; }
  #print tr.pfach td img { height: 7mm; width: auto; vertical-align: middle; margin-right: 2.5mm; background: #fff; border-radius: 1mm; }
  #print tr.pmod td { background: #e6f0fb; color: #08488f; font-weight: 700; font-size: 8.5pt; padding: 1mm 2mm; border-bottom: .2mm solid #b8cfea; }
  #print td.pc, #print th.pc { text-align: center; width: 12mm; }
  #print td.pimg { width: 17mm; text-align: center; }
  #print td.pimg img { max-width: 15mm; max-height: 12mm; }
  #print .box { display: inline-block; width: 5.2mm; height: 5.2mm; border: .5mm solid #0b5cb5; border-radius: 1mm; line-height: 4.4mm; font-weight: 800; color: #1e8e3e; font-size: 11pt; }
  #print .plage { font-size: 8pt; color: #08488f; }
  #print td.pd { width: 34mm; }
  #print td.pbem { font-size: 8.5pt; color: #444; }
  #print .pill { display: block; text-align: center; border-radius: 1mm; padding: .5mm 1.5mm; margin: .6mm 0; font-weight: 600; font-size: 8.5pt; white-space: nowrap; }
  #print .line { height: 5mm; border-bottom: .3mm solid #5a6b82; margin: 1mm 0; }
  #print .line.short { width: 50%; }
  #print .p-abgelaufen, #print .p-fehlt { background: #c00000; color: #fff; }
  #print .p-rot { background: #ff8a8a; }
  #print .p-gelb { background: #ffe066; }
  #print .p-bestellen { background: #ffd9a8; }
  #print .p-ok { background: #e3f4e8; }
  #print .p-ohne, #print .p-leer, #print .p-unbekannt { background: #eef1f6; color: #5a6b82; font-weight: 500; }
  #print .psign { margin-top: 6mm; display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; break-inside: avoid; }
  #print .psign .wide { grid-column: 1 / 3; min-height: 20mm; }
  #print .psign div:not(.wide) { min-height: 16mm; }
  #print .plegend { margin-top: 4mm; font-size: 8pt; display: flex; gap: 5mm; flex-wrap: wrap; }
  #print .plegend span { display: inline-flex; align-items: center; gap: 1.2mm; }
  #print .plegend i { display: inline-block; width: 5mm; height: 3.4mm; border-radius: .8mm; }
  #print .pfoot { margin-top: 5mm; font-size: 7.5pt; color: #8a97ab; text-align: center; border-top: .2mm solid #d8e2ef; padding-top: 1.5mm; }
}
/* Passwortfeld mit Auge (auge.js) */
.pw-feld{position:relative;display:block;min-width:0}
.pw-feld>input{width:100%;min-height:44px;box-sizing:border-box;padding-right:48px!important}
.pw-feld>input::-ms-reveal{display:none}
.pw-auge{position:absolute;right:0;top:50%;transform:translateY(-50%);width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;touch-action:manipulation}
.pw-auge:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
