/* Theo Organizer – Design-System. Hell/Dunkel automatisch oder per Profil (data-thema). */
:root {
  --bg: #f5f6f8; --flaeche: #ffffff; --flaeche2: #f0f2f5; --flaeche3: #e7eaef;
  --text: #121826; --text2: #4f5968; --text3: #5d6676; --rand: #e3e6eb; --rand2: #d3d8df;
  --akzent: #4f46e5; --akzent2: #6366f1; --akzent-weich: #eef0ff; --akzent-text: #ffffff;
  --gruen: #0b7a48; --gruen-weich: #e5f6ee; --rot: #c2261b; --rot-weich: #fdecea; --gelb: #8a5200; --gelb-weich: #fff4e0;
  --radius: 14px; --radius-s: 10px; --radius-xs: 8px;
  --schatten: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --schatten-hoch: 0 12px 32px rgba(16,24,40,.14), 0 2px 6px rgba(16,24,40,.08);
  --seite-breite: 260px; --unten-hoehe: 64px;
  --schrift: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --bg: #0b0d12; --flaeche: #14171f; --flaeche2: #1b1f29; --flaeche3: #242a36;
    --text: #eef0f5; --text2: #a9b1bf; --text3: #8d96a7; --rand: #252a35; --rand2: #313846;
    --akzent: #818cf8; --akzent2: #a5b4fc; --akzent-weich: #23264a; --akzent-text: #0b0d12;
    --gruen: #34d399; --gruen-weich: #10291f; --rot: #f87171; --rot-weich: #2e1517; --gelb: #fbbf24; --gelb-weich: #2c2310;
    --schatten: 0 1px 2px rgba(0,0,0,.4); --schatten-hoch: 0 16px 40px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-thema="dunkel"] {
  --bg: #0b0d12; --flaeche: #14171f; --flaeche2: #1b1f29; --flaeche3: #242a36;
  --text: #eef0f5; --text2: #a9b1bf; --text3: #8d96a7; --rand: #252a35; --rand2: #313846;
  --akzent: #818cf8; --akzent2: #a5b4fc; --akzent-weich: #23264a; --akzent-text: #0b0d12;
  --gruen: #34d399; --gruen-weich: #10291f; --rot: #f87171; --rot-weich: #2e1517; --gelb: #fbbf24; --gelb-weich: #2c2310;
  --schatten: 0 1px 2px rgba(0,0,0,.4); --schatten-hoch: 0 16px 40px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--schrift); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; } h2 { font-size: 1.3rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 650; } h4 { font-size: .8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
p { margin: .4em 0; }
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.ic.k { width: 16px; height: 16px; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; }
#seite { display: none; }
.haupt { min-width: 0; }
#kopf { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rand); padding-top: env(safe-area-inset-top); }
.kopf-innen { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; max-width: 1100px; margin: 0 auto; }
.kopf-titel { flex: 1; min-width: 0; font-weight: 650; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.kopf-titel .marke { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--akzent), #8b5cf6); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; }
.umgebung { font-size: .7rem; font-weight: 700; color: var(--gelb); background: var(--gelb-weich); border-radius: 999px; padding: 2px 8px; }
#app { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(var(--unten-hoehe) + 32px + env(safe-area-inset-bottom)); }
#unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--rand); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
#unten a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--text3); text-decoration: none; padding: 4px 0; border-radius: 10px; font-weight: 550; }
#unten a.aktiv { color: var(--akzent); }
#unten a svg.ic { width: 24px; height: 24px; }
#unten a.plus svg.ic { width: 26px; height: 26px; background: var(--akzent); color: var(--akzent-text); border-radius: 12px; padding: 4px; box-sizing: content-box; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--seite-breite) 1fr; }
  /* Seiten ohne Menü (Anmeldung, Datenschutz, Sicherheit ohne Anmeldung, Freigaben): volle Breite statt Seitenleisten-Spalte */
  body.ohne-shell .shell { display: block; }
  #seite { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--flaeche); border-right: 1px solid var(--rand); padding: 16px 12px; gap: 2px; overflow-y: auto; }
  #unten { display: none; }
  #app { padding-bottom: 48px; }
  .kopf-innen { padding: 0 28px; }
  #app { padding: 24px 28px 48px; }
}
.seite-marke { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 750; font-size: 1.05rem; }
.seite-marke .marke { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--akzent), #8b5cf6); color: #fff; display: grid; place-items: center; font-weight: 800; }
.seite-gruppe { font-size: .72rem; font-weight: 650; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--text2); text-decoration: none; font-weight: 550; }
.nav-link:hover { background: var(--flaeche2); color: var(--text); }
.nav-link.aktiv { background: var(--akzent-weich); color: var(--akzent); }
.nav-link .punkt-farbe { width: 10px; height: 10px; border-radius: 4px; flex: 0 0 auto; }
.nav-link .zahl { margin-left: auto; font-size: .75rem; color: var(--text3); }
.seite-unten { margin-top: auto; border-top: 1px solid var(--rand); padding-top: 10px; }

