:root {
  --primaer: #0a6a6e; --primaer-dunkel: #08555a; --gruen: #1f9d55; --rot: #c8372d;
  --grund: #f3f6f8; --karte: #fff; --text: #17242b; --leise: #66757d; --linie: #dde5ea;
  --radius: 14px;
  --flaeche: #e8eff2; --flaeche2: #eef2f4; --flaeche-hell: #e3eef2; --eingabe: #fff; --th: #f8fafb; --nav: #fff; --schatten: rgba(20,40,50,.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--grund); color: var(--text); }
a { color: var(--primaer); }
h1 { font-size: 1.5rem; margin: .2em 0 .5em; }
h2 { font-size: 1.1rem; margin: 1.4em 0 .6em; }
.karte h2:first-child, .karte h1:first-child { margin-top: 0; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
code { background: var(--flaeche); padding: 1px 5px; border-radius: 4px; font-size: .85em; word-break: break-all; }

.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--primaer); color: #fff; }
.marke { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logo { display: inline-block; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; background: rgba(255,255,255,.18); border-radius: 50%; margin-right: 4px; }
.wer { font-size: .9rem; opacity: .9; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
body.admin main { max-width: 1150px; }

.karte { background: var(--karte); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 3px var(--schatten); }
.karte.schmal { max-width: 420px; margin: 40px auto; }
.meldung { background: #e5f5ec; border: 1px solid #b6e2c8; color: #145c34; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.fehler { background: #fdecea; border: 1px solid #f3c1bc; color: #8a1f17; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.warnung { background: #fff6dd; border: 1px solid #f0d98a; color: #6b5100; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.tipp ol { margin: .5em 0 0; padding-left: 1.3em; }
.hinweis { text-align: center; color: var(--leise); font-size: .95rem; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: var(--primaer); color: #fff;
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--primaer-dunkel); }
.knopf.gross { display: flex; width: 100%; padding: 18px; font-size: 1.15rem; border-radius: var(--radius); margin: 10px 0; min-height: 60px; }
.knopf.gruen { background: var(--gruen); } .knopf.rot { background: var(--rot); }
.knopf.hell { background: var(--flaeche-hell); color: var(--primaer); }
.knopf.klein { padding: 6px 10px; font-size: .85rem; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.unten { text-align: center; margin-top: 30px; color: var(--leise); }
.abstand { margin-top: 14px; }
.gruen-text { color: var(--gruen); }

.formular label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--leise); }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--text); border: 1px solid var(--linie); border-radius: 10px; background: var(--eingabe); }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 4px 0 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primaer); outline-offset: 0; border-color: transparent; }
.formular.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.formular.reihe h2 { flex-basis: 100%; margin: 0 0 4px; }
.formular.reihe label { flex: 1 1 160px; margin: 0; }
.inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline input { width: auto; flex: 1 1 110px; padding: 6px 8px; margin: 0; }
.inline label { white-space: nowrap; }

