/* rettMOBILE – App-Layout (mobile-first). Farben kommen aus den Manager-
   Einstellungen (Einstellungen -> Allgemein -> Farben), siehe js/theme.js. */

:root {
  --rm-header: #0f3b40;
  --rm-header-text: #fff;
  --rm-footer: #ffffff;
  --rm-footer-active: #1d9a82;
  --rm-accent: #1d9a82;
  --rm-accent-text: #fff;
  --rm-element: #1d9a82;
  --rm-element-soft: color-mix(in srgb, var(--rm-element) 14%, transparent);
  --rm-bg: #f2f4f5;
  --rm-surface: #ffffff;
  --rm-surface-2: #f7f8f9;
  --rm-text: #1d2327;
  --rm-muted: #6b767c;
  --rm-border: #e1e5e8;
  --rm-danger: #d7263d;
  --rm-success: #198754;
  --rm-warning: #f08c00;
  --rm-radius: 14px;
  --rm-header-h: 56px;
  --rm-footer-h: 62px;
  --rm-tabbar-h: 52px;
  --rm-safe-top: env(safe-area-inset-top, 0px);
  --rm-safe-bottom: env(safe-area-inset-bottom, 0px);
  --rm-shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 1px 8px rgba(16, 24, 32, .04);
}

/* border-box (2026-10-17): Breite/Höhe inkl. Innenabstand und Rahmen -
   sonst liefen Felder mit width:100% rechts über den Kasten bzw. Rand. */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--rm-bg); color: var(--rm-text); }
/* Schriftgröße je Gerät (Einstellungen -> Darstellung, js/theme.js):
   data-font auf <html> skaliert rem; ohne Attribut wie bisher 16px. */
:root[data-font="small"] { font-size: 90%; }
:root[data-font="large"] { font-size: 112.5%; }
:root[data-font="xlarge"] { font-size: 125%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  overscroll-behavior-y: none;
}
button { font: inherit; }
a { color: var(--rm-accent); }
/* Grundgröße/-farbe für alle Icons aus icon() (js/ui.js): ohne eigene Regel
   im Container (z. B. Warnsymbol neben Text in Listen) wären sie sonst
   übergroß und schwarz. :where() = keine Spezifität, jede bestehende
   Regel wie ".rm-btn svg" hat weiterhin Vorrang. */
:where(svg[viewBox="0 0 24 24"]) { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex: 0 0 auto; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.rm-app { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }

.rm-header {
  flex: 0 0 auto;
  padding-top: var(--rm-safe-top);
  background: var(--rm-header);
  color: var(--rm-header-text);
  position: relative;
  /* Ueber dem Menue-Hintergrund (.rm-menuBackdrop, z-index 50): das Dropdown
     liegt im Header und erbt dessen Ebene - sonst faengt der Hintergrund
     alle Klicks auf die Menuepunkte ab. */
  z-index: 70;
}
.rm-header__bar { height: var(--rm-header-h); display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 .75rem; }
.rm-brand { display: flex; align-items: center; gap: .6rem; background: none; border: 0; color: inherit; padding: .25rem; margin: 0; min-width: 0; flex: 1 1 auto; text-align: left; }
.rm-brand__mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.rm-brand__mark img { width: 28px; height: 28px; object-fit: contain; }
/* Logo der Organisation (oft breiter als hoch): Kasten waechst mit, max. 110px */
.rm-brand__mark--org { width: auto; min-width: 34px; max-width: 110px; padding: 3px 6px; }
.rm-brand__mark--org img { width: auto; max-width: 98px; height: 28px; }
.rm-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
/* Kopfzeile wie rettONLINE: Organisation groß, darunter rettMOBILE (rett dünn, MOBILE fett) */
.rm-brand__org { font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-brand__org:empty { display: none; }
.rm-brand__name { font-size: .74rem; opacity: .8; letter-spacing: .4px; }
.rm-brand__name span { font-weight: 300; }
.rm-brand__name b { font-weight: 800; }
.rm-brand__org:empty + .rm-brand__name { font-size: 1.12rem; opacity: 1; }
.rm-iconBtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.rm-iconBtn:active { background: rgba(255,255,255,.15); }
.rm-iconBtn svg { width: 24px; height: 24px; fill: currentColor; }
.rm-lockPill { display: none; align-items: center; gap: .3rem; font-size: .72rem; background: rgba(255,255,255,.18); border-radius: 999px; padding: .2rem .55rem; border: 0; color: inherit; }
.rm-lockPill.show { display: inline-flex; }
.rm-lockPill svg { width: 14px; height: 14px; fill: currentColor; }

/* Dropdown-Menue (Drei-Punkte) */
.rm-menu { position: absolute; right: .5rem; top: calc(var(--rm-safe-top) + var(--rm-header-h) - 4px); min-width: 230px; max-width: calc(100vw - 1rem);
  background: var(--rm-surface); color: var(--rm-text); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.22); padding: .35rem 0; display: none; z-index: 60; }
.rm-menu.open { display: block; animation: rmPop .12s ease-out; }
.rm-menu__item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .75rem 1rem; border: 0; background: none; text-align: left; color: inherit; font-size: .98rem; }
.rm-menu__item:active { background: var(--rm-surface-2); }
.rm-menu__item svg { width: 20px; height: 20px; fill: var(--rm-muted); flex: 0 0 auto; }
.rm-menu__item.danger { color: var(--rm-danger); }
.rm-menu__item.danger svg { fill: var(--rm-danger); }
.rm-menu__sep { height: 1px; background: var(--rm-border); margin: .3rem 0; }
.rm-menuBackdrop { position: fixed; inset: 0; z-index: 50; display: none; }
.rm-menuBackdrop.open { display: block; }
@keyframes rmPop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* Offline-Banner (js/offline.js) unter dem Kopf */
.rm-offline { flex: 0 0 auto; display: none; align-items: center; gap: .55rem; padding: .5rem .9rem; font-size: .84rem; line-height: 1.3;
  background: #fff1db; color: #6b3f00; border-bottom: 1px solid #f5d29a; }
.rm-offline.show { display: flex; }
.rm-offline svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
:root[data-theme="dark"] .rm-offline { background: #3d2c10; color: #ffd591; border-bottom-color: #5c4318; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .rm-offline { background: #3d2c10; color: #ffd591; border-bottom-color: #5c4318; } }
.rm-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }
.rm-view { padding: 12px 16px 24px; max-width: 760px; margin: 0 auto; }
.rm-view--flush { padding: 0; max-width: none; }
.rm-view--full { min-height: 100%; display: flex; flex-direction: column; }

.rm-tabbar { flex: 0 0 auto; display: none; background: var(--rm-surface); border-top: 1px solid var(--rm-border); padding: 6px 10px; }
.rm-tabbar.show { display: block; }
.rm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--rm-surface-2); border-radius: 11px; padding: 3px; max-width: 760px; margin: 0 auto; }
.rm-seg__btn { border: 0; background: transparent; color: var(--rm-muted); border-radius: 9px; min-height: 36px; font-size: .84rem; font-weight: 600; padding: .3rem .25rem; line-height: 1.1; }
.rm-seg__btn.active { background: var(--rm-element); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.rm-seg__btn .rm-seg__count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--rm-danger); color: #fff; font-size: .7rem; margin-left: 3px; }

