/* Serviceportal v2 – Tokens und Gerüst (P3018). Werte aus der Referenz tokens.css. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rot: #F0141E;
  --dunkel: #2B3038;
  --text: #111111;
  --text-2: #333333;
  --text-3: #595959;
  --schiefer: #4A5459;
  --linie: #E8ECEE;
  --salbei: #E1E7E3;
  --grau-hell: #C9CFD3;
  --grau-mittel: #959DA1;
  --rahmen: #D3DADC;
  --feld: #F2F2F2;
  --grund: #F7F7F7;
  --weiss: #FFFFFF;
  --schleier: rgba(17, 17, 17, .45);
  --ink: #111111;
  --muted: #595959;
  --bg: #F7F7F7;
  --card: #fff;
  --line: #E8ECEE;
  --brand: #2B3038;
  --accent: #111111;
  --accent-ink: #fff;
  --r: 20px;
  --schrift: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  padding-bottom: 64px;
  min-height: 100dvh;
}
html { background: var(--rot); }
b, strong { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }

.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: 64px;
  background: var(--rot);
  display: flex;
  align-items: center;
  padding: 0 12px 0 20px;
  gap: 12px;
}
.bar img { height: 21px; display: block; }
.portal-ver {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.hlp {
  margin-left: auto;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, .9);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

main { padding: 0 0 24px; outline: none; max-width: none; }
body.angemeldet main { padding: 0; }
body.hat-leiste { padding-bottom: 340px; }
body.hat-leiste.leiste-hoch { padding-bottom: 440px; }

.hs {
  background: linear-gradient(180deg, var(--salbei) 0%, var(--linie) 100%);
  padding: 18px 20px 14px;
}
.ttl, .hs .ttl, .lg .ttl {
  font-size: 22px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--text);
  margin: 0;
}
.ttl span, .lg .ttl span, .hdr .tt span { font-weight: 500; color: var(--schiefer); }
.hs-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.uhr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--text-2);
  font-weight: 500;
  background: rgba(255, 255, 255, .7);
  border-radius: 20px;
  padding: 6px 14px 6px 10px;
}
.akku-kopf {
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.out2, .out, .pin-vergessen, .text-btn {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 48px;
  padding: 0 4px;
}
/* Paket 6: in der Handy-Kopfzeile steht das Abmelden-Symbol statt des Textlinks. */
.out2 {
  font-size: 16px;
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  text-decoration: none;
  color: var(--text-2);
}
.sp { flex: 1; }

.lbl, .sec {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  padding: 12px 22px 0;
}
.act {
  margin: 14px 16px 0;
  height: 58px;
  border-radius: 30px;
  background: #fff;
  border: 2px solid var(--dunkel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.act-hinweis { display: none; }
.act-knopf { display: inline-flex; align-items: center; gap: 10px; }
.bloecke + .act { margin-top: 22px; }
.standzeile {
  margin: 10px 22px 0;
  font-size: 15px;
  color: var(--schiefer);
}
.blk {
  margin: 8px 16px 0;
  background: #fff;
  border-radius: 20px;
  padding: 12px 12px 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 80px;
  text-decoration: none;
  color: inherit;
}
.blk .ib {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.blk .ib.sos { background: var(--salbei); color: var(--rot); }
.side a[href="#/uhr/kontakte"] .ic { color: var(--rot); }
.blk .ib.basis { background: var(--salbei); }
.blk .ib.mehr { background: var(--linie); }
.blk h3 { font-size: 19px; font-weight: 600; line-height: 1.2; margin: 0; }
.blk p { font-size: 16px; color: var(--schiefer); line-height: 1.3; margin: 2px 0 0; }
.blk .cnt { font-size: 15px; color: var(--text); font-weight: 600; margin-top: 4px; }
.blk-tx { flex: 1; min-width: 0; }
.ic { display: inline-flex; flex: none; vertical-align: middle; }
.ic svg { display: block; }

.chg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--dunkel);
  background: var(--linie); border-radius: 11px; padding: 2px 9px 2px 7px;
}
.chg:before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--dunkel); }
.upd {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--dunkel); border-radius: 11px; padding: 2px 10px;
}

