/* DRK Helferbereich (Web-Version des Dashboards) – zuerst fürs Handy, funktioniert auch am PC */
:root {
  --red: #e30613; --red-dark: #b8000e; --bg: #f3f4f7; --card: #ffffff; --text: #16181d; --muted: #5d6573; --line: #e3e6ec;
  --ok: #15803d; --ok-bg: #e8f6ed; --soon: #b45309; --soon-bg: #fdf3e2; --due: #c81e1e; --due-bg: #fdecec; --chip: #eef0f4;
  --info: #1d4ed8; --info-bg: #e8effd; --tint: rgba(227, 6, 19, .07);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318; --card: #1b1e25; --text: #eef0f4; --muted: #9aa3b2; --line: #2b2f39; --ok: #4ade80; --ok-bg: #12291b; --soon: #fbbf24; --soon-bg: #2d2412; --due: #f87171; --due-bg: #301616; --chip: #262a33; --info: #93b4fd; --info-bg: #17213a; --tint: rgba(248, 113, 113, .08); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
/* nur für Bildschirmleser / Datei-Felder, die über ein <label> geöffnet werden */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic.mini { width: 15px; height: 15px; vertical-align: -2px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--red); color: #fff; padding-top: calc(12px + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.brand div { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cross { width: 34px; height: 34px; flex: none; background: #fff; border-radius: 9px; padding: 5px; fill: var(--red); }

main { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: 18px; padding: 18px; border: 1px solid var(--line); min-width: 0; }
.card h2 { margin: 0 0 12px; font-size: 19px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card > :last-child { margin-bottom: 0; }
.hello { font-size: 22px; font-weight: 700; margin: 2px 0 0; }
.hello-card p { margin: 0; }
.hello-card .row { margin-top: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 10px 6px 2px; min-height: 40px; margin: -6px 0 -6px; }
.back:hover { color: var(--text); }
.prose { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 12px; }
.prose a { word-break: break-all; }
.info { color: var(--info); background: var(--info-bg); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; font-size: 14.5px; }
.quote { border-left: 3px solid var(--due); padding: 6px 12px; margin: 8px 0; background: var(--due-bg); border-radius: 0 10px 10px 0; white-space: pre-line; }
.more-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; padding: 6px 0; }

/* Anmelden */
.login { max-width: 420px; margin: 6vh auto 0; width: 100%; }
.login h1 { font-size: 24px; margin: 0 0 4px; }
label.f, div.f { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair select { min-width: 0; }
:where(input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], textarea, select) { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 17px; color: var(--text); }
:where(textarea) { resize: vertical; min-height: 84px; font-size: 16px; }
:where(input, textarea, select):focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
textarea#cmText, textarea#sNote { margin-top: 10px; }
.pin { letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; color: var(--text); text-decoration: none; text-align: center; touch-action: manipulation; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:active { background: var(--red-dark); }
.btn.block { width: 100%; margin-top: 16px; font-size: 17px; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn.danger { color: var(--due); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.err { color: var(--due); background: var(--due-bg); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; font-size: 14.5px; }
.okmsg { color: var(--ok); background: var(--ok-bg); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; font-size: 14.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 10px; }
.row.wrap .btn { flex: 1 1 auto; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Übersicht */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; cursor: pointer; color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: center; min-height: 86px; }
.stat b { display: block; font-size: 28px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.warn b { color: var(--soon); }
.stat.bad b { color: var(--due); }
.stat.zero b { color: var(--muted); font-weight: 600; }
.nudge { border-color: var(--red); }

/* Listen */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.main { flex: 1; min-width: 0; }
.main b { display: block; overflow-wrap: anywhere; }
.sub { display: block; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); padding: 6px 0; margin: 0; }
.lt { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--chip); }
.lt.ok { background: var(--ok); } .lt.soon { background: var(--soon); } .lt.due { background: var(--due); }
.lt.area { background: var(--c, var(--muted)); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.soon { background: var(--soon-bg); color: var(--soon); } .tag.due { background: var(--due-bg); color: var(--due); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.red { background: var(--red); color: #fff; }
.tag.st { background: var(--c, var(--chip)); color: #fff; }
.tag.priv { background: var(--text); color: var(--card); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; align-items: flex-start; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--chip); color: var(--muted); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.badge.red { background: var(--red); color: #fff; }
/* Einträge zum Antippen */
.items { display: flex; flex-direction: column; margin: 0 -8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--bg); }
.item .tag { flex: none; }
.item-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--tint); color: var(--red); display: grid; place-items: center; }
.item-ic .ic { width: 21px; height: 21px; }
.chev { color: var(--muted); width: 18px; height: 18px; }
.menu-card { padding: 6px 18px; }
details.more summary { cursor: pointer; color: var(--muted); padding: 10px 0 4px; font-weight: 600; }
details.card.more summary { padding: 0; }
details.card.more[open] summary { margin-bottom: 10px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log li:last-child { border-bottom: 0; }
.log li span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.log li.bad { color: var(--due); }

/* Aufgaben */
.check { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 2px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; padding: 0; }
.check svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 3; opacity: 0; }
.check.on { background: var(--ok); border-color: var(--ok); }
.check.on svg { opacity: 1; }
li.done .main b { text-decoration: line-through; color: var(--muted); }

/* Tickets */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; min-height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.cats button.on { background: var(--red); border-color: var(--red); color: #fff; }
.hint { background: var(--info-bg); color: var(--info); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; font-size: 14.5px; white-space: pre-line; }
.hint.priv { background: var(--chip); color: var(--text); }
.urgent { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 40px; cursor: pointer; }
.urgent input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.tk { display: block; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.tk:hover { border-color: var(--muted); }
.tk-head { display: flex; justify-content: space-between; gap: 10px; }
.tk-head .main span { display: block; }
.tk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.tk-top h2, .tk-top h3 { margin-bottom: 6px; overflow-wrap: anywhere; }
.xfields { margin: 6px 0 4px; }
.xfields:not(.hidden) .ff-form { margin-top: 18px; }
.cm { background: var(--bg); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm b { font-size: 13px; }
.cm.internal { border: 1px dashed var(--muted); }
.statusbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.statusbar button { padding: 9px 14px; min-height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 14.5px; }
.statusbar button[data-color] { border-left: 6px solid var(--c); }
.statusbar button.on { background: var(--text); color: var(--card); border-color: var(--text); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--bg); cursor: zoom-in; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; }
.addph { margin: 6px 0 10px; }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100% - 80px); object-fit: contain; border-radius: 8px; }

/* Termine */
.day { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.day:first-child { margin-top: 0; }
.ev { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev time { flex: none; width: 58px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev.high b { color: var(--red); }

/* Fortschritt (Formulare, Führerschein) */
.stepper { list-style: none; display: flex; margin: 16px 0 6px; padding: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 12.5px; color: var(--muted); min-width: 0; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.cur::before { background: var(--ok); }
.stepper i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--chip); color: var(--muted); border: 2px solid var(--card); }
.stepper i svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 3; }
.stepper li.done i { background: var(--ok); color: #fff; }
.stepper li.cur i { background: var(--soon); color: #fff; }
.stepper li.cur.rueckfrage i { background: var(--due); }
.stepper li.end.abgelehnt i { background: var(--due); }
.stepper li.end.zurueckgezogen i { background: var(--muted); }
.stepper li.done span, .stepper li.cur span { color: var(--text); font-weight: 600; }
.stepper span { overflow-wrap: anywhere; padding: 0 2px; }
.ask { margin-top: 14px; border: 2px solid var(--due); border-radius: 14px; padding: 12px 14px; background: var(--due-bg); }
.ask p { margin: 6px 0 0; white-space: pre-line; }
.ask .btn.block { margin-top: 12px; }
.fform { margin-top: 14px; }

/* Online-Fortbildungen */
.block .btn { margin-top: 4px; }
.media { display: block; width: 100%; max-height: 70vh; border-radius: 12px; background: #000; margin-top: 4px; object-fit: contain; }
img.media { background: var(--bg); }
.quiz { margin-top: 14px; }
.q-wrong, .q-open { border-radius: 12px; outline: 2px solid var(--due); outline-offset: 8px; }
.q-open { outline-color: var(--soon); }
.q-note { color: var(--due); font-weight: 650; font-size: 14.5px; }
.q-open .q-note { color: var(--soon); }
.result { text-align: center; padding: 6px 0; }
.result.bad { text-align: left; border-radius: 14px; background: var(--due-bg); padding: 12px 14px; margin-top: 14px; }
.result.bad h3 { color: var(--due); }
.result .big { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; }
.result .big .ic { width: 34px; height: 34px; stroke-width: 3; }
.result h2 { margin-bottom: 8px; }
.tips { margin: 10px 0; padding-left: 20px; }
.tips li { margin: 4px 0; }
.reject { margin: 10px 0; }
label.sw { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 16px; cursor: pointer; min-height: 40px; }
label.sw input { width: 24px; height: 24px; accent-color: var(--red); flex: none; }

/* Kamera (Führerschein) */
.cam { position: relative; margin: 12px 0 8px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam img { object-fit: contain; background: #000; }
.cam .guide { position: absolute; left: 7%; right: 7%; top: 50%; aspect-ratio: 85.6 / 54; transform: translateY(-50%); border: 3px dashed rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); pointer-events: none; }
.cam-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #000; }
.shots figcaption { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips button { min-width: 56px; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 700; }
.chips button.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Formulare, Umfragen */
.anon { display: flex; gap: 10px; align-items: flex-start; background: var(--chip); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0; font-size: 14.5px; }
.anon .ic { margin-top: 3px; }

/* Ablage */
.upbox { border: 1px dashed var(--line); border-radius: 14px; padding: 4px 14px 14px; margin-top: 12px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files .main a { color: var(--text); text-decoration: none; }
.files .main a b { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.acts { display: flex; gap: 4px; flex: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--muted); }

/* Navigation unten */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 10px; min-height: 58px; color: var(--muted); font-size: 11.5px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--red); font-weight: 700; }
.tabs .dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }
@media (min-width: 900px) {
  /* am PC sitzt die Leiste oben unter der Kopfzeile (im HTML steht sie nach dem Inhalt) */
  body { padding-bottom: 24px; display: flex; flex-direction: column; min-height: 100vh; }
  .top { order: 0; }
  .tabs { order: 1; position: sticky; top: 58px; width: 100%; max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
  main { order: 2; width: 100%; }
  .tabs a { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; min-height: 50px; }
  .tabs .dot { top: 10px; left: auto; right: 14%; }
}
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--text); color: var(--card); padding: 11px 18px; border-radius: 12px; z-index: 30; width: max-content; max-width: 90vw; font-size: 15px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.toast.bad { background: var(--due); color: #fff; }

/* Formularfelder im Helferbereich */
.ff-form { gap: 20px; }
.card .ff-display .ff-d-row:last-child { border-bottom: 0; }

/* App aufs Handy, Mitteilungen, Alarm (ab 3.1) */
.tip { display: flex; align-items: center; gap: 2px; background: var(--info-bg); color: var(--info); border-radius: 14px; padding: 2px 2px 2px 12px; }
.tip a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; color: inherit; text-decoration: none; font-size: 14.5px; }
.tip a span { flex: 1; min-width: 0; }
.tip .chev { color: inherit; opacity: .7; }
.tip-x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; font-size: 15px; }
.tip-x:hover { background: rgba(0,0,0,.05); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--red); color: #fff; font-style: normal; font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.steps li > div { flex: 1; min-width: 0; padding-top: 3px; overflow-wrap: anywhere; }
.sym { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px 2px; border-radius: 8px; background: var(--chip); color: var(--info); vertical-align: middle; }
.sym .ic { width: 19px; height: 19px; vertical-align: 0; }
.pstate { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.pstate .lt { margin-top: 0; }
.err + .steps { margin-top: 12px; }
.offline { margin-top: 6vh; }
.off-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--chip); color: var(--muted); display: grid; place-items: center; margin: 4px auto 12px; }
.off-ic .ic { width: 32px; height: 32px; }
/* Alarm: deutlich rot, ganz oben auf der Übersicht */
.alarms { display: flex; flex-direction: column; gap: 14px; }
.card.alarm { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 26px rgba(227, 6, 19, .3); }
.alarm-head { display: flex; gap: 12px; align-items: flex-start; }
.alarm-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; }
.alarm-ic .ic { width: 26px; height: 26px; stroke-width: 2.2; vertical-align: 0; }
.alarm-kick { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .92; }
.card.alarm h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.alarm-ago { display: block; font-size: 14px; font-weight: 600; opacity: .92; margin-top: 2px; }
.alarm-text { margin: 12px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.alarm-addr { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.alarm-addr .ic { margin-top: 2px; vertical-align: 0; }
.alarm-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.alarm-lbl { font-size: 13px; font-weight: 600; opacity: .9; margin-right: 2px; }
.card.alarm .tag { background: rgba(255, 255, 255, .22); color: #fff; white-space: normal; }
.card.alarm .btn { background: #fff; border-color: #fff; color: var(--red); }
.card.alarm .btn:active { background: #ffe9ea; }
@media (prefers-reduced-motion: no-preference) {
  .alarm-ic { animation: alarm-pulse 1.6s ease-out infinite; }
  @keyframes alarm-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
}

/* Anmeldung mit gemerkter Ausweisnummer (ab 3.2) */
.saved-badge { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; font-size: 16px; }
label.sw.small { font-size: 14px; margin-top: 12px; min-height: 32px; }

ul.plain { margin: 8px 0 14px; padding-left: 20px; }
ul.plain li { margin: 6px 0; line-height: 1.45; }

/* Einsätze und Dienstabende (ab 3.3, Bausteine aus svo.css) */
.sv-ptop { margin: 14px 0 6px; justify-content: space-between; }
.sv-pform { margin-top: 10px; }
.sv-pdl { margin-top: 16px; }
.sv-pper { margin: 12px 0 14px; }
.sv-phint { margin: 12px 0 0; }
.card .sv-stats { margin-top: 6px; }
.card.sv-sug { flex-direction: column; align-items: stretch; }
.sv-prog { top: calc(57px + env(safe-area-inset-top)); }
.sv-detail { margin: 12px 0 16px; }

/* 3.4: Führerscheinklassen mit Ablaufdatum */
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cx-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.cx-list .muted { flex-basis: 100%; }
.pz-year li.now { background: var(--soon-bg); border-radius: 10px; }

/* ab 3.4: Formulare mit Schritten und Frist */
.stepper.many li { font-size: 11.5px; }
.stepper.many span { hyphens: auto; -webkit-hyphens: auto; }
.stepper.many i { width: 28px; height: 28px; }
.stepper.many li::before { top: 13px; }
.stepper li.skip { opacity: .45; }
.now-at { margin: 6px 0 0; color: var(--muted); }
.now-at b { color: var(--text); }
.late { color: var(--due); font-weight: 650; }
/* ab 3.4: Verwaltung unter „Mehr“ */
.menu-h { margin: 12px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.item .lt { margin-top: 0; }
.items > .empty { padding: 12px 8px; }
.big-pin { font-size: 34px; font-weight: 800; text-align: center; margin: 6px 0 10px; letter-spacing: .3em; }
.thumb.big { width: calc(50% - 4px); height: auto; aspect-ratio: 4 / 3; }
.list li > select { width: auto; max-width: 52%; flex: none; padding: 9px 10px; font-size: 15px; }
h3.vgrp { margin: 14px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
h3.vgrp:first-of-type { margin-top: 4px; }
.pz-year details.more summary { padding: 4px 0 0; font-size: 14px; }
.pz-year details .pair { margin-top: 8px; }
.pz-year details .row { margin-top: 8px; }
.stepper + .now-at { margin-top: 18px; }

/* Termine mit An- und Abmelden, Seite eines Bereichs (ab 3.5) */
.ev.tm { flex-direction: column; gap: 8px; }
.tm-link { display: flex; gap: 12px; align-items: flex-start; color: var(--text); text-decoration: none; min-width: 0; }
.tm-link time { flex: none; width: 58px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-link .main { flex: 1; min-width: 0; }
.tm-link .chev { flex: none; margin-top: 2px; }
.ev.tm.mine time { color: var(--ok); }
.ev.high .tm-link b { color: var(--red); }
.tm-sign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tm-btns { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 70px; }
.tm-btns .btn { flex: 1 1 auto; }
.tm-btns .btn .ic { width: 18px; height: 18px; }
.tm-new { margin-bottom: 14px; }
.tm-ideas, .tm-areas { margin-top: 10px; }
.pair.two { grid-template-columns: 1fr 1fr; }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.names span { padding: 5px 11px; border-radius: 99px; background: var(--chip); font-size: 14.5px; }
.sub-h { margin-top: 16px !important; }
.list.facts li { align-items: center; padding: 8px 0; }
.list.facts .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.list.pick label.sw { margin: 0; align-items: flex-start; }
.list.pick label.sw input { margin-top: 2px; }
.areas-top { padding-bottom: 10px; }
.areas-top h3 { margin: 12px 0 2px; }
.area-head h2 { display: flex; align-items: center; gap: 10px; }
.area-head h2 .lt { margin-top: 0; width: 14px; height: 14px; }
.area-head .list { margin: 6px 0 12px; }
.crumbs { margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
