/* Hülle (hub.html) – Farben und Schrift wie planlotse.org (:root der Live-Seite, gemessen 29.10.2026) */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter_Tight-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/DM_Mono-400-latin.woff2') format('woff2'); }
:root {
  --vk-breite: 340px;   /* Verortungskarte (24.11.2026): Breite der linken Kartenspalte – Maß der Beteiligung (.hb-streifen), Konstante aller Oberflächen; Spiegel in hub/verortungskarte.css */
  --ink: #253034; --ink-mid: #4a5659; --ink-soft: #5a666b; --paper: #f3efe6; --white: #fbf9f4; --schwarz: #111;
  --accent: #355d6a; --accent-mid: #2a4c57; --accent-light: #e0e7e5;
  --green: #4E7359; --green-light: #DEE7DC; --amber: #8C6A2E; --amber-light: #EFE6D2; --red: #A5443A; --red-light: #F1DED9;
  --border: #dcd5c7; --linie: #e6e0d4; --leise: #b9b1a1;
  /* Seit Farbstil-Auswahl (hub/stile.js, 29.10.2026): früher fest eingetragene Werte als Variablen – stile.js setzt sie je Palette neu */
  --kupfer: #a2603a; --kupfer-light: #f2e4d9; --kupfer-ink: #7a4527; --green-ink: #3b5a45; --amber-ink: #6d521f; --red-ink: #7d3129;
  --hover: #f0ebe1; --kante: #d6d4cc; --feld: #fff; --bild: #e6e0d4; --auf-schwarz: #fbf9f4; --auf-akzent: #fff; --auf-signal: #fff;
  --dunkel-grund: #111; --dunkel-text: #e9e4d8; --dunkel-leise: #c9c3b6; --dunkel-linie: #3a4447; --zahl-grund: #a2603a; --zahl-text: #fff;
  --gesperrt: #6b665c; --ort-farbe: #575757;
  --aus: cubic-bezier(.2,.7,.2,1); --t-reakt: 90ms; --t-aus: 500ms;
  --mono: 'DM Mono', ui-monospace, monospace; --sans: 'Inter Tight', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* sonst schlagen display:flex-Regeln das hidden-Attribut (Schrittleiste, Projekt-Eintrag) */
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--accent); } a:hover { color: var(--accent-mid); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hb-sprung { position: absolute; left: -9999px; } .hb-sprung:focus { left: 96px; top: 8px; z-index: 50; background: var(--white); padding: 8px 12px; }

.hb-gesamt { display: flex; height: 100vh; }
/* ── Schiene ── */
.hb-schiene { flex: none; width: 84px; background: var(--white); box-shadow: 1px 0 0 var(--kante); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; overflow-y: auto; z-index: 2; }
.hb-logo { color: var(--schwarz); margin-bottom: 12px; display: flex; }
.hb-schiene .hb-ziel { width: 68px; padding: 9px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-mid); font-size: 11px; text-align: center; line-height: 1.2; }
.hb-ziel svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hb-ziel .hb-beta { font: 700 8px/1 Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; background: #7a2e0e; color: #fff; border-radius: 0; padding: 2px 3px; }   /* 22.11.: Reiter 3 Bauleitplan (Beta), wie .blp-beta im Kartenstudio */
.hb-schiene .hb-ziel:hover { color: var(--schwarz); background: var(--hover); }
.hb-schiene .hb-ziel[aria-current="page"] { color: var(--schwarz); background: var(--accent-light); font-weight: 600; }
.hb-schiene .hb-ziel[aria-disabled="true"] { color: var(--gesperrt); pointer-events: none; }
.hb-ziel[aria-disabled="true"] svg { stroke: var(--leise); }
.hb-geheim { font: normal 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.hb-gruppe { margin: 10px 0 2px; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.hb-trenner { width: 44px; height: 1px; background: var(--border); margin: 8px 0; }
.hb-projektziel { font-size: 10px; margin-top: 6px; }
.hb-projektbild { width: 44px; height: 32px; background: var(--bild) center/cover; box-shadow: 0 0 0 1px var(--ink); }

/* ── Bühne: Inhalt oder Kartenstudio ── */
.hb-buehne { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.hb-inhalt { flex: 1; overflow-y: auto; outline: none; }
.hb-rahmen { flex: 1; width: 100%; border: 0; display: block; }
.hb-rahmen[hidden], .hb-inhalt[hidden] { display: none; }
/* Rechtsfuss: eigene Zeile unter Inhalt/Karte (siehe hub.html), kein position:sticky/fixed; flex:none reserviert
   ihre Höhe selbst, Inhalt/Karte bekommen den Rest (flex:1) -- deshalb nie Überdeckung, auch nicht am Handy. */
.hb-rechtsfuss { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 16px; background: var(--white); box-shadow: 0 -1px 0 var(--linie); font: 12px var(--sans); color: var(--ink-soft); }
.hb-rechtsfuss a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--border); }
.hb-rechtsfuss a:hover, .hb-rechtsfuss a:focus-visible { color: var(--accent-mid); text-decoration-color: currentColor; }
.hb-schritte { flex: none; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding: 10px 16px; background: var(--white); box-shadow: 0 1px 0 var(--kante); font-size: 14px; z-index: 1; }
.hb-schritte ol { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hb-schritt { color: var(--ink-soft); } .hb-schritt b { font: 13px var(--mono); padding: 2px 7px; margin-right: 6px; box-shadow: inset 0 0 0 1px var(--leise); }
.hb-schritt.jetzt { color: var(--schwarz); font-weight: 700; } .hb-schritt.jetzt b { background: var(--schwarz); color: var(--auf-schwarz); box-shadow: none; }
.hb-schritt.fertig { color: var(--green); } .hb-schritt.fertig b { background: var(--green); color: var(--auf-signal); box-shadow: none; }
.hb-schritte .hb-hinweis { margin-left: auto; color: var(--ink-mid); }

/* ── Seiten ── */
.hb-seite { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 22px; max-width: 1400px; }
.hb-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hb-ueber { margin: 0 0 6px; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.hb-titel { margin: 0; font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.hb-abschnitt { margin: 0 0 10px; font: 12px var(--mono); letter-spacing: .12em; font-weight: 400; text-transform: uppercase; color: var(--ink-soft); }
.hb-karte { background: var(--white); box-shadow: 0 0 0 1px var(--border); padding: 18px 22px; }
.hb-karte h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.hb-unter { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.hb-zeile { margin: 0; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.hb-zeile-geplant { border-top: 1px dashed var(--leise); color: var(--ink-soft); font-size: 13px; padding-top: 10px; margin: 0; }
.hb-marke { font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; background: var(--accent-light); color: var(--accent); }
.hb-marke.frist { background: var(--amber-light); color: var(--amber-ink); } .hb-marke.nachricht { background: var(--bild); color: var(--ink-mid); }
.hb-meta { font: 11px var(--mono); color: var(--ink-soft); }
.hb-knopf { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--schwarz); color: var(--auf-schwarz); text-decoration: none; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.hb-knopf:hover { color: var(--auf-schwarz); background: var(--accent-mid); }
.hb-knopf.leer { background: var(--white); color: var(--schwarz); box-shadow: inset 0 0 0 1.5px var(--schwarz); font-weight: 600; }
.hb-knopf.leer:hover { background: var(--hover); color: var(--schwarz); }
.hb-knopf.rot { background: var(--red); color: var(--auf-signal); }
.hb-knopf.rot:hover { background: var(--red-ink); color: var(--auf-signal); }
.hb-raster3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hb-zwei { display: flex; gap: 22px; flex-wrap: wrap; align-items: stretch; } .hb-zwei > * { flex: 1 1 400px; min-width: 0; }
.hb-projekt { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--border); }
.hb-projekt:hover { box-shadow: 0 0 0 2px var(--schwarz); color: var(--ink); }
.hb-projekt-bild { aspect-ratio: 3 / 2; background: var(--bild) center/cover; position: relative; overflow: hidden; }
.hb-projekt-bild .hb-neu { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--auf-akzent); font-size: 12px; font-weight: 600; padding: 3px 8px; }
.hb-projekt-bild .hb-frei { position: absolute; top: 8px; left: 8px; background: var(--white); color: var(--ink-mid); font-size: 11px; font-weight: 600; padding: 3px 8px; box-shadow: 0 0 0 1px var(--leise); }
.hb-projekt-text { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; } .hb-projekt-text strong { font-size: 16px; } .hb-projekt-text span { font-size: 13px; color: var(--ink-soft); }
.hb-werkzeug { display: flex; gap: 12px; text-decoration: none; color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--border); padding: 10px; font-size: 14px; }
.hb-werkzeug:hover { box-shadow: 0 0 0 2px var(--schwarz); color: var(--ink); }
.hb-werkzeug-bild { width: 80px; height: 60px; flex: none; background: var(--feld) center/cover; box-shadow: inset 0 0 0 1px var(--linie); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.hb-dunkel { background: var(--dunkel-grund); color: var(--dunkel-text); padding: 18px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hb-dunkel h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--dunkel-text); position: relative; }
.hb-dunkel .hb-zeile { border-top-color: var(--dunkel-linie); position: relative; } .hb-dunkel .hb-meta { color: var(--dunkel-leise); }
.hb-dunkel .hb-zeile-geplant { border-top-color: var(--dunkel-linie); color: var(--dunkel-leise); position: relative; }
.hb-dunkel a { color: var(--dunkel-text); }
.hb-dunkel .hb-unter, .hb-dunkel p { color: var(--dunkel-leise); } .hb-dunkel .hb-titel { color: var(--dunkel-text) !important; }
.hb-dunkel .hb-bald { background: var(--dunkel-text); color: var(--dunkel-grund); }
.hb-ringe { position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; opacity: .3; pointer-events: none; }
.hb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; position: relative; }
.hb-chip { padding: 4px 9px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--dunkel-linie); background: none; color: inherit; border: 0; cursor: default; min-height: 32px; }   /* Anzeige ohne Funktion (axe 14.11.) */
.hb-chip[data-an="true"] { background: var(--dunkel-text); color: var(--dunkel-grund); font-weight: 600; box-shadow: none; }
.hb-leer { padding: 18px; border: 1px dashed var(--leise); color: var(--ink-mid); }
.hb-fehler { padding: 12px 14px; background: var(--red-light); color: var(--red-ink); font-size: 14px; }

/* ── Werkzeugseiten (Aufbau wie V3: Kartenstreifen + Inhalt) ── */
.hb-werkzeugseite { display: flex; flex-wrap: wrap; min-height: 100%; }
/* Verortungskarte (24.11.2026): neben dem Inhalt genau --vk-breite (vorher wuchs der Streifen um 1/1000 des Restplatzes, 340,1–340,5 px); untereinander (schmal) unverändert volle Breite bis 400 px */
.hb-werkzeugseite { container-type: inline-size; }
.hb-streifen { flex: 1 1 var(--vk-breite); max-width: 400px; min-height: 360px; position: relative; background: var(--bild); box-shadow: 1px 0 0 var(--leise); }
.hb-streifen .hb-minikarte { position: absolute; inset: 0; }
.hb-streifen-kopf { position: absolute; left: 14px; top: 14px; z-index: 500; background: var(--white); box-shadow: 0 0 0 1px var(--kante); padding: 6px 10px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hb-streifen-fuss { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 500; background: var(--white); box-shadow: 0 0 0 1px var(--ink); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; }
.hb-streifen-fuss:hover { background: var(--hover); color: var(--ink); }
@container (min-width: 860px) { .hb-streifen { flex: 0 0 var(--vk-breite); } }
.hb-werkzeuginhalt { flex: 999 1 520px; min-width: 0; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 16px; }
.hb-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-pill { padding: 6px 10px; font-size: 14px; font-weight: 600; }
.hb-pill.rot { background: var(--red-light); color: var(--red-ink); } .hb-pill.gelb { background: var(--amber-light); color: var(--amber-ink); } .hb-pill.gruen { background: var(--green-light); color: var(--green-ink); } .hb-pill.grau { background: var(--bild); color: var(--ink-mid); }
.hb-punkte { list-style: none; margin: 0; padding: 0; background: var(--white); box-shadow: 0 0 0 1px var(--border); }
.hb-punkt { padding: 12px 18px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--linie); }
.hb-punkt:first-child { border-top: 0; }
.hb-punkt .g.rot { color: var(--red); } .hb-punkt .g.gelb { color: var(--amber); } .hb-punkt .g.gruen { color: var(--green); } .hb-punkt .g.grau { color: var(--ink-soft); }
.hb-punkt p { margin: 2px 0 0; font-size: 14px; color: var(--ink-mid); }
.hb-herkunft { font: 10px var(--mono); background: var(--accent-light); color: var(--accent); padding: 1px 5px; margin-left: 6px; }
.hb-geheimkasten { padding: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--border); border-left: 0; }
.hb-geheimkasten .hb-stempel { display: inline-block; font: 11px var(--mono); letter-spacing: .1em; background: var(--red); color: var(--auf-signal); padding: 3px 8px; margin-bottom: 10px; }

/* ── Dialog ── */
.hb-dialog-grund { position: fixed; inset: 0; background: rgba(37,48,52,.38); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.hb-dialog-grund[hidden] { display: none; }
.hb-dialog { width: 100%; max-width: 860px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 18px 40px -12px rgba(0,0,0,.32); padding: 30px 34px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 48px); overflow-y: auto; }
.hb-dialog h1 { margin: 0; font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.hb-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hb-wahl button { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--feld); border: 0; box-shadow: 0 0 0 1px var(--leise); cursor: pointer; color: var(--ink); }
.hb-wahl button:hover, .hb-wahl button:focus-visible { box-shadow: 0 0 0 2px var(--schwarz); }
.hb-wahl .t { font-size: 20px; font-weight: 600; } .hb-wahl .b { font-size: 14px; color: var(--ink-mid); } .hb-wahl ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 4px; } .hb-wahl li.nein { color: var(--ink-soft); }
.hb-feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.hb-feld input { height: 44px; border: 1px solid var(--leise); padding: 0 10px; font: 15px var(--sans); background: var(--feld); color: var(--ink); }
.hb-fristform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hb-fristform input { height: 44px; border: 1px solid var(--leise); padding: 0 8px; font: 14px var(--sans); background: var(--feld); color: var(--ink); min-width: 0; }
.hb-fristform input[type=text] { flex: 1 1 160px; }
.hb-loeschen { background: none; border: 0; color: var(--ink-soft); cursor: pointer; min-width: 32px; min-height: 32px; }