.su {
  position: fixed;
  left: 0; right: 0; bottom: 64px;
  z-index: 25;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 24px rgba(43, 48, 56, .12);
  padding: 11px 16px 14px;
}
.su .sr { display: flex; gap: 12px; align-items: flex-start; }
.su .si {
  width: 34px; height: 34px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--linie);
}
.su .s1 { font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--text); }
.su .s2 { font-size: 15px; color: var(--schiefer); line-height: 1.35; margin-top: 2px; }
.su.ue .si { color: var(--dunkel); }
.chg.chg-ue:before { background: transparent; border: 2px solid var(--dunkel); border-right-color: transparent; width: 6px; height: 6px; }
.in.wahl.gesperrt { opacity: .55; }
.su .btn, .su .btn2 { width: 100%; height: 52px; min-height: 52px; margin-top: 9px; }
.su .leiste-weg { margin-top: 8px; min-height: 44px; }
.su .cnt {
  display: inline-flex; min-width: 30px; height: 30px; border-radius: 15px;
  background: #fff; color: var(--text); font-size: 16px; font-weight: 700;
  align-items: center; justify-content: center; padding: 0 8px;
}
.su.ok { background: var(--salbei); }
.nw { white-space: nowrap; }
.punkt { width: 11px; height: 11px; border-radius: 6px; background: var(--dunkel); display: block; }

.btn, button.btn {
  min-height: 58px;
  height: auto;
  border-radius: 29px;
  background: var(--text);
  color: #fff;
  border: 2px solid var(--text);
  font-size: 18px;
  font-weight: 600;
  padding: 0 22px;
}
.btn.secondary, .btn2 {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--text);
}
.btn.danger, .btn.gefahr {
  background: var(--rot);
  color: #fff;
  border: 2px solid var(--rot);
}
.btn2 {
  min-height: 58px;
  border-radius: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn[disabled], .btn2[disabled], button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn.danger:disabled::before { content: "🔒"; margin-right: 6px; }

.nur-desktop { display: none; }
.lg {
  background: linear-gradient(180deg, var(--salbei) 0%, var(--linie) 100%);
  padding: 44px 20px 28px;
}
.lg .ttl { font-size: 27px; }
.lg .lead { font-size: 17px; color: var(--text-2); margin: 14px 0 0; line-height: 1.4; }
.fl { margin: 0 16px; }
.fl label { display: block; font-size: 17px; font-weight: 600; margin: 20px 4px 8px; color: var(--text); }
.in {
  height: 60px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--grau-hell);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.in:focus-within { border-color: var(--dunkel); box-shadow: 0 0 0 4px rgba(43, 48, 56, .10); }
.in input {
  border: 0;
  min-height: 0;
  min-width: 0;
  height: 52px;
  padding: 0;
  width: 0;
  flex: 1 1 0;
  background: transparent;
  font-size: 19px;
  box-shadow: none;
}
.in .zeigen {
  background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--text); min-height: 48px; cursor: pointer; padding: 0 0 0 8px;
  flex: none; white-space: nowrap;
}
.fl .btn.block { margin-top: 28px; height: 60px; }
.pin-vergessen { display: flex; width: 100%; align-items: center; justify-content: center; margin-top: 14px; font-size: 17px; }
.sos-wahl { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }

.top {
  display: flex; align-items: center; min-height: 60px;
  padding: 0 12px 0 6px; background: var(--grund);
}
.bk {
  min-height: 48px; display: inline-flex; align-items: center; gap: 2px;
  font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; padding-right: 10px;
}
.top .nr { margin-left: auto; font-size: 15px; color: var(--text-3); }
.h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.5px; margin: 6px 0 0; padding: 0 20px; }
.titelzeile { display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.titelzeile .h1 { padding: 0; margin: 6px 0 0; flex: 1 1 auto; min-width: 0; }
.titelzeile .qmark { flex: none; margin-left: 0; }
.unterkopf .lead { font-size: 17px; color: var(--text-2); padding: 8px 20px 0; margin: 0; }
.crumb { display: none; }

.card { border-radius: 20px; border-color: var(--linie); }
.hdr, .side { display: none; }
.inhalt .card { margin: 12px 16px 0; }
.inhalt .okbox:not(.card),
.inhalt .badbox:not(.card),
.inhalt .warnbox:not(.card),
.inhalt .wait:not(.card) { margin: 12px 16px 0; }
.inhalt .card.liste, .inhalt .card.klingel { padding: 0; }
.inhalt > p.lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.4;
  margin: 12px 16px 0;
}
.inhalt .card .lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  padding: 12px 16px;
}
.fld .lead,
.li .tx .lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.4;
}
.inhalt .card.klingel.erinnerung-abstand { padding: 14px 16px; }