.rm-footer { flex: 0 0 auto; background: var(--rm-footer); border-top: 1px solid var(--rm-border); padding-bottom: var(--rm-safe-bottom); z-index: 20; }
.rm-footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--rm-footer-h); max-width: 760px; margin: 0 auto; }
.rm-footer__tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--rm-footer-text, var(--rm-muted)); font-size: .72rem; font-weight: 600; position: relative; }
.rm-footer__tab svg { width: 25px; height: 25px; fill: currentColor; }
.rm-footer__tab.active { color: var(--rm-footer-active); }
.rm-footer__icon { display: inline-flex; }
/* Stummschaltung (js/mute.js): durchgestrichene Glocke in Warnfarbe */
.rm-footer__tab--muted .rm-footer__icon svg { fill: var(--rm-danger); }
/* Reiter Alarme: Stummschalten unten links (über der Fußleiste) */
.rm-muteFab { position: fixed; left: 16px; bottom: calc(var(--rm-footer-h) + var(--rm-safe-bottom) + 14px); z-index: 12; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--rm-border); background: var(--rm-surface); color: var(--rm-text); font-weight: 600; font-size: .88rem; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.rm-muteFab svg { width: 20px; height: 20px; fill: currentColor; }
.rm-muteFab--on { background: var(--rm-danger); border-color: var(--rm-danger); color: #fff; }
.rm-muteSpacer { height: 64px; }
.rm-footer__tab.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--rm-footer-active); }
.rm-footer__badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rm-danger); color: #fff; font-size: .7rem; line-height: 18px; display: none; }
.rm-footer__badge.show { display: block; }

/* Ladebalken oben */
.rm-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--rm-accent); z-index: 2000; transition: width .25s ease, opacity .3s ease; opacity: 0; }
.rm-progress.run { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1,.7,.2,1); }
.rm-progress.done { opacity: 0; width: 100%; transition: width .2s ease, opacity .4s ease .2s; }

/* ── Seitenkopf innerhalb einer Seite ─────────────────────────────────── */
.rm-pagehead { position: sticky; top: 0; z-index: 5; background: var(--rm-bg); display: flex; align-items: center; gap: .35rem; padding: 8px 8px 8px 4px; margin: -12px -16px 10px; }
.rm-pagehead__back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--rm-text); flex: 0 0 auto; }
.rm-pagehead__back:active { background: rgba(0,0,0,.06); }
.rm-pagehead__back svg { width: 24px; height: 24px; fill: currentColor; }
.rm-pagehead__title { font-size: 1.15rem; font-weight: 700; margin: 0; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-pagehead__title small { display: block; font-size: .75rem; font-weight: 500; color: var(--rm-muted); }
.rm-pagehead--noback { padding-left: 16px; }

/* ── Bausteine ────────────────────────────────────────────────────────── */
.rm-card { background: var(--rm-surface); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); padding: 12px 14px; margin-bottom: 10px; }
.rm-card--tight { padding: 0; overflow: hidden; }
.rm-card__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--rm-muted); margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.rm-card__title .rm-link { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .85rem; }
/* Belegungs-Zeilen (Schlüsselchips: Key 1-3 / Sicher 1-3) */
.rm-slot { display: flex; align-items: center; gap: .8rem; padding: 10px 0; border-bottom: 1px solid var(--rm-border); }
.rm-slot:last-child { border-bottom: 0; }
.rm-slot__label { font-weight: 700; font-size: .85rem; width: 64px; flex: 0 0 auto; color: var(--rm-muted); }
.rm-slot__val { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rm-slot__val.empty { color: var(--rm-muted); font-style: italic; }
.rm-slot__actions { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.rm-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--rm-muted); margin: 18px 4px 8px; }
.rm-muted { color: var(--rm-muted); }
.rm-small { font-size: .82rem; }
.rm-xs { font-size: .74rem; }
.rm-strong { font-weight: 700; }
.rm-link { background: none; border: 0; padding: 0; color: var(--rm-accent); font-weight: 600; }
.rm-hr { height: 1px; background: var(--rm-border); margin: 12px 0; border: 0; }

.rm-list { background: var(--rm-surface); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); overflow: hidden; margin-bottom: 12px; }
.rm-item { box-sizing: border-box; display: flex; align-items: center; gap: .75rem; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; color: inherit; border-bottom: 1px solid var(--rm-border); text-decoration: none; }
.rm-item:last-child { border-bottom: 0; }
button.rm-item:active, a.rm-item:active { background: var(--rm-surface-2); }
.rm-item__body { flex: 1 1 auto; min-width: 0; }
.rm-item__over { font-size: .78rem; color: var(--rm-muted); }
.rm-item__title { font-size: 1.02rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.rm-item__sub { font-size: .8rem; color: var(--rm-muted); margin-top: 1px; overflow-wrap: anywhere; }
.rm-item__end { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; color: var(--rm-muted); }
.rm-item__chev { width: 18px; height: 18px; fill: #b5bdc2; flex: 0 0 auto; }
/* Einsatzzeit in eingeklappten Boxen (Atemschutz Übung & Einsatz, 2026-10-23) */
.rm-minutes { display: inline-flex; align-items: center; gap: 3px; font-size: .85rem; font-weight: 650; color: var(--rm-text); white-space: nowrap; }
.rm-minutes svg { width: 16px; height: 16px; fill: currentColor; }
.rm-item__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--rm-surface-2); display: grid; place-items: center; flex: 0 0 auto; color: var(--rm-element); }
.rm-item__icon svg { width: 22px; height: 22px; fill: currentColor; }
.rm-item--disabled { opacity: .45; }
.rm-item--selected { background: color-mix(in srgb, var(--rm-element) 10%, transparent); }

.rm-kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; font-size: .92rem; }
.rm-kv dt { color: var(--rm-muted); font-weight: 500; }
.rm-kv dd { margin: 0; overflow-wrap: anywhere; }