/* Avatar */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 1; letter-spacing: 0; font-weight: 700; font-size: .82rem; color: #fff; flex: 0 0 auto; user-select: none; }
.avatar.gross { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.klein { width: 24px; height: 24px; font-size: .65rem; }
.avatar-stapel { display: inline-flex; } .avatar-stapel .avatar { border: 2px solid var(--flaeche); margin-left: -6px; } .avatar-stapel .avatar:first-child { margin-left: 0; }
button.avatar-knopf { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }

/* ---------- Seitenaufbau ---------- */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.seitenkopf .unter { color: var(--text2); font-size: .9rem; margin-top: 4px; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--text2); text-decoration: none; font-weight: 550; font-size: .9rem; margin-bottom: 8px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 620px) { .zwei, .drei { grid-template-columns: 1fr; } }
.zentriert { max-width: 420px; margin: 32px auto; }
.leer { text-align: center; color: var(--text3); padding: 36px 16px; }
.leer svg.ic { width: 40px; height: 40px; color: var(--text3); margin-bottom: 8px; }
.klein { font-size: .82rem; color: var(--text2); }
.sehr-klein { font-size: .74rem; color: var(--text3); }
.rot { color: var(--rot); } .warn { color: var(--gelb); } .gruen { color: var(--gruen); }
.trenner { text-align: center; color: var(--text3); font-size: .8rem; margin: 14px 0 6px; display: flex; align-items: center; gap: 10px; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--rand); }
.durch { text-decoration: line-through; opacity: .6; }
.logo { text-align: center; font-size: 1.6rem; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo .marke { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--akzent), #8b5cf6); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; box-shadow: var(--schatten-hoch); }

/* Karten */
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; box-shadow: var(--schatten); }
.karte > h3:first-child, .karte > h2:first-child { margin-bottom: 10px; }
.karte.fehler { border-color: var(--rot); background: var(--rot-weich); }
.karte.hinweis, .hinweis { background: var(--gelb-weich); border: 1px solid color-mix(in srgb, var(--gelb) 30%, transparent); color: var(--text); padding: 12px 14px; border-radius: var(--radius-s); margin: 8px 0 14px; }
.karte.info { background: var(--akzent-weich); border-color: transparent; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.statistik { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px 16px; }
.kennzahl .wert { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.kennzahl .name { font-size: .78rem; color: var(--text2); }
.kennzahl.rot .wert { color: var(--rot); } .kennzahl.gruen .wert { color: var(--gruen); }

/* Einstellungs-Listen (iOS-artig) */
.menue { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.menue a, .menue .eintrag { display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--rand); }
.menue a:last-child, .menue .eintrag:last-child { border-bottom: 0; }
.menue a:hover { background: var(--flaeche2); }
.menue .symbol { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.menue .symbol svg.ic { width: 18px; height: 18px; }
.menue .text { flex: 1; min-width: 0; } .menue .text small { display: block; color: var(--text2); font-size: .8rem; }
.menue .pfeil { color: var(--text3); }

/* ---------- Bedienelemente ---------- */
button, .btn { font: inherit; font-weight: 580; font-size: .9rem; border: 1px solid var(--rand2); background: var(--flaeche); color: var(--text); border-radius: var(--radius-s); padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
button:hover, .btn:hover { background: var(--flaeche2); }
button:active, .btn:active { transform: scale(.98); }
button.primaer, .btn.primaer { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
button.primaer:hover, .btn.primaer:hover { filter: brightness(1.07); }
button.gefaehrlich { color: var(--rot); border-color: color-mix(in srgb, var(--rot) 40%, transparent); }
button.gefaehrlich:hover { background: var(--rot-weich); }
button.geist, .btn.geist { border-color: transparent; background: transparent; }
button.geist:hover, .btn.geist:hover { background: var(--flaeche2); }
button.breit, .btn.breit { width: 100%; justify-content: center; margin: 6px 0; padding: 12px; }
button.klein-btn, .btn.klein-btn { padding: 5px 10px; font-size: .8rem; border-radius: var(--radius-xs); }
button.icon-btn { padding: 8px; border-radius: var(--radius-s); }
button.link { border: 0; background: none; padding: 0 4px; color: var(--akzent); font-weight: 550; font-size: .82rem; }
button.link:hover { background: none; text-decoration: underline; }
button.link.gefaehrlich { color: var(--rot); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; font-size: .95rem; width: 100%; padding: 10px 12px; border: 1px solid var(--rand2); border-radius: var(--radius-s); background: var(--flaeche); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 22%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--akzent); vertical-align: middle; }
input[type=color] { padding: 3px; height: 42px; }
textarea { resize: vertical; }
.feld { display: block; margin: 0 0 14px; }
.feld-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.feld small { display: block; color: var(--text3); margin-top: 5px; font-size: .78rem; }
.kontrollkaestchen { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; cursor: pointer; }
.kontrollkaestchen input { margin-top: 2px; flex: 0 0 auto; }
form .aktionen { margin-top: 16px; }
/* Schalter */
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.schalter:last-child { border-bottom: 0; }
.schalter .text small { display: block; color: var(--text2); font-size: .8rem; }
.kipp { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.kipp input { opacity: 0; width: 0; height: 0; position: absolute; }
.kipp span { position: absolute; inset: 0; background: var(--flaeche3); border-radius: 999px; transition: background .2s; cursor: pointer; }
.kipp span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.kipp input:checked + span { background: var(--gruen); }
.kipp input:checked + span::after { transform: translateX(18px); }

/* Chips & Tabs */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--flaeche2); color: var(--text2); font-size: .76rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.chip.akzent { background: var(--akzent-weich); color: var(--akzent); }
.chip.gruen { background: var(--gruen-weich); color: var(--gruen); }
.chip.rot { background: var(--rot-weich); color: var(--rot); }
.chip.gelb { background: var(--gelb-weich); color: var(--gelb); }
.chip.wahl { background: var(--flaeche); border: 1px solid var(--rand2); cursor: pointer; padding: 6px 11px; font-size: .82rem; color: var(--text); }
.chip.wahl:has(input:checked), .chip.wahl.an { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent); }
.chip.wahl input { display: none; }
.chip.leer { background: transparent; border: 1px dashed var(--rand2); color: var(--text3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs { display: inline-flex; gap: 2px; background: var(--flaeche2); padding: 3px; border-radius: var(--radius-s); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 7px 12px; border-radius: var(--radius-xs); color: var(--text2); font-weight: 580; font-size: .85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabs button.aktiv, .tabs a.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.unternav { display: flex; gap: 4px; border-bottom: 1px solid var(--rand); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.unternav::-webkit-scrollbar { display: none; }
.unternav a { padding: 10px 12px; color: var(--text2); text-decoration: none; font-weight: 580; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.unternav a.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.leiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.leiste select { width: auto; padding: 7px 10px; font-size: .85rem; }
.filterleiste { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filterleiste select, .filterleiste input { width: auto; padding: 7px 10px; font-size: .85rem; }
.filterleiste input[type=search] { min-width: 180px; }

/* ---------- Aufgabenlisten ---------- */
.liste { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.zeile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--rand); transition: background .12s; }
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: var(--flaeche2); }
.zeile.erledigt .titel { text-decoration: line-through; color: var(--text3); }
.zeile.gross .titel { font-size: 1.15rem; }
/* Teilaufgaben eingerückt unter ihrer Hauptaufgabe (↳), bis 3 Stufen */
.zeile.teil-1 { padding-left: 34px; } .zeile.teil-2 { padding-left: 54px; } .zeile.teil-3 { padding-left: 74px; }
.zeile.teil .teil-pfeil { color: var(--text3); }
.klapp-btn { border: 1px solid var(--rand); background: transparent; color: inherit; border-radius: 999px; padding: 2px 9px; font: inherit; font-size: .8rem; line-height: 1.3; cursor: pointer; }
.klapp-btn.gruen { color: var(--gruen); }
.gruppe-kopf .gruppe-klapp { min-width: 30px; min-height: 28px; padding: 2px 6px; border-radius: 8px; }
.liste[hidden] { display: none; }
.zeile .schieben { display: inline-flex; flex-direction: column; gap: 2px; margin-left: 6px; flex: none; }
.zeile .schiebe-btn { border: 1px solid var(--rand); background: transparent; color: var(--text2); border-radius: 6px; min-width: 30px; height: 22px; padding: 0 6px; font-size: .7rem; line-height: 1; cursor: pointer; }
.zeile .schiebe-btn:disabled { opacity: .3; cursor: default; }
/* Anfragen-Übersicht in der Aufgabe */
.anfragen-liste { list-style: none; margin: 8px 0 0; padding: 0; } .anfragen-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--rand); }
.anfragen-liste li:last-child { border-bottom: 0; } .anfragen-liste li.anfrage-nein .anfrage-status { color: var(--rot); } .anfragen-liste li.anfrage-ja .anfrage-status { color: var(--gruen); }
.zeile-text { flex: 1; min-width: 0; }
.zeile-rechts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.titel { font-weight: 560; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .78rem; color: var(--text2); margin-top: 3px; }
.meta.gross { font-size: .88rem; margin: 8px 0 12px; gap: 6px 12px; }
.meta .ic { width: 14px; height: 14px; }
.haken { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rand2); background: none; padding: 0; color: #fff; font-size: .72rem; font-weight: 800; margin-top: 1px; display: grid; place-items: center; }
.haken:hover { border-color: var(--gruen); background: var(--gruen-weich); }
.haken.an { background: var(--gruen); border-color: var(--gruen); }
.prio-1 { color: var(--rot); font-weight: 650; } .prio-2 { color: var(--gelb); font-weight: 600; }
.gruppe-kopf { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-weight: 650; font-size: .92rem; }
.gruppe-kopf .zahl { color: var(--text3); font-weight: 550; font-size: .8rem; }
.gruppe-kopf.rot { color: var(--rot); }
.projekt-kopf { cursor: pointer; }
.beschreibung { white-space: pre-wrap; color: var(--text); }
.checkliste { list-style: none; padding: 0; margin: 10px 0; } .checkliste li { padding: 6px 0; border-bottom: 1px solid var(--rand); } .checkliste li:last-child { border-bottom: 0; }
.fortschritt { height: 6px; background: var(--flaeche3); border-radius: 999px; overflow: hidden; }
.fortschritt > div { height: 100%; background: var(--akzent); border-radius: 999px; }
.fortschritt.gruen > div { background: var(--gruen); }

/* Kanban / Matrix */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.spalte { background: var(--flaeche2); border-radius: var(--radius); padding: 10px; min-height: 140px; }
.spalte.drueber { outline: 2px dashed var(--akzent); }
.spalte h4 { margin: 4px 6px 10px; display: flex; justify-content: space-between; }
.spalte .karte-mini { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--schatten); }
.spalte .karte-mini:hover { border-color: var(--rand2); }
.matrix { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.matrix table { border-collapse: collapse; min-width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--rand); border-right: 1px solid var(--rand); padding: 8px; vertical-align: top; min-width: 170px; font-size: .85rem; }
.matrix th { background: var(--flaeche2); text-align: left; font-weight: 650; position: sticky; top: 0; }
.matrix td.zeilenkopf { position: sticky; left: 0; background: var(--flaeche); font-weight: 600; min-width: 140px; }
.matrix td.drueber { background: var(--akzent-weich); }
.matrix .karte-mini { background: var(--flaeche2); border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 6px; cursor: grab; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle td, .tabelle th { padding: 10px 8px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: middle; font-size: .9rem; }
.tabelle th { font-size: .74rem; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle select { width: auto; padding: 6px 8px; }
.farbe { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; }
.kommentar { padding: 12px 0; border-top: 1px solid var(--rand); display: flex; gap: 10px; }
.kommentar p { margin: 4px 0 0; white-space: pre-wrap; }
.zeitleiste { list-style: none; padding: 0; margin: 0; }
.zeitleiste li { position: relative; padding: 0 0 14px 22px; font-size: .86rem; }
.zeitleiste li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.zeitleiste li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--rand2); }
.zeitleiste li:last-child::after { display: none; }

/* Toasts & Dialoge & Menü */
#toasts { position: fixed; bottom: calc(var(--unten-hoehe) + 16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(92vw, 440px); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--schatten-hoch); transition: opacity .4s, transform .4s; font-weight: 550; font-size: .9rem; }
.toast-fehler { background: var(--rot); color: #fff; } .toast-warn { background: var(--gelb); color: #fff; }
.toast.weg { opacity: 0; transform: translateY(8px); }
.dialog-hintergrund { position: fixed; inset: 0; background: rgba(10,12,18,.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { background: var(--flaeche); border-radius: 18px; width: min(100%, 480px); max-height: 90vh; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--schatten-hoch); border: 1px solid var(--rand); }
.dialog-kopf { display: flex; align-items: flex-start; gap: 8px; padding: 18px 14px 8px 22px; flex: none; }
.dialog-kopf h3 { margin: 0; flex: 1; }
.dialog-zu { flex: none; width: 36px; height: 36px; border-radius: 50%; padding: 0; background: var(--flaeche-2, transparent); border: 1px solid var(--rand); font-size: 1rem; line-height: 1; color: var(--text); }
.dialog-inhalt { padding: 4px 22px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.dialog-aktionen { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; flex: none; padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rand); background: var(--flaeche); }
.popup { position: absolute; z-index: 45; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; box-shadow: var(--schatten-hoch); padding: 6px; min-width: 220px; }
.popup a, .popup button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .9rem; }
.popup a:hover, .popup button:hover { background: var(--flaeche2); }
.popup .popup-kopf { padding: 10px; border-bottom: 1px solid var(--rand); margin-bottom: 4px; }
.offline { background: var(--gelb); color: #fff; text-align: center; padding: 6px 12px; font-size: .82rem; font-weight: 600; }

/* Timeline / Gantt */
.tl { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 0 0 12px; position: relative; }
.tl-kopf, .tl-zeile { display: grid; min-width: max-content; }
.tl-kopf { position: sticky; top: 0; background: var(--flaeche); border-bottom: 1px solid var(--rand); z-index: 2; }
.tl-tag { font-size: .66rem; text-align: center; color: var(--text3); padding: 4px 0; border-left: 1px solid var(--rand); display: flex; flex-direction: column; min-height: 34px; justify-content: flex-end; }
.tl-tag.we { background: var(--flaeche2); } .tl-tag.heute { color: var(--akzent); font-weight: 800; }
.tl-gruppe { font-weight: 650; padding: 10px 12px 4px; color: var(--text2); font-size: .8rem; position: sticky; left: 0; }
.tl-zeile { height: 32px; align-items: center; background-image: linear-gradient(to right, var(--rand) 1px, transparent 1px); background-size: 28px 100%; }
.tl-balken { height: 24px; background: var(--akzent); color: var(--akzent-text); border-radius: 7px; padding: 0 8px; font-size: .74rem; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; min-width: 24px; font-weight: 600; }
.tl-balken.rot { background: var(--rot); color: #fff; } .tl-balken.erledigt { background: var(--gruen); opacity: .65; color: #fff; } .tl-balken.blockiert { background: repeating-linear-gradient(45deg, var(--gelb), var(--gelb) 6px, color-mix(in srgb, var(--gelb) 70%, #000) 6px, color-mix(in srgb, var(--gelb) 70%, #000) 12px); color: #fff; }
.tl-balken.kritisch { box-shadow: 0 0 0 2px var(--rot); }
.tl-balken.meilenstein { width: 18px; min-width: 18px; padding: 0; transform: rotate(45deg) scale(.7); border-radius: 3px; background: var(--gelb); }
svg.tl-pfeile { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
svg.tl-pfeile path { fill: none; stroke: var(--text3); stroke-width: 1.4; }

/* Schichten / Kapazität */
.schichten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 18px; }
.schicht { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px; border-left: 4px solid var(--gelb); }
.schicht.voll { border-left-color: var(--gruen); } .schicht.erledigt { opacity: .6; }
.schicht-kopf { display: flex; justify-content: space-between; cursor: pointer; align-items: baseline; }
.schicht .titel { margin: 4px 0 10px; cursor: pointer; }
.schicht .aktionen { margin-top: 10px; }
.balken-zeile { display: grid; grid-template-columns: 140px 1fr 60px; gap: 10px; align-items: center; padding: 6px 0; font-size: .86rem; }
.balken { height: 10px; background: var(--flaeche3); border-radius: 999px; overflow: hidden; }
.balken > div { height: 100%; border-radius: 999px; background: var(--akzent); }
.balken.voll > div { background: var(--gruen); } .balken.knapp > div { background: var(--gelb); } .balken.leer > div { background: var(--rot); }
.heatmap { display: grid; grid-template-columns: 140px repeat(var(--spalten), minmax(34px, 1fr)); gap: 3px; font-size: .74rem; overflow-x: auto; }
.heatmap > div { padding: 6px 4px; text-align: center; border-radius: 6px; }
.heatmap .k { text-align: left; color: var(--text2); font-weight: 600; }
.heatmap .h0 { background: var(--flaeche2); color: var(--text3); } .heatmap .h1 { background: color-mix(in srgb, var(--akzent) 25%, transparent); } .heatmap .h2 { background: color-mix(in srgb, var(--akzent) 50%, transparent); color: #fff; } .heatmap .h3 { background: var(--akzent); color: var(--akzent-text); }

/* Anleitung */
.karte.intro { min-height: 230px; } .karte.intro h2 { font-size: 1.3rem; margin-bottom: 8px; } .karte.intro p { font-size: 1.02rem; line-height: 1.6; color: var(--text2); }
.punkte { display: flex; justify-content: center; gap: 8px; margin: 10px 0 18px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--rand2); cursor: pointer; transition: width .2s; } .punkt.aktiv { background: var(--akzent); width: 22px; border-radius: 999px; }
.anhaenge { list-style: none; padding: 0; margin: 0 0 10px; } .anhaenge li { padding: 9px 0; border-bottom: 1px solid var(--rand); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .anhaenge li:last-child { border-bottom: 0; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--akzent-weich); margin-bottom: 14px; }
.banner.wichtig { background: var(--rot-weich); }
.banner .text { flex: 1; }

/* Druck (Berichte) */
@media print {
  #seite, #unten, #kopf, .nicht-drucken, #toasts { display: none !important; }
  body { background: #fff; color: #000; }
  #app { padding: 0; max-width: none; }
  .karte, .kennzahl { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* Filter: am Handy eingeklappt, Suche + Filter-Knopf bleiben sichtbar */
.filter-knopf { display: none; }
@media (max-width: 700px) {
  .filter-knopf { display: inline-flex; }
  .filter-zu:not(.offen) > :not(input[type=search]):not(.filter-knopf) { display: none; }
  .filter-zu.offen > * { display: inline-flex; }
  .filter-zu.offen > select { display: block; flex: 1 1 45%; }
  .filterleiste input[type=search] { flex: 1; min-width: 0; }
  .tabs button .nur-breit { display: none; }
  .tabs button { padding: 8px 10px; }
}
.tabelle tr.warnzeile td { background: var(--rot-weich); }

/* ===== Arbeitsstile ===== */
body.kompakt .zeile { padding: 8px 12px; }
body.kompakt .zeile .meta { font-size: .74rem; }
body.kompakt .karte { padding: 14px; }
.klein-tabs button, .klein-tabs a { padding: 5px 10px; font-size: .8rem; }
.meine-leiste { align-items: center; }
.punkt-farbe { width: 10px; height: 10px; border-radius: 4px; flex: 0 0 auto; display: inline-block; }

/* Schnelleingabe */
.schnell { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 16px; box-shadow: var(--schatten); }
.schnell:focus-within { border-color: var(--akzent); }
.schnell-zeile { display: flex; align-items: center; gap: 8px; }
.schnell-plus { color: var(--akzent); flex: 0 0 auto; }
.schnell-feld { flex: 1; min-width: 0; position: relative; }
.schnell-input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px 2px !important; font-size: 1rem; width: 100%; }
.schnell-echo { font-size: .82rem; color: var(--text2); padding: 0 2px 4px; white-space: pre-wrap; word-break: break-word; }
.schnell-echo mark { border-radius: 4px; padding: 0 2px; color: inherit; }
.schnell-bereich { width: auto !important; max-width: 40%; padding: 6px 8px !important; font-size: .82rem; }
.schnell-knopf { padding: 8px 10px; border-radius: var(--radius-s); }
.schnell-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.schnell-chips:empty { display: none; }
.schnell-chips { padding: 4px 0 2px; }
.schnell-titel { font-weight: 600; font-size: .86rem; margin-right: 4px; }
.m-datum, mark.m-datum, mark.m-zeit, .chip.m-zeit { background: #3b82f622; color: #2563eb; }
mark.m-wiederholung, .chip.m-wiederholung { background: #8b5cf622; color: #7c3aed; }
mark.m-bereich, .chip.m-bereich { background: #22c55e22; color: #15803d; }
mark.m-person, .chip.m-person { background: #f59e0b22; color: #b45309; }
mark.m-label, .chip.m-label { background: #64748b22; color: var(--text2); }
mark.m-prioritaet, .chip.m-prioritaet { background: #ef444422; color: #dc2626; }
[data-thema="dunkel"] .chip.m-datum, [data-thema="dunkel"] .chip.m-zeit { color: #93c5fd; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .chip.m-datum, :root:not([data-thema="hell"]) .chip.m-zeit { color: #93c5fd; } :root:not([data-thema="hell"]) .chip.m-bereich { color: #86efac; } :root:not([data-thema="hell"]) .chip.m-person { color: #fcd34d; } :root:not([data-thema="hell"]) .chip.m-wiederholung { color: #c4b5fd; } :root:not([data-thema="hell"]) .chip.m-prioritaet { color: #fca5a5; } }

/* Zeilen-Knöpfe (Stern, Mein Tag) */
.zeile-knoepfe { display: flex; gap: 2px; flex: 0 0 auto; align-self: center; }
.ikon-knopf { border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--text3); cursor: pointer; line-height: 0; }
.ikon-knopf:hover { background: var(--flaeche2); color: var(--text); }
.ikon-knopf.an { color: var(--akzent); }
.ikon-knopf.stern.an { color: #f59e0b; }
.ikon-knopf.stern.an svg { fill: currentColor; }

/* To-Do-Listen */
.todo { display: grid; grid-template-columns: 1fr; gap: 14px; }
.todo-listen { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.todo-listen::-webkit-scrollbar { display: none; }
.todo-liste { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rand); background: var(--flaeche); border-radius: 999px; padding: 6px 12px; white-space: nowrap; font-size: .85rem; color: var(--text); cursor: pointer; }
.todo-liste.aktiv { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent); }
.todo-liste .zahl { color: var(--text3); font-size: .76rem; }
.todo-kopf { margin: 0 0 10px; font-size: 1.35rem; }
.todo-kopf .unter { font-size: .85rem; font-weight: 400; color: var(--text2); }
.erledigt-block summary { cursor: pointer; list-style: none; }
@media (min-width: 900px) {
  .todo { grid-template-columns: 230px 1fr; align-items: start; }
  .todo-listen { flex-direction: column; position: sticky; top: 70px; }
  .todo-liste { border-radius: var(--radius-s); border-color: transparent; background: none; justify-content: flex-start; }
  .todo-liste .zahl { margin-left: auto; }
  .todo-liste:hover { background: var(--flaeche2); }
}
.tag-kopf.we { color: var(--text3); }

/* Board */
.karte-bereich { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }

/* Kalender */
.kal-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.kal-kopf strong { font-size: 1.05rem; min-width: 150px; text-align: center; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--rand); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.kal-wt { background: var(--flaeche2); font-size: .72rem; font-weight: 650; color: var(--text2); padding: 6px; text-align: center; }
.kal-tag { background: var(--flaeche); min-height: 92px; padding: 4px; cursor: pointer; min-width: 0; }
.kal-raster.woche .kal-tag { min-height: 220px; }
.kal-tag.fremd { background: var(--flaeche2); color: var(--text3); }
.kal-tag.we:not(.fremd) { background: color-mix(in srgb, var(--flaeche) 92%, var(--text3)); }
.kal-tag.heute .kal-nr { background: var(--akzent); color: #fff; border-radius: 999px; display: inline-block; min-width: 22px; text-align: center; }
.kal-tag.gewaehlt { outline: 2px solid var(--akzent); outline-offset: -2px; }
.kal-tag.drueber { background: var(--akzent-weich); }
.kal-nr { font-size: .78rem; font-weight: 650; padding: 1px 4px; margin-bottom: 3px; }
.kal-eintrag { font-size: .72rem; line-height: 1.25; padding: 2px 4px; margin-bottom: 2px; border-left: 3px solid; border-radius: 3px; background: var(--flaeche2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-eintrag.erledigt { text-decoration: line-through; opacity: .6; }
.kal-eintrag.rot { color: var(--rot); }
.kal-mehr { font-size: .68rem; color: var(--text3); padding-left: 4px; }
@media (max-width: 600px) {
  .kal-raster.monat .kal-tag { min-height: 54px; }
  .kal-raster.monat .kal-eintrag { font-size: 0; height: 5px; padding: 0; margin: 1px 0; border-left-width: 0; background: var(--akzent); }
  .kal-raster.woche { grid-template-columns: 1fr; }
  .kal-raster.woche .kal-tag { min-height: 0; }
  .kal-raster.woche .kal-eintrag { white-space: normal; font-size: .8rem; }
}

/* Übersicht (Kacheln) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kachel { margin: 0; }
.kachel.breit { grid-column: 1 / -1; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kachel-kopf h3 { margin: 0; font-size: 1rem; }
.kachel .statistik { margin-bottom: 0; }
.liste.kompakt .zeile { padding: 8px 10px; }
.liste.kompakt { margin-bottom: 0; }
.woche-streifen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.woche-tag { text-align: center; padding: 8px 2px; border-radius: var(--radius-s); background: var(--flaeche2); color: var(--text); text-decoration: none; }
.woche-tag.voll { background: var(--akzent-weich); }
.woche-zahl { font-weight: 700; color: var(--akzent); }
.balken-liste { display: flex; flex-direction: column; gap: 12px; }
.balken-zeile { color: var(--text); text-decoration: none; display: block; }
.balken-name { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.balken { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--flaeche2); margin-bottom: 3px; }
.b-erledigt { background: var(--gruen); } .b-arbeit { background: var(--akzent); } .b-offen { background: var(--rand2); }

/* Stil-Auswahl */
.stil-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stil-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); cursor: pointer; }
.stil-karte:hover { border-color: var(--rand2); }
.stil-karte.aktiv { border-color: var(--akzent); background: var(--akzent-weich); }
.stil-karte .symbol { width: 34px; height: 34px; border-radius: 10px; background: var(--akzent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sortier-liste { display: flex; flex-direction: column; border: 1px solid var(--rand); border-radius: var(--radius-s); margin-bottom: 10px; }
.sortier-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--rand); }
.sortier-zeile:last-child { border-bottom: 0; }
.sortier-zeile.aus { opacity: .6; }
.sortier-zeile .kontrollkaestchen { margin: 0; flex: 1; align-items: center; gap: 10px; }
.sortier-knoepfe { display: flex; gap: 2px; }

/* Tabelle (Excel) */
.xl-leiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.xl-leiste input[type=search] { max-width: 260px; }
.xl-tipp { margin-left: auto; }
@media (max-width: 700px) { .xl-tipp { display: none; } }
.xl-sammel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; background: var(--akzent-weich); border-radius: var(--radius-s); }
.xl-sammel select { width: auto; padding: 5px 8px; font-size: .82rem; }
.xl-scroll { overflow: auto; border: 1px solid var(--rand); border-radius: var(--radius-s); background: var(--flaeche); max-height: 70vh; }
.xl-tabelle { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .85rem; }
.xl-tabelle th { position: sticky; top: 0; z-index: 2; background: var(--flaeche2); text-align: left; font-weight: 650; font-size: .76rem; color: var(--text2); padding: 7px 8px; border-bottom: 1px solid var(--rand2); border-right: 1px solid var(--rand); cursor: pointer; user-select: none; white-space: nowrap; }
.xl-tabelle th.sortiert { color: var(--akzent); }
.xl-tabelle td { padding: 0 8px; height: 34px; border-bottom: 1px solid var(--rand); border-right: 1px solid var(--rand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.xl-tabelle td.xl-zelle { cursor: cell; }
.xl-tabelle td.xl-zelle:focus { outline: 2px solid var(--akzent); outline-offset: -2px; background: var(--akzent-weich); }
.xl-tabelle td.nur { color: var(--text2); }
.xl-tabelle td.speichert { opacity: .5; }
.xl-tabelle tr.gewaehlt td { background: var(--akzent-weich); }
.xl-tabelle tr.erledigt td.xl-zelle:nth-child(2) { text-decoration: line-through; color: var(--text3); }
.xl-tabelle tr:hover td { background: color-mix(in srgb, var(--flaeche) 94%, var(--akzent)); }
.xl-nr { position: sticky; left: 0; z-index: 1; background: var(--flaeche2) !important; width: 52px; text-align: center; padding: 0 4px !important; }
.xl-tabelle th.xl-nr { z-index: 3; }
.xl-nr input { width: auto; margin: 0 4px 0 0; vertical-align: middle; }
.xl-oeffnen { color: var(--text3); text-decoration: none; font-size: .8rem; }
.xl-editor { width: 100%; border: 0 !important; padding: 4px 2px !important; background: var(--flaeche) !important; box-shadow: none !important; font-size: .85rem; height: 30px; }
.xl-text { color: var(--text2); font-size: .8rem; }
.import .xl-tabelle th select { font-size: .76rem; padding: 4px; width: auto; }
.import textarea { margin: 8px 0; }

.kachel .statistik { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kachel .kennzahl { padding: 10px 12px; }
.kachel .kennzahl .wert { font-size: 1.3rem; }
.frage-fortschritt { display: flex; gap: 6px; margin-bottom: 14px; }
.frage-fortschritt span { flex: 1; height: 4px; border-radius: 4px; background: var(--rand); }
.frage-fortschritt span.fertig { background: var(--akzent); } .frage-fortschritt span.jetzt { background: var(--akzent2, var(--akzent)); opacity: .5; }
.frage { font-size: 1.25rem; margin: 0 0 14px; }
.antworten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.antwort { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 16px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); cursor: pointer; font-size: 1rem; }
.antwort:hover { border-color: var(--akzent); }
.antwort.aktiv { border-color: var(--akzent); background: var(--akzent-weich); }
.zusammenfassung li { margin-bottom: 6px; }
.kal-tagansicht { position: relative; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); margin-bottom: 14px; overflow: hidden; }
.kal-stunde { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rand); cursor: pointer; }
.kal-stunde span { position: absolute; left: 6px; top: 2px; font-size: .7rem; color: var(--text3); }
.kal-stunde:hover { background: var(--flaeche2); }
.kal-block { position: absolute; background: var(--akzent-weich); border-left: 4px solid var(--akzent); border-radius: 6px; padding: 3px 6px; font-size: .78rem; overflow: hidden; cursor: pointer; z-index: 1; line-height: 1.25; }
.kal-block.erledigt { opacity: .55; text-decoration: line-through; }

/* Barrierefreiheit */
.kal-tag.heute .kal-nr { background: #4f46e5; color: #fff; }
[tabindex="0"][role="button"]:focus-visible, .zeile:focus-visible, .karte-mini:focus-visible, .kal-tag:focus-visible, .kal-eintrag:focus-visible, .kal-block:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.bereich-chip { background: var(--flaeche2) !important; color: var(--text2) !important; }
.bereich-chip::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--bf, #94a3b8); display: inline-block; }
.karte-bereich { color: var(--text2) !important; display: flex; align-items: center; gap: 6px; }
.karte-bereich::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--bf, #94a3b8); }

.update-hinweis { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--unten-hoehe, 64px) + 16px); z-index: 60; background: var(--akzent); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 650; box-shadow: var(--schatten-hoch); cursor: pointer; }

/* Probe-Import */
.probe-karte { border-left: 4px solid var(--amber, #8a5200); }
.probe-zusagen { margin: .4rem 0 .6rem; padding-left: 1.2rem; }
.probe-zusagen li { margin: .15rem 0; }
.probe-liste { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.probe-anleitung { background: var(--flaeche2, rgba(0,0,0,.04)); padding: .6rem .75rem; border-radius: 8px; }
.probe-banner { display: flex; flex-direction: column; gap: .5rem; }
.probe-banner .aktionen { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Untere Leiste: Beschriftungen auf einer Linie, auch beim Plus */
#unten a { justify-content: flex-end; }
#unten a.plus svg.ic { width: 22px; height: 22px; padding: 4px; }
/* Reiterleisten: zeigen, dass rechts noch mehr kommt */
.unternav.mehr-rechts { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }

/* Reiterleiste (Menü-Spec Schritt 6, static/ui.js reiterLeiste): höchstens 5 Reiter + „Mehr ▾“ mit Liste */
.reiter-leiste { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--rand); margin: 0 0 18px; }
.reiter-leiste > .unternav { flex: 1 1 auto; min-width: 0; border-bottom: 0; margin: 0; }
.reiter-leiste .unternav a { min-height: 44px; }
.reiter-chip { margin-left: 2px; padding: 1px 7px; }
.reiter-mehr { flex: 0 0 auto; display: flex; align-items: stretch; }
.reiter-mehr-knopf { border: 0; background: none; min-height: 44px; padding: 8px 10px; color: var(--text2); font-weight: 580; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 0; box-shadow: none; }
.reiter-mehr-knopf[aria-expanded="true"] { color: var(--akzent); }
.reiter-mehr-liste { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 230px; max-width: min(320px, calc(100vw - 24px)); margin-top: 4px; padding: 4px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-s); box-shadow: var(--schatten); display: flex; flex-direction: column; }
.reiter-mehr-liste[hidden] { display: none; }
.reiter-mehr-eintrag { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: var(--radius-xs); font-weight: 560; }
.reiter-mehr-eintrag .reiter-text { flex: 1 1 auto; }
.reiter-mehr-eintrag:hover, .reiter-mehr-eintrag:focus-visible { background: var(--flaeche2); }
@media (max-width: 480px) {
  /* Handy: alle (höchstens 5) Reiter ganz sichtbar – lieber zwei Zeilen als seitlich verstecken; „Mehr ▾“ steht rechts daneben */
  .reiter-leiste { align-items: flex-end; }
  .reiter-leiste > .unternav { flex-wrap: wrap; overflow: visible; gap: 0 2px; }
  .reiter-leiste .unternav a { padding: 10px 8px; font-size: .86rem; }
  .reiter-leiste .unternav a .ic { display: none; }
  .reiter-mehr-knopf { padding: 8px 6px 8px 8px; }
}
/* Bereichskopf: ein Kasten „Jetzt zu tun“ statt bis zu fünf Bannern (nur Koordinatoren) */
.bereich-jetzt { padding: 10px 14px; margin: 0 0 14px; border-color: color-mix(in srgb, var(--gelb) 35%, var(--rand)); }
.bereich-jetzt > h2 { font-size: 1rem; margin: 2px 0 4px; }
.bereich-jetzt .vw-tun a, .bereich-jetzt .bj-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; color: var(--text); text-decoration: none; }
.bereich-jetzt .bj-zeile .btn { flex: 0 0 auto; }
/* Ein Segment-Stil für Ansichtsleiste (Aufgaben) und Termine-Umschalter */
.tabs.segment button, .tabs.segment a { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
.austausch-knopf .austausch-text { margin-left: 2px; }

/* Neuer Bereich: Vorlagen, Schritte, Verschlüsselungs-Legende */
.bereich-neu h3 { margin-bottom: .6rem; }
.schritt-titel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; margin: 1.1rem 0 .55rem; }
.schritt-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--akzent); color: var(--akzent-text); font-size: .8rem; }
.vorlagen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.vorlage-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--rand); border-left: 5px solid var(--vf, var(--rand)); border-radius: 12px; background: var(--flaeche); color: var(--text); cursor: pointer; font: inherit; }
.vorlage-kachel:hover { border-color: var(--vf); }
.vorlage-kachel.aktiv { border-color: var(--vf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vf) 25%, transparent); }
.vorlage-kachel .vk-symbol { font-size: 1.5rem; line-height: 1; }
.vorlage-kachel .sehr-klein { color: var(--text2); }
.farb-wahl { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.farb-punkt { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; outline-offset: 2px; }
.farb-punkt.aktiv { border-color: var(--flaeche); box-shadow: 0 0 0 2px var(--text); }
.vl-legende { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: .2rem 0 .4rem; }
.vl-spalte { border-radius: 10px; padding: 8px 10px; border: 1px dashed var(--rand); }
.vl-spalte.zu { background: color-mix(in srgb, #0b7a48 9%, transparent); border: 1px solid color-mix(in srgb, #0b7a48 35%, transparent); }
.vl-kopf { font-weight: 650; font-size: .85rem; margin-bottom: 2px; }
.chip.sichtbar { background: color-mix(in srgb, var(--text3) 14%, transparent); }
.chip.verschluesselt { background: color-mix(in srgb, #0b7a48 14%, transparent); color: var(--gruen, #0b7a48); }
.beispiel-liste { margin: 0 0 .5rem; padding-left: 1.1rem; }
.beispiel-liste code { font-size: .85rem; background: var(--flaeche2, rgba(0,0,0,.05)); padding: 1px 6px; border-radius: 6px; }
.hinweis-box { border: 1px dashed var(--rand); border-radius: 10px; padding: 8px 10px; align-self: end; }
@media (max-width: 520px) { .vl-legende { grid-template-columns: 1fr; } .vorlagen-raster { grid-template-columns: 1fr 1fr; } }
.vorlagen-raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.vorlage-kachel { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .vorlagen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Leerzustand: Knopf-Symbol nicht wie das große graue Bild darstellen */
.leer .btn svg.ic { width: 18px; height: 18px; color: currentColor; margin: 0; }
.leer .btn { margin-top: 6px; }

/* So funktioniert Theo – Schritte */
.ablauf .karte-kopf { display: flex; justify-content: space-between; align-items: center; }
.ablauf-schritte { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: flex; flex-direction: column; }
.ablauf-schritt { display: flex; gap: 12px; position: relative; padding: 0 0 14px; }
.ablauf-schritt:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--rand); }
.ablauf-schritt.fertig:not(:last-child)::before { background: var(--gruen, #0b7a48); }
.ablauf-nr { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text2); position: relative; z-index: 1; }
.ablauf-schritt.fertig .ablauf-nr { background: var(--gruen, #0b7a48); border-color: var(--gruen, #0b7a48); color: var(--flaeche); }
.ablauf-schritt.jetzt .ablauf-nr { border-color: var(--akzent); color: var(--akzent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 18%, transparent); }
.ablauf-inhalt { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; min-width: 0; }
.ablauf-titel { font-weight: 620; }
.ablauf-schritt.fertig .ablauf-titel { color: var(--text2); }
.ablauf-inhalt .btn { align-self: flex-start; margin-top: 4px; }
.ablauf-mehr { display: inline-block; margin-top: 2px; font-weight: 600; text-decoration: none; color: var(--akzent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Was kann Theo? */
.funktion-gruppe { margin: 1.2rem 0; }
.funktion-gruppe h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.funktion-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.funktion-kachel { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--text); text-decoration: none; }
a.funktion-kachel:hover { border-color: var(--akzent); }
a.funktion-kachel strong::after { content: ' →'; color: var(--akzent); }
.funktion-kachel .sehr-klein { color: var(--text2); }
.funktion-kachel .chip { align-self: flex-start; }
.seite-inhalt { display: contents; }

/* Wer sieht meine Daten? */
.ds-kurz p { margin: .3rem 0; }
.ds-grafik-box { margin: 12px 0; }
.ds-grafik { width: 100%; height: auto; display: block; }
.ds-grafik rect { stroke-width: 1.5; }
.ds-grafik .gruen rect { fill: color-mix(in srgb, #0b7a48 10%, var(--flaeche)); stroke: color-mix(in srgb, #0b7a48 55%, transparent); }
.ds-grafik .grau rect { fill: var(--flaeche); stroke: var(--rand); stroke-dasharray: 5 4; }
.ds-grafik text { text-anchor: middle; fill: var(--text); font-family: inherit; }
.ds-grafik .ds-emoji { font-size: 26px; }
.ds-grafik .ds-t1 { font-size: 17px; font-weight: 700; }
.ds-grafik .ds-t2 { font-size: 14px; fill: var(--text2); }
.ds-grafik .ds-t2.mono { font-family: ui-monospace, Menlo, monospace; }
.ds-grafik .ds-t3 { font-size: 12.5px; fill: var(--text2); }
.ds-grafik .ds-linie { stroke: var(--text3); stroke-width: 2.5; }
.ds-grafik .ds-pf { fill: var(--text3); }
.ds-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-zu { border-left: 4px solid var(--gruen, #0b7a48); }
.ds-offen { border-left: 4px dashed var(--text3); }
.ds-zwei ul, .ds-person ul, .ds-grenzen { margin: .3rem 0 0; padding-left: 1.1rem; }
.ds-zwei li, .ds-person li, .ds-grenzen li { margin: .2rem 0; }
.ds-h2 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.ds-personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.ds-person h3 { font-size: .98rem; margin: 0 0 .2rem; }
.ds-ja, .ds-nein { list-style: none; padding-left: 0 !important; font-size: .9rem; }
.ds-ja li > span:first-child { color: var(--gruen, #0b7a48); font-weight: 700; }
.ds-nein li > span:first-child { color: var(--rot, #c2261b); font-weight: 700; }
.ds-nein li { color: var(--text2); }
.ds-grenzen .chip { margin-left: 6px; }
.vl-mehr { display: inline-block; margin-top: 2px; }
@media (max-width: 520px) { .ds-zwei { grid-template-columns: 1fr; } }

/* Neuerungen */
.neu-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--rot, #c2261b); display: inline-block; margin-left: auto; }
#unten a.mit-punkt { position: relative; }
#unten a.mit-punkt::after { content: ''; position: absolute; top: 4px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--rot, #c2261b); border: 2px solid var(--flaeche); }
.neuerung-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.neuerung-kopf h2 { font-size: 1.05rem; margin: 0; }
.neuerung-punkte { list-style: none; padding: 0; margin: .5rem 0 0; }
.neuerung-punkte li { margin: .35rem 0; line-height: 1.45; }
.chip.art-neu { background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.chip.art-besser { background: color-mix(in srgb, #0369a1 14%, transparent); }
.chip.art-behoben { background: color-mix(in srgb, #b45309 16%, transparent); }
.chip.art-sicherheit { background: color-mix(in srgb, #0b7a48 16%, transparent); }
.release-verlauf summary { cursor: pointer; }
.release-verlauf tr.aktuell td { font-weight: 650; }
.wa-titel-hinweis { margin: -4px 0 10px; color: var(--text2); }

/* Import: Anleitung je App */
.quelle-karte { padding: 10px 12px; margin-bottom: 10px; }
.quelle-frage { margin: 0 0 8px; }
.quelle-gruppe { margin-bottom: 10px; }
.quelle-gruppe-name { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); margin: 4px 2px; }
.quelle-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; white-space: normal; line-height: 1.3; gap: 2px 8px; width: 100%; text-align: left; padding: 10px 12px; margin: 0 0 6px; border-radius: 12px; border: 1px solid var(--rand); background: transparent; color: var(--text); font: inherit; min-height: 44px; }
.quelle-zeile.an { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent) inset; }
.quelle-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.quelle-kurz { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; color: var(--text2); }
.quelle-mark { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2px; font-size: .72rem; white-space: nowrap; color: var(--text3); }
.quelle-mark.ja { color: var(--erfolg, var(--text2)); }
.quelle-anleitung { margin: -2px 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--akzent) 8%, transparent); }
.quelle-gewaehlt { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.quelle-teil + .quelle-teil { margin-top: 8px; }
.quelle-teil-kopf { font-weight: 600; font-size: .9rem; }
.quelle-nein { margin: 2px 0 0; font-size: .9rem; color: var(--text2); }
.quelle-schritte { margin: 4px 0 2px; padding-left: 1.2rem; font-size: .9rem; }
.quelle-schritte li { margin: 3px 0; }
.quelle-tipp { margin: 8px 0 0; }

/* iPhone/Touch: Eingabefelder mindestens 16 px – sonst zoomt Safari beim Antippen hinein und die Seite bleibt seitlich verschoben */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea, .leiste select { font-size: 16px; }
}
/* Karten-Knöpfe mit Erklärtext umbrechen (Knöpfe sind sonst nowrap und werden breiter als der Bildschirm) */
.stil-karte, .antwort, .stil-karte *, .antwort * { white-space: normal; }
.stil-karte, .antwort { min-width: 0; max-width: 100%; }

/* ---------- Assistent (geführtes Anlegen) ---------- */
.assistent { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.assistent-kopf { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; margin-bottom: 4px; }
.assistent-titel { font-weight: 650; color: var(--text2); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.assistent-schritt { color: var(--text3); }
.assistent-balken { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--rand); overflow: hidden; }
.assistent-balken span { display: block; height: 100%; background: var(--akzent); border-radius: 3px; transition: width .25s; }
.assistent-frage { margin: 6px 0 0; font-size: 1.2rem; line-height: 1.3; }
.assistent-text { margin: 0; color: var(--text2); }
.assistent-inhalt { margin-top: 6px; }
.assistent-aktionen { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rand); }
.assistent-rechts { display: flex; align-items: center; gap: 12px; }
.assistent-wahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.assistent-wahlen.spalte { grid-template-columns: 1fr; }
.assistent-wahl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand2); background: var(--flaeche); color: var(--text); min-height: 48px; }
.assistent-wahl.aktiv { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent) inset; background: var(--akzent-weich); }
.assistent-wahl .sehr-klein { color: var(--text2); font-weight: 400; }
.assistent-schalter-liste { display: flex; flex-direction: column; gap: 6px; }
.assistent-schalter { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 12px; cursor: pointer; }
.assistent-schalter input { margin-top: 3px; flex: none; }
.assistent-schalter > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.assistent-schalter .sehr-klein { color: var(--text2); }
.assistent-zusammenfassung { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 6px 0 0; }
.assistent-zusammenfassung dt { color: var(--text2); font-size: .88rem; }
.assistent-zusammenfassung dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.assistent-dialog .dialog-kopf { padding-bottom: 0; }
.assistent-dialog .dialog-inhalt { padding-bottom: 18px; }
@media (max-width: 420px) { .assistent-zusammenfassung { grid-template-columns: 1fr; gap: 0; } .assistent-zusammenfassung dd { margin-bottom: 8px; } }

.assistent-unterfelder { margin-top: 12px; }
.assistent-erkannt { margin: 0 0 8px; color: var(--text2); }
.seitenkopf .aufgabe-modus { margin-left: auto; font-size: .9rem; }

/* ---------- Dokumentenablage ---------- */
.dok-ablage { display: flex; flex-direction: column; gap: 10px; }
.dok-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dok-leiste select { width: auto; }
.dok-leiste .dok-suche { flex: 1 1 160px; min-width: 0; }
.dok-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: .92rem; flex: 1 1 auto; min-width: 0; }
.dok-hinweis { margin: 0; color: var(--text2); }
.dok-liste { display: flex; flex-direction: column; border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; }
.dok-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rand); background: var(--flaeche); text-align: left; width: 100%; color: var(--text); font: inherit; white-space: normal; border-radius: 0; }
.dok-zeile:last-child { border-bottom: 0; }
.dok-zeile.ordner { border-left: 0; border-right: 0; border-top: 0; cursor: pointer; grid-template-columns: auto minmax(0, 1fr) auto; }
.dok-symbol { font-size: 1.3rem; line-height: 1; }
.dok-text { min-width: 0; }
.dok-name { font-weight: 600; overflow-wrap: anywhere; text-align: left; padding: 0; }
.dok-aktionen { display: flex; gap: 6px; align-items: center; position: relative; }
.dok-mehr > summary { list-style: none; cursor: pointer; }
.dok-mehr > summary::-webkit-details-marker { display: none; }
.dok-menue { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--flaeche); border: 1px solid var(--rand2); border-radius: 12px; box-shadow: var(--schatten-hoch); padding: 6px; display: flex; flex-direction: column; align-items: stretch; min-width: 210px; }
.dok-menue .link { text-align: left; padding: 10px; }
.dok-teilen { display: flex; flex-direction: column; gap: 12px; }
.dok-teilen h4 { margin: 0 0 4px; }
.dok-teilen-extern { display: flex; flex-direction: column; gap: 8px; }
.dok-teilen-extern input[readonly] { font-size: .85rem; margin: 8px 0; }
.dok-freigaben { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.dialog.breit { width: min(100%, 900px); }
.dok-vorschau { display: flex; justify-content: center; }
.dok-vorschau-bild { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.dok-vorschau-pdf { width: 100%; height: 70vh; border: 0; border-radius: 8px; background: #fff; }
.dok-vorschau-text { width: 100%; max-height: 70vh; overflow: auto; white-space: pre-wrap; font-size: .85rem; background: var(--flaeche2, var(--bg)); padding: 12px; border-radius: 8px; }
.projekt-dokumente { padding: 14px; }
@media (max-width: 520px) { .dok-aktionen .klein-btn:not(.geist) { padding: 7px 9px; } }

/* ---------- Öffentliche Freigabe-Seite ---------- */
.teilen-seite { max-width: 520px; margin: 8vh auto 0; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.teilen-marke { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.teilen-marke .marke-t { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--akzent), var(--akzent2)); color: var(--akzent-text); }
.teilen-karte { text-align: center; padding: 28px 22px; }
.teilen-karte h2 { margin: 6px 0; overflow-wrap: anywhere; }
.teilen-karte .aktionen { justify-content: center; margin: 14px 0; }
.teilen-symbol { font-size: 2.6rem; }
.teilen-erklaerung { color: var(--text2); margin-top: 14px; }
.fingerabdruck { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; letter-spacing: .04em; background: var(--akzent-weich); padding: 6px 10px; border-radius: 8px; display: inline-block; line-height: 1.6; word-spacing: .2em; }
.fingerabdruecke h4 { margin: 12px 0 6px; }
.fingerabdruecke summary { cursor: pointer; }
.ds-pruefen .ds-pruef-ergebnis { margin-top: 12px; }
.ds-roh { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; }

/* Organisation (2026.11.02.16) */
.chip.wartet { background: var(--gelb-hell, #fef3c7); color: var(--gelb-text, #92400e); }
.wartet-hinweis { margin: 10px 0; }
.links-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.links-liste .chip { text-decoration: none; }
.mitglied-aktionen { white-space: nowrap; }
.mitglied-aktionen .link { margin-right: 8px; }
@media (max-width: 640px) { .mitglied-aktionen { white-space: normal; } .mitglied-aktionen .link { display: block; margin: 2px 0; } }
.konflikte .konflikt { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.konflikte .konflikt.geloest { opacity: .6; }
.konflikte .konflikt .aktionen { margin-top: 6px; }
.quali { border-bottom: 1px solid var(--rand); padding: 8px 0; }
.quali input[type=text] { font-weight: 600; }
.risiken { list-style: none; padding: 0; margin: 0 0 10px; }
.risiken li { padding: 6px 0; border-bottom: 1px solid var(--rand); }
.risiken li.durch { opacity: .6; text-decoration: line-through; }
.risiko-neu { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .risiko-neu { grid-template-columns: 1fr; } }
.bericht-vorschau { width: 100%; height: min(70vh, 720px); border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
.dok-vorlage { margin-left: 6px; font-size: 11px; }
.dok-verweis-chip { margin-left: 6px; font-size: 11px; }
.dok-verweise { display: flex; flex-direction: column; gap: 6px; }
.dok-zeile.verweis { background: var(--flaeche2, var(--flaeche)); }
.dok-verknuepfen { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dok-verknuepfen-liste { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; border: 1px solid var(--rand); border-radius: 12px; }
.dok-verknuepfen-zeile { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rand); cursor: pointer; }
.dok-verknuepfen-zeile:last-child { border-bottom: 0; }
.dok-verknuepfen-zeile .dok-text { display: flex; flex-direction: column; min-width: 0; }
.dok-verknuepfen-zeile .dok-name { overflow-wrap: anywhere; }
.kopplung-code { font: 700 clamp(26px, 7vw, 38px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-align: center; padding: 14px; margin: 10px 0; border: 2px dashed var(--akzent, #4f46e5); border-radius: 12px; user-select: all; }
.kopplung-schritte { padding-left: 20px; margin: 0; }
.kopplung-schritte li { margin: 4px 0; }
.kopplung-eingabe { font: 600 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.nav-link.nav-neu { color: var(--text3, var(--text2)); font-weight: 500; font-size: .92em; }
/* 2026.11.02.18: Material-Bestand, QR-Codes, Seit-letztem-Besuch, Jahresplan */
.vier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
@media (max-width: 820px) { .vier { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .vier { grid-template-columns: 1fr; } }
.bestand { display: flex; align-items: center; gap: 8px; }
.bestand .klein-btn { min-width: 34px; justify-content: center; }
.qr-bild { background: #fff; padding: 10px; border-radius: var(--radius-s); max-width: 260px; margin: 0 auto; }
.qr-bild svg { display: block; width: 100%; height: auto; }
.seit-karte ul { margin: 6px 0 0; padding-left: 18px; }
.seit-karte li { margin: 2px 0; }
.jahresplan { overflow-x: auto; }
.jp-raster { position: relative; min-width: 720px; }
.jp-monate { display: grid; grid-template-columns: 170px repeat(12, 1fr); font-size: .8em; color: var(--text2); border-bottom: 1px solid var(--rand); }
.jp-monate span { padding: 4px 2px; text-align: center; border-left: 1px solid var(--rand); }
.jp-zeile { display: grid; grid-template-columns: 170px 1fr; align-items: center; min-height: 34px; border-bottom: 1px solid var(--rand); }
.jp-name { font-size: .88em; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-name a { color: inherit; text-decoration: none; }
.jp-spur { position: relative; height: 26px; }
.jp-balken { position: absolute; top: 3px; height: 20px; border-radius: 6px; font-size: .75em; color: #fff; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-decoration: none; min-width: 6px; }
.jp-heute { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--akzent); opacity: .7; pointer-events: none; }
@media print { .jahresplan { overflow: visible; } }
.karte:has(> .tabelle) { overflow-x: auto; }
@media (max-width: 620px) { .jp-monate { grid-template-columns: 110px repeat(12, 1fr); } .jp-zeile { grid-template-columns: 110px 1fr; } .jp-raster { min-width: 640px; } }
/* Mein Monat */
.monat-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.monat-nav strong { font-size: 1.1em; min-width: 150px; text-align: center; }
.monat-kopf .kennzahl.gruen .wert { color: var(--gruen, #16a34a); }
.monat-kopf .kennzahl.rot .wert { color: var(--rot, #dc2626); }
.monat-balken { position: relative; height: 16px; border-radius: 8px; background: var(--flaeche2); margin: 14px 0 6px; overflow: visible; }
.mb-ist { position: absolute; left: 0; top: 0; bottom: 0; background: var(--akzent); border-radius: 8px 0 0 8px; }
.mb-plan { position: absolute; top: 0; bottom: 0; background: var(--akzent); opacity: .35; }
.mb-ziel, .mb-deckel { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); }
.mb-deckel { background: var(--rot, #dc2626); }
.monat-lage { margin: 6px 0 0; }
.monat-vorschau { font-weight: 600; min-height: 1.2em; }
.monat-tag { padding: 4px 12px; }
.monat-eintrag { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.monat-eintrag:last-child { border-bottom: 0; }
.monat-eintrag.blockiert { opacity: .7; }
.me-zeit { font-variant-numeric: tabular-nums; color: var(--text2); }
.me-ist { display: flex; gap: 8px; align-items: center; }
.gruppe-kopf.heute { color: var(--akzent); }
.monat-import-zeile { display: grid; grid-template-columns: 1fr 190px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rand); }
@media (max-width: 620px) { .monat-import-zeile { grid-template-columns: 1fr; } }
tr.aktiv td { font-weight: 650; }
.monat-kurz { display: block; text-decoration: none; color: inherit; border-left: 4px solid var(--akzent); }
.monat-kurz:hover { background: var(--flaeche2); }
.mk-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mk-zahl { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.mk-zahl.gruen { color: var(--gruen, #16a34a); } .mk-zahl.rot { color: var(--rot, #dc2626); }
.mk-balken { display: flex; height: 8px; border-radius: 4px; background: var(--flaeche2); margin: 8px 0 4px; overflow: hidden; }
.mk-ist { background: var(--akzent); } .mk-plan { background: var(--akzent); opacity: .35; }
/* Handbücher (#/hilfe/…): gerendertes Markdown aus docs/*.md */
.md-karte .md { overflow-wrap: anywhere; line-height: 1.55; }
.md h2 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; } .md h2:first-child { margin-top: 0; }
.md h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; } .md h4 { font-size: .95rem; margin: 1rem 0 .3rem; }
.md p { margin: 0 0 .7rem; } .md ul, .md ol { margin: 0 0 .8rem; padding-left: 1.4rem; } .md li { margin: .2rem 0; }
.md code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--flaeche2); padding: 1px 4px; border-radius: 4px; }
.md-scroll { overflow-x: auto; margin: 0 0 .9rem; }
/* Zeichnungen in den Handbüchern (docs/bilder/*.svg, eigene helle Fläche – passt zu hell und dunkel) */
.md img.hilfe-bild { display: block; width: 100%; max-width: 480px; height: auto; margin: .4rem auto 1rem; border-radius: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .md img.hilfe-bild { filter: brightness(.94); } }
[data-thema="dunkel"] .md img.hilfe-bild { filter: brightness(.94); }
@media (max-width: 480px) { .md-karte { padding-left: 10px; padding-right: 10px; } .md .md-tabelle td, .md .md-tabelle th { min-width: 4.5rem; padding: 9px 5px; hyphens: auto; } }
.sicherheit-hinweis .karte-kopf { margin-bottom: 6px; }
.sicherheit-hinweis p { margin: 0 0 10px; }
/* Deutlicher Link „So schützt Theo deine Daten“ (Anmeldung, Einladung) */
.sicherheit-link { margin: 14px 0 6px; }
.sicherheit-link a { display: inline-block; font-weight: 650; color: var(--text); background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 14px; padding: 8px 14px; text-decoration: none; }
.sicherheit-link a:hover { text-decoration: underline; }
.md .md-tabelle td, .md .md-tabelle th { vertical-align: top; overflow-wrap: normal; min-width: 7rem; }
/* Verwaltungslisten (Nutzer, Einladungen, Bereiche): Liste statt Tabelle, damit auf dem Handy nichts rechts ausläuft */
.vw-liste { display: flex; flex-direction: column; }
.vw-eintrag { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rand); min-width: 0; }
.vw-eintrag:last-child { border-bottom: 0; }
.vw-kopf { display: flex; gap: 10px; align-items: center; min-width: 0; }
.vw-kopf > div { min-width: 0; flex: 1; }
.vw-kopf strong, .vw-mail { overflow-wrap: anywhere; word-break: break-word; }
.vw-eintrag.aus .vw-kopf { text-decoration: line-through; opacity: .6; }
.vw-eintrag .aktionen { gap: 6px; }
.vw-eintrag .aktionen .klein-btn { white-space: nowrap; }
/* WhatsApp-Pflicht: Status, Ursache, Startseiten-Karte (lib/wa-pflicht.js) */
.wa-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wa-ursache { overflow-wrap: anywhere; color: var(--warn-text, inherit); background: var(--warn-bg); border-radius: 6px; padding: 6px 8px; }
.wa-pflicht-hinweis input[type=tel] { flex: 1 1 160px; min-width: 0; }

/* Vertrauliche Projekte und Dokumente: Schalter, Personenauswahl, Schloss-Kennzeichen (mobil ohne Überlauf) */
.vp-schalter { margin: 10px 0; min-width: 0; }
.vp-bereich { border-left: 3px solid var(--akzent); padding: 4px 0 4px 12px; margin-top: 8px; min-width: 0; }
.vp-hinweis { margin: 0 0 8px; overflow-wrap: anywhere; }
.vp-personen { display: grid; gap: 2px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
.vp-titel { font-weight: 600; margin-bottom: 2px; }
.vp-person { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 6px 2px; min-height: 40px; cursor: pointer; }
.vp-person input { grid-row: span 2; width: 20px; height: 20px; margin: 0; }
.vp-name { min-width: 0; overflow-wrap: anywhere; }
.vp-rolle { grid-column: 2; color: var(--text2); overflow-wrap: anywhere; }
.vertraulich-chip { white-space: nowrap; background: var(--akzent-weich); color: var(--text); }
.vp-karte p { overflow-wrap: anywhere; }
.dok-vertraulich { margin: 4px 0 8px; min-width: 0; }
@media (max-width: 420px) { .vp-bereich { padding-left: 8px; } .vp-personen { max-height: 50vh; } }
/* Feedback ↔ Vorschlag (Betreiber) */
.feedback-liste { display: flex; flex-direction: column; }
.feedback-eintrag { padding: 12px 0; border-bottom: 1px solid var(--rand); display: flex; flex-direction: column; gap: 6px; }
.feedback-eintrag:last-child { border-bottom: 0; }
.feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-eintrag .aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feedback-eintrag .aktionen select { width: auto; }
.vorschlag-bezug { border-left: 3px solid var(--akzent); padding-left: 10px; margin: 8px 0; }
.bezug-feedback { display: block; color: inherit; text-decoration: none; margin: 4px 0; overflow-wrap: anywhere; }
.bezug-feedback:hover { text-decoration: underline; }
.hervorheben { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 8px; transition: outline-color .3s; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .zwei-spalten { grid-template-columns: 1fr; } }

.vorschlag-ergebnis { border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: var(--gruen-weich, rgba(34,197,94,.12)); }
.vorschlag-ergebnis.abgelehnt { background: var(--rot-weich); }

/* ---------- Aktionsprojekt: Helfer-Seite (/aktion/…, static/aktion.js) und Koordinator-Karte (aktion-ui.js) ---------- */
body.aktion-seite { background: var(--bg); }
.aktion-haupt { max-width: 560px; margin: 0 auto; padding: 12px 12px 40px; box-sizing: border-box; }
.aktion-kopf { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 4px 0 12px; }
.aktion-kopf .marke { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--akzent); color: #fff; font-weight: 800; }
.aktion-titel h1 { font-size: 1.35rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.aktion-ds { margin: 8px 0; }
.aktion-ds summary { cursor: pointer; font-weight: 600; }
.aktion-ds ul { padding-left: 18px; margin: 6px 0; }
.aktion-code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; width: 100%; box-sizing: border-box; margin: 8px 0 12px; }
.umschalter { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--flaeche2); margin: 0 0 12px; }
.umschalter button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; }
.umschalter button.aktiv { background: var(--flaeche); box-shadow: var(--schatten); font-weight: 650; }
.aktion-aufgabe h3 { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.aktion-aufgabe.meine { border-left: 4px solid var(--akzent); }
.aktion-aufgabe.erledigt { opacity: .75; }
.aktion-zeile-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.aktion-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.aktion-knoepfe button { min-height: 40px; }
.aktion-details { margin-top: 10px; border-top: 1px solid var(--rand); padding-top: 8px; }
.aktion-checkliste { list-style: none; padding: 0; margin: 6px 0; }
.aktion-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.aktion-anhaenge .chip { border: 0; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.aktion-kommentar-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.aktion-kommentar-form textarea { flex: 1; min-width: 0; }
.aktion-fuss { margin-top: 18px; text-align: center; }
.aktion-liste { list-style: none; padding: 0; margin: 8px 0; }
.aktion-zeile { padding: 10px 0; border-top: 1px solid var(--rand); }
.aktion-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aktion-link { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: .78rem; margin: 6px 0; }
.aktion-senden { flex-wrap: wrap; }
.aktion-vorschau { white-space: pre-wrap; overflow-wrap: anywhere; }
.aktion-verzeichnis { max-height: 45vh; overflow: auto; margin: 8px 0; }
.aktion-wahl { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rand); cursor: pointer; }
.helfer-chip { background: var(--akzent-weich); }

/* Aufgaben-Vorlagen */
.vorlage-symbol { flex: 0 0 auto; width: 22px; text-align: center; font-size: 1rem; line-height: 22px; }
.unter-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; font-size: .82rem; font-weight: 650; color: var(--text2); }
.vorlagen-hinweis { margin: -4px 0 10px; }
.vorlage-schalter { background: var(--akzent-weich, rgba(14,165,233,.08)); border-radius: 10px; padding: 10px 12px; }
.vorlage-start { margin: 0 0 12px; }
.vorlage-start .primaer { max-width: 100%; white-space: normal; }
.vorlage-detail .karte-kopf h2 { min-width: 0; overflow-wrap: anywhere; }
.aus-vorlage-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; }
.aus-vorlage-zeile select { flex: 1 1 180px; min-width: 0; }
.vorlage-vorschau { margin: -4px 0 10px; font-weight: 600; }

/* ---------- Chat (static/chat.js) ---------- */
.kopf-chat { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text2); }
.kopf-chat:hover { background: var(--flaeche2); }
.kopf-chat .chat-punkt { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--rot, #c2261b); border: 2px solid var(--bg); }
@media (min-width: 900px) { .kopf-chat { display: none; } }
/* Globale Suche (static/suche.js): 🔍 im Kopf (Handy), „Suchen …“ oben in der Seitenleiste (Desktop), Fenster oben am Rand */
.kopf-suche { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: none; border: 0; color: var(--text2); }
.kopf-suche:hover { background: var(--flaeche2); }
@media (min-width: 900px) { .kopf-suche { display: none; } }
.nav-suche { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--rand); background: var(--bg); color: var(--text3); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.nav-suche:hover { color: var(--text); border-color: var(--text3); }
.nav-suche span { flex: 1; }
.nav-suche kbd { font: inherit; font-size: .72rem; padding: 2px 6px; border: 1px solid var(--rand); border-radius: 6px; color: var(--text3); }
.suche-hintergrund { align-items: flex-start; padding-top: max(12px, env(safe-area-inset-top)); }
@media (min-width: 900px) { .suche-hintergrund { padding-top: 10vh; } }
.suche-dialog { width: min(100%, 560px); }
.suche-kopf { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px 14px; }
.suche-kopf > svg.ic { color: var(--text3); flex: none; }
.suche-feld { flex: 1; min-width: 0; min-height: 44px; font-size: 1rem; }
.suche-kopf .dialog-zu { width: 44px; height: 44px; }
.suche-hinweis { margin: 0; padding: 0 16px 8px; color: var(--text3); }
.suche-liste { list-style: none; margin: 0; padding: 0 6px 8px; overflow-y: auto; }
.suche-treffer { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-xs); cursor: pointer; color: var(--text); }
.suche-treffer:hover, .suche-treffer.gewaehlt { background: var(--flaeche2); }
.suche-treffer.gewaehlt { outline: 2px solid var(--akzent); outline-offset: -2px; }
.suche-treffer .symbol { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.suche-treffer .symbol svg.ic { width: 18px; height: 18px; }
.suche-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.suche-text small { color: var(--text2); }
.suche-wo { color: var(--text3); font-weight: 400; }
.suche-treffer > svg.pfeil { color: var(--text3); flex: none; }
.chat-punkt[hidden] { display: none !important; }
.chat-raum-zeile { align-items: center; text-decoration: none; color: inherit; }
.chat-raum-text { flex: 1; min-width: 0; }
.chat-raum-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.punkt-farbe.gross { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; display: inline-block; }
.chat-zahl { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.chat-schutz { color: var(--text3); margin: 0 0 8px; }
.chat-liste { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.chat-tag { text-align: center; color: var(--text3); margin: 10px 0 4px; }
.chat-leer { text-align: center; color: var(--text3); padding: 24px 0; }
.chat-mehr { display: block; margin: 0 auto 8px; }
.chat-reihe { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.chat-reihe.eigen { justify-content: flex-end; }
.chat-blase { max-width: min(78%, 560px); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; cursor: pointer; overflow-wrap: anywhere; }
.chat-blase.eigen { background: var(--akzent-weich); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.chat-blase.ausgeblendet { opacity: .6; }
.chat-blase:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.chat-name { font-size: .75rem; font-weight: 700; color: var(--akzent); margin-bottom: 2px; }
.chat-text { white-space: pre-wrap; line-height: 1.4; }
.chat-zitat { border-left: 3px solid var(--rand2); padding: 2px 8px; margin: 2px 0 6px; font-size: .82rem; color: var(--text2); }
.chat-meta { font-size: .68rem; color: var(--text3); text-align: right; margin-top: 2px; }
.chat-erwaehnung { color: var(--akzent); }
.chat-code { font-weight: 700; }
.chat-form { position: sticky; bottom: calc(var(--unten-hoehe) + env(safe-area-inset-bottom) + 6px); background: var(--bg); padding: 8px 0 4px; z-index: 5; }
@media (min-width: 900px) { .chat-form { bottom: 0; padding-bottom: 12px; } }
.chat-zeile { display: flex; gap: 8px; align-items: flex-end; }
.chat-eingabe { flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 160px; border-radius: 20px; padding: 10px 14px; }
.chat-senden { width: 44px; height: 44px; border-radius: 50%; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto; }
.chat-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat-vorschlaege[hidden], .chat-bezug[hidden] { display: none; }
.chat-bezug { display: flex; gap: 8px; align-items: center; background: var(--flaeche2); border-radius: 12px; padding: 6px 10px; margin-bottom: 6px; }
.chat-bezug-text { flex: 1; min-width: 0; overflow: hidden; }
.chat-nur-lesen { text-align: center; color: var(--text3); }
.chat-personen-wahl { display: flex; flex-direction: column; gap: 4px; max-height: 45vh; overflow-y: auto; margin-top: 8px; }
.chat-person { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.chat-person-text { flex: 1; min-width: 0; }
.chat-person .fingerabdruck { font-family: ui-monospace, monospace; letter-spacing: .02em; }
.banner.warn { background: var(--gelb-weich, #fff7d6); }
.chat-mehr[hidden] { display: none; }
/* Abstimmungen im Chat (abstimmung.js) */
.chat-abstimmung-knopf { width: 44px; height: 44px; border-radius: 50%; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 1.2rem; }
.chat-blase.mit-abstimmung { max-width: min(92%, 560px); width: 100%; cursor: default; }
.abstimmung { display: flex; flex-direction: column; gap: 6px; }
.abstimmung-frage { font-weight: 600; white-space: pre-wrap; }
.abstimmung-option { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 1px solid var(--rand); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.abstimmung-option:disabled { cursor: default; opacity: 1; }
.abstimmung-option.gewaehlt { border-color: var(--akzent); background: var(--akzent-weich); }
.abstimmung-option.vorn { border-color: var(--gruen); }
.abstimmung-option-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.abstimmung-option-text { overflow-wrap: anywhere; }
.abstimmung-zahl { font-weight: 700; font-variant-numeric: tabular-nums; }
.abstimmung-option .balken { height: 8px; }
.abstimmung-option.vorn .balken > div { background: var(--gruen); }
.abstimmung-wer { color: var(--text3); margin-top: 3px; }
.abstimmung-stand, .abstimmung-art { color: var(--text3); }
.abstimmung-aktionen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.abstimmung-aktionen:empty { display: none; }
.abstimmung-uebernommen { color: var(--gruen); font-weight: 600; }
.abstimmung-optionen { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.abstimmung-option-zeile { display: flex; gap: 6px; align-items: center; }
.abstimmung-option-zeile input { flex: 1; min-width: 0; }

/* Abstand zum Projektbeginn ohne Datum – „Termin folgt“ (2026.11.03.12) */
.termin-folgt { color: var(--text2); font-style: italic; }
.warten-auf-beginn .sehr-klein { margin: -4px 0 8px; }
/* „Neue Aufgabe im Projekt „…““ – der Projektname kleiner, bricht am Handy um */
h1 .im-projekt, h1 .teil-von { display: block; font-size: .72em; font-weight: 500; color: var(--text2); overflow-wrap: anywhere; }

/* Jahresplaner mit Konfliktprüfung (2026.11.03.14, static/jahresplaner.js) */
.jpl-filterkarte { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; }
.jpl-filterkarte .schalter { margin: 0; }
.jpl-filter { flex: 1 1 220px; min-width: 0; }
.jpl-bereich-chip .punkt-farbe { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.jpl-ohne-schluessel { margin: -6px 0 12px; }
.jpl-konflikt-karte { cursor: pointer; border-left: 4px solid var(--gruen); }
.jpl-konflikt-karte.offen { border-left-color: var(--rot); }
.jpl-konflikt-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jpl-konflikt-text { flex: 1; min-width: 0; }
.jpl-zahl { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; min-width: 34px; text-align: center; color: var(--gruen); }
.jpl-konflikt-karte.offen .jpl-zahl { color: var(--rot); }
.jpl-pfeil { color: var(--text3); transition: transform .15s; }
.jpl-konflikt-karte[aria-expanded="true"] .jpl-pfeil { transform: rotate(180deg); }
.jpl-konflikt-details { margin-top: 12px; border-top: 1px solid var(--rand); padding-top: 10px; cursor: default; }
.jpl-konflikt-details[hidden] { display: none; }
.jpl-konflikt { padding: 8px 0; border-bottom: 1px solid var(--rand); }
.jpl-konflikt:last-child { border-bottom: 0; }
.jpl-konflikt-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; overflow-wrap: anywhere; }
.jpl-eintraege { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.jpl-eintraege li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .9rem; overflow-wrap: anywhere; }
.jpl-eintraege li a.titel { color: inherit; font-weight: 600; }
.jpl-summe { margin: 4px 0 8px; }
.jpl-monatsnav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.jpl-monatsnav a { font-size: .74rem; padding: 3px 7px; border-radius: 999px; background: var(--flaeche2); color: var(--text2); text-decoration: none; }
.jpl-monatsnav a.leer { opacity: .5; }
.jpl-monatsnav a.jetzt { background: var(--akzent-weich); color: var(--akzent); font-weight: 650; }
.jpl-monat { scroll-margin-top: 70px; }
.jpl-monat-kopf.jetzt { color: var(--akzent); }
.jpl-monat.leer .gruppe-kopf { margin: 6px 0; color: var(--text3); font-weight: 550; }
.jpl-projekt { border-left: 4px solid var(--bf, var(--rand2)); cursor: pointer; margin-bottom: 8px; padding: 12px 14px; }
.jpl-projekt.weiter { padding: 8px 14px; opacity: .78; }
.jpl-projekt.fertig .jpl-projekt-titel { color: var(--text2); }
.jpl-projekt-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.jpl-projekt-titel { font-weight: 650; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.jpl-projekt .meta { margin-top: 4px; flex-wrap: wrap; }
.jpl-projekt-aktionen { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.jpl-projekt-aktionen:empty { display: none; }
.jpl-verschieben .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .jpl-verschieben .zwei { grid-template-columns: 1fr; } }
/* ---------- Quartalsrückblick („Euer Quartal“, static/rueckblick.js) ---------- */
.rb-karte .karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rb-karte h3 { margin: 0; }
.rb-klein { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-left: 4px solid var(--akzent); }
.rb-titelzeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 6px; }
.rb-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rb-zahl { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-s); padding: 8px 10px; }
.rb-wert { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; }
.rb-text { font-size: .78rem; color: var(--text2); line-height: 1.15; }
.rb-danke { margin: 10px 0 0; }
.rb-dank { margin: 8px 0 0; color: var(--text2); }
.rb-karte .aktionen, .rb-teil .aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rb-teil { border-top: 1px solid var(--rand); padding-top: 8px; margin-top: 8px; }
.rb-dialog label.klein { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rb-dialog label.klein select { flex: 1; }
/* Aktionstag live (2026.11.03.16, static/live.js, static/live-helfer.js) – mobil zuerst */
.live-kopf { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-kopf .kennzahl { padding: 10px 10px; min-width: 0; }
.live-kopf .kennzahl .wert { font-size: 1.35rem; }
.live-kopf .kennzahl .name { overflow-wrap: anywhere; }
.live-anwesend .wert { color: var(--akzent); }
.live-fixpunkt .name .titel { display: block; font-weight: 600; color: var(--text); }
.live-checkin .breit { width: 100%; font-size: 1.05rem; padding: 12px; }
.live-liste { list-style: none; margin: 0; padding: 0; }
.live-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rand); }
.live-zeile:first-child { border-top: 0; padding-top: 0; }
.live-zeile-text { min-width: 0; flex: 1; }
.live-zeile-text .titel { display: block; overflow-wrap: anywhere; text-decoration: none; color: var(--text); font-weight: 550; }
.live-zeile.erledigt .titel { color: var(--text3); }
.live-station .karte-kopf h3 { overflow-wrap: anywhere; }
.live-durchsagen-liste { list-style: none; margin: 0; padding: 0; }
.live-durchsagen-liste li { padding: 8px 10px; margin-bottom: 8px; background: var(--akzent-weich); border-radius: var(--radius-s); }
.live-durchsagen-liste .kommentar-text { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-qr { max-width: min(80vw, 360px); }
.live-hinweis { margin-top: 12px; }
.live-knopf-platz { display: none; }
.live-helfer-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.live-helfer-zaehler { font-size: .95rem; }
.live-helfer-zaehler .live-anwesend-zahl { font-size: 1.3rem; color: var(--akzent); }
.live-helfer h3 { margin: 6px 0 8px; font-size: .95rem; }
/* Übergabe-Assistent für Koordinatoren (2026.11.03.17) */
.uebergabe-liste { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.uebergabe-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uebergabe-titel { margin: 0 0 6px; font-size: 1.15rem; overflow-wrap: anywhere; }
.uebergabe-gruppe h4 { margin: 14px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); }
.uebergabe-punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.uebergabe-punkt { border: 1px solid var(--rand); border-radius: var(--radius-s); padding: 10px 12px; background: var(--flaeche); }
.uebergabe-punkt.gesehen { background: var(--gruen-weich); border-color: color-mix(in srgb, var(--gruen) 35%, transparent); }
.uebergabe-punkt-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uebergabe-punkt-kopf .titel { flex: 1 1 160px; }
.uebergabe-punkt-kopf .gesehen-btn { margin-left: auto; }
.uebergabe-punkt .klein { margin: 6px 0 0; }
.uebergabe-stufe { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; background: var(--flaeche2); flex: 0 0 auto; }
.uebergabe-stufe.gruen { background: var(--gruen-weich); } .uebergabe-stufe.warn { background: var(--gelb-weich); } .uebergabe-stufe.rot { background: var(--rot-weich); }
.uebergabe-namen { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; color: var(--text2); }
.uebergabe-namen li { overflow-wrap: anywhere; }
.uebergabe-fortschritt { margin: 0 0 4px; }
.uebergabe-abschluss .aktionen { margin: 8px 0 12px; }
/* ---------- Offline-Modus (offline.js): Kopf-Zähler, Leiste, Liste der wartenden Änderungen ---------- */
.kopf-warten { border: 0; border-radius: 999px; background: var(--gelb-weich); color: var(--gelb); font-size: .74rem; font-weight: 650; padding: 4px 10px; cursor: pointer; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.kopf-warten.mit-fehler { background: color-mix(in srgb, var(--rot, #c2261b) 14%, transparent); color: var(--rot, #c2261b); }
.offline button.link { color: #fff; text-decoration: underline; margin-left: 8px; font-weight: 650; background: none; border: 0; cursor: pointer; font-size: inherit; }
.offline.mit-fehler { background: var(--rot, #c2261b); }
.offline-liste h4 { margin: 10px 0 6px; }
.offline-eintrag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.offline-eintrag > div:first-child { flex: 1 1 200px; min-width: 0; }
.offline-eintrag .aktionen { display: flex; gap: 6px; flex-shrink: 0; }
.offline-eintrag.fehler strong { color: var(--rot, #c2261b); }

/* ---------- Termine (2026.11.04.3, static/termine.js) ---------- */
.termine-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.termine-leiste .aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.termin-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.termin-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); color: inherit; text-decoration: none; flex-wrap: wrap; }
.termin-zeile:hover { border-color: var(--rand2); }
.termin-zeile.abgesagt .titel { text-decoration: line-through; }
.termin-zeile .termin-text { flex: 1 1 180px; min-width: 0; }
.termin-zeile .titel { font-weight: 650; overflow-wrap: anywhere; }
.termin-zeile .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .8rem; color: var(--text2); margin-top: 2px; }
.termin-datum { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border-radius: 10px; background: var(--akzent-weich); color: var(--akzent); line-height: 1.1; }
.termin-datum strong { font-size: 1.2rem; }
.termin-datum .wt, .termin-datum .mo { font-size: .68rem; font-weight: 650; text-transform: uppercase; }
.termin-antwort { display: flex; gap: 6px; flex-shrink: 0; }
.termin-liste.kompakt .termin-zeile { padding: 8px 10px; }
.termin-vorbei summary { cursor: pointer; font-weight: 600; }
.termin-ueberzeile { text-transform: uppercase; }
.termin-ueberzeile, .ueberzeile { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--text2); }
.termin-kopf h1 { margin-top: 2px; }
.termin-fakten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.termin-fakten dt { color: var(--text2); font-size: .85rem; }
.termin-fakten dd { margin: 0; }
.termin-teilnehmer { list-style: none; margin: 0; padding: 0; }
.termin-teilnehmer li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.termin-teilnehmer .name { flex: 1 1 120px; min-width: 0; }
.termin-heute { border-left: 4px solid var(--akzent); }
.termin-heute-kopf, .persoenlich-heute .karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.termin-heute-titel { display: block; font-size: 1.15rem; font-weight: 700; margin: 4px 0; color: inherit; text-decoration: none; }
.termin-heute .aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.termin-personen { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.persoenlich-liste { list-style: none; margin: 8px 0; padding: 0; }
.persoenlich-liste li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--rand); }
.persoenlich-liste li .kontrollkaestchen { flex: 1 1 auto; min-width: 0; }
.persoenlich-neu { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.persoenlich-neu input[type=text] { flex: 1 1 200px; }
.persoenlich-neu .persoenlich-tage { width: 72px; }
.durch { text-decoration: line-through; color: var(--text2); }
.termin-monat .tm-tag { background: var(--flaeche); min-height: 92px; padding: 4px; min-width: 0; }
.termin-monat .tm-tag.fremd { background: var(--flaeche2); color: var(--text2); }
.termin-monat .tm-tag.we:not(.fremd) { background: color-mix(in srgb, var(--flaeche) 92%, var(--text3)); }
.termin-monat .tm-nr { font-size: .78rem; font-weight: 650; padding: 1px 4px; margin-bottom: 3px; }
.termin-monat .tm-tag.heute .tm-nr { background: #4f46e5; color: #fff; border-radius: 999px; display: inline-block; min-width: 22px; text-align: center; }
.termin-monat .tm-eintrag { display: block; font-size: .72rem; line-height: 1.25; padding: 2px 4px; margin-bottom: 2px; border-left: 3px solid; border-radius: 3px; background: var(--flaeche2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
.termin-monat .tm-eintrag.abgesagt { text-decoration: line-through; }
.termin-monat .tm-mehr { font-size: .68rem; color: var(--text2); padding-left: 4px; }
@media (max-width: 700px) {
  .termin-monat .tm-tag { min-height: 54px; }
  .termin-monat .tm-eintrag { font-size: .62rem; padding: 1px 2px; }
}
.kalender-auswahl table { width: 100%; border-collapse: collapse; }
.kalender-auswahl th, .kalender-auswahl td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.kalender-auswahl select { min-width: 0; max-width: 100%; }
.kalender-auswahl .ka-hinweis { color: var(--gelb); }
@media (max-width: 620px) {
  .kalender-auswahl table, .kalender-auswahl tbody, .kalender-auswahl tr, .kalender-auswahl td { display: block; }
  .kalender-auswahl thead { display: none; }
  .kalender-auswahl tr { padding: 8px 0; border-bottom: 1px solid var(--rand); }
  .kalender-auswahl td { border: 0; padding: 3px 0; }
  .kalender-auswahl td[data-label]::before { content: attr(data-label) ': '; color: var(--text2); font-size: .8rem; display: inline-block; min-width: 72px; }
}
.jpl-termin { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-left: 3px solid var(--bf, var(--akzent)); background: var(--flaeche); border-radius: 6px; margin: 4px 0; color: inherit; text-decoration: none; flex-wrap: wrap; }
.jpl-termin .titel { font-weight: 600; }
.jpl-termin.abgesagt .titel { text-decoration: line-through; }

/* Abhängigkeiten (Termine Stufe 2) */
.abhaengigkeiten-karte .karte-kopf { flex-wrap: wrap; gap: 6px; }
.abh-gruppe { margin-top: 12px; }
.abh-kopf { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--text2); text-transform: uppercase; margin: 10px 0 4px; }
.abh-liste { list-style: none; padding: 0; margin: 0; }
.abh-zeile { position: relative; padding: 8px 28px 8px 0; border-bottom: 1px solid var(--rand); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.abh-zeile:last-child { border-bottom: 0; }
.abh-zeile .abh-unter { flex-basis: 100%; }
.abh-zeile .abh-weg { position: absolute; right: 0; top: 8px; }
.abh-zeile.kritisch { box-shadow: inset 3px 0 0 var(--rot); padding-left: 8px; }
.verschieben-vorschau { display: grid; gap: 6px; margin-top: 8px; }
.verschieben-vorschau .ueberzeile { margin-top: 8px; }
.verschieben-kopf { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verschieben-kopf .alt { color: var(--text3); text-decoration: line-through; }
.tl-balken.termin-raute { background: var(--akzent, #4f46e5); }
svg.tl-pfeile path.kritisch { stroke: var(--rot); stroke-width: 2; }
.rueckfrage-karte { border-left: 3px solid var(--akzent, #4f46e5); }

/* ---------- Termine Stufe 3: Bereitschaft („Sind wir bereit?“), Verbund, Stränge ---------- */
.bs-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bs-kachel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-s, 10px); padding: 12px 14px; min-width: 0; }
.bs-kachel .bs-wert { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.bs-kachel.ampel-rot { border-left: 4px solid var(--rot); } .bs-kachel.ampel-gelb { border-left: 4px solid var(--gelb); } .bs-kachel.ampel-gruen { border-left: 4px solid var(--gruen); }
.bs-straenge { display: flex; flex-direction: column; gap: 12px; }
.bs-strang { min-width: 0; }
.bs-strang-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-width: 0; }
.bs-strang-name { overflow-wrap: anywhere; }
.bs-zahl { margin-left: auto; font-size: .85rem; color: var(--text2); white-space: nowrap; }
.bs-aktionen { display: inline-flex; gap: 2px; }
.bs-balken { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--rand); margin: 6px 0 2px; }
.bs-teil.erledigt { background: var(--gruen); } .bs-teil.offen { background: color-mix(in srgb, var(--akzent) 35%, transparent); }
.bs-teil.blockiert { background: var(--gelb); } .bs-teil.ueberfaellig { background: var(--rot); }
.bs-strang.fremd .bs-strang-name { color: var(--text2); }
.bs-strang.persoenlich { border-top: 1px dashed var(--rand); padding-top: 10px; }
.bs-nur-zahlen { font-style: italic; }
.bs-pfad-liste { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bs-pfad-liste li.ueberfaellig { color: var(--rot); }
.bs-konflikt-liste { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bs-konflikt { display: flex; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.verbund-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.verbund-wahl { display: flex; flex-direction: column; gap: 6px; }
.farbpunkt { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: middle; }
.termin-freigabe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ka-gemeinsam { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.bs-heute { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 480px) { .bs-zahl { margin-left: 0; white-space: normal; } .bs-kachel .bs-wert { font-size: 1.3rem; } }

/* Termine Stufe 4: Protokoll */
.protokoll .karte-kopf { flex-wrap: wrap; gap: 8px; }
.protokoll .karte-kopf .aktionen { flex-wrap: wrap; }
.protokoll-freigabe { flex-wrap: wrap; gap: 8px; }
.protokoll-freigabe .text { flex: 1 1 220px; min-width: 0; }
.protokoll-nr { color: var(--akzent); font-variant-numeric: tabular-nums; }
.protokoll-titel { width: 100%; max-width: 32em; }
.protokoll-aufgaben { margin: 8px 0 0; padding-left: 1.2em; }
.protokoll-aufgaben li { margin: 4px 0; }
.protokoll-uebertrag { border-left: 3px solid var(--akzent); }
.protokoll-vorher { white-space: pre-wrap; max-height: 50vh; overflow: auto; font: inherit; }
.protokoll-wer { border: 1px solid var(--rand, #ddd); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.retro-liste { list-style: none; padding: 0; }
.retro-liste li { margin: 6px 0; }
.aufgabe-entwurf { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
/* Notfall N2: Betriebs-Banner (Übergabemodus, neue Bot-Nummer, erbetene Bestätigungen) */
.betrieb-leiste { padding: 7px 12px; font-size: .84rem; text-align: center; line-height: 1.35; }
.betrieb-leiste.warn { background: var(--gelb); color: #1a1a1a; font-weight: 600; }
.betrieb-leiste.info { background: var(--akzent-hell, #e8eefc); color: var(--text, #1a1a1a); }
.betrieb-leiste a, .betrieb-leiste button.link { color: inherit; text-decoration: underline; font-weight: 650; background: none; border: 0; cursor: pointer; font-size: inherit; margin-left: 4px; }
.admin-hinweis-karte { margin-top: 10px; }

/* Notbetrieb (static/notbetrieb.js) */
.notbetrieb-banner { position: sticky; top: 0; z-index: 60; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .5rem 1rem; background: #fde68a; color: #3b2f00; font-size: .9rem; border-bottom: 1px solid #e0b100; }
.notbetrieb-banner.nur-lesen { background: #fecaca; color: #4a0d0d; border-bottom-color: #d14343; }
.notbetrieb-banner .klein-btn { margin-left: auto; }
.notbetrieb-karte .pruefsumme, .dialog .pruefsumme { display: block; font-size: .8rem; word-break: break-all; padding: .4rem; background: var(--flaeche-2, #f3f4f6); border-radius: 6px; }
.notbetrieb-anmeldung { margin: .5rem 0 1rem; }
.notbetrieb-banner.uebung { background: #ddd6fe; color: #2e1065; border-bottom-color: #7c3aed; }

/* Verwaltung (static/verwaltung.js): Start mit Suche, „Jetzt zu tun“ und Gruppen-Kacheln; Gruppen mit aufklappbaren Karten-Zeilen.
   Mobil zuerst (iPhone 375 px): Tippflächen mindestens 44 px, nichts läuft seitlich heraus. */
.vw-suchbox { position: relative; margin: 0 0 14px; }
.vw-suche { width: 100%; min-height: 44px; font-size: 1rem; }
.vw-treffer { list-style: none; margin: 6px 0 0; padding: 4px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-s); box-shadow: var(--schatten); }
.vw-treffer li a { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-height: 44px; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: var(--radius-xs); }
.vw-treffer li a:hover, .vw-treffer li a:focus-visible { background: var(--flaeche2); }
.vw-treffer-leer { padding: 10px; }
.vw-jetzt { border-color: color-mix(in srgb, var(--gelb) 35%, var(--rand)); }
.vw-jetzt > h2 { font-size: 1.1rem; margin-bottom: 6px; }
.vw-tun-liste { list-style: none; margin: 0; padding: 0; }
.vw-tun-liste li + li { border-top: 1px solid var(--rand); }
.vw-tun a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; color: var(--text); text-decoration: none; }
.vw-tun-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vw-pfeil { flex: 0 0 auto; color: var(--text3); font-size: 1.3rem; line-height: 1; margin-left: auto; }
.vw-antraege { margin-top: 12px; }
.vw-antraege > h3 { font-size: .95rem; margin-bottom: 4px; }
.vw-antraege .karte { box-shadow: none; }
.vw-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 14px; }
.vw-kachel { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); color: var(--text); text-decoration: none; min-width: 0; }
.vw-kachel:hover, .vw-kachel:focus-visible { border-color: var(--akzent); }
.vw-kachel-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--akzent-weich); color: var(--akzent); }
.vw-kachel-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vw-kachel-text .sehr-klein { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-kurzstatus { margin: 0 0 14px; color: var(--text2); line-height: 1.6; }
.vw-was-siehst > summary, .vw-erweitert > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.vw-was-siehst[open] > summary { margin-bottom: 6px; }
.vw-gruppenkopf { align-items: flex-end; }
.vw-zurueck { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; }
.vw-sprung a { min-height: 44px; }
.vw-abschnitt { font-size: .8rem; font-weight: 650; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.vw-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); margin: 0 0 10px; box-shadow: var(--schatten); }
.vw-karte.vw-warn { border-color: color-mix(in srgb, var(--rot) 45%, var(--rand)); }
.vw-karte > summary, .vw-erweitert > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius); }
.vw-karte > summary::-webkit-details-marker, .vw-erweitert > summary::-webkit-details-marker, .vw-was-siehst > summary::-webkit-details-marker { display: none; }
.vw-karte > summary:focus-visible, .vw-erweitert > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.vw-karte-titel { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.vw-karte > summary .vw-pfeil, .vw-erweitert > summary .vw-pfeil { transition: transform .15s; }
.vw-karte[open] > summary .vw-pfeil, .vw-erweitert[open] > summary .vw-pfeil { transform: rotate(90deg); }
.vw-karte > summary .chip { flex: 0 0 auto; }
.vw-karte-inhalt { padding: 0 14px 12px; min-width: 0; }
.vw-erklaer { margin: 0 0 10px; }
.vw-karte-inhalt > .karte, .vw-karte-inhalt > div > .karte { box-shadow: none; padding: 12px; margin-bottom: 10px; }
.vw-karte-inhalt > .karte:not(.warn):not(.fehler):not(.info), .vw-karte-inhalt > div > .karte:not(.warn):not(.fehler):not(.info):not(.hinweis) { border: 0; padding: 0; background: transparent; }
.vw-karte-inhalt > .karte > h3:first-child, .vw-karte-inhalt > .karte > .karte-kopf:first-child h3 { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vw-erweitert { margin: 16px 0 10px; }
.vw-erweitert > summary { color: var(--text2); background: var(--flaeche2); flex-wrap: wrap; }
.vw-erweitert > summary .sehr-klein { flex: 1 1 160px; min-width: 0; }
.vw-erweitert[open] > summary { margin-bottom: 10px; }
/* Menü (static/ich.js) und Unterseiten mit Abschnitten (static/gruppen-ui.js) */
.vw-bereich { scroll-margin-top: 70px; }
.vw-bereich > .vw-abschnitt { margin-top: 20px; }
.vw-bereich > .karte, .vw-bereich > .menue { margin-bottom: 12px; }
.menue .gr-zeile { min-height: 56px; }
.menue .gr-zeile .chip { flex: 0 0 auto; }
.menue .gr-titel { display: inline-flex; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.ich-kopf { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ich-kopf-text { flex: 1 1 auto; min-width: 0; }
.ich-kopf-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ich-kopf-name h1 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.ich-kopf .ich-email { overflow-wrap: anywhere; }
.ich-kopf .chips { margin-top: 6px; }
.ich-name-aendern { min-height: 44px; }
.ich-jetzt .vw-tun .chip { flex: 0 0 auto; }
.ich-liste { margin-bottom: 12px; }
[data-sprung], #ich-name, #ich-appstand, .vw-erweitert { scroll-margin-top: 70px; }
.popup .popup-trenner { border-top: 1px solid var(--rand); border-bottom: 0; margin: 4px 0 0; padding: 8px 10px 4px; }
.fristen-gruppe { margin: 8px 0; border-top: 1px solid var(--rand); }
.fristen-gruppe > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
@media (max-width: 480px) {
  .ich-kopf .avatar.gross { width: 52px; height: 52px; font-size: 1.15rem; }
  .vw-gruppen { grid-template-columns: 1fr; }
  .vw-gruppenkopf .aktionen { display: none; }
}
.protokoll-scroll { overflow-x: auto; max-width: 100%; }

/* „Wichtig für dich“ (static/wichtig.js): Dialog beim Öffnen, Streifen auf Heute, Markierung in den Neuerungen */
.wichtig-dialog { width: min(100%, 520px); border-top: 4px solid var(--rot); }
.wichtig-dialog:focus { outline: none; }
.wichtig-liste { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.wichtig-punkt { padding: 12px 14px; border-radius: var(--radius-s); background: var(--flaeche2); border: 1px solid var(--rand); }
.wichtig-punkt-kopf { font-size: 1rem; font-weight: 650; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0 0 4px; overflow-wrap: anywhere; }
.wichtig-punkt p { margin: 4px 0; overflow-wrap: anywhere; }
.wichtig-mehr { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; padding: 0; }
.wichtig-dialog .dialog-aktionen button { min-height: 44px; min-width: 96px; }
.wichtig-streifen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius); background: var(--rot-weich); border: 1px solid var(--rot); color: var(--text); }
.wichtig-streifen-zeichen { font-size: 1.1rem; }
.wichtig-streifen-text { flex: 1 1 160px; font-weight: 650; }
.wichtig-streifen button { min-height: 44px; }
.neuerung.wichtig-neuerung { border-left: 4px solid var(--rot); }
.neuerung.ziel { box-shadow: 0 0 0 2px var(--akzent); }
.chip.wichtig-chip { margin-top: 6px; display: inline-block; }
.wichtig-neuerungen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wichtig-neuerungen p { flex: 1 1 200px; margin: 0; }

/* Heute (static/hinweise.js) und Handlungsliste (static/handlungen.js) – Menü-Spec Schritt 1, 05.11.2026 */
.kritisch-banner { border: 2px solid var(--rot); }
.hl-liste ul, ul.hl-offen { list-style: none; margin: 0; padding: 0; }
.hl-punkt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 2px; }
ul.hl-offen > li + li, .hl-erledigt li + li { border-top: 1px solid var(--rand); }
.hl-zeichen { flex: 0 0 1.4em; text-align: center; font-weight: 700; }
.hl-warn .hl-zeichen { color: var(--rot); }
.hl-wartet .hl-zeichen { color: var(--gelb); }
.hl-ok .hl-zeichen { color: var(--gruen); }
.hl-ok .hl-titel { color: var(--text2); }
.hl-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.hl-knopf { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
.hl-warum > summary, .wichtig-warum > summary { cursor: pointer; color: var(--text2); font-size: .85rem; min-height: 32px; display: inline-flex; align-items: center; }
.hl-warum p { margin: 2px 0 4px; }
.hl-synchron { align-self: flex-start; min-height: 44px; font-size: .85rem; }
.hl-weitere > summary, .hl-erledigt > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text2); font-weight: 600; }
.hl-abschnitt { margin: 8px 0 12px; }
.hl-kopf { font-size: 1rem; margin: 8px 0 4px; text-transform: none; letter-spacing: 0; }
.mehr-fuer-dich > summary:focus-visible, .einrichtung-kasten > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.mehr-fuer-dich > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.mehr-fuer-dich > summary::-webkit-details-marker { display: none; }
.mehr-fuer-dich > summary::after { content: '▾'; margin-left: auto; color: var(--text2); }
.mehr-fuer-dich[open] > summary::after { content: '▴'; }
.mehr-titel { font-size: 1.05rem; margin: 0; }
.mehr-inhalt { margin-top: 10px; }
.heute-abschnitt { margin-bottom: 4px; }
.treuhand-heute-liste { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.treuhand-heute-liste p { margin: 0 0 6px; }
.rolle-was > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* Zeile: Text volle Breite, Knopf darunter (375 px: kein Zusammenquetschen) */
.hl-punkt { flex-wrap: wrap; align-items: flex-start; }
.hl-punkt > .hl-text { flex: 1 1 calc(100% - 2.4em); }
.hl-punkt > .hl-knopf { margin-left: calc(1.4em + 10px); }
.hl-punkt > .hl-zeichen { padding-top: 2px; }

/* Start klar priorisiert (static/start-einordnung.js, 06.11.2026): kritisch als Vollbanner · „Jetzt wichtig“ · „Einrichtung“ eingeklappt */
.umzug-kritisch { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
.umzug-kritisch .umzug-titel { display: block; font-size: 1.1rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.umzug-kritisch .umzug-haupt { min-height: 48px; width: 100%; justify-content: center; font-size: 1rem; }
.umzug-nebenwege { margin-top: 6px; color: var(--text2); }
.umzug-nebenwege .link { min-height: 44px; padding: 0; }
.jetzt-wichtig { border: 2px solid var(--rot); }
.jetzt-wichtig-titel { font-size: 1.15rem; margin: 0 0 6px; }
.hl-karte-inhalt { margin: 6px 0 4px; }
.hl-karte-inhalt > .karte, .hl-karte-inhalt > .banner, .hl-karte-inhalt > section { margin: 0; }
.hl-details { align-self: flex-start; min-height: 44px; padding: 0; font-size: .85rem; }
.einrichtung-kasten > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; flex-direction: column; gap: 6px; }
.einrichtung-kasten > summary::-webkit-details-marker { display: none; }
.einrichtung-kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.einrichtung-kopf::after { content: '▾'; margin-left: auto; color: var(--text2); }
.einrichtung-kasten[open] .einrichtung-kopf::after { content: '▴'; }
.einrichtung-titel { font-size: 1.05rem; }
.einrichtung-stand { color: var(--text2); }
.einrichtung-balken { width: 100%; height: 6px; accent-color: var(--akzent); }
.einrichtung-erklaer { color: var(--text2); margin: 8px 0 4px; }
.einrichtung-kasten .hl-offen .hl-zeichen { color: var(--text2); }
.ich-jetzt .einrichtung-kasten { border: 0; box-shadow: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px solid var(--rand); border-radius: 0; background: none; }
.wichtig-streifen.ruhig { background: none; border: 0; border-top: 1px solid var(--rand); border-radius: 0; padding: 4px 2px; margin: 4px 0 10px; color: var(--text2); font-size: .9rem; gap: 6px; }
.wichtig-streifen.ruhig .wichtig-streifen-text { font-weight: 400; }
.wichtig-streifen.ruhig .wichtig-streifen-knopf { min-height: 44px; padding: 0; font-weight: 600; }
.wichtig-einrichtung { margin: 4px 0 8px; color: var(--text2); }
.wichtig-jetzt { border-width: 1px; }
/* ---------- Funktionstest „tägliche Arbeit“ (ft1, 06.11.2026) ---------- */
/* M4: Mein Monat – die Monatszeile bricht um statt die Seite seitlich zu verschieben */
.monat-nav { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 480px) { .monat-nav strong { min-width: 0; flex: 1 1 auto; } }
/* M10/M11: „Aufgabe löschen“ mit Abstand zu „⋯“ (kein Fehlgriff) */
.karte-kopf .aktionen .aufgabe-loeschen { margin-left: 14px; }
/* M11: Tippflächen mindestens 44 px auf dem Handy */
@media (max-width: 700px) {
  button.klein-btn, .btn.klein-btn, a.btn, .btn { min-height: 44px; }
  .termin-antwort .klein-btn { min-height: 44px; padding-left: 12px; padding-right: 12px; }
  .karte-kopf .aktionen .klein-btn { min-width: 44px; justify-content: center; }
  .zeile .schiebe-btn { min-width: 44px; height: 44px; font-size: .8rem; }
  .hl-warum > summary, .wichtig-warum > summary { min-height: 44px; min-width: 44px; }
  .klein-tabs button, .klein-tabs a, .umschalter button { min-height: 44px; }
  .zurueck, .vw-zurueck { min-height: 44px; margin-bottom: 0; }
  .kopf-chat { width: 44px; height: 44px; }
  button.avatar-knopf { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  /* Abhaken-Kreis: sichtbar bleibt der 22-px-Kreis, die Tippfläche ist 44 × 44 px (gleiches Layout dank negativem Rand) */
  .haken { width: 44px; height: 44px; margin: -10px -11px -12px; border: 0; background: none; position: relative; z-index: 0; }
  .haken::before { content: ''; position: absolute; left: 11px; top: 11px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--rand2); z-index: -1; }
  .haken:hover { background: none; }
  .haken:hover::before { border-color: var(--gruen); background: var(--gruen-weich); }
  .haken.an { background: none; }
  .haken.an::before { background: var(--gruen); border-color: var(--gruen); }
}
.hl-zweit { display: block; margin-top: 4px; }