.sitzung { position: fixed; inset: 0; z-index: 40; }
dialog.sitzung {
  position: fixed; inset: 0; z-index: 80;
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
  border-radius: 0; box-shadow: none; transform: none; overflow: visible;
}
dialog.sitzung::backdrop { background: transparent; }
.sitzung-schleier { position: absolute; inset: 0; background: var(--schleier); }
.sitzung-blatt, dialog {
  background: #fff;
  border: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}
.sitzung-blatt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 28px;
}
.griff { width: 44px; height: 5px; border-radius: 3px; background: var(--grau-hell); margin: -12px auto 18px; }
.sitzung-blatt h2, dialog h2 { font-size: 23px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.sitzung-blatt p, dialog p { font-size: 17px; color: var(--text-2); margin: 8px 0 0; line-height: 1.4; }
.sitzung-blatt .btn, .sitzung-blatt .btn2 { margin-top: 12px; }
dialog { padding: 26px 20px 28px; max-width: 560px; width: calc(100% - 24px); }
dialog::backdrop { background: var(--schleier); }
@media (max-width: 899px) {
  dialog { margin: auto auto 0; width: 100%; max-width: none; border-radius: 26px 26px 0 0; }
}

/* P3019: Kontakte, Basisfunktionen, Position */
.eb { font-size: 14px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--schiefer); font-weight: 600; margin: 4px 0 0; padding: 0 20px; }
.chain { position: relative; margin: 8px 16px 0; }
.chain:before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: var(--rahmen); }
.ck { display: flex; gap: 10px; align-items: center; margin-top: 8px; position: relative; }
.chain .num { width: 44px; height: 44px; border-radius: 22px; background: var(--dunkel); color: #fff; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 4px var(--grund); }
.chain .num.e { background: var(--grund); color: var(--text-3); border: 2px dashed var(--grau-hell); }
.cb { flex: 1; background: #fff; border-radius: 18px; padding: 8px 10px 8px 14px; display: flex; align-items: center; min-height: 78px; min-width: 0; }
.cb.e { min-height: 44px; background: transparent; border: 2px dashed var(--rahmen); color: var(--text-3); font-size: 16px; }
a.cb.e { text-decoration: none; color: inherit; }
.cb .t, .li .t, .q { font-size: 18px; font-weight: 600; }
.cb .s, .li .s, .q .s { font-size: 16px; color: var(--text-2); margin-top: 1px; font-weight: 400; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dunkel); background: var(--salbei); border-radius: 12px; padding: 3px 10px; margin-top: 6px; font-weight: 500; }
.cb .tx, .li .tx { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.pfeile { display: flex; gap: 6px; }
.mv { width: 48px; height: 48px; border-radius: 24px; border: 2px solid var(--rahmen); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--grau-hell); padding: 0; }
.mv.runter { transform: rotate(180deg); }
.ck .t, .ck .s { overflow-wrap: anywhere; }
.sms-fuss.doppelt { display: flex; flex-direction: column; gap: 8px; }
.sms-fuss.doppelt .btn { width: 100%; }
.mv.on { border-color: var(--dunkel); color: var(--text); }
.kette-kopf { display: flex; align-items: center; gap: 20px; margin: 8px 16px 0; }
.kette-kopf .sec { flex: 1; padding-left: 6px; padding-right: 8px; }
.kopf-btn { display: none; }
.kette-fuss, .sms-fuss { margin: 16px; }
.kette-fuss .btn, .sms-fuss .btn { width: 100%; }
.kontakte-layout { display: block; }
.hinweis-karte { margin: 16px; background: #fff; border-radius: 20px; padding: 16px; color: var(--text-2); font-size: 16px; line-height: 1.4; }
.fld { margin: 0 16px; }
.fld label { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin: 12px 4px 6px; }
.fld .hin { font-weight: 400; color: var(--text-3); }
.fld .in input { border: 0; background: transparent; width: 100%; font-size: 18px; }
.kontakt-kopf { display: flex; justify-content: flex-end; padding: 0 20px; }
.q { padding: 12px 16px 2px; }
.hakzeile { gap: 12px; }
button.hak { width: 28px; height: 28px; border-radius: 8px; border: 2.5px solid var(--text-3); background: #fff; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
button.hak.on { background: var(--dunkel); border-color: var(--dunkel); }
button.hak.sperre { opacity: .5; }
.schnell { display: flex; gap: 8px; padding: 4px 16px 8px; }
.btn2.klein { width: auto; min-height: 40px; height: 40px; font-size: 15px; padding: 0 16px; }
.nurpro { font-size: 13px; color: var(--text-3); }
.klingel { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; flex-wrap: wrap; }
.klingel.klingel-kurz .s { white-space: nowrap; }
.klingel.klingel-kurz .step-w { min-width: 52px; }
.klingel .tx { flex: 1 1 8rem; min-width: 0; }
.klingel-schritt { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.klingel-hinweis { flex: 1 0 100%; margin: 2px 0 0; }
.sb { width: 48px; height: 48px; border-radius: 24px; border: 2px solid var(--text); background: #fff; font-size: 24px; line-height: 1; padding: 0; }
.step-w { font-size: 20px; font-weight: 600; min-width: 72px; text-align: center; }
.inhalt .li, a.li, button.li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px 10px 16px; border-top: 1px solid var(--linie); width: 100%; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.card > .li:first-child, .card > button.li:first-child, .card > a.li:first-child { border-top: none; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--linie); display: flex; align-items: center; justify-content: center; flex: none; }
.tg { width: 56px; height: 32px; border-radius: 16px; background: #c9cfd3; border: 0; padding: 0; position: relative; flex: none; }
.tg.on { background: var(--dunkel); }
.tg span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; background: #fff; }
.tg.on span { left: 28px; }
.punktwahl { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--text-3); flex: none; display: inline-block; }
.punktwahl.on { border-color: var(--text); box-shadow: inset 0 0 0 5px #fff; background: var(--text); }
.zeiten { display: flex; gap: 10px; padding: 0 16px 14px 56px; }
.zeiten.fuenf { flex-wrap: wrap; padding: 0 16px 14px; }
.zeiten.fuenf .tm { flex: 1 1 calc(50% - 5px); min-width: 0; }
.zeiten.fuenf .tm input { min-width: 0; max-width: 100%; }
.tm { flex: 1; background: #fff; border: 2px solid var(--rahmen); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; }
.tm small { color: var(--text-3); font-size: 13px; }
.tm input { border: 0; background: transparent; font-size: 18px; font-weight: 600; width: 100%; padding: 0; min-height: 32px; }
.karte-warte { margin: 16px; background: var(--linie); border-radius: 20px; padding: 28px 16px; text-align: center; }
.karte-warte .btn { width: 100%; }
.inhalt .map { height: 280px; border-radius: 20px; margin: 16px; background: var(--linie); }
.inhalt .map.map-pos { height: 360px; position: relative; }
.inhalt .map > iframe.karte-embed { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }
.map.karte-hinweis { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.s.block { display: block; }
.wahl .extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nre { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--schiefer); border: 1.5px solid var(--grau-hell); border-radius: 11px; padding: 1px 9px; }
.wahl .t, .wahl .s, a.li .t, a.li .s, button.li .t, button.li .s { display: block; }
.wahl .s, a.li .s, button.li .s { margin-top: 4px; }
.wahl .s b { color: var(--text); font-weight: 600; }
.sprache-zeile { flex-wrap: wrap; cursor: default; }
.sprache-zeile .tx { display: flex; flex-direction: column; flex: 1 1 10rem; }
.sprache-zeile .quelle { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.sprache-wahl { display: flex; align-items: center; gap: 10px; flex: 1 0 100%; padding-left: 54px; flex-wrap: wrap; }
.in.wahl { height: 52px; padding: 0 12px 0 14px; position: relative; flex: 1 1 180px; max-width: 260px; }
.in.wahl select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-size: 18px; font-weight: 600; color: var(--text); width: 100%; height: 48px; padding-right: 28px; cursor: pointer; outline: none; }
.in.wahl:after { content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.4px solid var(--text-2); border-bottom: 2.4px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
.weitere-spalten { display: flex; flex-direction: column; }
.weitere-links, .weitere-rechts { display: contents; }
.weitere-erinnerung { order: 1; }
.weitere-homepoint { order: 2; }
.weitere-service { order: 3; }
.weitere-uhr { order: 4; }
.seg { display: flex; gap: 4px; margin: 16px 16px 0; padding: 4px; background: #fff; border: 1px solid var(--linie); border-radius: 16px; }
.seg button { flex: 1; min-height: 48px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; }
.inhalt .card .nacht-seg { flex-wrap: wrap; min-width: 0; max-width: calc(100% - 32px); margin: 8px 16px 16px; }
.inhalt .card .nacht-seg button { flex: 1 1 9rem; min-width: 0; white-space: normal; }
.seg button.on { background: var(--dunkel); color: #fff; }
.chg.later { background: var(--linie); color: var(--text-3); }
.inhalt .card.liste .li[data-funktion="keine"] { cursor: default; }

@media (min-width: 900px) {
  :root { --r: 22px; }
  body { padding-bottom: 72px; }
  body.hat-leiste { padding-bottom: 240px; }
  body.hat-leiste.leiste-hoch { padding-bottom: 300px; }
  .bar { height: 72px; padding: 0 28px 0 40px; }
  .bar img { height: 25px; }
  .hlp { height: 48px; padding: 0 22px 0 16px; font-size: 18px; }
  .hs { display: none; }
  .top { display: flex; }
  .top .nr { display: none; }
  .sms-fuss.doppelt { flex-direction: row; }
  .sms-fuss.doppelt .btn { width: auto; flex: 1; }
  .hdr {
    display: flex; align-items: center; gap: 24px;
    height: 80px; padding: 0 40px;
    background: #fff; border-bottom: 1px solid var(--linie);
    position: sticky; top: 0; z-index: 5;
  }
  .hdr .tt { font-size: 23px; font-weight: 600; letter-spacing: -.3px; }
  .hdr .uhr { background: var(--salbei); padding: 7px 16px 7px 12px; }
  .hdr .out { margin-left: auto; font-size: 17px; height: 48px; }
  .layout { display: flex; align-items: flex-start; min-height: calc(100dvh - 80px - 72px); }
  .side {
    display: block; width: 280px; flex: none;
    background: #fff; border-right: 1px solid var(--linie);
    padding: 28px 18px; min-height: calc(100dvh - 80px - 72px);
    position: sticky; top: 80px;
  }
  .inhalt { flex: 1; padding: 34px 56px 40px; min-width: 0; }
  .nv {
    display: flex; align-items: center; gap: 14px;
    height: 58px; border-radius: 16px; padding: 0 14px;
    font-size: 18px; font-weight: 500; color: var(--text-2);
    margin-bottom: 6px; text-decoration: none;
  }
  .nv.on { background: var(--salbei); color: var(--text); font-weight: 600; }
  .nv .dt { margin-left: auto; width: 10px; height: 10px; border-radius: 5px; background: var(--dunkel); }
  .bloecke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
  .blk { margin: 0; border-radius: 22px; min-height: 210px; align-items: flex-start; flex-direction: column; padding: 22px; }
  .blk .chev { display: none; }
  .act {
    margin: 22px 0 0; height: 76px; border-radius: 24px; justify-content: space-between;
    padding: 0 18px 0 22px; background: var(--linie); border: 0; font-weight: 500; color: var(--text-2);
  }
  .bloecke + .act { margin-top: 28px; }
  .act-hinweis { display: block; }
  .act-knopf {
    background: var(--text); color: #fff; border-radius: 29px; height: 52px; padding: 0 22px; font-weight: 600;
  }
  .lbl { padding: 0; }
  .standzeile { margin: 8px 0 0; }
  .h1 { font-size: 34px; letter-spacing: -.6px; padding: 0; }
  .titelzeile { padding: 0; }
  .eb { padding: 0; }
  .unterkopf .lead { padding: 8px 0 0; font-size: 18px; max-width: 820px; }
  .inhalt > p.lead { margin: 12px 0 0; font-size: 18px; max-width: 820px; }
  .crumb { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text-3); margin: 0; padding: 0; }
  .crumb a { color: var(--text-3); text-decoration: none; }
  .crumb b { color: var(--text); font-weight: 600; }
  .card { border-radius: 22px; }
  .inhalt .card { margin: 16px 0 0; }
  .inhalt .okbox:not(.card),
  .inhalt .badbox:not(.card),
  .inhalt .warnbox:not(.card),
  .inhalt .wait:not(.card) { margin: 16px 0 0; }
  .su {
    left: 280px; bottom: 72px; height: auto; min-height: 96px;
    border-radius: 0;
    box-shadow: 0 -10px 30px rgba(43, 48, 56, .12);
    display: flex; align-items: center; gap: 20px;
    padding: 16px 40px;
  }
  .su .sr { flex: 1; align-items: center; }
  .su .btn, .su .btn2 { width: auto; margin-top: 0; height: 58px; min-height: 58px; padding: 0 30px; }
  .su .leiste-weg { margin-top: 0; }
  .nur-handy { display: none; }
  .nur-desktop { display: block; }
  body:not(.angemeldet) main {
    min-height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
  }
  .login-buehne {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--salbei), var(--linie));
    padding: 48px 24px;
  }
  .login-karte {
    width: 540px;
    max-width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(43, 48, 56, .12);
    padding: 44px 48px 36px;
  }
  .login-karte .lg { background: none; padding: 0; }
  .login-karte .lg .ttl { font-size: 30px; letter-spacing: -.5px; }
  .login-karte .fl { margin: 0; }
  .login-karte .fl label:first-of-type { margin-top: 26px; }
  .sitzung-blatt, dialog {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%);
    width: 560px; max-width: calc(100% - 48px);
    border-radius: 26px;
    position: fixed;
  }
  dialog { position: fixed; margin: 0; transform: translate(-50%, -50%); top: 50%; left: 50%; }
  dialog.sitzung { top: 0; left: 0; transform: none; width: 100%; max-width: none; }
  .inhalt .card.basis-raster {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .basis-raster > .li { background: #fff; border: 1px solid var(--linie); border-radius: 22px; min-height: 86px; }
  .kontakte-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
  .kette-kopf { margin: 0 0 8px; }
  .kopf-btn { display: inline-flex; width: auto; min-height: 52px; margin: 0; }
  .kette-fuss { display: none; }
  .chain, .fld, .sms-fuss, .hinweis-karte, .karte-warte, .inhalt .map { margin-left: 0; margin-right: 0; }
  .hinweis-karte { margin-top: 28px; }
  .weitere-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 28px; align-items: start; }
  .weitere-links, .weitere-rechts { display: flex; flex-direction: column; gap: 8px; order: 0; }
  .seg { margin-left: 0; margin-right: 0; }
  .zeiten.fuenf { flex-wrap: nowrap; }
  .zeiten.fuenf .tm { flex: 1 1 0; }
}

/* Paket 5: Fortschritt beim Senden der PRO1/PRO2-Kontakte. Desktop-Leiste bleibt eine Zeile. */
.card.rutsch { padding: 14px 14px 8px; }
.rutsch-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rutsch-meta .s1 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.rutsch-meta .s2 { font-size: 15px; color: var(--schiefer); margin-top: 2px; }
.rutsch-zeit {
  font-size: 15px; font-weight: 600; color: var(--dunkel);
  background: var(--linie); border-radius: 11px; padding: 2px 10px; white-space: nowrap;
}
.fortschritt { height: 10px; background: var(--linie); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.fortschritt > span { display: block; height: 100%; background: var(--dunkel); border-radius: 5px; }
.rutsch-hinweis { margin: 10px 0 0; padding: 8px 10px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.rutsch-hinweis.ok { background: var(--salbei); color: var(--text); }
.rutsch-hinweis.still { background: #fff4d6; color: #5c4700; border: 1px solid #e6c56a; }
.rutsch-hinweis.weg { background: #edcbc8; color: #6f1010; border: 1px solid #e0b0ac; }
.rutsch-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.rutsch-zeile {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; border-top: 1px solid var(--linie); padding: 6px 0;
}
.rutsch-zeile:first-child { border-top: 0; }
.rutsch-num {
  width: 36px; height: 36px; border-radius: 18px; background: var(--dunkel); color: #fff;
  font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none;
}
.rutsch-zeile.wartet .rutsch-num { background: var(--grund); color: var(--text-3); border: 2px dashed var(--grau-hell); }
.rutsch-zeile .tx { flex: 1; min-width: 0; }
.rutsch-zeile .t { display: block; font-size: 16px; font-weight: 600; }
.rutsch-zeile .s { display: block; font-size: 14px; color: var(--text-2); }
.rutsch-pill {
  flex: none; font-size: 13px; font-weight: 600; border-radius: 11px; padding: 3px 8px;
  background: var(--linie); color: var(--dunkel);
}
.rutsch-zeile.ok .rutsch-pill { background: var(--salbei); }
.rutsch-zeile.aktiv .rutsch-pill { background: var(--dunkel); color: #fff; }
.rutsch-zeile.aktiv .rutsch-pill:before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px;
  background: #fff; margin-right: 6px;
}
.rutsch-zeile.still .rutsch-pill { background: #fff4d6; color: #5c4700; }
.rutsch-zeile.weg .rutsch-pill { background: #edcbc8; color: #6f1010; }
.su.rutsch-leiste .fortschritt { margin-top: 8px; }
@media (min-width: 900px) {
  .su.rutsch-leiste .txt { flex: 1; min-width: 0; }
  .su.rutsch-leiste .fortschritt { width: 220px; margin: 0; flex: none; }
  .card.rutsch { margin-left: 0; margin-right: 0; }
}

/* Paket 7a: Kontakt-Detail zweispaltig ab 900 px. Darunter display:contents, einspaltig wie bisher. */
.kontakt-2sp,
.kontakt-optionen { display: contents; }
.kontakt-optionen > p.lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.4;
  margin: 12px 16px 0;
}
@media (min-width: 900px) {
  .kontakt-2sp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "links rechts" "klingel rechts";
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-items: start;
  }
  .kontakt-2sp.daten {
    grid-template-areas:
      "links rechts"
      "klingel rechts"
      "notruf rechts"
      "zusatz rechts";
    grid-template-rows: auto auto auto auto;
  }
  .kontakt-2sp > .fld { grid-area: links; }
  .kontakt-2sp > .kontakt-optionen {
    grid-area: rechts;
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
  }
  .kontakt-2sp > .card.klingel { grid-area: klingel; }
  .kontakt-2sp.daten > .card.kontakt-notruf { grid-area: notruf; }
  .kontakt-2sp.daten > .card.kontakt-zusatz { grid-area: zusatz; }
  .kontakt-optionen > p.lead { margin: 12px 0 0; font-size: 18px; max-width: 820px; }
}

.serientest-card .serientest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.serientest-range,
.serientest-actions {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.serientest-range label,
.serientest-actions label {
  margin-right: 8px;
}
.serientest-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.serientest-table-wrap { overflow-x: auto; margin-top: 16px; }
.serientest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.serientest-table th,
.serientest-table td {
  border-bottom: 1px solid var(--linie);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}
.serientest-ok { color: #0a7a3e; font-weight: 600; }
.serientest-fail { color: var(--rot); font-weight: 600; }