.rm-badge { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .12rem .55rem; font-size: .74rem; font-weight: 600; background: var(--rm-surface-2); color: var(--rm-muted); white-space: nowrap; }
.rm-badge--success { background: #e3f4ea; color: #146c43; }
.rm-badge--danger { background: #fde6e8; color: #b02a37; }
.rm-badge--warning { background: #fff1db; color: #9a5b00; }
.rm-badge--info { background: #e2effd; color: #0b5ed7; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* Status-Icons Terminliste */
.rm-answer { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.rm-answer svg { width: 18px; height: 18px; fill: #fff; }
.rm-answer--accepted { background: var(--rm-success); }
.rm-answer--denied { background: var(--rm-danger); }
.rm-answer--open { background: #aab3b8; }
/* Verbindlicher Termin ohne Rückmeldung: leerer, gestrichelter Kreis */
.rm-answer--binding { background: transparent; border: 2px dashed #8a969a; }
/* Besetzungsstand neben dem Rückmeldekreis (ohne eigene Rückmeldung):
   oranges „!“ = Mindestanforderung offen, grüner Haken = Termin voll */
.rm-answerGroup { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.rm-staff { display: inline-grid; place-items: center; width: 16px; flex: 0 0 auto; line-height: 1; }
.rm-staff--open { color: var(--rm-warning); font-weight: 900; font-size: 1.35rem; }
.rm-staff--full svg { width: 20px; height: 20px; fill: var(--rm-success); }

/* Kacheln (Verwaltung) */
.rm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .rm-tiles { grid-template-columns: repeat(3, 1fr); } }
.rm-tile { background: var(--rm-surface); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); border: 0; padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; color: var(--rm-text); min-height: 118px; justify-content: center; position: relative; }
.rm-tile:active { transform: scale(.98); background: var(--rm-surface-2); }
.rm-tile__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--rm-element) 12%, #fff); color: var(--rm-element); }
.rm-tile__icon svg { width: 28px; height: 28px; fill: currentColor; }
.rm-tile__label { font-weight: 650; font-size: .92rem; line-height: 1.2; }
.rm-tile__lock { position: absolute; top: 9px; right: 10px; width: 16px; height: 16px; fill: var(--rm-muted); }
/* Kompakte Kacheln (Verwaltung, 2026-10-08): 3 Spalten, damit mehr Bereiche auf einen Bildschirm passen */
.rm-tiles--compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .rm-tiles--compact { grid-template-columns: repeat(4, 1fr); } }
.rm-tiles--compact .rm-tile { min-height: 88px; padding: 10px 6px 9px; gap: .35rem; }
.rm-tiles--compact .rm-tile__icon { width: 38px; height: 38px; border-radius: 11px; }
.rm-tiles--compact .rm-tile__icon svg { width: 21px; height: 21px; }
.rm-tiles--compact .rm-tile__label { font-size: .78rem; font-weight: 650; hyphens: auto; overflow-wrap: anywhere; }
.rm-tiles--compact .rm-tile__lock { top: 6px; right: 6px; width: 13px; height: 13px; }
/* Shortcuts oben in der Verwaltung (2026-11-06): gefüllt mit der
   Elementfarbe, damit sie sich von den Modulen abheben. Zwei Spalten mit
   Symbol links und Text rechts (fünf in einer Reihe waren zu schmal);
   bei ungerader Anzahl ist die letzte Kachel breit. Ab Tablet-Breite drei. */
.rm-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rm-shortcuts .rm-tile--shortcut { background: var(--rm-element); color: #fff; min-height: 60px; padding: 10px 12px; gap: .65rem; flex-direction: row; justify-content: flex-start; text-align: left; }
.rm-shortcuts .rm-tile--shortcut:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rm-shortcuts .rm-tile--shortcut:active { background: color-mix(in srgb, var(--rm-element) 82%, #000); }
.rm-shortcuts .rm-tile--shortcut .rm-tile__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.2); color: #fff; }
.rm-shortcuts .rm-tile--shortcut .rm-tile__icon svg { width: 24px; height: 24px; }
.rm-shortcuts .rm-tile--shortcut .rm-tile__label { font-size: .9rem; font-weight: 700; line-height: 1.2; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.rm-shortcuts .rm-tile--shortcut .rm-tile__lock { fill: rgba(255,255,255,.8); top: 6px; right: 6px; width: 12px; height: 12px; }
@media (min-width: 560px) {
  .rm-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-shortcuts .rm-tile--shortcut:last-child:nth-child(odd) { grid-column: auto; }
}
.rm-tile__alert[hidden], .rm-dotAlert[hidden] { display: none; }
/* Unterpunkte eines Verwaltungsbereichs als Kacheln (2026-11-17,
   verwaltungGruppe.js): tile = zwei nebeneinander, wide = ganze Breite */
.rm-gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rm-gtiles .rm-tile { min-height: 96px; padding: 12px 8px 10px; gap: .4rem; }
.rm-gtiles .rm-tile__icon { width: 42px; height: 42px; border-radius: 12px; }
.rm-gtiles .rm-tile__icon svg { width: 23px; height: 23px; }
.rm-gtiles .rm-tile__label { font-size: .86rem; hyphens: auto; overflow-wrap: break-word; }
.rm-gtiles .rm-tile__sub { font-size: .72rem; color: var(--rm-muted); line-height: 1.2; }
.rm-gtiles .rm-tile--wide { grid-column: 1 / -1; min-height: 62px; flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 14px; gap: .75rem; }
.rm-gtiles .rm-tile--wide .rm-tile__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rm-gtiles .rm-tile--wide .rm-tile__label { font-size: .95rem; }
.rm-gtiles .rm-tile--disabled { opacity: .45; }
/* Eingeklappte Gruppen (z.B. Prüfungen je Prüfungsart) */
.rm-fold { margin-bottom: 10px; }
.rm-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: 12px 14px; background: var(--rm-surface); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); font-weight: 650; }
.rm-fold > summary::-webkit-details-marker { display: none; }
.rm-fold > summary .rm-fold__title { flex: 1 1 auto; min-width: 0; }
.rm-fold > summary .rm-fold__chev { width: 18px; height: 18px; fill: var(--rm-muted); transition: transform .15s; transform: rotate(90deg); }
.rm-fold[open] > summary .rm-fold__chev { transform: rotate(-90deg); }
.rm-fold[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rm-fold > .rm-list { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 1px solid var(--rm-border); }
/* Roter Punkt (z.B. Atemschutz: selbst nicht einsatzklar) */
.rm-tile__alert { position: absolute; top: 7px; left: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--rm-danger, #c62828); box-shadow: 0 0 0 2px var(--rm-surface); }
.rm-dotAlert { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rm-danger, #c62828); vertical-align: middle; margin-left: 4px; }
.rm-alertCard { border-left: 5px solid var(--rm-danger, #c62828); background: color-mix(in srgb, var(--rm-danger, #c62828) 8%, var(--rm-surface)); display: flex; gap: .7rem; align-items: center; }
.rm-alertCard svg { width: 26px; height: 26px; fill: var(--rm-danger, #c62828); flex: 0 0 auto; }

/* Buttons */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .4rem 1rem; border-radius: 11px; border: 1.5px solid transparent;
  background: var(--rm-accent); color: var(--rm-accent-text); font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; }
.rm-btn:active { filter: brightness(.92); }
.rm-btn:disabled { opacity: .5; }
.rm-btn svg { width: 20px; height: 20px; fill: currentColor; }
.rm-btn--block { display: flex; width: 100%; }
.rm-btn--outline { background: var(--rm-surface); color: var(--rm-text); border-color: var(--rm-border); }
.rm-btn--success { background: var(--rm-success); color: #fff; }
.rm-btn--danger { background: var(--rm-danger); color: #fff; }
.rm-btn--ghost { background: transparent; color: var(--rm-accent); border-color: transparent; }
.rm-btn--sm { min-height: 34px; padding: .25rem .7rem; font-size: .9rem; border-radius: 9px; }
.rm-btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-btnrow > * { flex: 1 1 0; white-space: nowrap; }

/* Einrichtungs-QR-Code bildschirmfüllend (geraeteKoppeln.js) - immer weiß,
   damit der Code auch im dunklen Design gut scanbar ist */
.rm-qrfull { position: fixed; inset: 0; z-index: 1300; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(16px + var(--rm-safe-top, 0px)) 16px calc(16px + var(--rm-safe-bottom, 0px)); text-align: center; }
.rm-qrfull__name { font-size: 1.35rem; font-weight: 750; }
.rm-qrfull__code svg { display: block; width: auto; height: auto; max-width: 100%; }
.rm-qrfull__hint { font-size: .9rem; color: #555; max-width: 420px; }
.rm-qrfull__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rm-qrfull__actions .rm-btn--outline { background: #fff; color: #111; border-color: #ccd2d6; }  /* zu breit → nächste Zeile statt über den Rand */

/* Aktionsleiste am Seitenende (bleibt beim Scrollen sichtbar) */
.rm-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--rm-bg) 70%, rgba(242,244,245,0)); padding: 10px 0 4px; margin-top: auto; display: flex; gap: 10px; z-index: 4; }
.rm-actions > * { flex: 1 1 0; }

/* Formulare */
.rm-field { margin-bottom: 10px; }
.rm-field > label, .rm-label { display: block; font-size: .8rem; font-weight: 650; color: var(--rm-muted); margin: 0 0 3px 2px; }
/* Schlank (2026-10-17): Schriftgröße bleibt 16px (kein Zoom auf iOS), nur
   weniger Innenabstand. min-width:0, damit Felder in Flex-/Grid-Zeilen
   nicht über den Rand hinauswachsen. */
.rm-input, .rm-select, .rm-textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; border-radius: 10px; border: 1.5px solid var(--rm-border); background: var(--rm-surface); color: var(--rm-text);
  padding: .35rem .7rem; font-size: max(16px, 1rem); line-height: 1.3; outline: none; appearance: none; -webkit-appearance: none; }
.rm-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b767c' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 22px; padding-right: 2.2rem; }
.rm-textarea { min-height: 80px; resize: vertical; }
.rm-input:focus, .rm-select:focus, .rm-textarea:focus { border-color: var(--rm-element); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-element) 20%, transparent); }
.rm-input[readonly], .rm-input:disabled, .rm-select:disabled, .rm-textarea:disabled { background: var(--rm-surface-2); color: var(--rm-muted); }
.rm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rm-check { display: flex; align-items: center; gap: .6rem; min-height: 36px; font-size: .98rem; }
.rm-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--rm-element); flex: 0 0 auto; }
/* Profil -> Korrektur beantragen (2026-10-25): unveränderte Felder grau,
   geänderte hervorgehoben mit "bisher"-Wert und Zurücksetzen. */
.rm-pcr__head { display: flex; align-items: center; gap: 6px; margin: 0 0 3px 2px; }
.rm-pcr__head > label { font-size: .8rem; font-weight: 650; color: var(--rm-muted); margin: 0; }
.rm-pcr__was, .rm-pcr__reset { display: none; }
.rm-pcr__was { font-size: .75rem; color: var(--rm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rm-pcr__reset { margin-left: auto; border: 0; background: transparent; color: var(--rm-element); padding: 0 2px; line-height: 0; }
.rm-pcr__reset svg { width: 18px; height: 18px; }
.rm-pcr:not(.is-changed) .rm-input { background: var(--rm-surface-2); color: var(--rm-muted); }
.rm-pcr:not(.is-changed) .rm-pcr__opts { color: var(--rm-muted); }
.rm-pcr.is-changed .rm-pcr__head > label { color: var(--rm-element); }
.rm-pcr.is-changed .rm-pcr__was, .rm-pcr.is-changed .rm-pcr__reset { display: inline-block; }
.rm-pcr.is-changed .rm-input { border-color: var(--rm-element); }
.rm-pcr.is-changed .rm-pcr__opts { border-left: 3px solid var(--rm-element); padding-left: 8px; }
.rm-pcr__opts { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
.rm-switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; }
.rm-switch input { opacity: 0; width: 0; height: 0; }
.rm-switch span { position: absolute; inset: 0; background: #c9d0d4; border-radius: 30px; transition: .2s; }
.rm-switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rm-switch input:checked + span { background: var(--rm-element); }
.rm-switch input:checked + span::before { transform: translateX(20px); }
.rm-search { position: relative; margin-bottom: 10px; }
.rm-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--rm-muted); pointer-events: none; }
.rm-search .rm-input { padding-left: 2.5rem; }
.rm-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.rm-filters::-webkit-scrollbar { display: none; }
.rm-chip { flex: 0 0 auto; border: 1.5px solid var(--rm-border); background: var(--rm-surface); color: var(--rm-text); border-radius: 999px; padding: .38rem .85rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.rm-chip.active { background: var(--rm-element); border-color: var(--rm-element); color: #fff; }
.rm-count { font-size: .8rem; color: var(--rm-muted); margin: 0 4px 8px; }

/* Leerer Zustand / Platzhalter */
.rm-empty { text-align: center; color: var(--rm-muted); padding: 36px 20px; }
.rm-empty svg { width: 54px; height: 54px; fill: #c3cacf; margin-bottom: 10px; }
.rm-empty__title { font-weight: 700; color: var(--rm-text); margin-bottom: 4px; }
.rm-loading { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--rm-muted); padding: 30px 0; }
.rm-spinner { width: 22px; height: 22px; border: 3px solid var(--rm-border); border-top-color: var(--rm-accent); border-radius: 50%; animation: rmSpin .8s linear infinite; }
@keyframes rmSpin { to { transform: rotate(360deg); } }
.rm-error { background: #fde6e8; color: #8a1c28; border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 12px; }
.rm-info { background: #e2effd; color: #0a4a9e; border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 12px; }
.rm-warn { background: #fff1db; color: #7a4800; border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 12px; }

/* ── Login / Sperre ───────────────────────────────────────────────────── */
.rm-auth { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(24px + var(--rm-safe-top)) 22px calc(24px + var(--rm-safe-bottom)); max-width: 420px; margin: 0 auto; }
.rm-auth__logo { width: 120px; margin: 0 auto 10px; display: block; }
.rm-auth__title { text-align: center; font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; letter-spacing: .3px; }
.rm-auth__sub { text-align: center; color: var(--rm-muted); margin: 0 0 24px; font-size: .95rem; }
.rm-lockscreen { position: fixed; left: 0; right: 0; top: calc(var(--rm-safe-top) + var(--rm-header-h)); bottom: calc(var(--rm-footer-h) + var(--rm-safe-bottom)); background: var(--rm-bg); z-index: 15; overflow-y: auto; }
.rm-lockscreen .rm-auth { justify-content: flex-start; padding-top: 48px; }
.rm-lockscreen__user .rm-input { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; color: var(--rm-muted); }
/* Bildschirmtastatur offen (js/lock.js): nur Titel, Passwortfeld und Schaltflächen */
.rm-lockscreen--kb .rm-auth { padding-top: 12px; padding-bottom: 12px; min-height: 0; }
.rm-lockscreen--kb .rm-lockIcon, .rm-lockscreen--kb .rm-auth__sub, .rm-lockscreen--kb .rm-lockscreen__user { display: none !important; }
.rm-lockscreen--kb .rm-auth__title { margin-bottom: 10px; }
/* Installationsanleitung im Handy-Browser (js/installGuide.js, 2026-10-25) */
.rm-install { justify-content: flex-start; }
.rm-install__steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-install__steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.4; }
.rm-install__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--rm-element); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.rm-install__glyph { width: 22px; height: 22px; vertical-align: -5px; color: #0a84ff; }
.rm-install__alt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rm-border); }
.rm-install > .rm-btn + .rm-install__steps, .rm-install > .rm-btn + [data-pwa-steps] > .rm-install__steps { margin-top: 14px; }
.rm-lockIcon { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; background: color-mix(in srgb, var(--rm-element) 14%, #fff); display: grid; place-items: center; }
.rm-lockIcon svg { width: 38px; height: 38px; fill: var(--rm-element); }

/* ── Dialoge, Bottom-Sheets, Toasts ───────────────────────────────────── */
.rm-dlg-overlay { position: fixed; inset: 0; background: rgba(18,24,35,.5); z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rm-dlg { width: min(100%, 420px); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; background: var(--rm-surface); border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.25); overflow: hidden; animation: rmPop .14s ease-out; }
.rm-dlg__head { padding: 1.1rem 1.2rem .4rem; font-weight: 750; font-size: 1.08rem; }
.rm-dlg__body { padding: 0 1.2rem 1rem; font-size: .96rem; overflow-y: auto; }
.rm-dlg__foot { display: flex; gap: .6rem; padding: .8rem 1.2rem 1.1rem; border-top: 1px solid var(--rm-border); }
.rm-dlg__foot .rm-btn { flex: 1; }

.rm-sheet-overlay { position: fixed; inset: 0; background: rgba(18,24,35,.45); z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.rm-sheet { width: 100%; max-width: 760px; max-height: 88vh; max-height: 88dvh; background: var(--rm-surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding-bottom: var(--rm-safe-bottom); animation: rmUp .18s ease-out; }
.rm-sheet__grip { width: 42px; height: 5px; border-radius: 3px; background: #d5dade; margin: 8px auto 2px; }
.rm-sheet__head { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem .6rem 1.2rem; font-weight: 750; font-size: 1.05rem; border-bottom: 1px solid var(--rm-border); }
.rm-sheet__head .rm-iconBtn { margin-left: auto; color: var(--rm-muted); }
.rm-sheet__body { padding: 12px 16px 16px; overflow-y: auto; }
@keyframes rmUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

.rm-toastWrap { position: fixed; left: 0; right: 0; top: calc(var(--rm-safe-top) + var(--rm-header-h) + 8px); z-index: 1400; display: flex; flex-direction: column; align-items: center; gap: .4rem; pointer-events: none; padding: 0 1rem; }
.rm-toast { pointer-events: auto; width: min(100%, 460px); border-radius: 12px; padding: .75rem 1rem; color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: .6rem; align-items: flex-start; animation: rmPop .15s ease-out; }
.rm-toast small { display: block; font-weight: 400; opacity: .92; }
.rm-toast--success { background: #1f7a4a; }
.rm-toast--info { background: #0b5ed7; }
.rm-toast--error { background: #c62828; }

/* ── Kalender ─────────────────────────────────────────────────────────── */
.rm-cal { background: var(--rm-surface); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); overflow: hidden; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.rm-cal__head { display: flex; align-items: center; padding: 8px 6px 6px 14px; }
.rm-cal__month { font-weight: 750; font-size: 1.12rem; flex: 1 1 auto; }
.rm-cal__nav { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--rm-text); }
.rm-cal__nav:active { background: var(--rm-surface-2); }
.rm-cal__nav svg { width: 22px; height: 22px; fill: currentColor; }
.rm-cal__today { border: 1.5px solid var(--rm-border); background: none; border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 650; color: var(--rm-text); margin-right: 4px; }
.rm-cal__grid { display: grid; grid-template-columns: 30px repeat(7, 1fr); }
.rm-cal__wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--rm-muted); padding: 4px 0 6px; border-bottom: 1px solid var(--rm-border); }
.rm-cal__wd--kw { color: #aab3b8; }
.rm-cal__kw { font-size: .68rem; color: #9aa4aa; text-align: center; padding-top: 6px; border-right: 1px solid var(--rm-border); border-bottom: 1px solid var(--rm-border); background: var(--rm-surface-2); }
.rm-cal__day { min-height: 64px; border-bottom: 1px solid var(--rm-border); border-right: 1px solid var(--rm-border); padding: 3px 2px 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; position: relative; }
.rm-cal__day:nth-child(8n) { border-right: 0; }
.rm-cal__day--other { background: #fafbfb; }
.rm-cal__day--other .rm-cal__num { color: #b8c0c5; }
.rm-cal__day--weekend { background: #fbfbfc; }
.rm-cal__day--selected { background: color-mix(in srgb, var(--rm-element) 9%, #fff); }
.rm-cal__num { font-size: .8rem; font-weight: 650; align-self: center; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; }
.rm-cal__day--today .rm-cal__num { background: var(--rm-element); color: #fff; }
.rm-cal__ev { display: block; border: 0; width: 100%; text-align: left; font-size: .64rem; line-height: 1.25; padding: 1px 3px; border-radius: 4px; color: #fff; background: var(--rm-element); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }
.rm-cal__ev--denied { background: #b9c1c6; text-decoration: line-through; }
.rm-cal__ev--accepted { background: var(--rm-success); }
.rm-cal__more { font-size: .64rem; color: var(--rm-muted); text-align: center; }
/* Monat waagerecht wischen (2026-11-23): naechster von rechts, vorheriger von links */
.rm-cal__anim-next { animation: rmCalNext .22s ease-out; }
.rm-cal__anim-prev { animation: rmCalPrev .22s ease-out; }
@keyframes rmCalNext { from { transform: translateX(32px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes rmCalPrev { from { transform: translateX(-32px); opacity: .3; } to { transform: none; opacity: 1; } }
/* Fahrzeugbuchung im Kalender (2026-11-23) */
.rm-cal__ev--veh { background: #e7eef7; color: #2b4a6f; border: 1px dashed #8aa6c8; }
:root[data-theme="dark"] .rm-cal__ev--veh { background: #22344a; color: #c9dcf2; border-color: #4d6a8c; }
/* Erhaltene Push-Nachrichten in den Ankuendigungen (2026-11-23) */
.rm-push .rm-item__icon { color: var(--rm-primary); }
.rm-push__body { white-space: pre-line; }
.rm-cal__anim-up { animation: rmCalUp .22s ease-out; }
.rm-cal__anim-down { animation: rmCalDown .22s ease-out; }
@keyframes rmCalUp { from { transform: translateY(24px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes rmCalDown { from { transform: translateY(-24px); opacity: .3; } to { transform: none; opacity: 1; } }
.rm-cal__hint { text-align: center; font-size: .72rem; color: #9aa4aa; padding: 6px 0 8px; }

/* ── Alarme ───────────────────────────────────────────────────────────── */
.rm-alarm { border-left: 5px solid var(--loop, var(--rm-danger)); }
.rm-alarm__loop { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; color: var(--loop, var(--rm-danger)); text-transform: uppercase; letter-spacing: .3px; }
.rm-alarm__keyword { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin: .2rem 0 .15rem; overflow-wrap: anywhere; }
.rm-alarm__text { font-size: 1rem; color: var(--rm-text); margin-bottom: .35rem; }
.rm-alarm__addr { display: flex; gap: .45rem; align-items: flex-start; font-size: .98rem; margin: .4rem 0; }
.rm-alarm__addr svg { width: 20px; height: 20px; fill: var(--rm-danger); flex: 0 0 auto; margin-top: 1px; }
.rm-alarm__msg { background: var(--rm-surface-2); border-radius: 10px; padding: .6rem .75rem; white-space: pre-wrap; font-size: .92rem; margin-top: .5rem; }
.rm-fbBtns { display: grid; gap: 10px; }
.rm-fbBtn { display: flex; align-items: center; gap: .7rem; min-height: 58px; border-radius: 14px; border: 2px solid var(--c); background: var(--rm-surface); color: var(--c); font-weight: 750; font-size: 1.08rem; padding: .5rem 1rem; }
.rm-fbBtn.active { background: var(--c); color: #fff; }
.rm-fbBtn svg { width: 24px; height: 24px; fill: currentColor; }
.rm-fbBtn__check { margin-left: auto; }
.rm-fbSummary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rm-fbCount { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .25rem .65rem; font-size: .82rem; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-weight: 650; }
.rm-fbCount svg, .rm-fbPill svg { width: 14px; height: 14px; fill: currentColor; }
.rm-card__title svg { width: 16px; height: 16px; fill: currentColor; }
.rm-badge svg { width: 12px; height: 12px; fill: currentColor; }
.rm-muted svg, .rm-info svg, .rm-warn svg, .rm-error svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; }
.rm-alarm__loop svg { width: 15px; height: 15px; fill: currentColor; }
.rm-fbRow { display: flex; align-items: center; gap: .6rem; padding: 9px 0; border-bottom: 1px solid var(--rm-border); }
.rm-fbRow:last-child { border-bottom: 0; }
.rm-fbRow__name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .95rem; }
.rm-fbRow.me .rm-fbRow__name { color: var(--rm-element); }
.rm-fbPill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700; color: #fff; background: var(--c); white-space: nowrap; }
.rm-fbPill--open { background: #e6eaec; color: var(--rm-muted); }
.rm-fbRow__time { font-size: .72rem; color: var(--rm-muted); text-align: right; min-width: 58px; }
.rm-live { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--rm-success); font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: auto; }
.rm-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: rmBlink 1.4s infinite; }
@keyframes rmBlink { 50% { opacity: .25; } }

/* Scanner-Auswahl (Barcode / Kamera / NFC / Baum) */
.rm-scanopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rm-scanopt { background: var(--rm-surface); border: 0; border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 650; color: var(--rm-text); }
.rm-scanopt svg { width: 30px; height: 30px; fill: var(--rm-element); }
.rm-scanopt:disabled { opacity: .4; }
/* Bis die Kamera laeuft: rettHUB-Logo statt des grauen Video-Platzhalters
   (das <video> hat ein transparentes poster). */
.rm-cam { position: relative; background: #0f3b40 url("../../retthub_logo.php") center / 45% auto no-repeat; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; }
.rm-cam video { width: 100%; height: 100%; object-fit: cover; }
.rm-cam__frame { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }

/* Baum (Lagerorte) */
.rm-tree__crumb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .85rem; margin-bottom: 8px; }
.rm-tree__crumb button { border: 0; background: var(--rm-surface); border-radius: 999px; padding: .25rem .65rem; font-weight: 600; color: var(--rm-accent); box-shadow: var(--rm-shadow); }

/* Journal-Zeitleiste */
.rm-timeline { position: relative; padding-left: 16px; }
.rm-timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--rm-border); }
.rm-tl { position: relative; padding: 0 0 12px 8px; }
.rm-tl::before { content: ""; position: absolute; left: -16px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-element); border: 2px solid var(--rm-surface); }

/* ── Darstellung: data-theme auf <html> = light | dark | system
   (Umschalter in Einstellungen/Menue, siehe js/theme.js). ───────────── */
:root[data-theme="dark"] { --rm-bg: #1c2327; --rm-surface: #262f34; --rm-surface-2: #2f393f; --rm-text: #eef2f3; --rm-muted: #aab6bc; --rm-border: #3a464c; --rm-footer: #262f34; color-scheme: dark; }
:root[data-theme="dark"] .rm-cal__day--other, :root[data-theme="dark"] .rm-cal__day--weekend { background: #222a2e; }
:root[data-theme="dark"] .rm-cal__day--selected { background: #2a3d42; }
:root[data-theme="dark"] .rm-actions { background: linear-gradient(to top, var(--rm-bg) 70%, rgba(28,35,39,0)); }
:root[data-theme="dark"] .rm-badge--success { background: #1e4a33; color: #8fe0b2; }
:root[data-theme="dark"] .rm-badge--danger { background: #55222a; color: #f5aab3; }
:root[data-theme="dark"] .rm-badge--warning { background: #4d3610; color: #ffcf85; }
:root[data-theme="dark"] .rm-badge--info { background: #1a3560; color: #a3c8ff; }
:root[data-theme="dark"] .rm-error { background: #55222a; color: #f9cdd2; }
:root[data-theme="dark"] .rm-info { background: #1a3560; color: #c8ddff; }
:root[data-theme="dark"] .rm-warn { background: #4d3610; color: #ffdfae; }
:root[data-theme="dark"] .rm-tile__icon { background: #2f3f45; }
:root[data-theme="dark"] .rm-fbPill--open { background: #3a464c; }
:root[data-theme="dark"] .rm-fbCount { background: color-mix(in srgb, var(--c) 22%, var(--rm-surface)); }
:root[data-theme="dark"] .rm-lockIcon { background: color-mix(in srgb, var(--rm-element) 22%, var(--rm-surface)); }
:root[data-theme="dark"] .rm-item--selected { background: color-mix(in srgb, var(--rm-element) 22%, transparent); }
:root[data-theme="dark"] .rm-proto input[type=text], :root[data-theme="dark"] .rm-proto input[type=date] { background: var(--rm-surface-2); color: var(--rm-text); }
:root[data-theme="dark"] .rm-proto__overall.ok { background: #1e4a33; }
:root[data-theme="dark"] .rm-proto__overall.fail { background: #55222a; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] { --rm-bg: #1c2327; --rm-surface: #262f34; --rm-surface-2: #2f393f; --rm-text: #eef2f3; --rm-muted: #aab6bc; --rm-border: #3a464c; --rm-footer: #262f34; color-scheme: dark; }
  :root[data-theme="system"] .rm-cal__day--other, :root[data-theme="system"] .rm-cal__day--weekend { background: #222a2e; }
  :root[data-theme="system"] .rm-cal__day--selected { background: #2a3d42; }
  :root[data-theme="system"] .rm-actions { background: linear-gradient(to top, var(--rm-bg) 70%, rgba(28,35,39,0)); }
  :root[data-theme="system"] .rm-badge--success { background: #1e4a33; color: #8fe0b2; }
  :root[data-theme="system"] .rm-badge--danger { background: #55222a; color: #f5aab3; }
  :root[data-theme="system"] .rm-badge--warning { background: #4d3610; color: #ffcf85; }
  :root[data-theme="system"] .rm-badge--info { background: #1a3560; color: #a3c8ff; }
  :root[data-theme="system"] .rm-error { background: #55222a; color: #f9cdd2; }
  :root[data-theme="system"] .rm-info { background: #1a3560; color: #c8ddff; }
  :root[data-theme="system"] .rm-warn { background: #4d3610; color: #ffdfae; }
  :root[data-theme="system"] .rm-tile__icon { background: #2f3f45; }
  :root[data-theme="system"] .rm-fbPill--open { background: #3a464c; }
  :root[data-theme="system"] .rm-fbCount { background: color-mix(in srgb, var(--c) 22%, var(--rm-surface)); }
  :root[data-theme="system"] .rm-lockIcon { background: color-mix(in srgb, var(--rm-element) 22%, var(--rm-surface)); }
  :root[data-theme="system"] .rm-item--selected { background: color-mix(in srgb, var(--rm-element) 22%, transparent); }
  :root[data-theme="system"] .rm-proto input[type=text], :root[data-theme="system"] .rm-proto input[type=date] { background: var(--rm-surface-2); color: var(--rm-text); }
  :root[data-theme="system"] .rm-proto__overall.ok { background: #1e4a33; }
  :root[data-theme="system"] .rm-proto__overall.fail { background: #55222a; }
}

/* Startseite: wartende Anmeldung (Zwei-Faktor per QR-Code) */
.rm-authBanner { display: flex; align-items: center; gap: .8rem; width: 100%; border: 0; border-radius: var(--rm-radius); padding: 14px 16px; margin: 2px 0 14px; text-align: left;
  background: linear-gradient(135deg, #f08c00, #d7263d); color: #fff; box-shadow: 0 6px 18px rgba(215, 38, 61, .35); animation: rmAuthPulse 1.8s ease-in-out infinite; }
.rm-authBanner:active { filter: brightness(.95); }
.rm-authBanner__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: 0 0 auto; }
.rm-authBanner__icon svg { width: 30px; height: 30px; fill: #fff; }
.rm-authBanner__text { display: flex; flex-direction: column; min-width: 0; }
.rm-authBanner__title { font-weight: 800; font-size: 1.1rem; }
.rm-authBanner__sub { font-size: .82rem; opacity: .95; overflow-wrap: anywhere; }
@keyframes rmAuthPulse { 50% { box-shadow: 0 6px 26px rgba(215, 38, 61, .6); } }

/* Zeitnacherfassung: "Für jetzt stempeln" */
.rm-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-quick .rm-chip { justify-content: center; margin: 0; min-height: 40px; }
.rm-cal__day { cursor: pointer; }

/* Inventur & Lieferung (2026-10-06) */
.inv-prog { height: 6px; border-radius: 3px; background: var(--rm-surface-2); overflow: hidden; margin: 6px 0 4px; max-width: 320px; }
.inv-prog > span { display: block; height: 100%; background: var(--rm-success); border-radius: 3px; }
.inv-short { color: var(--rm-danger); font-weight: 600; }
.inv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0 2px 10px; }
.inv-crumb { border: 0; background: none; color: var(--rm-element); font-weight: 600; font-size: .88rem; padding: .2rem .3rem; border-radius: 6px; }
.inv-crumb.active { color: var(--rm-text); }
.inv-crumb__sep { color: var(--rm-muted); }
.inv-summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; }
.inv-summary__num { font-size: 1.35rem; font-weight: 700; }
.inv-summary__side { flex: 1 1 auto; min-width: 0; }
.inv-summary__side .inv-prog { max-width: none; height: 8px; }
.inv-art { gap: .5rem; padding: 0; align-items: stretch; }
.inv-art__main { flex: 1 1 auto; min-width: 0; border: 0; background: none; text-align: left; color: inherit; padding: 11px 6px 11px 14px; }
.inv-art > .rm-answer { align-self: center; margin-right: 14px; }
.inv-soll { align-self: center; flex: 0 0 auto; min-width: 38px; text-align: center; font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--rm-text); }
.inv-soll small { display: block; font-size: .6rem; font-weight: 650; color: var(--rm-muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.inv-art.is-open .rm-item__title { font-weight: 650; }
/* Noch nicht gezählt: grau mit Fragezeichen (bewusste Eingabe nötig) */
.inv-quickok { flex: 0 0 56px; border: 0; border-left: 1px solid var(--rm-border); background: var(--rm-surface-2); color: #8a969a; display: grid; place-items: center; }
.inv-quickok:active { background: color-mix(in srgb, var(--rm-success) 14%, transparent); color: var(--rm-success); }
.inv-quickok svg { width: 24px; height: 24px; fill: currentColor; }
.inv-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.inv-row { box-sizing: border-box; }

/* Dienstplanung (2026-10-08, js/pages/dienstplan.js - auch in rettONLINE) */
.dp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dp-cal__wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--rm-muted); padding-bottom: 2px; }
.dp-cal__day { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--rm-border); background: var(--rm-surface); color: var(--rm-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 650; font-size: .92rem; padding: 0; }
.dp-cal__day:disabled { opacity: 1; }
.dp-cal__day--we { background: var(--rm-surface-2); }
.dp-cal__day--wish { background: #d1e7dd; border-color: #75b798; color: #0f5132; }
.dp-cal__day--no { background: #f8d7da; border-color: #ea868f; color: #842029; }
.dp-cal__mark { font-size: .66rem; font-weight: 700; line-height: 1; min-height: .7rem; }
.dp-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--rm-muted); margin: 8px 2px 0; }
.dp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.dp-pref { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--rm-border); }
.dp-pref:last-child { border-bottom: 0; }
.dp-pref__wd { flex: 0 0 34px; font-weight: 700; }
.dp-pref__val { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dp-short { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; font-size: .75rem; font-weight: 700; text-align: center; color: #fff; }
.dp-duty__icon { font-weight: 800; font-size: .85rem; color: #fff !important; }
:root[data-theme="dark"] .dp-cal__day--wish { background: #1e4a33; border-color: #2f7a52; color: #8fe0b2; }
:root[data-theme="dark"] .dp-cal__day--no { background: #55222a; border-color: #8a3a45; color: #f5aab3; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .dp-cal__day--wish { background: #1e4a33; border-color: #2f7a52; color: #8fe0b2; }
  :root[data-theme="system"] .dp-cal__day--no { background: #55222a; border-color: #8a3a45; color: #f5aab3; }
}

/* Alarmansicht (2026-10-12): kompakt, Personen nach Rückmeldung gruppiert */
.rm-card--compact { padding: 12px 14px; }
.rm-alarm--detail .rm-alarm__keyword { font-size: 1.35rem; margin: .15rem 0 .1rem; }
.rm-alarm__addrRow { display: flex; align-items: center; gap: 10px; margin-top: .35rem; }
.rm-alarm__addrRow .rm-alarm__addr { flex: 1 1 auto; min-width: 0; margin: 0; }
.rm-alarm__addrRow .rm-btn { flex: 0 0 auto; }
.rm-alarm--detail .rm-fbBtns, .rm-card--compact .rm-fbBtns { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rm-card--compact .rm-fbBtn { min-height: 52px; font-size: 1rem; padding: .4rem .75rem; }
.rm-fbTotals { display: flex; gap: 6px; margin: 2px 0 8px; }
.rm-fbTotal { flex: 1 1 0; min-width: 0; text-align: center; border-radius: 10px; padding: 6px 2px 5px; background: color-mix(in srgb, var(--c) 13%, var(--rm-surface)); color: var(--c); }
.rm-fbTotal strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.05; }
.rm-fbTotal span { display: block; font-size: .7rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.rm-fbGroup { margin-top: 8px; }
.rm-fbGroup__head { display: flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .3px; color: var(--c);
  border-bottom: 2px solid color-mix(in srgb, var(--c) 35%, transparent); padding: 2px 0 3px; }
.rm-fbGroup__head svg { width: 15px; height: 15px; fill: currentColor; }
.rm-fbGroup__head span { margin-left: auto; }
.rm-fbGroup .rm-fbRow { padding: 6px 0; }
.rm-fbGroup .rm-fbRow__time { min-width: 0; white-space: nowrap; }
.rm-alarm__footer { margin: 18px 4px 0; text-align: center; font-size: .72rem; color: var(--rm-muted); opacity: .85; }

/* Schlanke Terminzeile (Kalenderliste, Startseite) */
.rm-item--slim { padding: 7px 14px; gap: .6rem; }
.rm-item--slim .rm-item__over { font-size: .74rem; line-height: 1.25; }
.rm-item--slim .rm-item__title { font-size: .97rem; line-height: 1.25; }
.rm-item__type { font-weight: 500; color: #9aa4aa; }
.rm-item--slim .rm-answer { width: 26px; height: 26px; }
.rm-item--slim .rm-answer svg { width: 16px; height: 16px; }
.rm-section-title svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }
.rm-input--static { display: flex; align-items: center; gap: 8px; background: var(--rm-surface-2); }
.rm-input--static svg { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--rm-muted); }

/* Datums-/Zeitfelder (2026-10-12): mobile Browser geben ihnen eine feste
   Mindestbreite - nebeneinander liefen sie ineinander bzw. über den Rand. */
.rm-row2 > * { min-width: 0; }
input.rm-input[type="date"], input.rm-input[type="time"], input.rm-input[type="datetime-local"] { display: block; width: 100%; min-width: 0; max-width: 100%; height: 40px; padding-top: 0; padding-bottom: 0; padding-left: .6rem; padding-right: .4rem; cursor: pointer; }
/* Ganzes Feld öffnet die Auswahl (js/ui.js, showPicker) */
input.rm-input::-webkit-calendar-picker-indicator { cursor: pointer; margin-left: 2px; }
input.rm-input::-webkit-datetime-edit { padding: 0; }
input.rm-input::-webkit-date-and-time-value { text-align: left; }
/* Datum + Uhrzeit in einem Feld passt nicht zu zweit in eine Zeile */
.rm-row2:has(input[type="datetime-local"]) { grid-template-columns: 1fr; gap: 0; }
/* Datum + Stunde + Minute in einer Zeile (Zeitnacherfassung) */
.rm-dtRow { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px; gap: 6px; }
.rm-dtRow > * { min-width: 0; }
.rm-dtRow .rm-select { padding-left: .55rem; padding-right: 1.6rem; background-position: right .3rem center; background-size: 18px; }

/* Kleiderkammer (2026-10-12) */
.kk-row { display: flex; align-items: center; gap: .5rem; width: 100%; min-width: 0; }
.kk-row__main { flex: 1 1 auto; min-width: 0; text-align: left; color: var(--rm-text); font-weight: 500; overflow-wrap: anywhere; }
.kk-row .rm-badge { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kk-row .rm-iconBtn { flex: 0 0 auto; }
.kk-count { flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; color: var(--rm-element); }
.kk-stock { background: var(--rm-surface-2); border-bottom: 1px solid var(--rm-border); }
.kk-stock .rm-item { padding-left: 26px; }
/* Organisationswechsel: Logo links neben der Organisation */
.rm-item__logo { width: 44px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; background: #fff; border-radius: 8px; border: 1px solid var(--rm-border); overflow: hidden; }
.rm-item__logo img { max-width: 38px; max-height: 30px; object-fit: contain; }
.rm-fbRow__undelivered { color: var(--rm-danger); font-weight: 650; }

/* Kompaktere Bausteine (2026-10-17) */
.rm-input--num { width: 84px; flex: 0 0 auto; text-align: center; }
.rm-input--sm { min-height: 34px; height: 34px; padding: .15rem .45rem; }
.rm-checklist { display: flex; flex-direction: column; }
.rm-checklist .rm-check { padding: 2px 0; border-top: 1px solid var(--rm-border); min-height: 40px; }
.rm-checklist .rm-check:first-child { border-top: 0; }
.rm-checklist .rm-check > span:not(.rm-dot) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rm-checklist .rm-check small { display: block; font-size: .74rem; color: var(--rm-muted); }

/* Gruppenköpfe (Rückmeldungen nach Status, Alarme nach Organisation) */
.rm-groupHead { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .3px; color: var(--c, var(--rm-muted));
  border-bottom: 2px solid color-mix(in srgb, var(--c, var(--rm-muted)) 35%, transparent); padding: 10px 0 3px; margin-bottom: 2px; }
.rm-groupHead span { margin-left: auto; }
.rm-respRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--rm-border); }
.rm-groupHead + .rm-respRow { border-top: 0; }
.rm-respSep { height: 0; border: 0; border-top: 2px solid var(--rm-border); margin: 10px 0 2px; }

/* Termine im Kalender in der Farbe aus dem Manager (Arbeitsgruppe/Einheit) */
.rm-cal__ev--denied { opacity: .55; }
.rm-item--slim[style*="--ev"] { box-shadow: inset 4px 0 0 var(--ev); }

/* Hinweis: bereits gemeldete Mängel */
.rm-known { margin-bottom: 10px; }
.rm-known__item { padding: 6px 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.rm-known__item:first-of-type { border-top: 0; }
.rm-item__icon--sm { width: 32px; height: 32px; border-radius: 9px; }
.rm-item__icon--sm svg { width: 18px; height: 18px; }

/* Wer hat den Mangel bearbeitet/erledigt (2026-10-17) */
.rm-editor { display: block; font-size: .78rem; font-weight: 650; color: var(--rm-element); margin-top: 2px; }

/* Kalender: Hinweis bei eingeschränkter Anzeige (js/calFilter.js) */
.rm-calFilterBar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; padding: 7px 10px; margin: 0 0 8px; border-radius: 10px; background: color-mix(in srgb, var(--rm-element) 10%, var(--rm-surface)); }
.rm-calFilterBar svg { width: 18px; height: 18px; fill: var(--rm-element); }
.rm-calFilterBar span { flex: 1 1 auto; }
.rm-calFilter .rm-item { gap: .7rem; }
.rm-cal .rm-calFilterBar { margin: 0 8px 6px; }
/* Ankündigungen (js/newsView.js, Seiten news/newsDetail) */
.rm-news { align-items: flex-start; }
.rm-news__img { width: 64px; height: 48px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--rm-surface-2); }
.rm-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-news__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-item__over svg { width: 13px; height: 13px; fill: currentColor; vertical-align: -2px; }
.rm-newsArticle__title { font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin: 4px 0 14px; }
.rm-newsArticle .know-content { font-size: .98rem; }
.rm-section-title > svg { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }
.rm-calFilterBar--plain { background: none; padding: 0 2px; }

/* Herunterziehen zum Neuladen (js/pullRefresh.js, 2026-11-16) */
.rm-ptr { position: absolute; left: 50%; top: 0; z-index: 30; pointer-events: none; opacity: 0; transform: translate(-50%, -48px); }
.rm-ptr__ring { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rm-surface); color: var(--rm-muted); box-shadow: 0 3px 12px rgba(0,0,0,.18); border: 1px solid var(--rm-border); }
.rm-ptr__ring svg { width: 22px; height: 22px; fill: currentColor; }
.rm-ptr--ready .rm-ptr__ring { color: var(--rm-element); }
.rm-ptr--busy .rm-ptr__ring { color: var(--rm-element); }
.rm-ptr--busy .rm-ptr__ring svg { animation: rmSpin .8s linear infinite; }

/* Startseite (pages/home.js, Konzept A, 2026-11-16): Foto mit Begrüßung,
   Kacheln (js/homeTiles.js), Ankündigung, Termine, offene Kontrollen. */
.rm-view--home { padding: 0; max-width: none; }
.rm-view--home [hidden] { display: none !important; }
.rm-home__top { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.rm-home__top > [data-auth]:not(:empty) { padding-top: 12px; }
.rm-home__top .rm-warn { margin-top: 12px; }
.rm-hero { position: relative; min-height: 196px; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background-color: #5f6a70; background-image: repeating-linear-gradient(135deg, #67737a 0 18px, #5c676d 18px 36px); background-size: cover; background-position: center; }
.rm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.66) 100%); }
.rm-hero__text { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; display: flex; flex-direction: column; gap: 6px; }
.rm-hero__date { font-size: .84rem; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.rm-hero__greet { font-size: 1.6rem; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.rm-hero__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; min-height: 32px; }
.rm-hchip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rm-hchip svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.rm-hchip:active { background: rgba(255,255,255,.32); }
.rm-hchip--plain { background: rgba(255,255,255,.14); font-weight: 600; }
.rm-home__sheet { position: relative; margin-top: -16px; background: var(--rm-bg); border-radius: 18px 18px 0 0; }
.rm-home__sheet > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.rm-home__sheet { padding: 16px 16px 20px; }
.rm-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 2px 8px; font-size: 1rem; font-weight: 800; }
.rm-home__head .rm-link { font-size: .88rem; }

/* Kacheln: 1-6, auf 6 Spalten verteilt (4 = 2x2, 5 = 3 + 2) */
.rm-qtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rm-qtile { grid-column: span 2; border: 0; border-radius: 16px; background: var(--tile, var(--rm-element)); color: #fff; min-height: 88px; padding: 12px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; text-align: left; font-size: .9rem; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tile, #000) 28%, transparent); hyphens: auto; overflow-wrap: anywhere; }
.rm-qtile svg { width: 26px; height: 26px; fill: currentColor; flex: 0 0 auto; }
.rm-qtile:active { filter: brightness(.9); transform: scale(.98); }
.rm-qtiles--1 .rm-qtile { grid-column: span 6; }
.rm-qtiles--2 .rm-qtile, .rm-qtiles--4 .rm-qtile { grid-column: span 3; }
.rm-qtiles--5 .rm-qtile:nth-child(n+4) { grid-column: span 3; }
.rm-qtiles--1 .rm-qtile, .rm-qtiles--2 .rm-qtile, .rm-qtiles--4 .rm-qtile, .rm-qtiles--5 .rm-qtile:nth-child(n+4) {
  min-height: 64px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }

/* Aktuelle Ankündigung */
.rm-homeNews { width: 100%; border: 0; text-align: left; background: var(--rm-surface); color: var(--rm-text); border-radius: 16px; box-shadow: var(--rm-shadow);
  display: flex; gap: 12px; padding: 10px; align-items: center; }
.rm-homeNews__img { flex: 0 0 auto; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--rm-surface-2); }
.rm-homeNews__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-homeNews__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, #c2410c 14%, transparent); color: #c2410c; }
.rm-homeNews__icon svg { width: 24px; height: 24px; fill: currentColor; }
.rm-homeNews__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-homeNews__over { font-size: .76rem; color: var(--rm-muted); }
.rm-homeNews__over b { color: #c2410c; }
.rm-homeNews__title { font-weight: 700; font-size: .97rem; }
.rm-homeNews__excerpt { font-size: .84rem; color: var(--rm-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Nächster Termin (groß) und weitere */
.rm-nextEv { width: 100%; border: 0; text-align: left; background: var(--rm-surface); color: var(--rm-text); border-radius: 16px; box-shadow: var(--rm-shadow);
  display: flex; gap: 12px; padding: 12px; align-items: center; }
.rm-nextEv__date { flex: 0 0 auto; width: 58px; border-radius: 12px; padding: 6px 0; display: flex; flex-direction: column; align-items: center;
  background: color-mix(in srgb, var(--ev, var(--rm-element)) 15%, transparent); color: color-mix(in srgb, var(--ev, var(--rm-element)) 75%, var(--rm-text)); }
.rm-nextEv__date small { font-size: .7rem; font-weight: 700; }
.rm-nextEv__date b { font-size: 1.45rem; line-height: 1.05; }
.rm-nextEv__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rm-nextEv__title { font-weight: 700; font-size: 1.02rem; }
.rm-nextEv__sub { font-size: .85rem; color: var(--rm-muted); }
.rm-nextEv__end { flex: 0 0 auto; }
.rm-home__more { margin-top: 8px; }

/* Offene Kontrollen/Inventuren auf der Startseite: schmale Hinweiszeilen */
.rm-openRows { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.rm-openRow { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; text-align: left; border-radius: 12px; padding: 8px 12px; min-height: 38px;
  font-size: .86rem; line-height: 1.25; background: #fff4e5; color: #7a4100; }
.rm-openRow svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.rm-openRow__text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-openRow__chev { opacity: .6; }
.rm-openRow--danger { background: #fde8eb; color: #9b1c2e; }
:root[data-theme="dark"] .rm-openRow { background: #3d2c10; color: #ffd591; }
:root[data-theme="dark"] .rm-openRow--danger { background: #43202a; color: #ffb3c0; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .rm-openRow { background: #3d2c10; color: #ffd591; }
  :root[data-theme="system"] .rm-openRow--danger { background: #43202a; color: #ffb3c0; }
}