@media (max-width: 1000px) { .hb-raster3 { grid-template-columns: 1fr; } .hb-wahl { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .hb-gesamt { flex-direction: column-reverse; }
  .hb-schiene { width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 4px 8px; box-shadow: 0 -1px 0 var(--kante); }
  .hb-logo, .hb-gruppe, .hb-trenner { display: none; }
  .hb-ziel { flex: none; width: 64px; }
  .hb-seite, .hb-werkzeuginhalt { padding: 20px 16px 32px; }
  .hb-streifen { max-width: none; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.hb-bald { display: inline-block; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--schwarz); color: var(--auf-schwarz); padding: 3px 8px; margin-right: 6px; }
.hb-bald.hell { background: var(--schwarz); color: var(--auf-schwarz); }
.hb-schiene .hb-name { hyphens: auto; }

/* ═══ Hub mit Projektkarte (Michel 29.10.2026): Mitte = Karte | Kacheln, rechts Informationsspalte ═══ */
.hb-inhalt:has(> .hb-hub) { overflow: hidden; }
.hb-buehne, .hb-inhalt { min-height: 0; }   /* Handy (column-reverse): ohne das wuchs die Bühne über den Bildschirm und schob die Karte nach oben aus dem Bild */
.hb-hub { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; min-height: 0; }
.hb-mitte { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.hb-ansicht { flex: 1; min-height: 0; position: relative; }
.hb-ansicht-kacheln { overflow-y: auto; }
.hb-ansicht-kacheln .hb-seite { padding-top: 70px; max-width: none; }
.hb-kartenslot, .hb-kartenhost, .hb-kartenbuehne { position: absolute; inset: 0; }
.hb-kartenbuehne.lp-stage { position: absolute; inset: 0; }   /* der Motor setzt .lp-stage{position:relative} – wie #landingMap.lp-stage in index.html */
.hb-kartenhost { background: var(--paper); }
/* Ladeanzeige, solange MapLibre/Motor nachladen oder Leaflet aufbaut (K1-Netzwerkprobe: 0 Byte MapLibre in Kacheln) */
.hb-karten-laden { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-mid); font-size: 13px; }
.hb-spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: hb-drehen .8s linear infinite; }
@keyframes hb-drehen { to { transform: rotate(360deg); } }
.hb-kartenbuehne .lp-attrib { background: var(--white); color: var(--ink-soft); padding: 2px 7px; font: 10.5px var(--sans); max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-kartenbuehne { --lp-ort-farbe: var(--ort-farbe); z-index: 0; }   /* eigener Stapelkontext: Leaflet-Ebenen (z-index 400) bleiben unter den Marken (PL-2223, Klick auf den Lagepunkt) */
.hb-kartenbuehne .maplibregl-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hb-kartenbuehne .maplibregl-ctrl-group { background: var(--white); box-shadow: 0 0 0 1px var(--border); border-radius: 0; }
.hb-kartenbuehne .maplibregl-ctrl-top-right { top: 56px; }
.hb-stil-dunkel .hb-kartenbuehne .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.hb-leaflet-dunkel .leaflet-tile-pane { filter: invert(1) brightness(.9) contrast(.85); }
/* Umschalter oben in der Mitte (über Karte UND Kacheln) */
.hb-umschalter { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 30; display: inline-flex; background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 6px 18px -10px rgba(0,0,0,.35); }
.hb-umschalter button { min-height: 40px; min-width: 96px; padding: 0 18px; border: 0; background: none; color: var(--ink-mid); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.hb-umschalter button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hb-umschalter button:hover { background: var(--hover); color: var(--schwarz); }
.hb-umschalter button[aria-pressed="true"] { background: var(--schwarz); color: var(--auf-schwarz); }
.hb-umschalter button:focus-visible { outline-offset: -4px; outline-color: var(--accent); }
/* Leiste und Leerzustand über der Karte */
.hb-karte-leiste { position: absolute; left: 14px; bottom: 30px; z-index: 20; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--white); box-shadow: 0 0 0 1px var(--border); padding: 8px 10px; max-width: calc(100% - 28px); }
.hb-karte-leiste .hb-meta { color: var(--ink-mid); }
.hb-karte-leiste .hb-knopf { min-height: 40px; }
.hb-karte-leer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; width: min(440px, calc(100% - 32px)); background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 18px 40px -20px rgba(0,0,0,.35); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.hb-karte-leer h2 { margin: 0; font-weight: 400; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.hb-karte-leer p { margin: 0; color: var(--ink-mid); font-size: 14px; }
.hb-karte-leer .hb-knopf { align-self: flex-start; }
/* Markierungen */
.hb-marken { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }
.hb-mk { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; text-decoration: none; color: var(--ink); will-change: transform; outline-offset: 3px; }
/* Ortsmarke = kartografischer Lagepunkt (PL-2223, Michel 22.11.2026): Kupferpunkt 9 px, weiß freigestellt, feiner Ring 19 px; das Anker-
   Element ist die 26-px-Trefferfläche, ihre Mitte sitzt exakt auf dem Projektort, Schild + Haarlinie setzt hubkarte.js platzieren() kollisionsfrei daneben.
   Gleiches Zeichen mit/ohne Geltungsbereich (.mit-gb bleibt als Kennung) – den Unterschied trägt das aria-label. */
a.hb-mk { display: block; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; outline: none; }   /* Trefferfläche 26 px (WCAG 2.5.8), Mitte = Projektort */
.hb-mk-punkt { position: absolute; left: 8.5px; top: 8.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--kupfer); box-shadow: 0 0 0 1.5px var(--white); transition: transform var(--t-aus) var(--aus); pointer-events: none; }
.hb-mk-punkt::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--kupfer); border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 75%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--white) 75%, transparent); }
.hb-mk-faden { position: absolute; left: 0; top: 0; width: 0; height: 1px; margin-top: -.5px; background: var(--ink-mid); transform-origin: 0 50%; pointer-events: none; }
.hb-mk-name { position: absolute; left: 25px; top: -17px; background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.35; padding: 2px 7px; box-shadow: 0 0 0 1px var(--border); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; transition: box-shadow var(--t-aus) var(--aus); }
.hb-mk:hover .hb-mk-name, .hb-mk:focus-visible .hb-mk-name, .hb-mk.an .hb-mk-name { box-shadow: 0 0 0 2px var(--schwarz); color: var(--schwarz); transition-duration: var(--t-reakt); }
.hb-mk:focus-visible .hb-mk-name { outline: 2px solid var(--schwarz); outline-offset: 2px; }
.hb-mk:hover .hb-mk-punkt, .hb-mk:focus-visible .hb-mk-punkt, .hb-mk.an .hb-mk-punkt { transform: scale(1.3); transition-duration: var(--t-reakt); }
.hb-mk:focus-visible .hb-mk-punkt::after { border: 2px solid var(--schwarz); inset: -6px; }
/* Gruppe (nahe Projekte gebündelt) in derselben Zeichensprache wie der Lagepunkt: Zahlpunkt 28 px, weiß freigestellt, feiner Kupferring */
.hb-mk-gruppe { width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--zahl-grund); color: var(--zahl-text); font: 600 13px var(--sans); box-shadow: 0 0 0 1.5px var(--white); cursor: pointer; transition: box-shadow var(--t-aus) var(--aus); }
.hb-mk-gruppe::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--kupfer); border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 75%, transparent); pointer-events: none; }
.hb-mk-gruppe span { color: var(--zahl-text); background: var(--zahl-grund); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.hb-mk-gruppe.an, .hb-mk-gruppe:hover, .hb-mk-gruppe:focus-visible { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 4px var(--schwarz); outline: none; transition-duration: var(--t-reakt); }
/* Informationsspalte rechts */
.hb-spalte { background: var(--white); box-shadow: -1px 0 0 var(--kante); overflow-y: auto; padding: 24px 22px 30px; display: flex; flex-direction: column; gap: 26px; min-height: 0; }
.hb-spalte h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hb-spalte .hb-zeile { font-size: 13.5px; transition: background var(--t-aus) var(--aus), box-shadow var(--t-aus) var(--aus); }
.hb-spalte [data-p].an { background: var(--accent-light); box-shadow: -6px 0 0 var(--accent-light), 6px 0 0 var(--accent-light), inset 3px 0 0 var(--kupfer); transition-duration: var(--t-reakt); }
.hb-neu-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--kupfer); display: inline-block; flex: none; animation: hb-atmen 7s ease-in-out infinite; }
@keyframes hb-atmen { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.hb-pliste { list-style: none; margin: 0; padding: 0; }
.hb-pzeile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linie); text-decoration: none; color: var(--ink); }
.hb-pzeile:hover { color: var(--ink); background: var(--hover); }
.hb-pzeile-bild { width: 44px; height: 32px; background: var(--bild) center/cover; box-shadow: 0 0 0 1px var(--border); }
.hb-pzeile strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-pzeile .hb-meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-hub[data-ansicht="kacheln"] .hb-nur-karte { display: none; }
.hb-news .hb-chips { margin: 6px 0 4px; }
.hb-news .hb-chip { box-shadow: inset 0 0 0 1px var(--border); color: var(--ink-mid); min-height: 28px; }
.hb-news .hb-chip[data-an="true"] { background: var(--schwarz); color: var(--auf-schwarz); }
.hb-news .hb-zeile-geplant { color: var(--ink-soft); }
/* Kachelansicht (v01): kleine Kacheln + Haarlinien-Figur im Kopf */
.hb-kachelkopf { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.hb-kachelkopf .rechts { display: flex; align-items: center; gap: 10px; }
.hb-figur { width: 250px; margin: -18px 0 -30px; flex: none; }
.hb-raster-klein { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.hb-raster-klein .hb-projekt { transition: box-shadow var(--t-aus) var(--aus), transform var(--t-aus) var(--aus); }
.hb-raster-klein .hb-projekt:hover, .hb-raster-klein .hb-projekt.an { box-shadow: 0 0 0 1.5px var(--schwarz), 0 10px 24px -14px rgba(0,0,0,.45); transform: translateY(-2px); transition-duration: 160ms; }
.hb-raster-klein .hb-projekt-text { padding: 8px 10px 9px; } .hb-raster-klein .hb-projekt-text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hb-raster-klein .hb-projekt-text span { font-size: 11.5px; }
/* Umbenennen/Löschen in der Kachel (PL-1842-Wunsch 30.10.2026, Michel): zwei Symbolknöpfe, ≥ 40 px Trefferfläche, per Klick/Tastatur erreichbar;
   die Knöpfe liegen als Geschwister NEBEN dem Projekt-Link (nicht darin verschachtelt) – ein Klick trifft nur den Knopf, nie den Link darunter. */
.hb-kachel { position: relative; display: flex; flex-direction: column; }
.hb-kachel .hb-projekt { flex: 1; }
.hb-kachel-aktionen { position: absolute; top: 6px; right: 6px; z-index: 5; display: flex; gap: 6px; }
.hb-kachel-knopf { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink-mid); border: 0; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.hb-kachel-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hb-kachel-knopf:hover, .hb-kachel-knopf:focus-visible { background: var(--hover); color: var(--schwarz); box-shadow: 0 0 0 1.5px var(--schwarz); }
.hb-kachel-knopf.loeschen:hover, .hb-kachel-knopf.loeschen:focus-visible { color: var(--red-ink); box-shadow: 0 0 0 1.5px var(--red); }
.hb-kachel-ueberlagerung { position: absolute; inset: 0; z-index: 10; background: var(--white); box-shadow: 0 0 0 1px var(--schwarz); padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow-y: auto; }
.hb-kachel-ueberlagerung[hidden] { display: none; }
.hb-kachel-ueberlagerung p { margin: 0; font-size: 12.5px; color: var(--ink-mid); }
.hb-kachel-ueberlagerung .hb-feld { font-size: 12px; gap: 3px; }
.hb-kachel-ueberlagerung .hb-feld input { height: 36px; font-size: 13.5px; }
.hb-kachel-fehler { color: var(--red-ink); font-size: 12px; margin: 0; }
.hb-kachel-knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-kachel-knopfreihe .hb-knopf { min-height: 36px; padding: 0 12px; font-size: 13px; }
.hb-neu-anlegen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-mid); text-decoration: none; box-shadow: inset 0 0 0 1px var(--leise); font-size: 13px; min-height: 140px; }
.hb-neu-anlegen svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.hb-neu-anlegen rect { stroke-dasharray: 4 3; transition: stroke-dashoffset 1.2s linear; }
.hb-neu-anlegen:hover { background: var(--white); color: var(--schwarz); } .hb-neu-anlegen:hover rect { stroke-dashoffset: -14; }
.hl { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.hl .dach { fill: var(--white); stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; }
.hl .s1 { fill: var(--linie); stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; }
.hl .s2 { fill: var(--border); stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; }
.hl .grund { fill: var(--paper); stroke: var(--ink-soft); stroke-width: .8; }
.hl .schatten { fill: rgba(0,0,0,.09); stroke: none; }
.hl .linie { fill: none; stroke: var(--ink-soft); stroke-width: .8; }
.hl .leise { fill: none; stroke: var(--border); stroke-width: .8; }
.hl .akzent { fill: color-mix(in srgb, var(--kupfer) 8%, transparent); stroke: var(--kupfer); stroke-width: 1.1; stroke-dasharray: 4 3; }
.hl .akzentdach { fill: var(--kupfer-light); stroke: var(--kupfer); stroke-width: 1; }
.hl .baum { fill: color-mix(in srgb, var(--green) 14%, transparent); stroke: var(--green); stroke-width: .7; }
.hl text { font: 9px var(--mono); fill: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.hl text.an { fill: var(--ink); }
/* Zahl-Marke an „Nachrichten“ (Kontrast je Palette über hub/stile.js gesichert) */
.hb-zahl { display: inline-block; font: 600 10px var(--mono); background: var(--zahl-grund); color: var(--zahl-text); padding: 0 5px; margin-left: 3px; vertical-align: 1px; line-height: 15px; min-width: 15px; text-align: center; }
/* Farbstil-Menü */
.hb-stilknopf { margin-top: auto; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; }
.hb-stilknopf .hb-stil-halb { fill: currentColor; stroke: none; }
.hb-stilknopf[aria-expanded="true"] { color: var(--schwarz); background: var(--accent-light); }
.hb-stilliste { position: fixed; z-index: 120; width: 300px; max-height: min(80vh, 640px); overflow-y: auto; background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 18px 40px -14px rgba(0,0,0,.4); padding: 6px; display: flex; flex-direction: column; }
.hb-stil-kopf { margin: 6px 8px 6px; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.hb-stilliste button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 13.5px; }
.hb-stilliste button:hover, .hb-stilliste button:focus-visible { background: var(--hover); }
.hb-stilliste button[aria-checked="true"] { background: var(--accent-light); font-weight: 600; }
.hb-stilliste button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
.hb-stil-muster { display: inline-flex; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }
.hb-stil-muster i { width: 11px; height: 22px; display: block; }
@media (max-width: 1100px) { .hb-hub { grid-template-columns: minmax(0, 1fr) 300px; } .hb-figur { width: 190px; } }
@media (max-width: 1000px) { .hb-figur { display: none; } }
@media (max-width: 700px) {
  .hb-inhalt:has(> .hb-hub) { overflow-y: auto; }
  .hb-hub { display: block; height: auto; }
  .hb-hub[data-ansicht="karte"] .hb-mitte { height: 55vh; height: 55svh; min-height: 300px; }
  .hb-hub[data-ansicht="kacheln"] .hb-mitte { height: auto; overflow: visible; }
  .hb-hub[data-ansicht="kacheln"] .hb-ansicht-kacheln { overflow: visible; }
  .hb-ansicht-kacheln .hb-seite { padding-top: 66px; }
  .hb-umschalter { top: 10px; }
  .hb-umschalter button { min-width: 84px; min-height: 44px; padding: 0 12px; }
  .hb-karte-leiste { bottom: 26px; left: 8px; padding: 6px 8px; }
  .hb-karte-leiste .hb-knopf { padding: 0 12px; }
  .hb-karte-leiste .hb-meta { display: none; }
  .hb-spalte { box-shadow: 0 -1px 0 var(--kante); padding: 18px 16px 28px; gap: 20px; overflow: visible; }
  .hb-stilknopf { margin-top: 0; }
  .hb-kartenbuehne .maplibregl-ctrl-top-right { top: 62px; }
  .hb-mk-name { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .hb-neu-punkt { animation: none; } .hb-mk, .hb-mk-punkt, .hb-mk-name { transition: none; } }
/* ── Zeitplan + Notizen der Projektseite (hub/projekt_zeitplan.js, 15.11.2026, PL-2135) – nur Variablen, damit jede Palette inkl. Nachtplan (P6) greift ── */
.zp-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.zp-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.zp-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zp-umschalter { display: inline-flex; box-shadow: inset 0 0 0 1.5px var(--schwarz); }
.zp-umschalter button { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--schwarz); font-weight: 600; cursor: pointer; }
.zp-umschalter button[aria-pressed="true"] { background: var(--schwarz); color: var(--auf-schwarz); }
.zp-umschalter button:hover { background: var(--hover); } .zp-umschalter button[aria-pressed="true"]:hover { background: var(--accent-mid); color: var(--auf-schwarz); }
.zp-status { min-height: 1.4em; margin: 8px 0 4px; font-size: 13px; color: var(--green-ink); }
.zp-nurlesen { margin: 6px 0 0; color: var(--ink-mid); }
.zp-klein { min-height: 36px; min-width: 36px; padding: 0 10px; border: 0; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--leise); font-size: 13px; cursor: pointer; }
.zp-klein:hover { background: var(--hover); }
.zp-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.zp-fehler { color: var(--red-ink); font-size: 13px; margin: 6px 0 0; }
.zp-fehler:empty { display: none; }
.zp-rot { color: var(--red-ink) !important; }
.zp-wachsen { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zp-lokal { display: flex; gap: 12px; align-items: center; }
.zp-hinweis { margin-top: 10px; }
.zp-leer .hb-unter { margin: 0; }
/* Monat */
.zp-monatkopf { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.zp-monatkopf h3 { margin: 0 6px; font-size: 16px; font-weight: 600; min-width: 9.5em; }
.zp-tastenhilfe { margin: 0 0 8px; }
.zp-monat-rahmen { width: 100%; }
.zp-monat { width: 100%; border-collapse: collapse; table-layout: fixed; }
.zp-monat th { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; text-align: left; }
.zp-monat td { border: 1px solid var(--linie); vertical-align: top; padding: 0; height: 84px; }
.zp-monat td.zp-fremd { background: var(--paper); }
.zp-monat td.zp-fremd .zp-tagnr { color: var(--ink-soft); }
.zp-tag { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; height: 100%; min-height: 84px; padding: 4px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 12px; }
.zp-tag:hover { background: var(--hover); }
.zp-tag.heute .zp-tagnr { background: var(--accent); color: var(--auf-akzent); }
.zp-tag.gewaehlt { box-shadow: inset 0 0 0 2px var(--accent); }
.zp-tagnr { align-self: flex-start; font: 12px var(--mono); padding: 1px 5px; color: var(--ink-mid); }
.zp-eintrag { display: block; padding: 1px 4px; background: var(--accent-light); color: var(--accent-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--accent); }
.zp-eintrag.frist { background: var(--red-light); color: var(--red-ink); border-left-color: var(--red); }
.zp-eintrag.phase { background: var(--green-light); color: var(--green-ink); border-left-color: var(--green); }
.zp-eintrag.meilenstein { background: var(--amber-light); color: var(--amber-ink); border-left-color: var(--amber); }
.zp-eintrag.erledigt { text-decoration: line-through; }
.zp-eintrag.weiter { color: transparent; }   /* Phase an Folgetagen: ohne eigenen Titel (der Titel vom Wochenbeginn läuft darüber) */
/* Phase als durchgehendes Band (Widerleger W5, 15.11.): Stücke ohne Innenabstand bis an die Zellgrenze (−4 px Polster der Zelle −1 px
   Rand), Titel absolut über die Tage der Woche (Breite setzt projekt_zeitplan.js), feste Höhe je Spur, damit die Spuren in allen Zellen
   einer Woche fluchten. Mehrere Phasen: drei Farbstufen aus den vorhandenen Hub-Variablen (Grün hell / Grün kräftig / Kupfer hell), Text ≥ 4,5:1. */
.zp-band { position: relative; overflow: visible; height: 17px; line-height: 15px; margin: 0 -5px; padding: 0; border-left: 0; text-overflow: clip; }
.zp-band.anfang { margin-left: 0; border-left: 3px solid var(--green); }
.zp-band.ende { margin-right: 0; }
.zp-band.leer { background: transparent; border: 0; }
.zp-band-titel { position: absolute; left: 4px; top: 1px; z-index: 1; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; color: inherit; }
.zp-band.anfang .zp-band-titel { left: 2px; }
.zp-band.stufe-0 { background: var(--green-light); color: var(--green-ink); }
.zp-band.stufe-1 { background: var(--green); color: var(--auf-signal); }
.zp-band.stufe-1.anfang { border-left-color: var(--green-ink); }
.zp-band.stufe-2 { background: var(--kupfer-light); color: var(--kupfer-ink); }
.zp-band.stufe-2.anfang { border-left-color: var(--kupfer); }
/* Paare mit Kontrastsicherung in hub/stil_paletten.js (green-ink↔green-light, auf-signal↔green, kupfer-ink↔kupfer-light) – gilt in jeder Palette */
.zp-mehr { font-size: 11px; color: var(--ink-soft); }
.zp-tagliste h3 { margin: 14px 0 4px; font-size: 15px; }
/* Liste (auch Bildschirmleser-Ersatz für Monat und Zeitleiste) */
.zp-liste { list-style: none; margin: 4px 0 0; padding: 0; }
.zp-li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.zp-li-datum { font: 12px var(--mono); color: var(--ink-mid); min-width: 9.5em; }
.zp-li.frist .zp-li-datum { color: var(--red-ink); }
.zp-li.erledigt strong { text-decoration: line-through; }
.zp-li-notiz { flex-basis: 100%; color: var(--ink-mid); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.zp-li-knoepfe { margin-left: auto; display: inline-flex; gap: 6px; }
.zp-li strong { overflow-wrap: anywhere; }
/* Zeitleiste */
.zp-zl-rahmen { overflow-x: auto; margin: 10px 0 6px; box-shadow: 0 0 0 1px var(--linie); }
.zp-zl-rahmen:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zp-zl { position: relative; padding: 0 0 10px; }
.zp-zl-achse { position: relative; height: 28px; border-bottom: 1px solid var(--border); }
.zp-zl-monat { position: absolute; top: 0; height: 28px; padding: 6px 6px 0; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.zp-zl-zeile { position: relative; height: 40px; border-bottom: 1px dashed var(--linie); }
.zp-balken { position: absolute; top: 6px; height: 28px; min-width: 6px; border: 0; padding: 0 8px; background: var(--green-ink); color: var(--auf-signal); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zp-balken span { overflow: hidden; text-overflow: ellipsis; display: block; }
.zp-marke { position: absolute; top: 8px; width: 24px; height: 24px; margin-left: -12px; border: 2px solid var(--white); background: var(--accent); border-radius: 50%; cursor: pointer; padding: 0; }
.zp-marke.raute { border-radius: 0; transform: rotate(45deg) scale(.8); }
.zp-marke.meilenstein { background: var(--amber); } .zp-marke.frist { background: var(--red); }
.zp-marke.erledigt { opacity: .5; }
.zp-marke:focus-visible, .zp-balken:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.zp-heute { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--kupfer); pointer-events: none; }
.zp-heute span { position: absolute; top: 2px; left: 4px; font: 10px var(--mono); text-transform: uppercase; color: var(--kupfer-ink); background: var(--white); padding: 0 3px; }
.zp-legende { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 8px; }
.zp-leg { display: inline-block; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.zp-leg.phase { width: 22px; height: 10px; border-radius: 0; background: var(--green-ink); }
.zp-leg.raute { border-radius: 0; transform: rotate(45deg); width: 10px; height: 10px; } .zp-leg.meilenstein { background: var(--amber); } .zp-leg.frist { background: var(--red); }
/* Notizen */
.zp-notizform label { display: block; font-weight: 600; font-size: 13.5px; margin: 4px 0 3px; }
.zp-notizform textarea, .zp-notiz-feld, .zp-dialog input[type=text], .zp-dialog input[type=date], .zp-dialog input[type=time], .zp-dialog select, .zp-dialog textarea { width: 100%; box-sizing: border-box; padding: 8px 9px; border: 1px solid var(--leise); background: var(--feld); color: var(--ink); font: 14px var(--sans); min-height: 44px; }
.zp-notizform label.zp-wahl, .zp-dialog label.zp-wahl { display: flex; gap: 8px; align-items: center; font-weight: 500; min-height: 44px; margin: 4px 0 0; }
.zp-wahl input { width: 20px; height: 20px; }
.zp-notizform .hb-meta { margin: 4px 0 0; }
.zp-notiz { border-top: 1px solid var(--linie); padding: 10px 0; }
.zp-notiz.angeheftet { background: var(--amber-light); box-shadow: -8px 0 0 var(--amber-light), 8px 0 0 var(--amber-light); border-top-color: var(--amber); }
.zp-notiz.angeheftet .hb-meta { color: var(--amber-ink); }
.zp-pin { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.zp-notiz-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.zp-notiz-meta { margin: 6px 0 0; }
.zp-notiz label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
/* Dialoge */
.zp-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; padding: 20px 22px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--border), 0 18px 40px -20px rgba(0,0,0,.45); }
.zp-dialog::backdrop { background: rgba(17,17,17,.45); }
.zp-dialog h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.zp-dialog label { display: block; font-weight: 600; font-size: 13.5px; margin: 10px 0 3px; }
.zp-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.zp-konflikt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 8px 0; }
.zp-konflikt h3 { margin: 0 0 4px; font-size: 14px; }
.zp-konflikt pre { margin: 0; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.45 var(--sans); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--linie); max-height: 40vh; overflow: auto; }
@media (max-width: 1100px) { .zp-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .zp-monat td { height: 56px; }
  .zp-tag { min-height: 56px; padding: 2px; font-size: 10px; }
  .zp-tagnr { padding: 0 2px; font-size: 11px; }
  .zp-eintrag { font-size: 0; height: 6px; padding: 0; border-left-width: 0; }
  .zp-eintrag.frist { background: var(--red); } .zp-eintrag.phase { background: var(--green-ink); } .zp-eintrag.meilenstein { background: var(--amber); } .zp-eintrag:not(.frist):not(.phase):not(.meilenstein) { background: var(--accent); }
  .zp-band { height: 6px; margin: 0 -3px; } .zp-band.anfang { margin-left: 0; } .zp-band.ende { margin-right: 0; } .zp-band.leer { background: transparent; }
  .zp-band.stufe-0 { background: var(--green-ink); } .zp-band.stufe-1 { background: var(--green); } .zp-band.stufe-2 { background: var(--kupfer); }
  .zp-mehr { font-size: 9px; }
  .zp-monatkopf h3 { min-width: 0; font-size: 15px; }
  .zp-konflikt, .zp-zwei { grid-template-columns: minmax(0, 1fr); }
  .zp-li-knoepfe { margin-left: 0; }
  .zp-umschalter button { padding: 0 10px; }
}
/* ── Aufgaben (Phase 2, 15.11.2026, PL-2136; hub/projekt_aufgaben.js) ── */
.za { margin-top: 14px; }
.za-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.za-filter button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--schwarz); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--schwarz); }
.za-filter button[aria-pressed="true"] { background: var(--schwarz); color: var(--auf-schwarz); }
.za-filter button:hover { background: var(--hover); } .za-filter button[aria-pressed="true"]:hover { background: var(--accent-mid); color: var(--auf-schwarz); }
.za-liste { list-style: none; margin: 4px 0 0; padding: 0; }
.za-li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--linie); }
.za-status { flex: none; min-height: 44px; min-width: 96px; padding: 0 10px; border: 0; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.za-status.st-laeuft { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-mid); background: var(--accent-light); }
.za-status.st-erledigt { box-shadow: inset 0 0 0 1.5px var(--green-ink); color: var(--green-ink); background: var(--green-light); }
.za-status:hover:not([disabled]) { background: var(--hover); }
.za-status[disabled] { cursor: default; }
.za-inhalt { flex: 1 1 220px; min-width: 0; }
.za-titel { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.za-li.erledigt .za-titel strong { text-decoration: line-through; color: var(--ink-mid); }
.za-meta { margin: 2px 0 0; overflow-wrap: anywhere; }
.za-beschr { margin: 4px 0 0; font-size: 13px; color: var(--ink-mid); white-space: pre-wrap; overflow-wrap: anywhere; }
.za-prio { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 1px 5px; box-shadow: inset 0 0 0 1px var(--ink-soft); color: var(--ink-mid); white-space: nowrap; }
.za-prio.hoch { color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red); }
.za-knoepfe { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* Kalender: Aufgabe = Kästchen-Zeichen + gestrichelte Kante in Kupfer – unterscheidbar von Fristen (rot), Terminen (blau), Phasen (grün) */
.zp-eintrag.aufgabe { background: var(--kupfer-light); color: var(--kupfer-ink); border-left: 3px dashed var(--kupfer); }
.zp-haken { font-size: 11px; }
.zp-marke.aufgabe { background: var(--kupfer); }
.zp-marke.eckig { border-radius: 0; }
.zp-leg.aufgabe { background: var(--kupfer); border-radius: 0; }
.zp-li.aufgabe .zp-li-datum { color: var(--kupfer-ink); }
.hb-marke.aufgabe { background: var(--kupfer-light); color: var(--kupfer-ink); }
/* Hub-Startseite: Kachel „Meine Aufgaben“ (Behälter #hbMeineAufgaben) */
.ma-liste { list-style: none; margin: 0; padding: 0; }
.ma-li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 13.5px; }
.ma-li a { font-weight: 600; overflow-wrap: anywhere; display: inline-block; min-height: 24px; }
.ma-projekt { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .zp-eintrag.aufgabe:not(.frist):not(.phase) { background: var(--kupfer); border-left-width: 0; }
  .za-li { gap: 6px 10px; }
  .za-knoepfe { width: 100%; }
}
/* ── Teilen über Netzwerke (PL-2137, hub/projekt_teilen.js): Abo- und Teilen-Dialog ── */
.tl-dialog { overflow-y: auto; }
.tl-dialog p { margin: 6px 0; line-height: 1.5; }
.tl-feld { border: 1px solid var(--border); padding: 4px 12px 8px; margin: 12px 0 0; }
.tl-feld legend { font-weight: 600; font-size: 13.5px; padding: 0 4px; }
.tl-feld input[type=radio] { flex: none; width: 20px; height: 20px; }
.tl-dialog input[type=text][readonly] { font: 13px var(--mono, monospace); background: var(--hover); }
.tl-dialog .zp-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tl-hinweis { border-left: 3px solid var(--leise); padding-left: 10px; }
.tl-meld { min-height: 1.4em; font-weight: 600; }
.tl-ueber { font-size: 15px; margin: 18px 0 6px; }
.tl-liste { list-style: none; margin: 0; padding: 0; }
.tl-li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.tl-li > span:first-child { flex: 1 1 260px; }
.tl-li.tl-aus { opacity: .8; }
.tl-alt summary, .tl-anleitung summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; }
.tl-anleitung h3 { font-size: 14px; margin: 10px 0 2px; }
.tl-warn { box-shadow: inset 0 0 0 2px var(--red-ink, #b42318); font-weight: 700; }
.zp-klein.tl-teilen { margin-left: 4px; }
@media (max-width: 480px) { .tl-dialog { padding: 16px 14px; } .tl-dialog .zp-zeile > * { flex: 1 1 100%; } }

/* ═══ Projektseite E1 „Arbeitstisch mit Umschaltern“ (Michel 22.11.2026, PL-2204/PL-2205) – nur Variablen, damit jeder Farbstil greift ═══ */
/* Volle Breite (vorher .hb-seite max-width 1400px, rechts Leerraum); lange Fließtexte begrenzen sich selbst (.pj-ruhig 75ch) */
.hb-seite { max-width: none; }
/* Schiene: Ziele in eigenem Behälter (am Handy waagrecht rollbar), Farbstil und Menü fest daneben */
.hb-schiene-ziele { display: contents; }
.hb-menueknopf { border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; color: var(--ink-mid); min-height: 56px; }
.hb-menueknopf:hover { color: var(--schwarz); background: var(--hover); }
.hb-menueknopf[aria-expanded="true"] { color: var(--schwarz); background: var(--accent-light); }
.hb-menueknopf .plm-ini { display: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--auf-akzent); align-items: center; justify-content: center; font: 600 12px var(--sans); letter-spacing: .02em; }
.hb-menueknopf.an .plm-ini { display: flex; }
.hb-menueknopf.an .hb-menue-ico { display: none; }
.hb-menueknopf .plm-cr { display: none !important; }
/* Menü (kartentool/menue.js) in der Hülle: seine --ci-Variablen auf die Hub-Variablen legen */
.plm-menue, .plm-schleier, .hb-blatt { --ci-tinte: var(--ink); --ci-flaeche: var(--white); --ci-flaeche2: var(--hover); --ci-linie: var(--border); --ci-linie-l: var(--linie); --ci-mittel: var(--ink-soft); --ci-auf-tinte: var(--white); --ci-schrift: var(--sans); --ci-tinte-rgb: 37 48 52; }
.hb-blatt { width: min(640px, calc(100vw - 32px)); }
.hb-blatt .plm-info ul { margin: 4px 0 8px; padding-left: 18px; } .hb-blatt .plm-info li { margin: 3px 0; } .hb-blatt .plm-info h3 { font-size: 14px; margin: 14px 0 4px; } .hb-blatt .plm-d { color: var(--ink-soft); font-size: 12px; }

.pj { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100%; background: linear-gradient(to right, color-mix(in srgb, var(--paper) 55%, var(--white)) 239px, var(--border) 239px, var(--border) 240px, transparent 240px); }   /* Leistenfläche über die ganze Höhe */
.pj-leiste { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; background: color-mix(in srgb, var(--paper) 55%, var(--white)); box-shadow: 1px 0 0 var(--border); padding: 22px 12px; display: flex; flex-direction: column; gap: 14px; }
.pj-leiste-kopf { padding: 0 6px; display: flex; flex-direction: column; gap: 6px; }
.pj-leiste-kopf .hb-ueber { margin: 0; }
.pj-name { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.pj-chip { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 7px 10px 7px 12px; border: 0; border-left: 2px solid var(--kupfer); border-radius: 0; background: none; color: var(--ink); font: 500 14px/1.25 var(--sans); cursor: pointer; text-align: left; }   /* Michel 23.11.: keine Pillenform – Registereintrag wie die Mono-Überzeilen, Kupfer-Kante */
.pj-chip-l { font: 500 10px/1 var(--mono, 'DM Mono', monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pj-chip-w { overflow-wrap: anywhere; }
.pj-chip:hover { background: var(--hover); }
.pj-chip:focus-visible { outline: 2px solid var(--kupfer); outline-offset: 2px; }
.pj-chip.leer { border-left-style: dashed; border-left-color: var(--leise); }
.pj-chip.leer .pj-chip-w { color: var(--ink-mid); font-style: italic; }
.pj-nav { display: flex; flex-direction: column; gap: 2px; }
.pj-nav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: 14px var(--sans); text-align: left; cursor: pointer; }
.pj-nav button:hover { background: var(--hover); }
.pj-nav button[aria-current="true"] { background: var(--bild); font-weight: 600; }
.pj-zahl { white-space: nowrap; }
.pj-haupt { padding: 24px 32px 56px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pj-kopf { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; outline: none; }
.pj-kopf .hb-ueber { margin: 0 0 6px; }
.pj-titel { margin: 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pj-gb { margin: 6px 0 0; }
.pj-kopf-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.pj-status { margin: 0; font-size: 13.5px; color: var(--green-ink); }
.pj-status:empty { display: none; }
.pj-status.fehler { color: var(--red-ink); }
.pj-feld { background: var(--white); box-shadow: 0 0 0 1px var(--border); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 12px; outline: none; }
.pj-feld h2 { margin: 0; font-size: 17px; font-weight: 600; }
.pj-feld h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.pj-h2-zusatz { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.pj-feldkopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pj-ruhig { margin: 0; color: var(--ink-mid); font-size: 14px; max-width: 75ch; }
.pj-zeile-l { margin: 0; font-size: 14px; }
.pj-link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; min-height: 24px; text-align: left; }
.pj-link:hover { color: var(--accent-mid); }
.pj-umklapp { min-height: 44px; padding: 0 14px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.pj-umklapp:hover { background: var(--hover); }
/* Verfahren: Schritte nebeneinander, erledigt = Tinte, aktuell = Kupfer (der eine Akzent der Seite) */
.pj-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.pj-schritt { border-top: 4px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.pj-schritt.fertig { border-top-color: var(--ink); }
.pj-schritt.jetzt { border-top: 6px solid var(--kupfer); margin-top: -2px; background: var(--kupfer-light); }   /* Michel 23.11. „Kupfer führt“ (Designsprache Regel 6): 6 px statt 4 px */
.pj-schritt-k { text-align: left; background: none; border: 0; padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; color: var(--ink); min-height: 44px; font: inherit; flex: 1; }
.pj-schritt-k:hover { background: var(--hover); }
.pj-schritt.jetzt .pj-schritt-k:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--kupfer); }
.pj-schritt.jetzt .hb-meta, .pj-schritt.jetzt b { color: var(--kupfer-ink); }
/* „jetzt“-Marke: volle Kupferfläche (zahl-grund = Kupfer, von stil_paletten.js je Farbstil auf ≥ 4,6:1 zu zahl-text geprüft) – im Squint sichtbar */
.pj-jetzt { display: inline-block; margin-left: 4px; padding: 1px 6px; background: var(--zahl-grund); color: var(--zahl-text); font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* Gremium 23.11. (Befund 5): Trennung an den bedingten Trennstrichen aus projektseite.js trennen() bzw. per Wörterbuch, nicht mitten im Wort */
.pj-schritt b { font-size: 14px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.pj-schritt-h { font-size: 12.5px; color: var(--ink-soft); }
.pj-schritt-d { margin-top: 2px; }
.pj-schritt-l, a.pj-schritt-l { padding: 0 14px 12px; font-size: 13px; color: var(--kupfer-ink); }
.pj-fussnote { margin: 8px 0 0; }
/* Zeit + rechte Spalte */
.pj-reihe { display: grid; grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); gap: 20px; align-items: start; }
.pj-rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pj-feld .zp-plan { display: flex; flex-direction: column; gap: 6px; }
.zp-kopf-rechts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pj-feld .zp-werkzeuge { margin-top: 6px; }
.zp-umschalter.klein button { padding: 0 12px; font-size: 13px; }
.pj-feld .zp-status:empty { min-height: 0; margin: 0; }
.zp-hinweis-kasten { margin: 0; padding: 10px 12px; background: var(--amber-light); color: var(--amber-ink); font-size: 13.5px; max-width: 90ch; }
.zp-hinweis-kasten a { color: inherit; font-weight: 600; }
/* Michel 23.11. „schwarz_kupfer = kupfer“: Frist-Kasten papierhell mit Kupfer-Kante statt schwarz (.hat-frist, gesetzt von projekt_zeitplan.js);
   ohne offene Frist eine ruhige Textzeile ohne Fläche (Gutachten C, B1: der Leerzustand war das lauteste Element der Seite) */
.pj-frist { color: var(--ink); padding: 2px 2px 4px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 12px; }
.pj-frist.hat-frist { background: var(--white); box-shadow: 0 0 0 1px var(--border); border-top: 6px solid var(--kupfer); padding: 16px 22px 20px; }
.pj-frist:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.pj-frist-t { margin: 0; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft); }
.pj-frist-gross { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.05; color: var(--kupfer-ink); }
.pj-frist-was { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.pj-frist-leer { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink-mid); }
.pj-frist-danach { margin: 10px 0 0; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pj-frist-liste { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.pj-frist-liste li { padding: 5px 0; border-top: 1px solid var(--linie); overflow-wrap: anywhere; }
.pj-frist-d { font: 12px var(--mono); }
.pj-frist-q { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
.pj-frist-liste li.wichtig { font-weight: 600; }
.pj-frist-weitere { margin: 4px 0 0; font-size: 13px; }
.pj-frist-mehr { background: none; border: 0; padding: 0; min-height: 24px; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
/* Fristzeile (Michel 23.11. „frist_mobil = kompakt“): nur wo die Karte unter dem Kalender steht (gleiche Grenze wie .pj-reihe einspaltig) */
.pj-fristzeile { display: none; }
@media (max-width: 1200px) {
  .pj-fristzeile { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 44px; margin: -6px 0 0; padding: 11px 14px; border: 0; background: var(--white); box-shadow: inset 4px 0 0 var(--kupfer), 0 0 0 1px var(--border); color: var(--ink); font: 14px/1.3 var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
  .pj-fristzeile:hover .pj-fristzeile-w { text-decoration: underline; text-underline-offset: 3px; }
  .pj-fristzeile-t { flex: none; color: var(--ink-soft); }
  .pj-fristzeile-n { flex: none; color: var(--kupfer-ink); font-weight: 700; }
  .pj-fristzeile-w { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pj-fristzeile-p { flex: none; color: var(--ink-soft); }
}
/* Schwarz nur für den einen Hauptknopf („Im Kartenstudio öffnen“): Umschalter und Filter der Projektseite im leisen Unterstrich-Register */
.pj .zp-umschalter { box-shadow: inset 0 0 0 1px var(--leise); }
.pj .zp-umschalter button { color: var(--ink); font-weight: 500; }
.pj .zp-umschalter button[aria-pressed="true"], .pj .zp-umschalter button[aria-pressed="true"]:hover { background: var(--bild); color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--ink); }
.pj .za-filter button { color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--leise); }
.pj .za-filter button[aria-pressed="true"], .pj .za-filter button[aria-pressed="true"]:hover { background: var(--bild); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--leise), inset 0 -3px 0 var(--ink); }
.pj .hb-knopf[data-za-aktion="neu"] { background: var(--white); color: var(--schwarz); box-shadow: inset 0 0 0 1.5px var(--schwarz); font-weight: 600; }
.pj .hb-knopf[data-za-aktion="neu"]:hover { background: var(--hover); color: var(--schwarz); }
.pj-rueck { margin-left: 6px; font-weight: 600; }
.pj-vf-status { margin: 10px 0 0; }
.pj-frist p[role="status"] { margin: 0; }
.pj-feld .za.hb-karte { box-shadow: none; padding: 0; background: var(--white); margin: 0; }
/* Notizen am Kalender */
.zp-notizmarke { margin-top: auto; align-self: flex-end; font-size: 11px; line-height: 1; color: var(--ink-mid); padding: 1px 3px; box-shadow: inset 0 0 0 1px var(--leise); background: var(--white); }
.zp-kn-liste { list-style: none; margin: 4px 0 0; padding: 0; flex-basis: 100%; }
.zp-kn { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 7px 9px; margin-top: 4px; background: var(--paper); box-shadow: inset 3px 0 0 var(--leise); font-size: 13.5px; outline: none; }
.zp-kn-text { white-space: pre-wrap; overflow-wrap: anywhere; flex: 1 1 200px; }
.zp-kn-meta { flex-basis: 100%; }
.zp-kn-t { margin: 12px 0 2px; font-size: 14px; }
.hb-marke.notiz { background: var(--bild); color: var(--ink-mid); }
.zp-kalform { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--leise); max-width: 720px; }
.zp-kalform select { width: 100%; min-height: 44px; padding: 0 8px; border: 1px solid var(--leise); background: var(--feld); color: var(--ink); font: 14px var(--sans); margin-bottom: 6px; }
.zp-klein-l { font-weight: 500 !important; font-size: 13px !important; }
.zp-kalform textarea { width: 100%; box-sizing: border-box; padding: 8px 9px; border: 1px solid var(--leise); background: var(--feld); color: var(--ink); font: 14px/1.45 var(--sans); }
.zp-tag-tipp { margin: 10px 0 0; }
.zp-bezug { margin: 0 0 4px; font-size: 13px; }
.zp-verlauf .zp-li-datum { color: var(--ink-mid); }
.zp-vl-text { color: var(--ink-mid); overflow-wrap: anywhere; }
/* Informationen */
.pj-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-filter button { min-height: 44px; padding: 0 14px; border: 1px solid var(--leise); background: var(--feld); color: var(--ink); border-radius: 0; font: 500 13px var(--sans); cursor: pointer; }
.pj-filter button:hover { background: var(--hover); }
.pj-filter button[aria-pressed="true"] { background: var(--bild); color: var(--ink); border-color: var(--ink); font-weight: 600; }   /* Michel 23.11.: nicht mehr schwarz gefüllt */
.pj-fzahl { font: 11px var(--mono); margin-left: 2px; }
.pj-fzahl:empty { display: none; }
.pj-info-teil { border-top: 1px solid var(--linie); padding-top: 12px; }
.pj-info-teil .hb-unter { margin: 0 0 4px; }
.pj-liste { list-style: none; margin: 0; padding: 0; }
.pj-li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.pj-li:first-child { border-top: 0; }
.pj-li-art { min-width: 9.5em; flex: none; }
.pj-li-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pj-li-q { color: var(--ink-soft); font-size: 13px; }
.pj-rb { margin: 0; }
/* Projektart-Dialog (Entwurf E3) */
.pa-dialog { max-width: 1100px; gap: 18px; }
.pa-kopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pa-kopf .hb-ueber { margin: 0 0 6px; }
.pa-dialog h1 { font-size: 28px; font-weight: 600; }
.pa-unter { margin: 6px 0 0; color: var(--ink-mid); max-width: 70ch; font-size: 14.5px; }
.pa-zu { flex: none; min-width: 44px; min-height: 44px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; color: var(--ink); font-size: 16px; }
.pa-arten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pa-art { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 84px; padding: 12px 14px; border: 1px solid var(--border); background: var(--feld); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.pa-art:hover { background: var(--hover); }
.pa-art b { font-size: 14.5px; } .pa-art span { font-size: 12.5px; color: var(--ink-soft); }
.pa-art[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 13px; background: var(--white); }
.pa-mitte { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.pa-schritte h2, .pa-bausteine h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.pa-ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pa-ol li { padding: 12px 10px 6px; border-top: 4px solid var(--leise); display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.pa-ol li.erst { border-top-color: var(--ink); }
.pa-hinweis { font-size: 12px; color: var(--ink-soft); }
.pa-fussnote { margin: 8px 0 0; }
.pa-leer { margin: 0; }
.pa-bausteine { background: var(--feld); box-shadow: 0 0 0 1px var(--border); padding: 14px 16px; }
.pa-baustein { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border-top: 1px solid var(--linie); font-size: 14px; cursor: pointer; }
.pa-baustein input { width: 18px; height: 18px; flex: none; }
.pa-st { margin-left: auto; }
.pa-eigenliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-eigen { display: flex; align-items: center; gap: 8px; }
.pa-eigen input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--leise); padding: 0 10px; font: 14px var(--sans); background: var(--white); color: var(--ink); }
.pa-fehler { margin: 0; }
.pa-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--linie); padding-top: 16px; }
.pa-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1200px) { .pj-reihe { grid-template-columns: minmax(0, 1fr); } .pj-rechts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; } }
@media (max-width: 1000px) { .pa-arten { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pa-mitte { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pj { grid-template-columns: minmax(0, 1fr); background: none; }
  .pj-leiste { position: static; max-height: none; box-shadow: 0 1px 0 var(--border); padding: 14px 16px 6px; gap: 8px; }
  .pj-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .pj-nav button { flex: none; }
  .pj-rechts { display: flex; }
  .pj-schritte { grid-template-columns: minmax(0, 1fr); }
  .pj-schritt { border-top: 0; border-left: 4px solid var(--border); }
  .pj-schritt.fertig { border-left-color: var(--ink); } .pj-schritt.jetzt { border-top: 0; margin-top: 0; border-left: 6px solid var(--kupfer); }
  .pa-ol { grid-template-columns: minmax(0, 1fr); } .pa-ol li { border-top: 0; border-left: 4px solid var(--leise); padding: 8px 12px; } .pa-ol li.erst { border-left-color: var(--ink); }
}
@media (max-width: 700px) {
  .hb-schiene { overflow: hidden; padding: 4px 0 4px 8px; gap: 0; }
  .hb-schiene-ziele { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; gap: 4px; align-items: center; }
  .hb-schiene > .hb-stilknopf, .hb-schiene > .hb-menueknopf { flex: none; width: 60px; box-shadow: -1px 0 0 var(--kante); }
  .pj-haupt { padding: 18px 16px 32px; gap: 16px; }
  .pj-feld { padding: 16px 14px; }
  .pj-li { flex-direction: column; gap: 2px; }
  .pj-frist-gross { font-size: 28px; }
  .hb-dialog { padding: 20px 16px; } .hb-dialog-grund { padding: 8px; align-items: flex-start; }
  .pa-dialog h1 { font-size: 22px; } .pa-arten { grid-template-columns: minmax(0, 1fr); } .pa-art { min-height: 60px; } .pa-eigenliste { grid-template-columns: minmax(0, 1fr); }
}
/* PL-2231 (Michel 22.11.2026): Ratsbeschlüsse mit Bezug zum Projektgebiet – EIN Akzent Kupfer (Designsprache „Poetische Kartografie“).
   Marke: Kupfer mit hellem Text (4,9:1), Zeile mit Kupfer-Kante links, Grund in einer ruhigen Zeile darunter. */
.hb-marke.gebiet { background: var(--kupfer); color: var(--zahl-text, #fff); }
.zp-li.verlauf.gebiet, .pj-meldung, .hb-meldung.neu { box-shadow: inset 3px 0 0 var(--kupfer); padding-left: 10px; }
.zp-vl-grund, .pj-grund, .hb-meldung-grund { display: block; font-size: 13px; color: var(--kupfer-ink); }
.pj-gebiet-q { margin: 8px 0 0; max-width: 75ch; }
.hb-meldungen { list-style: none; margin: 0 0 24px; padding: 0; }
.hb-meldung { padding: 10px 0 10px 13px; border-top: 1px solid var(--linie); font-size: 14px; }
.hb-meldung .hb-meta { display: block; }
.hb-nf-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hb-nf-filter button { min-height: 32px; padding: 0 10px; border: 0; box-shadow: inset 0 0 0 1px var(--leise); background: var(--white); color: var(--ink); font: 13px var(--sans); cursor: pointer; }
.hb-nf-filter button[aria-pressed=true] { background: var(--schwarz); color: var(--white); box-shadow: none; }
/* ═══ Touren je Reiter (Michel 29.11.2026, hub/hub_tour.js + kartentool/tour.js) ═══════════════════════════════════════════════════
   Gleiche Blase wie im Kartenstudio (index.html .wb-tour-* + html.ci), hier mit den Farbvariablen der Hülle – folgt jedem Farbstil.
   Licht = Kupferrahmen + Abdunkeln ringsum; Knöpfe wie .hb-knopf (schwarz) bzw. .hb-knopf.leer. */
.wb-tour-licht { position: fixed; z-index: 3000; pointer-events: none; border: 2px solid var(--kupfer); box-shadow: 0 0 0 9999px rgb(17 17 17 / .38); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
html.hb-stil-dunkel .wb-tour-licht { box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6); }
.wb-tour-blase { position: fixed; z-index: 3001; background: var(--white); color: var(--ink); padding: 14px 16px 12px; box-shadow: 0 0 0 1px var(--border), 0 10px 28px rgb(0 0 0 / .25); font: 13.5px/1.5 var(--sans); }
.wb-tour-blase h3 { margin: 2px 0 4px; font: 700 16px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.wb-tour-blase p { margin: 0 0 12px; }
.wb-tour-nr { font: 600 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mid); }
.wb-tour-knoepfe { display: flex; gap: 6px; align-items: center; }
.wb-tour-zusatz { color: var(--ink-mid) !important; }
.wb-tour-blase .wb-btn, .hb-tour-angebot .wb-btn { min-height: 36px; padding: 0 14px; border: 0; background: var(--white); color: var(--schwarz); box-shadow: inset 0 0 0 1.5px var(--schwarz); font: 600 13px var(--sans); cursor: pointer; }
.wb-tour-blase .wb-btn:hover, .hb-tour-angebot .wb-btn:hover { background: var(--hover); }
.wb-tour-blase .wb-btn.primary, .hb-tour-angebot .wb-btn.primary { background: var(--schwarz); color: var(--auf-schwarz); box-shadow: none; font-weight: 700; }
.wb-tour-blase .wb-btn.primary:hover, .hb-tour-angebot .wb-btn.primary:hover { background: var(--accent-mid); color: var(--auf-schwarz); }
.wb-tour-blase button:focus-visible, .hb-tour-angebot button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hb-tour-angebot { position: fixed; left: 100px; bottom: 44px; z-index: 2400; display: flex; align-items: center; gap: 8px; max-width: min(380px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 8px 8px 8px 12px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--border), 0 4px 14px rgb(0 0 0 / .14); font: 13px/1.3 var(--sans); }
.hb-tour-angebot span { flex: 1; }
.hb-tour-angebot .wb-btn { white-space: nowrap; }
.hb-tour-angebot .wb-tour-hx { border: 0; background: none; font-size: 20px; line-height: 1; min-width: 36px; min-height: 36px; cursor: pointer; color: inherit; }
@media (max-width: 700px) { .hb-tour-angebot { left: 8px; right: 8px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .wb-tour-licht { transition: none; } }