.status { display: flex; gap: 14px; align-items: center; }
.punkt { width: 14px; height: 14px; border-radius: 50%; background: #aab5bb; flex: none; }
.status.an { border-left: 6px solid var(--gruen); }
.status.an .punkt { background: var(--gruen); box-shadow: 0 0 0 5px rgba(31,157,85,.18); animation: puls 2s infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 9px rgba(31,157,85,.05); } }
.status.fertig { flex-direction: column; text-align: center; }
.haken { width: 70px; height: 70px; border-radius: 50%; background: var(--gruen); color: #fff; font-size: 2.4rem; line-height: 70px; text-align: center; }
.objekt h1 { margin: .1em 0 .2em; font-size: 1.7rem; }

.kategorien { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.kategorien label span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--flaeche); font-size: .9rem; cursor: pointer; }
.kategorien input { position: absolute; opacity: 0; }
.kategorien input:checked + span { background: var(--primaer); color: #fff; }
.kategorien input:focus-visible + span { outline: 2px solid var(--primaer); outline-offset: 2px; }
.kamera { cursor: pointer; }
.fortschritt { padding: 10px; border-radius: 10px; background: var(--flaeche2); margin-bottom: 10px; text-align: center; }
.fortschritt.fehler { background: #fdecea; }
.fortschritt.wartet { background: #fff6dd; }
.galerie figure.wartet img { opacity: .55; }
.galerie figure.wartet figcaption { color: #8a6500; }
.formular label.auswahl { color: var(--text); padding: 8px 10px; border: 1px solid var(--linie); border-radius: 10px; }
.formular label.auswahl .klein { color: var(--leise); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.markierung { color: #b5470b; font-weight: 600; }
.pruefen { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #ffe9d6; color: #9a3d06; font-size: .8rem; font-weight: 600; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.galerie.gross { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galerie figure { position: relative; margin: 0; background: var(--flaeche2); border-radius: 10px; overflow: hidden; }
.galerie img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.galerie figcaption { font-size: .78rem; padding: 5px 7px; color: var(--leise); }
.galerie .loeschen { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.galerie .leer { grid-column: 1 / -1; }
body.admin .galerie .loeschen { display: none; }

.liste { list-style: none; padding: 0; margin: 0; background: var(--karte); border-radius: var(--radius); overflow: hidden; }
.liste li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }

/* Büro */
.adminnav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 16px; background: var(--nav); border-bottom: 1px solid var(--linie); align-items: center; }
.adminnav a { text-decoration: none; font-weight: 600; }
.adminnav .nav-rechts { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; color: var(--leise); }
.adminnav .nav-rechts a { font-weight: 400; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kachel { background: var(--karte); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px var(--schatten); }
.kachel b { display: block; font-size: 2rem; color: var(--primaer); }
.kachel span { color: var(--leise); font-size: .9rem; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.tabelle { overflow-x: auto; background: var(--karte); border-radius: var(--radius); box-shadow: 0 1px 3px var(--schatten); margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); background: var(--th); }
tr:last-child td { border-bottom: 0; }

/* QR-Druck */
body.druck { background: #fff; padding: 16px; }
.leiste { margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.qr-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.qr-karte { border: 2px dashed #9bb; border-radius: 16px; padding: 22px; text-align: center; page-break-inside: avoid; break-inside: avoid; }
.qr-firma { font-weight: 700; color: var(--primaer); font-size: 1.2rem; }
.qr-karte img { width: 260px; height: 260px; margin: 10px auto; display: block; }
.qr-objekt { font-size: 1.4rem; font-weight: 700; }
.qr-kunde { color: var(--leise); }
.qr-hinweis { margin-top: 10px; font-size: .9rem; }
@media print {
  .nicht-drucken { display: none !important; }
  body.druck { padding: 0; }
  .qr-raster { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body.admin main { padding: 10px; }
  th, td { padding: 8px; }
}

/* Logo & Copyright */
.firmenlogo { display: block; height: 38px; width: auto; max-width: 220px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.firmenlogo.weiss { background: none; padding: 0; height: 34px; }
.fuss { text-align: center; color: var(--leise); font-size: .75rem; padding: 18px 16px 28px; }
.qr-logo { display: block; max-width: 220px; max-height: 60px; margin: 0 auto 6px; object-fit: contain; }
.qr-copyright { text-align: center; color: #999; font-size: .7rem; margin-top: 14px; }

/* Sprachwahl */
.sprachwahl { margin: 22px 0 0; text-align: center; }
.sprachwahl label { display: inline-flex; align-items: center; gap: 8px; color: var(--leise); font-size: .9rem; }
.sprachwahl select { width: auto; margin: 0; padding: 6px 10px; }

/* Checkliste */
.aufgabe { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--linie); cursor: pointer; font-size: 1.02rem; }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--gruen); }
.aufgabe input:checked + span { color: var(--leise); text-decoration: line-through; }
.haken-liste { list-style: none; padding: 0; margin: 0; }
.haken-liste li { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.haken-liste li.ja { color: #145c34; }
.haken-liste li.nein { color: #8a1f17; }

/* Unterschrift */
canvas.unterschrift { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed #9bb; border-radius: 10px; background: #fff; touch-action: none; margin: 6px 0 10px; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; }
.knopfreihe .knopf { flex: 1; }
.abnahme-ok { font-weight: 600; color: #145c34; }
.unterschrift-bild { max-width: 100%; max-height: 120px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }

/* Objekt: Wochentage, Plan, Aufgaben */
.tage { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tage label span { display: inline-block; min-width: 34px; text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--flaeche); font-size: .85rem; cursor: pointer; }
.tage input { position: absolute; opacity: 0; }
.tage input:checked + span { background: var(--primaer); color: #fff; }
.tage input:focus-visible + span { outline: 2px solid var(--primaer); }
.plan-zeile, .aufgabe-zeile { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.plan-zeile input[type=time] { width: auto; display: inline-block; margin: 0 0 0 4px; padding: 6px; }
.inaktiv { opacity: .55; }
.kundenwahl { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0; }
.kundenwahl label { margin: 0 !important; color: var(--text) !important; }
.stand { font-weight: 600; }
.kachel.alarm { background: #fdecea; }
.kachel.alarm b { color: var(--rot); }
.schmal-links { max-width: 460px; }

/* Leserichtung von rechts nach links (Arabisch) */
[dir=rtl] .status.an { border-left: 0; border-right: 6px solid var(--gruen); }
[dir=rtl] .galerie .loeschen { right: auto; left: 6px; }
[dir=rtl] .kategorien input, [dir=rtl] .tage input { right: 0; }

/* Ausbaustufe 3 */
.zaehler { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rot); color: #fff; font-size: .75rem; text-align: center; }
a.kachel { text-decoration: none; color: inherit; }
.chip { border: 0; border-radius: 999px; background: var(--flaeche); padding: 9px 13px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip:active { background: var(--primaer); color: #fff; }
form.pause.aktiv { border-left: 6px solid #e0a100; }
[dir=rtl] form.pause.aktiv { border-left: 0; border-right: 6px solid #e0a100; }
.hinweise .hinweis-text { background: #fff6dd; border-radius: 10px; padding: 10px 12px; }
.tagesplan li { align-items: center; }
.reiter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.reiter a { padding: 8px 14px; border-radius: 10px; background: var(--flaeche); text-decoration: none; font-weight: 600; }
.reiter a.aktiv { background: var(--primaer); color: #fff; }
.code-gross { font-size: 2.4rem; font-weight: 700; letter-spacing: .2em; font-family: ui-monospace, Consolas, monospace; }
.kontroll-punkt { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.noten { display: flex; gap: 6px; margin: 8px 0; }
.noten label span { display: inline-block; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 10px; background: var(--flaeche); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.noten input { position: absolute; opacity: 0; }
.noten input:checked + span { background: var(--primaer); color: #fff; }
.noten input:focus-visible + span { outline: 2px solid var(--primaer); }
.karte h3 { font-size: 1rem; margin: .6em 0 .4em; }

/* Wechsel Büro <-> Handy, Einrichtungs-QR */
.kopf-rechts { display: flex; align-items: center; gap: 12px; }
.wechsel { color: #fff; font-size: .85rem; text-decoration: none; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; }
.wechsel:hover { background: rgba(255,255,255,.28); }
.einladung { text-align: center; }
.einladung-qr { width: 260px; max-width: 100%; height: auto; margin: 6px auto; display: block; }

/* QR-Scanner in der App */
.scanner { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.scanner video { width: 100%; max-width: 520px; max-height: 70vh; object-fit: cover; border-radius: 14px; }
.scanner-rahmen { position: absolute; width: min(64vw, 300px); aspect-ratio: 1; border: 4px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scanner-text { color: #fff; text-align: center; margin: 14px 0 6px; position: relative; z-index: 1; }
.scanner .knopf { max-width: 520px; position: relative; z-index: 1; background: #fff; color: var(--text); }
.galerie-knopf { display: flex; justify-content: center; width: 100%; margin: -2px 0 10px; }

/* ===== Ausbaustufe 4 ===== */
/* Dunkelmodus: folgt dem Handy, oder fest per Knopf unten (data-design) */
:root[data-design=dunkel] {
  --primaer: #2a9da2; --primaer-dunkel: #1f8287; --gruen: #34b46b; --rot: #e0584d;
  --grund: #0f1a1f; --karte: #18262d; --text: #e3ecef; --leise: #94a7b0; --linie: #2a3b43;
  --flaeche: #23343c; --flaeche2: #1f2f36; --flaeche-hell: #23363e; --eingabe: #111e24; --th: #1c2b32; --nav: #142228; --schatten: rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-design=hell]) {
    --primaer: #2a9da2; --primaer-dunkel: #1f8287; --gruen: #34b46b; --rot: #e0584d;
    --grund: #0f1a1f; --karte: #18262d; --text: #e3ecef; --leise: #94a7b0; --linie: #2a3b43;
    --flaeche: #23343c; --flaeche2: #1f2f36; --flaeche-hell: #23363e; --eingabe: #111e24; --th: #1c2b32; --nav: #142228; --schatten: rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-design=dunkel] .meldung { background: #12301f; border-color: #1d5a37; color: #a9e4c0; }
:root[data-design=dunkel] .fehler { background: #3a1714; border-color: #6b2a24; color: #f3b5ad; }
:root[data-design=dunkel] .warnung, :root[data-design=dunkel] .hinweise .hinweis-text { background: #33290c; border-color: #6a5418; color: #f0d98a; }
:root[data-design=dunkel] .pruefen { background: #3d2510; color: #f5b98a; }
:root[data-design=dunkel] .kopf { background: #0b4f52; }
@media (prefers-color-scheme: dark) {
  :root:not([data-design=hell]) .meldung { background: #12301f; border-color: #1d5a37; color: #a9e4c0; }
  :root:not([data-design=hell]) .fehler { background: #3a1714; border-color: #6b2a24; color: #f3b5ad; }
  :root:not([data-design=hell]) .warnung, :root:not([data-design=hell]) .hinweise .hinweis-text { background: #33290c; border-color: #6a5418; color: #f0d98a; }
  :root:not([data-design=hell]) .pruefen { background: #3d2510; color: #f5b98a; }
  :root:not([data-design=hell]) .kopf { background: #0b4f52; }
}
.design-knopf { background: none; border: 1px solid var(--linie); color: var(--leise); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .8rem; cursor: pointer; margin-top: 8px; }

/* Startseite Mitarbeiter */
.held { text-align: center; padding: 22px 18px; }
.held.an { border-top: 6px solid var(--gruen); }
.held.aus { border-top: 6px solid var(--linie); }
.held-kopf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--leise); }
.held.an .held-kopf { color: var(--gruen); }
.held-objekt { font-size: 1.45rem; font-weight: 700; margin: 6px 0 2px; }
.held-zeit { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.held .punkt { display: inline-block; }
.held.an .punkt { background: var(--gruen); box-shadow: 0 0 0 5px rgba(31,157,85,.18); animation: puls 2s infinite; }
.knopf.aus-knopf { min-height: 76px; font-size: 1.25rem; }
.woche { display: flex; justify-content: space-between; gap: 10px; }
.woche b { font-size: 1.3rem; display: block; }
.termine { display: grid; gap: 10px; }
.termin { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--karte); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 3px var(--schatten); }
.termin.naechster { outline: 2px solid var(--primaer); }
.termin-zeit { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.termin-was strong { display: block; }
.marke-naechster { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primaer); }
.termin.fertig { opacity: .6; }
.installieren { display: flex; gap: 12px; align-items: flex-start; }
.installieren img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.installieren .zu { margin-inline-start: auto; background: none; border: 0; font-size: 1.2rem; color: var(--leise); cursor: pointer; }

/* Checkliste je Raum */
.raum-kopf { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--primaer); font-weight: 700; }
.raum-kopf:first-of-type { margin-top: 4px; }

/* Vorher/Nachher */
.paar-knopf { position: absolute; left: 6px; top: 6px; border: 0; border-radius: 999px; background: var(--primaer); color: #fff; font-size: .75rem; padding: 4px 8px; cursor: pointer; }
.paar-marke { color: var(--primaer); font-weight: 600; }
.paare { display: grid; gap: 14px; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--karte); border-radius: var(--radius); padding: 8px; }
.paar figure { margin: 0; }
.paar img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.paar figcaption { font-size: .78rem; color: var(--leise); padding: 3px 2px; }

/* Bewertung */
.sterne { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.sterne input { position: absolute; opacity: 0; }
.sterne label { font-size: 2.6rem; color: var(--linie); cursor: pointer; line-height: 1; }
.sterne input:checked ~ label, .sterne label:hover, .sterne label:hover ~ label { color: #f2b01e; }
.sterne input:focus-visible + label { outline: 2px solid var(--primaer); border-radius: 6px; }
.stern-text { color: #e0a100; letter-spacing: 1px; white-space: nowrap; }

/* Diagramme im Büro */
.diagramm { width: 100%; height: auto; display: block; }
.diagramm text { fill: var(--leise); font-size: 13px; }
.diagramm .balken { fill: var(--primaer); }
.diagramm .balken.jetzt { fill: var(--gruen); }
.diagramm .gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm .wert { fill: var(--text); font-weight: 600; }
.hbalken { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 6px 10px; align-items: center; font-size: .9rem; }
.hbalken .spur { display: block; background: var(--flaeche2); border-radius: 6px; height: 14px; overflow: hidden; }
.hbalken .fuell { display: block; background: var(--primaer); height: 100%; border-radius: 6px; }
.hbalken .fuell.gut { background: var(--gruen); } .hbalken .fuell.mittel { background: #e0a100; } .hbalken .fuell.schlecht { background: var(--rot); }
.hbalken .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbalken .zahl { font-variant-numeric: tabular-nums; color: var(--leise); }

/* ===== Ausbaustufe 5 ===== */
.kachel-menue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.kachel-menue a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 10px; background: var(--karte); border-radius: var(--radius);
  box-shadow: 0 1px 3px var(--schatten); text-decoration: none; font-weight: 600; text-align: center; }
a.block-link { display: block; text-decoration: none; }
.termin-zeile { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.termin-zeile:last-child { border-bottom: 0; }
details.tausch summary { list-style: none; cursor: pointer; }
details.tausch summary::-webkit-details-marker { display: none; }
details.tausch[open] { flex-basis: 100%; }
.verlauf { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.blase { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: var(--karte); box-shadow: 0 1px 2px var(--schatten); }
.blase.links { align-self: flex-start; border-bottom-left-radius: 4px; }
.blase.rechts { align-self: flex-end; background: var(--flaeche-hell); border-bottom-right-radius: 4px; }
/* Wochenplan im Büro */
.wochenplan { overflow-x: auto; }
.wochenplan table { min-width: 900px; table-layout: fixed; }
.wochenplan td { vertical-align: top; padding: 6px; height: 64px; }
.wochenplan th:first-child, .wochenplan td:first-child { width: 140px; }
.wochenplan td.abwesend { background: repeating-linear-gradient(135deg, rgba(200,55,45,.10) 0 8px, transparent 8px 16px); }
.wochenplan td.beantragt { background: repeating-linear-gradient(135deg, rgba(224,161,0,.14) 0 8px, transparent 8px 16px); }
.wochenplan td.ziel { outline: 2px dashed var(--primaer); outline-offset: -3px; }
.wochenplan td.heute { background-color: rgba(10,106,110,.06); }
.plankarte { background: var(--flaeche-hell); border-left: 4px solid var(--primaer); border-radius: 8px; padding: 5px 7px; margin-bottom: 5px; font-size: .82rem; cursor: grab; }
.plankarte.ausnahme { border-left-color: #e0a100; }
.plankarte.konflikt { border-left-color: var(--rot); background: rgba(200,55,45,.12); }
.plankarte b { display: block; }
.abw-marke { display: block; font-size: .72rem; font-weight: 700; color: var(--rot); }
/* Mitarbeiter-App: kein Weg ins Büro */
[data-app] .wechsel[href="/admin"] { display: none; }
