/* Cordimo App · Gestaltung wie cordimo.de: Petrol, Helm-Orange als Akzent, Logo-Punkte. Nur hell wie die Website. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: InterDisplay; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-display-600.woff2) format("woff2"); }
@font-face { font-family: InterDisplay; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-display-700.woff2) format("woff2"); }

:root {
  --brand: #0a5c80; --brand-dunkel: #074866; --brand-hell: #e3eef5; --verlauf-ende: #5ab8e6;
  --akzent: #f2a516; --akzent-dunkel: #e0920c; --akzent-hell: #fff4e0;
  --ink: #0e1a2b; --text: #2c3a4d; --muted: #5d6876; --line: #e3e7ed; --line-stark: #d5dce4;
  --page: #f6f8fa; --flaeche: #f2f4f7; --karte: #ffffff; --held: #e2edf4;
  --gruen: #1f7a45; --gruen-hell: #e3f5ea; --gelb: #9a5b00; --gelb-hell: #fff4e0; --rot: #b42318; --rot-hell: #fef3f2;
  --schatten: 0 1px 2px rgba(14,26,43,.04), 0 6px 20px rgba(14,26,43,.05);
  /* UI-Check M10/M11 (09.11.2026): drei Radien, Farben nur über Variablen */
  --r-klein: 10px; --r: 14px; --r-rund: 999px; --radius: var(--r); --leiste: 248px;
  --auf-farbe: #ffffff; --petrol: #0a5c80; --rot-fuell: #b42318; --gruen-fuell: #1f7a45; --gelb-fuell: #e0a400;
  --lila: #7c4dcc; --lila-dunkel: #5b34a8; --lila-text: #5b34a8; --lila-hell: #e6dcfa; --lila-rand: #d3c4f8; --orange-text: #9a5b00; --auf-orange: #1b1407;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 15.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-family: InterDisplay, Inter, sans-serif; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .4em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .9em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--r-klein); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--muted); }
.klein { font-size: .86rem; }
.mitte { text-align: center; }

/* Grundgerüst mit Seitenleiste */
.rahmen { display: grid; grid-template-columns: var(--leiste) 1fr; min-height: 100vh; min-height: 100dvh; }
.leiste { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--karte); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem/1 InterDisplay, Inter, sans-serif; letter-spacing: -.02em; padding: 4px 8px 18px; }
.logo svg { width: 30px; height: 30px; }
/* Logo „Der Faden“ (Sven 08.11.2026): Wortmarke, „cord“ in Markenfarbe (im Dark Mode heller), „imo“ Orange */
.logo svg.logo-wort, svg.logo-wort { height: 32px; width: auto; aspect-ratio: 743 / 228; color: var(--brand); flex: none; }
.logo { padding-left: 6px; }
.willkommen-titel { display: flex; align-items: center; gap: .32em; flex-wrap: wrap; }
.willkommen-titel svg.logo-titel { height: 1.25em; margin-top: .12em; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-klein); color: var(--text); text-decoration: none; font: 500 .95rem/1.2 Inter, sans-serif; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.nav a:hover, .nav button:hover { background: var(--flaeche); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-hell); color: var(--brand); }
.nav .i { width: 19px; height: 19px; }
.nav .unter { list-style: none; margin: 1px 0 6px 20px; padding: 0 0 0 10px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.nav .unter a { padding: 6px 10px; font-size: .88rem; font-weight: 500; color: var(--muted); border-radius: var(--r-klein); }
.nav .unter a:hover { color: var(--ink); }
.nav .unter a[aria-current="page"] { background: var(--brand-hell); color: var(--brand); }
.nav a.bereich-aktiv { color: var(--ink); font-weight: 600; }
.leiste-fuss { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.leiste-fuss small { display: block; padding: 8px 10px 0; color: var(--muted); font-size: .75rem; }
.leiste-fuss small a { color: inherit; }
.haupt { min-width: 0; display: flex; flex-direction: column; }
.inhalt { min-width: 0; padding: 24px clamp(16px, 2.6vw, 40px) 72px; width: 100%; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 clamp(16px, 2.6vw, 40px); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-symbole { display: flex; align-items: center; gap: 2px; }  /* kompakt (Sven 09.11.: alter Abstand gefiel besser) */
.menue-ausklapp { position: relative; }
.symbol-knopf { position: relative; height: 38px; min-width: 38px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--r-klein); border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; font: 600 .86rem/1 Inter, sans-serif; }
.symbol-knopf:hover, .symbol-knopf[aria-expanded="true"] { background: var(--karte); border-color: var(--line); color: var(--ink); }
.symbol-knopf .i { width: 20px; height: 20px; }
.symbol-knopf.paket { border-color: var(--line); background: var(--karte); }
.symbol-knopf.paket .i { color: var(--akzent-dunkel); }
.zaehler { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-rund); background: var(--rot); color: var(--auf-farbe); font: 700 .66rem/17px Inter, sans-serif; text-align: center; }
.ausklapp { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -14px rgba(14,26,43,.35); padding: 10px; z-index: 60; }
.ausklapp p.klein { color: var(--ink); }
/* Paket-Menü oben rechts (Sven 09.11.2026): Editionen und Module als Liste mit Symbol, Testphase als Band */
.paket-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.paket-liste li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.paket-liste b { display: block; font-size: .9rem; color: var(--ink); line-height: 1.2; }
.paket-liste small { font-size: .74rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.paket-sym { flex: none; width: 30px; height: 30px; border-radius: var(--r-klein); display: grid; place-items: center; background: var(--brand-hell); color: var(--brand); }
.paket-sym .i { width: 16px; height: 16px; }
.paket-sym.modul { background: var(--akzent-hell); color: var(--orange-text, var(--akzent-dunkel)); }
.paket-sym.modul + span small { color: var(--orange-text, var(--akzent-dunkel)); }
.paket-band { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 9px 10px; border-radius: var(--r-klein); background: var(--akzent-hell); color: var(--ink); font-size: .84rem; line-height: 1.4; }
.paket-band .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--orange-text, var(--akzent-dunkel)); }
.ausklapp.breit { width: min(380px, calc(100vw - 24px)); }
.ausklapp-kopf { display: flex; justify-content: space-between; align-items: center; }
.ausklapp-titel { font-weight: 600; color: var(--ink); margin: 2px 4px 8px; font-size: .92rem; }
.ausklapp-eintrag { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-klein); border: 0; background: none; color: var(--text); text-decoration: none; font: 500 .9rem/1.2 Inter, sans-serif; cursor: pointer; text-align: left; }
.ausklapp-eintrag:hover { background: var(--flaeche); color: var(--ink); }
.ausklapp-eintrag .i { width: 18px; height: 18px; color: var(--brand); }
.glocke-liste { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.glocke-liste li.leise { padding: 10px; }
.glocke-eintrag { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: var(--r-klein); text-decoration: none; color: var(--text); }
.glocke-eintrag:hover { background: var(--flaeche); }
.glocke-eintrag .punkt { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--line-stark); }
.glocke-eintrag .punkt.problem, .glocke-eintrag .punkt.mangel { background: var(--rot); }
.glocke-eintrag .punkt.fertig { background: var(--gruen); }
.glocke-eintrag .punkt.vor_ort { background: var(--brand); }
.glocke-eintrag b { display: block; font-weight: 600; color: var(--ink); font-size: .88rem; }
.glocke-eintrag small { color: var(--muted); font-size: .78rem; }
.glocke-eintrag.neu { background: var(--brand-hell); }
.aufgaben { list-style: none; margin: 0; padding: 0; }
.aufgaben li + li { border-top: 1px solid var(--line); }
.aufgaben a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; text-decoration: none; color: var(--text); border-radius: var(--r-klein); }
.aufgaben a:hover { background: color-mix(in srgb, var(--flaeche) 70%, transparent); }
.aufgaben .punkt { width: 34px; height: 34px; }
.aufgaben .punkt.problem { background: var(--rot-hell); color: var(--rot); }
.aufgaben .punkt.fertig { background: var(--gruen-hell); color: var(--gruen); }
.aufgaben .punkt.info { background: var(--akzent-hell); color: var(--gelb); }
.aufgaben b { display: block; color: var(--ink); font-weight: 600; }
.aufgaben small { color: var(--muted); font-size: .82rem; }
.aufgaben .pfeil { color: var(--muted); width: 16px; height: 16px; }
a.kennzahl { text-decoration: none; transition: border-color .15s; }
a.kennzahl:hover { border-color: var(--brand); }
.kopf-mobil { display: none; }

/* Kopf einer Seite */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.seitenkopf p { margin: 2px 0 0; color: var(--muted); }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .88rem; margin-bottom: 8px; }
.zurueck:hover { color: var(--ink); }
.zurueck .i { width: 16px; height: 16px; transform: rotate(180deg); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-rund); font: 600 .94rem/1.2 Inter, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .i { width: 17px; height: 17px; }
/* UI-Check M7/M12 (09.11.2026): ein blauer Hauptknopf (früher auch .btn-primaer), weiche Hover-Zustände ohne harte Kanten */
.btn-primaer { background: var(--petrol); color: var(--auf-farbe); box-shadow: 0 1px 2px rgba(14,26,43,.12), 0 4px 12px -6px rgba(10,92,128,.45); }
.btn-primaer .i { color: var(--auf-farbe); }
.btn-primaer:hover { background: var(--brand-dunkel); }
.btn-zweit { background: var(--karte); color: var(--ink); border-color: var(--line-stark); }
.btn-zweit:hover { background: var(--flaeche); border-color: var(--line-stark); }
.btn-leise { background: none; color: var(--muted); padding: 8px 10px; }
.btn-leise:hover { color: var(--ink); background: var(--flaeche); }
.btn-gefahr { background: var(--karte); color: var(--rot); border-color: var(--line-stark); }
.btn-gefahr:hover { background: var(--rot-hell); border-color: var(--rot-hell); }
.btn-klein { padding: 7px 12px; font-size: .84rem; }
.btn-voll { width: 100%; }
.knopf-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: var(--r-klein); border: 1px solid var(--line); background: var(--karte); color: var(--muted); cursor: pointer; padding: 0; }
.knopf-icon:hover { color: var(--ink); border-color: var(--line-stark); }
.knopf-icon .i { width: 16px; height: 16px; }
.knopf-icon:disabled { opacity: .35; cursor: default; }
form.inline { display: inline; margin: 0; }

/* Karten */
.karte { background: var(--karte); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px 22px; }
.karte + .karte { margin-top: 16px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.karte-kopf h2 { margin: 0; }
.raster { display: grid; gap: 16px; }
.raster-haupt { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.raster > .karte + .karte, .raster > form + .karte, .raster > .karte + form { margin-top: 0; }
.raster.gleich, form.raster.raster-2 { align-items: stretch; }
.raster.gleich > .karte, form.raster-2 > .karte, .raster-2 > .karte { display: flex; flex-direction: column; }
.raster.gleich > .karte > form, .raster-2 > .karte > form { flex: 1; display: flex; flex-direction: column; gap: 14px; }

/* Kennzahlen */
.kennzahl { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kennzahl b { display: block; font: 700 1.6rem/1.1 InterDisplay, Inter, sans-serif; color: var(--ink); }
.kennzahl span { font-size: .82rem; color: var(--muted); }
.kennzahl.gruen b { color: var(--gruen); } .kennzahl.gelb b { color: var(--gelb); } .kennzahl.rot b { color: var(--rot); }

/* Status-Marken wie auf der Website */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-rund); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.gruen { color: var(--gruen); background: var(--gruen-hell); }
.status.gelb { color: var(--gelb); background: var(--gelb-hell); }
.status.rot { color: var(--rot); background: var(--rot-hell); }
.status.grau { color: var(--muted); background: var(--flaeche); }
.status.blau { color: var(--brand); background: var(--brand-hell); }
.marke { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r-klein); background: var(--akzent-hell); color: var(--gelb); vertical-align: 2px; }

/* Fortschritt */
.fortschritt { height: 8px; border-radius: var(--r-rund); background: var(--flaeche); overflow: hidden; }
.fortschritt i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--verlauf-ende)); }
.fortschritt-text { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; gap: 10px; }

/* Objekt-Kacheln auf der Übersicht */
.objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.objekt-karte { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.objekt-karte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,26,43,.04), 0 18px 32px -16px rgba(14,26,43,.3); }
.objekt-karte .oben { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.objekt-karte b { color: var(--ink); font-size: 1.02rem; display: block; line-height: 1.3; }
.objekt-karte small { color: var(--muted); font-size: .84rem; }
.objekt-karte .grund { font-size: .84rem; color: var(--text); display: flex; gap: 8px; align-items: center; }
.objekt-karte .grund .i { width: 16px; height: 16px; color: var(--muted); }

/* Start-Checkliste */
.checkliste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.checkliste a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-klein); text-decoration: none; color: var(--ink); font-weight: 500; }
.checkliste a:hover { background: var(--flaeche); }
.checkliste .haken { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-stark); display: grid; place-items: center; flex: none; }
.checkliste .erledigt .haken { background: var(--gruen); border-color: var(--gruen); color: var(--auf-farbe); }
.checkliste .erledigt span:last-child { color: var(--muted); text-decoration: line-through; }
.checkliste .haken .i { width: 13px; height: 13px; stroke-width: 3; }

/* Reiter */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.reiter a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.reiter a:hover { color: var(--ink); }
.reiter a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.reiter .zahl { font-size: .72rem; background: var(--flaeche); color: var(--muted); padding: 1px 7px; border-radius: var(--r-rund); margin-left: 4px; }

/* Fahrplan / Gewerke */
.gewerke { list-style: none; margin: 0; padding: 0; }
.gewerk { border-top: 1px solid var(--line); }
.gewerk:first-child { border-top: 0; }
.gewerk > details > summary { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; }
.gewerk > details > summary::-webkit-details-marker { display: none; }
.gewerk > details > summary:hover { background: color-mix(in srgb, var(--flaeche) 60%, transparent); border-radius: var(--r-klein); }
.punkt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); color: var(--muted); font-size: .8rem; font-weight: 600; }
.punkt .i { width: 15px; height: 15px; stroke-width: 2.4; }
.gewerk.erledigt .punkt { background: var(--gruen-hell); color: var(--gruen); }
.gewerk.laeuft .punkt { background: var(--brand-hell); color: var(--brand); }
.gewerk.problem .punkt { background: var(--rot-hell); color: var(--rot); }
.gewerk.fertig .punkt { background: var(--akzent-hell); color: var(--gelb); }
.gewerk-name b { color: var(--ink); font-weight: 600; display: block; line-height: 1.3; }
.gewerk-name small { color: var(--muted); font-size: .8rem; display: block; }
.gewerk-termin { font-size: .82rem; color: var(--muted); text-align: right; white-space: nowrap; }
.gewerk-termin.spaet { color: var(--rot); font-weight: 600; }
.gewerk-koerper { padding: 6px 4px 18px 46px; display: grid; gap: 14px; }
.chev { transition: transform .2s; color: var(--muted); width: 18px; height: 18px; }
details[open] > summary .chev { transform: rotate(180deg); }
.meldung { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--flaeche); border-radius: var(--r); font-size: .88rem; }
.meldung.rot { background: var(--rot-hell); color: var(--rot); }
.meldung .i { width: 18px; height: 18px; margin-top: 1px; }
.meldung p { margin: 0; color: var(--text); }
.knopfzeile { display: flex; gap: 8px; flex-wrap: wrap; }

/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fotos a { display: block; aspect-ratio: 1; border-radius: var(--r-klein); overflow: hidden; background: var(--flaeche); }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.fotos a:hover img { transform: scale(1.04); }
.fotos.gross { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.foto-gruppe + .foto-gruppe { margin-top: 22px; }
.foto-gruppe h3 { display: flex; gap: 8px; align-items: center; }

/* Formulare */
.formular { display: grid; gap: 14px; }
.feld { display: grid; gap: 5px; }
.feld label, .feld .label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.feld small { color: var(--muted); font-size: .8rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea {
  width: 100%; font: 400 .95rem/1.4 Inter, sans-serif; color: var(--ink); background: var(--karte); border: 1px solid var(--line-stark);
  border-radius: var(--r-klein); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,92,128,.15); }
textarea { min-height: 84px; resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drei { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.haken-feld { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.haken-feld input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.vorlagen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vorlage { position: relative; display: block; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; background: var(--karte); }
.vorlage input { position: absolute; opacity: 0; }
.vorlage b { display: block; color: var(--ink); }
.vorlage small { color: var(--muted); font-size: .82rem; display: block; margin-top: 2px; }
.vorlage:has(input:checked) { border-color: var(--brand); background: var(--brand-hell); }
.vorlage:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.datei-feld { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-stark); border-radius: var(--r); cursor: pointer; color: var(--muted); font-weight: 500; }
.datei-feld:hover { border-color: var(--brand); color: var(--brand); }
.datei-feld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fehler { background: var(--rot-hell); color: var(--rot); border-radius: var(--r); padding: 11px 14px; font-size: .9rem; font-weight: 500; }
.hinweis-band { background: var(--gruen-hell); color: var(--gruen); border-radius: var(--r); padding: 11px 14px; font-size: .9rem; font-weight: 500; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.hinweis-band .i { width: 18px; height: 18px; }
.info-band { background: var(--brand-hell); color: var(--ink); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.info-band .i { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.info-band.gelb { background: var(--gelb-hell); }
.info-band.gelb .i { color: var(--gelb); }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabelle td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle-huelle { overflow-x: auto; }

/* Verlauf */
.verlauf { list-style: none; margin: 0; padding: 0; position: relative; }
.verlauf li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.verlauf li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.verlauf li:last-child::before { display: none; }
.verlauf .punkt { width: 28px; height: 28px; }
.verlauf .punkt.fertig, .verlauf .punkt.abgehakt { background: var(--gruen-hell); color: var(--gruen); }
.verlauf .punkt.problem, .verlauf .punkt.mangel { background: var(--rot-hell); color: var(--rot); }
.verlauf .punkt.vor_ort { background: var(--brand-hell); color: var(--brand); }
.verlauf b { color: var(--ink); font-weight: 600; }
.verlauf small { color: var(--muted); font-size: .8rem; display: block; }
.verlauf p { margin: 2px 0 0; font-size: .9rem; white-space: pre-line; }

/* Link-Feld zum Kopieren */
.link-feld { display: flex; gap: 6px; align-items: center; }
.link-feld input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; color: var(--muted); background: var(--flaeche); }
.pin { font: 700 1.05rem/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; color: var(--ink); background: var(--flaeche); padding: 6px 10px; border-radius: var(--r-klein); }
.zugang { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.zugang:first-of-type { border-top: 0; padding-top: 4px; }
.qr-vorschau { width: 150px; height: 150px; border-radius: var(--r); border: 1px solid var(--line); background: var(--auf-farbe); padding: 6px; }

/* Einfache Seiten: Anmelden, Handwerker, Geldgeber */
.einfach { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--held) 0%, var(--page) 340px); }
.einfach-kopf { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 32px); gap: 12px; }
.einfach-kopf .logo { padding: 0; }
.einfach-inhalt { width: 100%; max-width: 460px; margin: 0 auto; padding: 8px 16px 48px; flex: 1; }
.einfach-inhalt.breit { max-width: 760px; }
.einfach-fuss { text-align: center; font-size: .78rem; color: var(--muted); padding: 18px; }
.einfach-fuss a { color: inherit; }
.anmelde-karte { padding: 28px 26px; }
.anmelde-karte h1 { font-size: 1.6rem; margin-bottom: 6px; }

/* Handwerker-Handy-Seite */
.auftrag-kopf { padding: 4px 0 18px; }
.auftrag-kopf h1 { font-size: 1.45rem; margin-bottom: 4px; }
.auftrag-kopf p { color: var(--muted); margin: 0; }
.gross-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 18px; border-radius: var(--r); font: 600 1.05rem/1.2 Inter, sans-serif; border: 1.5px solid var(--line-stark); background: var(--karte); color: var(--ink); cursor: pointer; text-decoration: none; }
.gross-knopf .i { width: 22px; height: 22px; }
.gross-knopf.haupt { background: var(--brand); border-color: var(--brand); color: var(--auf-farbe); }
.gross-knopf.problem { color: var(--rot); border-color: var(--rot-hell); }
.gross-knopf:active { transform: scale(.985); }
.knopf-stapel { display: grid; gap: 10px; }
.aufklapp { border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); }
.aufklapp > summary { list-style: none; cursor: pointer; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp[open] > summary.gross-knopf { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.aufklapp-inhalt { padding: 14px; display: grid; gap: 12px; }
details.aufklapp.ohne-rand { border: 0; background: none; }
.erledigt-band { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--gruen-hell); color: var(--gruen); font-weight: 600; }
.erledigt-band .i { width: 22px; height: 22px; }
.zeile { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.zeile .i { color: var(--brand); margin-top: 2px; width: 18px; height: 18px; }

/* Einstellungen, Tarife, Sperren */
.schalter-zeile { padding: 10px 0; border-top: 1px solid var(--line); }
.schalter-zeile:first-of-type { border-top: 0; }
.schalter-zeile b { display: block; color: var(--ink); font-weight: 600; }
.schalter-zeile small { display: block; color: var(--muted); font-size: .84rem; }
.sperre { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--akzent-hell); border: 1px solid #f6d79a; }
.sperre > .i { color: var(--gelb); width: 22px; height: 22px; margin-top: 2px; }
.sperre b { color: var(--ink); display: block; }
.sperre p { margin: 2px 0 10px; font-size: .88rem; }
.tarife { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tarif { display: flex; flex-direction: column; }
.tarif + .tarif { margin-top: 0; }
.tarif.aktuell { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-hell), var(--schatten); }
.tarif form { margin-top: auto; }
.tarif-preis { white-space: nowrap; font: 700 1.5rem/1.2 InterDisplay, Inter, sans-serif; color: var(--ink); margin: 0 0 6px; }
.haken-liste { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 6px; font-size: .9rem; }
.haken-liste li { padding-left: 24px; position: relative; }
.haken-liste li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--gruen); border-bottom: 2px solid var(--gruen); transform: rotate(-45deg); }
.haken-liste li.nein { color: var(--muted); text-decoration: line-through; }
.haken-liste li.nein::before { border-color: var(--line-stark); }
pre.code { background: var(--ink); color: var(--brand-hell); padding: 12px 14px; border-radius: var(--r-klein); font-size: .8rem; overflow-x: auto; margin: 8px 0 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; }

.trenner { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Hilfe-Blase und Tour */
.hilfe { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hilfe-knopf { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: var(--auf-farbe); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(10,92,128,.6); position: relative; transition: transform .15s, background .15s; }
.hilfe-knopf:hover { background: var(--brand-dunkel); transform: translateY(-1px); }
.hilfe-knopf .i { width: 26px; height: 26px; }
.hilfe-knopf::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--akzent); border: 2px solid #fff; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hilfe.hinweis .hilfe-knopf { animation: puls 1.8s ease-in-out 3; }
@keyframes puls { 50% { box-shadow: 0 0 0 10px rgba(10,92,128,.15), 0 10px 24px -8px rgba(10,92,128,.6); } }
.hilfe-panel { width: min(360px, calc(100vw - 32px)); max-height: min(620px, calc(100dvh - 110px)); overflow: auto; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 48px -16px rgba(14,26,43,.35); }
.hilfe-kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--held), var(--karte)); border-radius: 18px 18px 0 0; }
.hilfe-kopf .logo { padding: 0; font-size: 1.05rem; }
.hilfe-kopf .logo svg { width: 24px; height: 24px; }
.hilfe-inhalt { padding: 14px; display: grid; gap: 10px; }
.hilfe-aktion { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--karte); color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; width: 100%; }
.hilfe-aktion:hover { border-color: var(--brand); }
.hilfe-aktion.haupt { background: var(--brand-hell); border-color: transparent; }
.hilfe-aktion .i { color: var(--brand); margin-top: 2px; }
.hilfe-aktion b { display: block; font-weight: 600; }
.hilfe-aktion small { display: block; color: var(--muted); font-size: .82rem; }
.hilfe-anfrage { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--flaeche); }
.hilfe-anfrage textarea { min-height: 80px; }
.hilfe-meldung { margin: 0; font-size: .86rem; padding: 8px 10px; border-radius: var(--r-klein); }
.hilfe-meldung.ok { background: var(--gruen-hell); color: var(--gruen); }
.hilfe-meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.tour-ziel { position: relative; z-index: 66; outline: 3px solid var(--akzent) !important; outline-offset: 4px; border-radius: var(--r); box-shadow: 0 0 0 9999px rgba(14,26,43,.38); transition: box-shadow .2s; }
.tour-blase { position: fixed; z-index: 80; width: min(340px, calc(100vw - 24px)); background: var(--karte); border-radius: var(--r); padding: 14px 16px 12px; box-shadow: 0 20px 44px -12px rgba(14,26,43,.45); border: 1px solid var(--line); --pfeil: 40px; }
.tour-blase::before { content: ""; position: absolute; top: -8px; left: calc(var(--pfeil) - 8px); width: 16px; height: 16px; background: var(--karte); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.tour-blase.pfeil-unten::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.tour-blase.unten-fest { left: 50% !important; top: auto !important; bottom: 90px; transform: translateX(-50%); }
.tour-blase.unten-fest::before { display: none; }
.tour-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tour-kopf > .i { width: 20px; height: 20px; }
.tour-zaehler { font-size: .76rem; color: var(--muted); font-weight: 600; }
.tour-x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: var(--r-klein); }
.tour-x:hover { color: var(--ink); background: var(--flaeche); }
.tour-x .i { width: 16px; height: 16px; }
.tour-marke { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--akzent-dunkel); background: var(--akzent-hell); padding: 2px 8px; border-radius: var(--r-rund); margin-bottom: 6px; }
.tour-titel { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.tour-text { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; }
.tour-knoepfe { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.tour-zurueck { margin-right: auto; border: 1px solid var(--line); background: var(--karte); color: var(--muted); width: 32px; height: 32px; border-radius: var(--r-klein); display: grid; place-items: center; cursor: pointer; }
.tour-zurueck:hover { color: var(--ink); border-color: var(--brand); }
.tour-zurueck .i { width: 16px; height: 16px; }
.tour-info { position: fixed; z-index: 85; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: var(--auf-farbe); font-size: .88rem; padding: 10px 16px; border-radius: var(--r); box-shadow: 0 14px 30px -12px rgba(14,26,43,.5); animation: auftauchen .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .tour-info { animation: none; } }
@media (max-width: 860px) { .hilfe { right: 14px; bottom: 14px; } .hilfe-knopf { width: 52px; height: 52px; } }
@media print { .hilfe { display: none; } }

.kleingedruckt { font-size: .74rem; line-height: 1.45; color: var(--muted); margin: 8px 0 0; }
.code-gross { font: 700 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--brand); background: var(--brand-hell); border-radius: var(--r); padding: 12px 16px; text-align: center; margin: 4px 0 14px; }

/* Einstellungen im Stil gängiger SaaS-Tools: Menü links, Abschnitte mit Erklärung links und Feldern rechts */
.einst { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.einst-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; }
/* Gemeinsame Startseite: leise Überschrift über den Kennzahlen, wenn Objekte und Projekte beide da sind */
.db-bereich { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 4px 2px -8px; }
.einst-g { display: flex; flex-direction: column; gap: 1px; }
.einst-gruppe { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-klein); background: none; cursor: pointer; text-align: left; font: 700 .72rem/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.einst-gruppe:hover { background: var(--flaeche); color: var(--ink); }
.einst-gruppe .i { width: 14px; height: 14px; transition: transform .15s; transform: rotate(-90deg); }
.einst-g.auf .einst-gruppe .i { transform: none; }
.einst-g.auf .einst-gruppe { color: var(--ink); }
.einst-links { display: none; flex-direction: column; gap: 1px; padding-bottom: 6px; }
.einst-g.auf .einst-links { display: flex; }
.einst-nav a { padding: 8px 10px 8px 22px; margin-left: 0; border-radius: var(--r-klein); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.einst-nav a:hover { background: var(--flaeche); color: var(--ink); }
.einst-nav a[aria-current="page"] { background: var(--brand-hell); color: var(--brand); }
.einst-inhalt { min-width: 0; max-width: 1080px; }
.einst-kopf + .reiter { margin-top: 0; }
.einst-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.einst-kopf h1 { font-size: 1.5rem; margin: 0 0 4px; }
.einst-kopf p { margin: 0; color: var(--muted); max-width: 640px; }
.einst-block { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 28px; padding: 16px 0 8px; }
.einst-block-info h2 .info-knopf, .einst-block-info h2 .info { vertical-align: middle; }
.einst-block-info h2 { font-size: 1rem; margin: 0 0 6px; }
.einst-block-info p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.einst-block-feld { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.einst-block.gefahr .einst-block-feld { border-color: var(--rot-hell); }
.einst-block.gefahr h2 { color: var(--rot); }
.einst-leiste { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--page) 30%); }
.einst-leiste.geaendert [data-aenderung-text] { color: var(--gelb); font-weight: 600; }
.schalter-reihe { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 4px 0; position: relative; }
.schalter-reihe + .schalter-reihe { border-top: 1px solid var(--line); padding-top: 14px; }
.schalter-reihe b { display: block; color: var(--ink); font-weight: 600; font-size: .94rem; }
.schalter-reihe small { display: block; color: var(--muted); font-size: .84rem; }
.schalter-reihe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter { flex: none; width: 40px; height: 22px; border-radius: var(--r-rund); background: var(--line-stark); position: relative; transition: background .15s; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--auf-farbe); box-shadow: 0 1px 2px rgba(14,26,43,.25); transition: transform .15s; }
.schalter-reihe input:checked + .schalter { background: var(--brand); }
.schalter-reihe input:checked + .schalter::after { transform: translateX(18px); }
.schalter-reihe input:focus-visible + .schalter { outline: 3px solid var(--brand); outline-offset: 2px; }
.einst-zeile { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.einst-zeile b { display: block; color: var(--ink); font-weight: 600; }
.einst-zeile small { display: block; color: var(--muted); font-size: .84rem; }
.einst-zeile .status { margin-top: 4px; }
.einst-tabelle { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; margin-top: 16px; }
.einst-tabelle .tabelle th { background: var(--flaeche); padding: 10px 16px; }
.einst-tabelle .tabelle td { padding: 12px 16px; vertical-align: middle; }
.tabelle .rechts { text-align: right; }
.klein-select { width: auto !important; padding: 6px 28px 6px 10px !important; font-size: .86rem !important; }
.einst-leer { text-align: center; padding: 40px 20px; background: var(--karte); border: 1px dashed var(--line-stark); border-radius: var(--r); margin-top: 16px; }
.einst-leer .i { width: 32px; height: 32px; color: var(--muted); }
.einst-leer b { display: block; color: var(--ink); margin: 8px 0 4px; }
.einst-leer p { margin: 0 auto; color: var(--muted); max-width: 420px; font-size: .9rem; }
.einst-details { margin-top: 16px; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.einst-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.einst-karte { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.paket-uebersicht { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.paket-gross { display: block; font: 700 1.5rem/1.2 InterDisplay, Inter, sans-serif; color: var(--ink); }
.nutzung span { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 6px; }
.nutzung b { color: var(--ink); }
.einst-zwischen { font-size: 1.05rem; margin: 26px 0 12px; }
.gutschein-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.gutschein-zeile label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.gutschein-zeile input { width: 240px !important; }
.zahlen-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zahlen-reihe div { background: var(--flaeche); border-radius: var(--r-klein); padding: 12px; }
.zahlen-reihe b { display: block; font: 700 1.4rem/1.1 InterDisplay, Inter, sans-serif; color: var(--ink); }
.zahlen-reihe span { font-size: .8rem; color: var(--muted); }
dialog.fenster { border: 0; border-radius: var(--r); padding: 0; width: min(480px, calc(100vw - 24px)); box-shadow: 0 30px 60px -20px rgba(14,26,43,.45); }
dialog.fenster::backdrop { background: rgba(14,26,43,.45); }
dialog.fenster form, dialog.fenster > .formular { padding: 20px 22px; }
dialog.fenster.gross { width: min(820px, calc(100vw - 24px)); background: var(--page); }
dialog.fenster.gross .fenster-innen { padding: 20px 22px 6px; }
dialog.fenster.gross form { padding: 0; }
.fenster-kopf { display: flex; justify-content: space-between; align-items: center; }
.fenster-kopf h2 { margin: 0; font-size: 1.15rem; }
.fenster-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 1000px) {
  .einst { grid-template-columns: 1fr; gap: 16px; }
  .einst-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .einst-nav a { padding: 9px 10px; }
  .einst-gruppe { display: none; }
  .einst-g, .einst-links, .einst-g.auf .einst-links { display: contents; }
  .einst-nav a { white-space: nowrap; }
  .einst-block { grid-template-columns: 1fr; gap: 12px; }
  .paket-uebersicht, .zahlen-reihe { grid-template-columns: 1fr; }
}

/* Startseite: Kalender und Kennzahlen */
.kalender { padding: 16px 18px 14px; }
.kal-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kal-kopf h2 { margin: 0; font-size: 1.1rem; }
.kal-nav { display: flex; gap: 6px; align-items: center; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-klein); overflow: hidden; }
.kal-wt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 7px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--flaeche); }
.kal-tag { min-height: 92px; padding: 5px 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--karte); }
.kal-tag.we { background: var(--flaeche); }
.kal-tag.fremd { background: var(--flaeche); }
.kal-tag.fremd .kal-zahl { color: var(--line-stark); }
.kal-zahl { font-size: .8rem; font-weight: 600; color: var(--text); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.kal-tag.heute .kal-zahl { background: var(--brand); color: var(--auf-farbe); }
.kal-eintrag { display: block; font-size: .72rem; line-height: 1.3; padding: 2px 6px; border-radius: var(--r-klein); text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--farbe) 14%, white); border-left: 3px solid var(--farbe); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-eintrag:hover { background: color-mix(in srgb, var(--farbe) 24%, white); }
.kal-eintrag:not(.start) { color: var(--muted); }
.kal-eintrag.abgehakt, .kal-eintrag.fertig { opacity: .6; text-decoration: line-through; }
.kal-eintrag.problem { box-shadow: inset 0 0 0 1px var(--rot); }
.kal-eintrag.uebergabe { background: color-mix(in srgb, var(--farbe) 38%, white); color: var(--ink); font-weight: 600; }
.kal-mehr { font-size: .7rem; color: var(--muted); padding-left: 4px; }
.kal-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .8rem; color: var(--text); }
.kal-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kal-legende i { width: 10px; height: 10px; border-radius: var(--r-klein); }
@media (max-width: 1100px) { .start-oben { grid-template-columns: 1fr; } .kennzahlen-seite { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .kennzahlen-seite { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kal-tag { min-height: 64px; } .kal-eintrag { font-size: 0; padding: 0; height: 6px; } .kal-mehr { display: none; } }

.terminplan-huelle .kalender { margin-bottom: 16px; animation: auftauchen .2s ease-out; }
[data-aufklappen] .chev { width: 16px; height: 16px; transition: transform .2s; }
[data-aufklappen][aria-expanded="true"] .chev { transform: rotate(180deg); }

.objekt-punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 860px) { .termin-liste { grid-template-columns: 1fr; } .termin-liste li:nth-child(2) a { border-top: 1px solid var(--line); } }

.assistent { max-width: 860px; }
.assistent .karte + .karte { margin-top: 0; }
.assistent-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }

.mini-zahlen .gruen b { color: var(--gruen); } .mini-zahlen .gelb b { color: var(--gelb); } .mini-zahlen .rot b { color: var(--rot); }
@media (max-width: 1100px) { .termine-innen { grid-template-columns: 1fr; } .mini-zahlen { border-left: 0; padding-left: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mini-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Knöpfe, Menüs und Reiter in der Systemschrift wie das Menü der Website: Inter fett wirkt in kleinen Größen unter Windows unscharf („i“ wie „l“) */
.btn, .nav a, .nav button, .einst-nav a, .reiter a, .symbol-knopf, .ausklapp-eintrag, .gross-knopf, .hilfe-aktion b {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif; }
.einst-inhalt { container-type: inline-size; }
@container (max-width: 760px) {
  .einst-block { grid-template-columns: 1fr; gap: 12px; }
  .paket-uebersicht { grid-template-columns: 1fr; }
}
@container (max-width: 520px) { .zahlen-reihe { grid-template-columns: 1fr; } }

.filter-zeile { display: flex; align-items: center; gap: 8px; }
.wochen-kopf { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 4px; }
.wochen-kopf:first-of-type { margin-top: 4px; }

.wert-zeile { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wert-zeile b { font: 700 1.05rem/1 InterDisplay, Inter, sans-serif; color: var(--ink); min-width: 26px; }
.wert-balken { flex: 1; height: 6px; }
.wert-balken.gruen i { background: var(--gruen); } .wert-balken.gelb i { background: var(--akzent); } .wert-balken.rot i { background: var(--rot); }
a.ohne-linie { text-decoration: none; color: inherit; }
a.ohne-linie:hover b { color: var(--brand); }

.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.angaben { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; }
.angaben dt { color: var(--muted); }
.angaben dd { margin: 0; }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* Leere Zustände */
.leer { text-align: center; padding: 34px 16px; color: var(--muted); }
.leer .i { width: 34px; height: 34px; color: var(--line-stark); margin-bottom: 8px; }

/* Fehlerseite */
.fehler-code { font: 700 3.2rem/1 InterDisplay, Inter, sans-serif; color: var(--brand); margin-bottom: 8px; }

/* Bildansicht */
dialog.bild { padding: 0; border: 0; border-radius: var(--r); max-width: min(96vw, 1200px); background: #000; }
dialog.bild::backdrop { background: rgba(14,26,43,.82); }
dialog.bild img { display: block; max-height: 88vh; width: auto; margin: 0 auto; }
dialog.bild button { position: absolute; top: 8px; right: 8px; }

@media (max-width: 1100px) {
  .raster-haupt, .raster-start { grid-template-columns: 1fr; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .leiste { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--schatten); }
  .leiste.offen { transform: none; }
  .topbar { top: 53px; height: 52px; }
  .topbar-links { display: none; }
  .topbar { justify-content: flex-end; }
  .kopf-mobil { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--karte); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
  .kopf-mobil .logo { padding: 0; font-size: 1.1rem; }
  .kopf-mobil .logo svg { width: 26px; height: 26px; }
  .kopf-mobil .logo svg.logo-wort { height: 28px; width: auto; }
  .schleier { position: fixed; inset: 0; background: rgba(14,26,43,.35); z-index: 55; display: none; }
  .schleier.offen { display: block; }
  .inhalt { padding-top: 18px; }
  .raster-2, .raster-3, .zwei, .drei, .vorlagen, .tarife { grid-template-columns: 1fr; }
  .kennzahlen { grid-template-columns: 1fr !important; }
  .gewerk > details > summary { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .gewerk > details > summary .gewerk-termin { display: none; }
  .gewerk-koerper { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .leiste, .kopf-mobil, .aktionen, .reiter, form { display: none !important; }
  .rahmen { display: block; }
  body { background: var(--auf-farbe); }
}

/* Kalkulation */
.kalk-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.kalk-ergebnis { position: sticky; top: 16px; }
.kalk-gruppe { border-top: 1px solid var(--line); padding-top: 14px; }
.kalk-gruppe h3 { margin: 0 0 10px; font-size: .95rem; }
.kalk-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; }
.kalk-positionen { display: grid; gap: 6px; }
.kalk-pos { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; }
.einheit { display: flex; align-items: stretch; }
.einheit input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; flex: 1; }
.einheit span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-stark); border-left: 0; border-radius: 0 8px 8px 0; background: var(--flaeche); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.klein-feld { max-width: 150px; margin-left: auto; }
.klein-feld input { padding: 6px 8px; text-align: right; }
.kalk-kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kalk-kennzahlen > div { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kalk-kennzahlen small { color: var(--muted); font-size: .8rem; }
.kalk-kennzahlen b { font-size: 1.25rem; color: var(--ink); }
.kalk-ergebnis .kalk-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
b.rot, span.rot, .kalk-kennzahlen b.rot { color: var(--rot); }
span.gruen { color: var(--gruen); }
.kalk-tabelle td.rechts, .kalk-tabelle th.rechts { text-align: right; white-space: nowrap; }
.kalk-tabelle tr.summe td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-stark); }
@media (max-width: 980px) { .kalk-raster { grid-template-columns: 1fr; } .kalk-ergebnis { position: static; } }
@media (max-width: 700px) { .kalk-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kalk-pos { grid-template-columns: 1fr 120px; } }
.kalk-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.kalk-ergebnis .einst-tabelle { overflow-x: auto; }
.einst-tabelle .kalk-tabelle td, .einst-tabelle .kalk-tabelle th, .kalk-tabelle td, .kalk-tabelle th { padding-left: 10px; padding-right: 10px; font-size: .88rem; }
.kalk-tabelle td:first-child { white-space: normal; }

/* Tarifseite: Privat/Unternehmen, Intervall, Widerruf */
.segment-schalter { display: inline-flex; border: 1px solid var(--line-stark); border-radius: var(--r-klein); overflow: hidden; }
.segment-schalter button { border: 0; background: var(--karte); padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.segment-schalter button.aktiv { background: var(--petrol, #0a5c80); color: var(--auf-farbe); }
.tarife.vier { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.intervall { display: flex; gap: 14px; margin: 0 0 8px; font-size: .9rem; }
.intervall label { display: flex; gap: 6px; align-items: center; }
.widerruf-haken { background: var(--flaeche); padding: 10px 12px; border-radius: var(--r-klein); font-size: .88rem; }
.widerruf-haken.fehlt { outline: 2px solid var(--rot); }
.segment-links a { padding: 7px 14px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; background: var(--karte); }
.segment-links a.aktiv { background: var(--petrol, #0a5c80); color: var(--auf-farbe); }
.firmenlogo { display: block; max-height: 44px; max-width: 200px; margin: 0 0 8px; }
.betrieb-auswahl { display: grid; gap: 4px; max-height: 240px; overflow: auto; }
b.gruen { color: var(--gruen); }

/* Gewerke bewerten */
.sterne-zeile { border: 0; padding: 0; margin: 0; }
.sterne-zeile legend { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.sterne { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sterne input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sterne label { font-size: 1.7rem; line-height: 1; color: var(--line-stark); cursor: pointer; padding: 0 2px; }
.sterne input:checked ~ label, .sterne label:hover, .sterne label:hover ~ label { color: var(--akzent, #f2a516); }
.sterne input:focus-visible + label { outline: 2px solid var(--petrol, #0a5c80); border-radius: var(--r-klein); }
.sterne-klein { font-size: .85rem; color: var(--muted); }

/* Bitte um Bewertung */
.bitte-karte { margin-bottom: 16px; border-left: 4px solid var(--akzent, #f2a516); }
.bitte-karte h2 { margin: 0 0 6px; font-size: 1.1rem; }
.bitte-karte p { margin: 0 0 6px; }
.bitte-knoepfe { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bitte-leise { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.daumen-zeile { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0 4px; }

/* Dark Mode (Einstellung je Benutzer, Symbol oben rechts) */
html[data-design="dunkel"] {
  /* Farben wie im Dunkelmodus der Handy-App (Sven 10.11.2026 23:40): Schwarz als Grund, Karten #1c1c1e, helles Petrol */
  --brand: #3fa9dd; --brand-dunkel: #5cc0ee; --brand-hell: rgba(63, 169, 221, .18); --verlauf-ende: #5cc0ee;
  --akzent: #f2a516; --akzent-dunkel: #ffb340; --akzent-hell: rgba(242, 165, 22, .18);
  --ink: #f5f5f7; --text: #e5e5ea; --muted: #98989f; --line: rgba(255, 255, 255, .1); --line-stark: rgba(255, 255, 255, .16);
  --page: #000000; --flaeche: #2c2c2e; --karte: #1c1c1e; --held: #1c1c1e;
  --gruen: #4cd38a; --gruen-hell: rgba(76, 211, 138, .16); --gelb: #ffb340; --gelb-hell: rgba(255, 179, 64, .18); --rot: #ff6b5e; --rot-hell: rgba(255, 107, 94, .18);
  --petrol: #3fa9dd; --orange-text: #ffb340; --lila-text: #b89cf5; --lila-hell: rgba(124, 77, 204, .22); --lila-rand: rgba(124, 77, 204, .45);
  --schatten: 0 0 0 .5px rgba(255, 255, 255, .06);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-design="system"] {
    /* Farben wie im Dunkelmodus der Handy-App (Sven 10.11.2026 23:40): Schwarz als Grund, Karten #1c1c1e, helles Petrol */
    --brand: #3fa9dd; --brand-dunkel: #5cc0ee; --brand-hell: rgba(63, 169, 221, .18); --verlauf-ende: #5cc0ee;
  --akzent: #f2a516; --akzent-dunkel: #ffb340; --akzent-hell: rgba(242, 165, 22, .18);
  --ink: #f5f5f7; --text: #e5e5ea; --muted: #98989f; --line: rgba(255, 255, 255, .1); --line-stark: rgba(255, 255, 255, .16);
  --page: #000000; --flaeche: #2c2c2e; --karte: #1c1c1e; --held: #1c1c1e;
  --gruen: #4cd38a; --gruen-hell: rgba(76, 211, 138, .16); --gelb: #ffb340; --gelb-hell: rgba(255, 179, 64, .18); --rot: #ff6b5e; --rot-hell: rgba(255, 107, 94, .18);
  --petrol: #3fa9dd; --orange-text: #ffb340; --lila-text: #b89cf5; --lila-hell: rgba(124, 77, 204, .22); --lila-rand: rgba(124, 77, 204, .45);
  --schatten: 0 0 0 .5px rgba(255, 255, 255, .06);
  color-scheme: dark;
  }
}
html[data-design="dunkel"] .kal-tag.we, html[data-design="system"] .kal-tag.we { background: var(--flaeche); }
html[data-design="dunkel"] .btn-gefahr, html[data-design="dunkel"] .gross-knopf.problem { border-color: #6b2a24; }
@media (prefers-color-scheme: dark) {
  html[data-design="system"] .design-sonne { display: block; }
  html[data-design="system"] .design-mond { display: none; }
  html[data-design="system"] .kal-tag.we { background: var(--flaeche); }
}
@media (prefers-color-scheme: light) { html[data-design="system"] .kal-tag.we { background: var(--flaeche); } }
html[data-design="hell"] .kal-tag.we { background: var(--flaeche); }
/* Benachrichtigungen: jeder Eintrag für sich (Sven 07.11.) */
.glocke-liste { display: grid; gap: 6px; padding: 2px; }
.glocke-liste > li { margin: 0; }
.weitere-angaben { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.weitere-angaben legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }

/* Anbindung hinzufügen: Auswahl */
.anbindung-wahl { display: grid; gap: 8px; }
.anbindung-option { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); color: var(--ink); cursor: pointer; font: inherit; }
.anbindung-option:hover { border-color: var(--brand); background: var(--brand-hell); }
.anbindung-option .i { width: 22px; height: 22px; color: var(--brand); flex: none; }
.anbindung-option span { display: flex; flex-direction: column; gap: 2px; }
.anbindung-option small { color: var(--muted); }
.schritte-liste { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Klickpfade und Knopfnamen in Texten: wie kleine Schaltflächen */
.ui { display: inline-block; font-weight: 600; font-size: .92em; line-height: 1.35; padding: 0 6px; border: 1px solid var(--line-stark, #d5dbe3); border-radius: var(--r-klein); background: var(--flaeche, #f3f5f8); color: var(--ink, #0e1a2b); white-space: nowrap; }
.ui-pfeil { color: var(--muted, #6b7785); }

/* Zustimmung KI-Verbindung */
.oauth-karte { padding: 28px 26px; text-align: left; }
.oauth-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.oauth-logos .kreis { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-hell); color: var(--brand); }
.oauth-logos .kreis svg { width: 28px; height: 28px; }
.oauth-logos .verbinder { color: var(--muted); display: flex; gap: 4px; }
.oauth-logos .verbinder i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.oauth-karte h1 { font-size: 1.35rem; text-align: center; margin: 0 0 4px; }
.oauth-karte .unter { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: .92rem; }
.oauth-hinweis { font-size: .82rem; color: var(--muted); margin: 0 0 18px; display: flex; gap: 8px; }
.oauth-hinweis .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.oauth-ziel { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--r-klein); font-size: .9rem; margin: 0 0 16px; }
.oauth-ziel .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.oauth-ziel.ok { background: var(--gruen-hell); color: var(--gruen); }
.oauth-ziel.warn { background: var(--rot-hell); color: var(--rot); }
.oauth-knoepfe { display: grid; gap: 8px; }

/* Schlüssel-Rechte je Bereich */
.rechte-tabelle { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-top: 4px; }
.rechte-tabelle label { font-weight: 500; margin: 0; }
.rechte-tabelle select { min-width: 170px; }
.rechte-gruppe { grid-column: 1 / -1; margin-top: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rechte-gruppe:first-child { margin-top: 0; }

/* Tarifvergleich: nur Enthaltenes, aufbauend */
.tarif .haken-liste { margin-top: 6px; }

/* Startseite als Fluss: keine Kacheln, Abschnitte mit Überschrift und Trennlinie */
.fluss-kopf { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.fluss-kopf h2 { margin: 0; flex: 1; }
.fluss-liste { list-style: none; margin: 0; padding: 0; }
.fluss-liste li a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r-klein); color: inherit; text-decoration: none; }
.fluss-liste li a:hover { background: var(--flaeche); }
.fluss-liste li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.fluss-liste li + li a:hover { border-radius: 0; }
.fluss-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fluss-text b { font-weight: 600; color: var(--ink); }
.fluss-text small { color: var(--muted); }
.fluss-liste .pfeil { color: var(--muted); width: 16px; height: 16px; }
.fluss-datum { width: 92px; flex: none; color: var(--text); font-size: .9rem; }
.fluss-datum b { font-weight: 600; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--brand); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.link-knopf:hover { text-decoration: underline; }
.link-knopf .chev { width: 14px; height: 14px; }
.text-rot { color: var(--rot); font-weight: 600; }
.text-gruen { color: var(--gruen); font-weight: 600; }
.seitenkopf p a { color: inherit; font-weight: 600; }
@media (max-width: 640px) { .fluss-datum { width: 70px; } }

/* Startseite: oben zwei Spalten ohne Kästen, darunter wenige Karten */
.zaehl-chip { font-size: .78rem; font-weight: 600; color: var(--rot); background: var(--rot-hell); border-radius: var(--r-rund); padding: 1px 8px; }
.ampel-punkt.gruen, .fortschritt i.gruen { background: var(--gruen); }
.ampel-punkt.gelb, .fortschritt i.gelb { background: var(--akzent); }
.ampel-punkt.rot, .fortschritt i.rot { background: var(--rot); }
@media (max-width: 900px) {
  .start-oben, .start-unten { grid-template-columns: 1fr; }
  .start-spalte, .start-spalte + .start-spalte { padding: 4px 0 12px; border-left: 0; }
  .start-spalte + .start-spalte { border-top: 1px solid var(--line); padding-top: 16px; }
}
.start-hinweis .bitte-karte, .start-hinweis .karte { box-shadow: none; border: 0; border-left: 3px solid var(--akzent); border-radius: 0; background: transparent; padding: 2px 0 2px 16px; margin: 0 0 22px; }
.start-hinweis .bitte-karte h2 { font-size: 1rem; }

/* Startseite: Kennzahlen und Grafiken */
.kz { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kz + .kz { border-left: 1px solid var(--line); }
.kz small { color: var(--muted); font-size: .8rem; }
.kz b { font: 700 1.9rem/1.15 InterDisplay, Inter, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.kz span { color: var(--muted); font-size: .8rem; }
.kz span a { color: var(--brand); }
.stapel { display: flex; gap: 2px; height: 14px; border-radius: var(--r-klein); overflow: hidden; background: var(--flaeche); margin: 8px 0 14px; }
.stapel-teil { display: block; min-width: 6px; position: relative; }
.stapel-teil.erledigt { background: var(--gruen); }
.stapel-teil.vor_ort { background: var(--brand); }
.stapel-teil.problem { background: var(--rot); }
.stapel-teil.geplant { background: var(--line-stark); }
.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--text); }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: var(--r-klein); min-width: 0; }
.legende b { color: var(--ink); font-variant-numeric: tabular-nums; }
[data-tipp] { cursor: default; }
[data-tipp]:hover::after { content: attr(data-tipp); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--page); font-size: .75rem; padding: 4px 8px; border-radius: var(--r-klein); white-space: nowrap; z-index: 5; pointer-events: none; }
.stapel { overflow: visible; }
.stapel-teil:first-child { border-radius: 4px 0 0 4px; }
.stapel-teil:last-child { border-radius: 0 4px 4px 0; }
@media (max-width: 900px) {
  .kz-leiste { grid-template-columns: 1fr 1fr; }
  .kz:nth-child(3) { border-left: 0; }
  .kz:nth-child(n+3) { border-top: 1px solid var(--line); }
  .start-grafiken { grid-template-columns: 1fr; }
}

.trenner { border-top: 1px solid var(--line); margin: 14px 0 2px; }

/* Objekte, Archiv, Termine: Tabellen statt Kacheln (Stil wie Prüfungen/Gewährleistung) */
.ansicht-reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; }
.ansicht-reiter a { padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ansicht-reiter a:hover { color: var(--ink); }
.ansicht-reiter a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.zeile-link { cursor: pointer; }
.zeile-link:hover td { background: var(--flaeche); }
.fortschritt i.gruen { background: var(--gruen); }
.fortschritt i.gelb { background: var(--akzent); }
.fortschritt i.rot { background: var(--rot); }
.fortschritt i.grau { background: var(--line-stark); }
.termine-kalender { margin-top: 18px; }
.termine-abschnitt { margin-top: 26px; }
.termine-abschnitt .fluss-kopf h2 { font-size: 1.05rem; }
.nowrap { white-space: nowrap; }

/* Bestellübersicht und Angaben-Listen */
.bestellung { max-width: 720px; margin-top: 18px; }
.angaben { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.angaben dt { color: var(--muted); font-size: .9rem; }
.angaben dd { margin: 0; color: var(--ink); }
.bestell-knopf { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
@media (max-width: 640px) { .angaben { grid-template-columns: 1fr; gap: 2px 0; } .angaben dd { margin-bottom: 8px; } }

/* Laufende Objekte und Archiv: Reihen mit Mini-Fahrplan */
.or-fahrplan { display: flex; gap: 3px; height: 10px; }
.or-schritt { flex: 1; border-radius: var(--r-klein); background: var(--flaeche); border: 1px solid var(--line); position: relative; }
.or-schritt.fertig { background: var(--gruen); border-color: var(--gruen); }
.or-schritt.jetzt { background: var(--brand); border-color: var(--brand); }
.or-schritt.problem { background: var(--rot); border-color: var(--rot); }
.or-leer { font-size: .8rem; color: var(--muted); }
.or-fuss { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text); }
.or-jetzt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-jetzt b { color: var(--ink); font-weight: 600; }
.or-zahl { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .or-kopf { flex-direction: column; } .or-uebergabe { align-items: flex-start; text-align: left; } }

/* Terminübersicht: Zeitleiste je Woche */
.zeitleiste-woche { margin-top: 18px; }
.zeitleiste-woche h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.zeitleiste { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); margin-left: 26px; }
.zl-tag { display: grid; grid-template-columns: 64px 1fr; gap: 14px; position: relative; padding: 6px 0 10px; }
.zl-tag::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--karte); border: 2px solid var(--line-stark); }
.zl-tag.heute::before { background: var(--brand); border-color: var(--brand); }
.zl-datum { display: flex; flex-direction: column; padding-left: 18px; }
.zl-datum b { font: 700 1.4rem/1.1 InterDisplay, Inter, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.zl-datum small { color: var(--muted); font-size: .78rem; }
.zl-tag.heute .zl-datum b, .zl-tag.heute .zl-datum small { color: var(--brand); }
.zl-eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zl-eintraege a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--karte); border: 1px solid var(--line); border-left: 4px solid var(--objektfarbe, var(--brand)); border-radius: var(--r-klein); color: inherit; text-decoration: none; }
.zl-eintraege a:hover { border-color: var(--brand); border-left-color: var(--objektfarbe, var(--brand)); }
.zl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zl-text b { color: var(--ink); font-weight: 600; }
.zl-text small { color: var(--muted); }

/* Kalkulation: Strategie und Grenzen */
.strategie-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strategie-wahl label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-klein); cursor: pointer; font-weight: 600; font-size: .92rem; background: var(--karte); }
.strategie-wahl label:has(input:checked) { border-color: var(--brand); background: var(--brand-hell); color: var(--brand); }
.strategie-wahl input { accent-color: var(--brand); }
.kalk-grenzen { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kalk-grenzen > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kalk-grenzen > div + div { border-left: 1px solid var(--line); }
.kalk-grenzen small { color: var(--muted); font-size: .8rem; }
.kalk-grenzen b { font: 700 1.25rem/1.2 InterDisplay, Inter, sans-serif; color: var(--ink); }
.kalk-tabelle tr.warn td { color: var(--rot); }
@media (max-width: 640px) { .strategie-wahl, .kalk-grenzen { grid-template-columns: 1fr; } .kalk-grenzen > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Unternehmen */
.firmen-zeichen { width: 38px; height: 38px; border-radius: var(--r-klein); display: grid; place-items: center; background: var(--brand-hell); color: var(--brand); font-weight: 700; font-size: 1rem; flex: none; }
.firmen-zeichen.klein { width: 30px; height: 30px; border-radius: 50%; font-size: .85rem; }
@media (max-width: 640px) { .firmen-liste li a { grid-template-columns: auto 1fr auto; } .firmen-leute { display: none; } }

/* Aufgaben */
.zaehl-chip.neutral { color: var(--brand); background: var(--brand-hell); }
.aufgaben-gruppe { margin-top: 18px; }
.aufgaben-gruppe h2 { font-size: 1.02rem; }
.aufgaben-liste { list-style: none; margin: 0; padding: 0; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); }
.aufgaben-liste li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.aufgaben-liste li + li { border-top: 1px solid var(--line); }
.aufgaben-liste li.ueberfaellig { box-shadow: inset 3px 0 0 var(--rot); }
.aufgaben-liste li.erledigt .aufgabe-text b { text-decoration: line-through; color: var(--muted); }
.aufgabe-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aufgabe-text b { color: var(--ink); font-weight: 600; }
.aufgabe-text small { color: var(--muted); }
.aufgabe-haken { width: 22px; height: 22px; border-radius: var(--r-klein); border: 2px solid var(--line-stark); background: var(--karte); display: grid; place-items: center; cursor: pointer; padding: 0; margin-top: 1px; color: var(--auf-farbe); flex: none; }
.aufgabe-haken:hover { border-color: var(--gruen); }
.erledigt .aufgabe-haken, .aufgabe-haken.voll { background: var(--gruen); border-color: var(--gruen); }
.aufgabe-haken .i { width: 14px; height: 14px; }
.hw-aufgaben { margin: 12px 0 4px; padding: 12px; background: var(--flaeche); border-radius: var(--r-klein); }
.hw-aufgaben ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hw-aufgaben li { display: flex; gap: 10px; align-items: flex-start; }
.hw-aufgabe-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; width: 100%; }
.hw-aufgabe-form .datei-feld { grid-column: 1 / -1; }
/* Objekte: ohne farbigen Rand, Fahrplan breiter mit Namen im Balken (Sven 07.11.) */
.or-fahrplan { height: 30px; gap: 3px; }
.or-schritt { display: flex; align-items: center; justify-content: center; min-width: 0; border-radius: var(--r-klein); padding: 0 6px; overflow: hidden; }
.or-schritt > span { font-size: .74rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-schritt.fertig > span, .or-schritt.jetzt > span, .or-schritt.problem > span { color: var(--auf-farbe); }
.or-schritt { flex: 1 1 0; }
.or-fahrplan { overflow: hidden; }

/* Rechtliches in der Seitenleiste: aufklappbar; Kündigen und Widerrufen bleiben für Verbraucher sichtbar (§ 312k, § 356a BGB), bei Unternehmen ausgeblendet */
.rechtliches { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 10px 0; font-size: .75rem; color: var(--muted); }
.rechtliches > a, .rechtliches summary { color: var(--muted); text-decoration: none; }
.rechtliches > a:hover, .rechtliches summary:hover, .rechtliches details a:hover { color: var(--ink); text-decoration: underline; }
.rechtliches details { width: 100%; }
.rechtliches summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 3px; }
.rechtliches summary::-webkit-details-marker { display: none; }
.rechtliches summary::after { content: "▾"; font-size: .7rem; }
.rechtliches details[open] summary::after { content: "▴"; }
.rechtliches details a { display: block; color: var(--muted); text-decoration: none; padding: 2px 0 2px 8px; }

/* Tarifseite nach Editionen (07.11.) */
.tarif-rechnung { margin: 4px 0 10px; padding: 8px 10px; border-radius: var(--r-klein); background: var(--flaeche-2, rgba(10,92,128,.06)); font-size: 14px; }
.module-zeilen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 10px; }
.module-zeilen .einst-karte { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.preis-zeilen { list-style: none; margin: 0 0 4px; padding: 0; }
.preis-zeilen li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }

/* Umschalter Projekte | Bestand (nur Hub) */
.ansicht-schalter { display: flex; gap: 2px; margin: 0 12px 10px; padding: 3px; border-radius: var(--r-klein); background: var(--flaeche-2, rgba(10,92,128,.07)); }
.ansicht-schalter a { flex: 1; text-align: center; padding: 6px 8px; border-radius: var(--r-klein); font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; opacity: .7; }
.ansicht-schalter a[aria-current="page"] { background: var(--karte, #fff); opacity: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bestand-schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 8px; }
.bestand-schritte li { counter-increment: s; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 48px; position: relative; border-radius: var(--r); background: var(--karte, #fff); border: 1px solid var(--linie, #e5e9ee); }
.bestand-schritte li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--flaeche-2, rgba(10,92,128,.08)); }
.bestand-schritte li.erledigt::before { content: "✓"; background: var(--gruen); color: var(--auf-farbe); }

/* Portal für Eingeladene */
.portal-kopf { display: flex; gap: 8px; align-items: center; }
.portal-rolle { margin-top: 18px; }
.portal-rolle h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; }
.portal-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.portal-liste a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--karte, #fff); border: 1px solid var(--linie, #e5e9ee); color: inherit; text-decoration: none; }
.portal-liste a small { grid-column: 1; color: var(--leise, #64748b); }
.portal-liste a .status { grid-column: 2; grid-row: 1 / span 2; }

/* Termin-Zusage durch den Betrieb */
.termin-zusage { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 4px 0 10px; }
.termin-zusage details { flex: 1 1 200px; }
.termin-marke { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-rund); font-size: 11px; font-weight: 600; vertical-align: middle; }
.termin-marke.ok { background: rgba(46,125,79,.12); color: var(--gruen); }
.termin-marke.vorschlag { background: rgba(242,165,22,.18); color: #8a5a00; }

/* Abnahme: Unterschriftsfelder */
.unterschrift { position: relative; border: 1px dashed var(--linie, #cbd5e1); border-radius: var(--r-klein); background: var(--auf-farbe); }
.unterschrift canvas { display: block; width: 100%; height: 140px; touch-action: none; cursor: crosshair; }
.unterschrift [data-leeren] { position: absolute; right: 8px; top: 6px; }
.liste-einfach { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }

/* Zeitplan (Balken) im Terminplan */
.zeitplan { --zp-name: 150px; margin: 4px 0 16px; }
.zp-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.zp-zeilen { position: relative; display: grid; gap: 4px; }
.zp-zeile { display: grid; grid-template-columns: var(--zp-name) 1fr; align-items: center; gap: 0; min-height: 22px; }
.zp-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.zp-parallel { color: var(--akzent, #f2a516); font-weight: 700; }
.zp-spur { position: relative; height: 18px; background: repeating-linear-gradient(90deg, transparent 0 calc(100%/7 - 1px), var(--linie, #eef2f6) calc(100%/7 - 1px) calc(100%/7)); border-radius: var(--r-klein); }
.zp-balken { position: absolute; top: 2px; bottom: 2px; border-radius: var(--r-klein); background: #9fb3c4; }
.zp-balken.informiert, .zp-balken.geplant { background: #9fb3c4; }
.zp-balken.vor_ort { background: var(--petrol); }
.zp-balken.problem { background: var(--rot); }
.zp-balken.fertig { background: var(--gelb-fuell); }
.zp-balken.abgehakt { background: var(--gruen); }
.zp-ohne { font-size: 11px; color: var(--leise, #8a95a3); padding-left: 4px; }
.zp-heute { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rot); opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .zeitplan { --zp-name: 96px; } }

/* Pläne mit Mangel-Punkten */
.plan-flaeche { position: relative; display: inline-block; max-width: 100%; border-radius: var(--r-klein); overflow: hidden; border: 1px solid var(--linie, #e5e9ee); background: var(--auf-farbe); }
.plan-flaeche img { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.plan-punkt { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--auf-farbe); background: var(--rot); box-shadow: 0 0 0 3px rgba(255,255,255,.9); text-decoration: none; }
.plan-punkt.erledigt { background: var(--gruen); }
.plan-punkt.neu { background: var(--akzent); color: var(--ink); }
.plan-liste { margin: 14px 0 0; padding-left: 22px; }
.plan-liste li.erledigt { color: var(--leise, #8a95a3); }

/* Angebots-Kalkulation */
.kalk-posten input { width: 100%; min-width: 60px; padding: 6px 8px; font: inherit; border: 1px solid var(--linie, #dfe5ec); border-radius: var(--r-klein); background: transparent; color: inherit; }
.kalk-posten td:first-child input { min-width: 180px; }
.kalk-posten td.rechts input { text-align: right; }
.kalk-ergebnis { margin: 6px 0 0; }

/* Meldungen im Bestand */
.meldungen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meldungen-liste li.notfall { border-left: 4px solid var(--rot); }
.meldungen-liste li.dringend { border-left: 4px solid var(--gelb-fuell); }

/* Aufträge im Bestand */
.checkliste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.checkliste li { display: flex; gap: 10px; align-items: center; }
.verlauf-einheiten { display: grid; gap: 8px; }
.verlauf-einheiten summary { cursor: pointer; }

/* Bestand: Lage auf der Startseite, Termine */
.termin-liste-bestand { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.termin-liste-bestand .tag-kopf { margin-top: 12px; font-weight: 700; font-size: 13px; color: var(--leise, #64748b); }
.termin-liste-bestand .tag-kopf.heute { color: var(--petrol); }
.termin-liste-bestand a { display: block; padding: 8px 12px; border-radius: var(--r-klein); background: var(--karte, #fff); border: 1px solid var(--linie, #e5e9ee); color: inherit; text-decoration: none; }

/* ---------- Dashboards (07.11.): ruhiger, gruppiert, weniger Listen-Gleichklang ---------- */
.db { display: grid; gap: 22px; }
.db-held { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px 30px; border-radius: var(--r); background: linear-gradient(120deg, var(--held) 0%, var(--karte) 85%); border: 1px solid var(--line); }
.db-held::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,184,230,.22), transparent 70%); pointer-events: none; }
.db-held h1 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 InterDisplay, Inter, sans-serif; letter-spacing: -.02em; color: var(--brand); margin: 0 0 6px; }
html[data-design="dunkel"] .db-held h1 { color: #8cc9ea; }
.db-held p { margin: 0; color: var(--text); font-size: 1.02rem; }
.db-held .db-datum { font-size: .85rem; color: var(--muted); margin-bottom: 8px; display: block; }
.db-held .aktionen { position: relative; z-index: 1; }
.db-ampel a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: var(--r-rund); background: var(--karte);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.db-ampel .gruen i { background: var(--gruen); } .db-ampel .gelb i { background: var(--gelb-fuell); } .db-ampel .rot i { background: var(--rot); }
.db-ampel .blau i { background: var(--brand); } .db-ampel .grau i { background: var(--muted); }

/* UI-Check M6 (09.11.2026): Kennzahlen nur auf Start, als eine ruhige Leiste statt vier Kacheln */
.db-kz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); }
.db-kz > * { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-decoration: none; color: inherit; }
.db-kz > * + * { border-left: 1px solid var(--line); }
.db-kz .db-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-klein); display: grid; place-items: center; background: var(--brand-hell); color: var(--brand); }
.kz-hinweis { margin: 6px 2px 0; font-size: .8rem; color: var(--muted); }
.db-kz .db-icon.warm { background: var(--akzent-hell); color: var(--akzent-dunkel); } .db-kz .db-icon.rot { background: var(--rot-hell); color: var(--rot); }
.db-kz .db-icon.gruen { background: var(--gruen-hell); color: var(--gruen); }
.db-kz .db-icon .i { width: 20px; height: 20px; }
.db-kz b { font: 700 1.6rem/1.1 InterDisplay, Inter, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.db-kz small { color: var(--muted); font-size: .84rem; line-height: 1.3; }

.db-zwei { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.db-spalte { display: grid; gap: 22px; align-content: start; }
.db-titel { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.db-titel h2 { margin: 0; font: 600 1.05rem/1.2 InterDisplay, Inter, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.db-titel a, .db-titel button { font-size: .86rem; }
.db-box { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }

.db-objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.db-objekt { display: grid; gap: 10px; padding: 16px 16px 14px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.db-objekt:hover { border-color: var(--brand); box-shadow: var(--schatten); }
.db-objekt-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.db-objekt-kopf b { color: var(--ink); line-height: 1.3; }
.db-ring { --p: 0; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: var(--ink);
  background: radial-gradient(closest-side, var(--karte) 76%, transparent 78% 100%), conic-gradient(var(--ring, var(--brand)) calc(var(--p) * 1%), var(--flaeche) 0); }
.db-ring.gruen { --ring: var(--gruen); } .db-ring.gelb { --ring: var(--gelb-fuell); } .db-ring.rot { --ring: var(--rot); }
.db-objekt small { color: var(--muted); font-size: .84rem; }
.db-status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.db-status i { width: 8px; height: 8px; border-radius: 50%; }
.db-status.gruen i { background: var(--gruen); } .db-status.gelb i { background: var(--gelb-fuell); } .db-status.rot i { background: var(--rot); }
.db-objekt.neu { place-content: center; justify-items: center; text-align: center; border-style: dashed; color: var(--muted); min-height: 128px; }

.db-liste { list-style: none; margin: 0; padding: 0; }
.db-liste li + li { border-top: 1px solid var(--line); }
.db-liste a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--r); text-decoration: none; color: inherit; }
.db-liste a:hover { background: var(--flaeche); }
.db-liste .db-punkt { width: 32px; height: 32px; border-radius: var(--r-klein); display: grid; place-items: center; background: var(--flaeche); color: var(--muted); }
.db-liste .db-punkt.problem, .db-liste .db-punkt.rot { background: var(--rot-hell); color: var(--rot); }
.db-liste .db-punkt.fertig, .db-liste .db-punkt.gelb { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.db-liste .db-punkt.blau { background: var(--brand-hell); color: var(--brand); }
.db-liste .db-punkt .i { width: 16px; height: 16px; }
.db-liste b { display: block; color: var(--ink); font-weight: 600; font-size: .94rem; line-height: 1.3; }
.db-liste small { color: var(--muted); font-size: .82rem; }
.db-liste .pfeil { width: 16px; height: 16px; color: var(--muted); }
.db-leer { padding: 18px 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin: 0; }

.db-zeit { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.db-zeit a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r); text-decoration: none; color: inherit; }
.db-zeit a:hover { background: var(--flaeche); }
.db-datum-marke { text-align: center; border-radius: var(--r); background: var(--brand-hell); color: var(--brand); padding: 6px 0; line-height: 1.05; }
.db-datum-marke small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.db-datum-marke b { font: 700 1.2rem/1 InterDisplay, Inter, sans-serif; }
.db-datum-marke.heute { background: var(--brand); color: var(--auf-farbe); }
.db-zeit b { display: block; color: var(--ink); font-size: .93rem; }
.db-zeit small { color: var(--muted); font-size: .82rem; }

.db-fortschritt { display: grid; gap: 10px; padding: 16px; }
.db-fortschritt .stapel { margin: 0; }
.db-einrichtung { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r);
  background: var(--akzent-hell); color: var(--ink); font-size: .92rem; }

@media (max-width: 1100px) { .db-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-kz > :nth-child(3) { border-left: 0; } .db-kz > :nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .db-zwei { grid-template-columns: 1fr; } .db-held { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 520px) { .db-kz > * { grid-template-columns: 1fr; } .db-kz .db-icon { display: none; } }

/* Kennzahlen mit Umschalter (07.11.) */
.db-kz > .kz { display: block; position: relative; padding: 0; }
.db-kz .kz-inhalt { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 38px 14px 16px; height: 100%;
  text-decoration: none; color: inherit; border-radius: var(--r); transition: background .15s; }
.db-kz .kz-inhalt:hover { background: var(--flaeche); }
.kz-wechsel { position: absolute; top: 8px; right: 8px; }
.kz-wechsel > summary { list-style: none; cursor: pointer; width: 28px; height: 28px; border-radius: var(--r-klein); display: grid; place-items: center;
  color: var(--muted); opacity: .55; transition: opacity .15s, background .15s; }
.kz-wechsel > summary::-webkit-details-marker { display: none; }
.kz:hover .kz-wechsel > summary, .kz-wechsel[open] > summary, .kz-wechsel > summary:focus-visible { opacity: 1; background: var(--flaeche); }
.kz-wechsel > summary .i { width: 15px; height: 15px; }
.kz-menue { position: absolute; right: 0; top: 34px; z-index: 30; width: 270px; max-height: 360px; overflow: auto; padding: 6px;
  background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--schatten); display: grid; gap: 2px; }
.kz-menue-titel { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 4px; }
.kz-menue > button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-klein);
  background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.kz-menue > button:hover { background: var(--flaeche); }
.kz-menue > button.aktiv { background: var(--brand-hell); color: var(--brand); font-weight: 600; }
.kz-menue > button .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
@media (max-width: 520px) { .db-kz .kz-inhalt { grid-template-columns: 1fr; padding: 14px 36px 14px 14px; } .kz-menue { width: 240px; } }

/* Listen der rechten Spalte mit Umschalter und Filter (07.11.) */
.sl .db-titel h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sl-filter-text { font: 500 .78rem/1.2 Inter, sans-serif; color: var(--brand); background: var(--brand-hell); padding: 2px 8px; border-radius: var(--r-rund); }
.sl-werkzeuge { display: inline-flex; align-items: center; gap: 4px; }
.sl-werkzeuge > a, .sl-werkzeuge > .link-knopf { font-size: .86rem; margin-right: 4px; }
.sl-werkzeuge .kz-wechsel { position: relative; top: auto; right: auto; }
.sl-werkzeuge .kz-wechsel > summary { opacity: .55; }
.sl:hover .sl-werkzeuge .kz-wechsel > summary { opacity: .9; }
.sl-werkzeuge .kz-wechsel > summary.an { opacity: 1; color: var(--brand); background: var(--brand-hell); }
.sl-filter { gap: 8px; padding: 10px; }
.sl-feld { display: grid; gap: 4px; font-size: .84rem; color: var(--muted); padding: 0 4px; }
.sl-feld select { font: inherit; font-size: .9rem; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line-stark, var(--line)); border-radius: var(--r-klein); background: var(--karte); }
.sl-knoepfe { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 4px 0; }
.sl-knoepfe .btn { width: auto; }
.db-datum-marke.rot { background: var(--rot-hell); color: var(--rot); }

.sl .db-titel { flex-wrap: nowrap; align-items: center; }
.sl .db-titel h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; }
.sl-werkzeuge { flex: none; }
.sl-filter-zeile { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; }
.sl-filter-zeile .i { width: 13px; height: 13px; color: var(--brand); }
.sl .db-zeit small .db-status { margin-right: 5px; vertical-align: middle; }

/* Aufgabenübersicht: Farbe je Objekt wie im Kalender, Stand je Objekt (07.11.) */
.aufgaben-gruppe { margin-top: 22px; }
.aufgaben-gruppe .fluss-kopf { align-items: center; }
.aufgaben-gruppe h2 { display: flex; align-items: center; gap: 10px; }
.objekt-punkt.gross { width: 12px; height: 12px; border-radius: var(--r-klein); background: var(--objekt); flex: none; }
.aufgaben-gruppe .aufgaben-liste { border-left: 4px solid var(--objekt); background: linear-gradient(90deg, color-mix(in srgb, var(--objekt) 5%, var(--karte)) 0, var(--karte) 240px); }
.aufgaben-stand { display: inline-flex; align-items: center; gap: 10px; }
.aufgaben-balken { width: 120px; height: 6px; border-radius: var(--r-rund); background: var(--flaeche); overflow: hidden; }
.aufgaben-balken i { display: block; height: 100%; border-radius: var(--r-rund); background: var(--objekt); }
.aufgaben-liste li .aufgabe-haken { border-color: color-mix(in srgb, var(--objekt) 55%, var(--line)); }
@media (max-width: 600px) { .aufgaben-balken { width: 70px; } }

/* Felder nebeneinander gleich hoch (07.11.) */
.formular .zwei { align-items: start; }
.formular .zwei .feld select, .formular .zwei .feld input:not([type=checkbox]):not([type=radio]) { height: 44px; }

/* Kleines i mit Erklärung (Hover, Fokus, Tippen) */
.haken-zeile { display: flex; align-items: center; gap: 6px; }
.info-i { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--muted);
  cursor: help; flex: none; outline: none; }
.info-i:hover, .info-i:focus-visible { color: var(--brand); background: var(--brand-hell); }
.info-i > .i { width: 16px; height: 16px; }
.info-text { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 260px; padding: 10px 12px; border-radius: var(--r-klein);
  background: var(--ink); color: var(--page, #fff); font-size: .82rem; line-height: 1.45; font-weight: 400; box-shadow: var(--schatten);
  opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 40; pointer-events: none; }
.info-i:hover .info-text, .info-i:focus .info-text, .info-i:focus-within .info-text { opacity: 1; visibility: visible; }
@media (max-width: 520px) { .info-text { left: auto; right: -8px; transform: none; width: 220px; } }

/* Trichter auf Seiten, Seitenwechsel (07.11.) */
.kal-nav, .fluss-kopf { position: relative; }
.kal-nav .trichter, .fluss-kopf .trichter { position: relative; top: auto; right: auto; }
.kal-nav .trichter > summary, .fluss-kopf .trichter > summary { opacity: .7; }
.trichter .kz-menue { top: 34px; right: 0; }
.trichter > summary.an { opacity: 1; color: var(--brand); background: var(--brand-hell); }
.kal-nav { display: flex; align-items: center; gap: 6px; }
.seitenwechsel { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }
.seitenwechsel [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.kz-menue.sl-filter { max-height: none; overflow: visible; }

/* Feste Farbe je Objekt und Haus (07.11.) */
.farb-punkt { display: inline-block; width: .62em; height: .62em; border-radius: 30%; background: var(--objekt, var(--brand)); margin-right: .45em; vertical-align: .08em; flex: none; }
.db-objekt.mit-farbe { border-top: 3px solid var(--objekt); }
.farb-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.farb-wahl label { cursor: pointer; }
.farb-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.farb-wahl span { display: block; width: 28px; height: 28px; border-radius: var(--r-klein); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .12s; }
.farb-wahl input:checked + span { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--ink); }
.farb-wahl input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.farb-wahl label:hover span { transform: scale(1.08); }

/* Filter-Vorlagen im Trichter (07.11.) */
.kz-menue.sl-filter { width: 300px; }
.sl-filter .filter-form { display: grid; gap: 8px; }
.fv-box { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; display: grid; gap: 6px; }
.fv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fv-liste li { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: var(--r-klein); }
.fv-liste li:hover { background: var(--flaeche); }
.fv-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 4px; font: inherit; font-size: .9rem; color: var(--ink);
  cursor: pointer; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-liste form.inline:first-child { flex: 1; min-width: 0; display: flex; }
.fv-marke { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.fv-marke .i { width: 13px; height: 13px; }
.fv-knoepfe { display: inline-flex; gap: 2px; }
.knopf-mini { width: 24px; height: 24px; border: 0; border-radius: var(--r-klein); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.knopf-mini:hover { background: var(--karte); color: var(--ink); }
.knopf-mini.an { color: var(--brand); }
.knopf-mini .i { width: 13px; height: 13px; }
.fv-leer { font-size: .8rem; color: var(--muted); margin: 0 4px; }
.fv-neu { display: grid; gap: 6px; padding: 4px; }
.fv-neu input[name=name] { font: inherit; font-size: .88rem; padding: 7px 10px; border: 1px solid var(--line-stark, var(--line)); border-radius: var(--r-klein); background: var(--karte); color: var(--ink); }
.fv-neu .haken-feld { font-size: .84rem; }
.fv-knoepfe.inline { display: inline-flex; }

.farb-frei span { background: conic-gradient(var(--rot), #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #e11d48); }
.farb-wahl input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-klein); background: var(--karte); cursor: pointer; }

/* Objektübersicht nach dem Muster der Aufgabenübersicht (07.11.) */
.reiter-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.reiter-zeile .ansicht-reiter { border-bottom: 0; margin-bottom: 0; }
.reiter-werkzeuge { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; position: relative; }
.reiter-werkzeuge .trichter { position: relative; top: auto; right: auto; }
.ob-gruppe { margin-top: 22px; }
.ob-gruppe .fluss-kopf { align-items: center; }
.ob-gruppe h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.ob-uebergabe { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.ob-uebergabe b { color: var(--ink); }
.ob-karte { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: linear-gradient(90deg, color-mix(in srgb, var(--objekt) 5%, var(--karte)) 0, var(--karte) 260px);
  border: 1px solid var(--line); border-left: 4px solid var(--objekt); border-radius: var(--r); overflow: hidden; }
.ob-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 20px; color: inherit; text-decoration: none; align-content: start; }
.ob-links:hover { background: color-mix(in srgb, var(--objekt) 4%, transparent); }
.ob-rechts { padding: 14px 20px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ob-rechts-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ob-rechts-kopf b { font-size: .92rem; color: var(--ink); }
.ob-aufgaben { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ob-aufgaben li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.ob-aufgaben b { display: block; color: var(--ink); font-weight: 500; line-height: 1.3; }
.ob-aufgaben small { color: var(--muted); font-size: .8rem; }
.ob-haken { width: 14px; height: 14px; border-radius: var(--r-klein); border: 1.5px solid color-mix(in srgb, var(--objekt) 60%, var(--line)); flex: none; margin-top: 2px; }
.ob-aufgaben li.ueberfaellig .ob-haken { border-color: var(--rot); }
.ob-leer { margin: 0; }
.ob-links-unten { font-size: .86rem; }
.ob-gruppe .aufgaben-balken i { background: var(--objekt); }
.ob-gruppe.archiv .ob-karte { background: var(--page); }
@media (max-width: 900px) { .ob-karte { grid-template-columns: minmax(0, 1fr); } .ob-rechts { border-left: 0; border-top: 1px solid var(--line); } }

/* Mehrfachauswahl (Einstellungen → Vorlagen) */
.mehrfach-leiste { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px; background: var(--flaeche);
  border-radius: var(--r-klein); }
.mehrfach-knoepfe { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.mehrfach-knoepfe .btn[disabled] { opacity: .45; cursor: default; }
.spalte-haken { width: 34px; }
.spalte-haken input { width: 16px; height: 16px; accent-color: var(--brand); }

/* Stift: zeigt, dass sich etwas direkt ändern lässt (07.11.) */
.stift-mini { width: 13px; height: 13px; color: var(--muted); vertical-align: -2px; opacity: .7; }
.gewerk summary:hover .stift-mini { color: var(--brand); opacity: 1; }

/* Mail überprüfen (07.11.) */
.mail-pruefen-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-pruefen textarea { font: inherit; font-size: .92rem; line-height: 1.5; }
.mail-vorschau { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--flaeche); }
.mail-vorschau-kopf { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--karte); }
.mail-vorschau iframe { width: 100%; height: 620px; border: 0; display: block; background: var(--flaeche); }
.marke-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: var(--r-rund); background: var(--flaeche); font-size: .86rem; }
@media (max-width: 1000px) { .mail-pruefen-raster { grid-template-columns: 1fr; } }

/* Reiter-Leiste mit einem Hauptknopf rechts (07.11.) */
.reiter-mit-aktion { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.reiter-mit-aktion .reiter { border-bottom: 0; margin-bottom: 0; flex: 1; min-width: 0; }
.reiter-aktion { flex: none; padding-bottom: 8px; display: inline-flex; gap: 8px; }
@media (max-width: 760px) { .reiter-mit-aktion { flex-direction: column; align-items: stretch; } .reiter-aktion { padding: 8px 0; } }

/* Kalkulation: ruhiges Raster, gleich hohe Felder (07.11.) */
.kalk-felder { align-items: start; }
dialog.fenster.gross .kalk-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.kalk-felder .einheit, .kalk-felder select, .kalk-steuer .einheit { height: 44px; }
.kalk-felder .einheit input, .kalk-steuer .einheit input { height: 100%; }
.kalk-felder .feld small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.kalk-schritt { display: grid; gap: 16px; }
.kalk-schritt .kalk-gruppe:first-child { border-top: 0; padding-top: 0; }
.kalk-steuer { display: flex; align-items: center; gap: 10px; }
.kalk-steuer .einheit { width: 130px; }
.kalk-steuer .haken-feld { margin: 0; }
@media (max-width: 600px) { dialog.fenster.gross .kalk-felder { grid-template-columns: 1fr; } }
.kalk-schritt[hidden] { display: none; }
.kalk-felder .einheit span { min-width: 74px; justify-content: center; }
.kalk-steuer .einheit { width: 160px; }
.kalk-steuer .einheit span { min-width: 40px; }

/* Leerer Bereich: großer Knopf in der Mitte, kein Knopf in der Kopfzeile (07.11.) */
.leer-knopf { margin-top: 14px; padding: 12px 22px; font-size: 1rem; }
.leer .leer-knopf, .einst-leer .leer-knopf { display: inline-flex; }

/* Pflichtfelder sichtbar machen (07.11.) */
.feld:has(input:required, select:required, textarea:required) > label::after,
.label.pflicht::after { content: " *"; color: var(--akzent, #e8590c); font-weight: 600; }

/* Neue Fotos im Reiter (07.11.) */
.reiter .zahl.neu { background: var(--akzent, #e8590c); color: var(--auf-farbe); font-weight: 600; }

/* Kalkulation: Kennzahlen mit Umschalter (07.11.) */
.kalk-kennzahlen .kalk-kz { position: relative; }
.kalk-kennzahlen .kalk-kz .kz-wechsel { position: absolute; top: 8px; right: 8px; }
.kalk-kennzahlen .kalk-kz small { padding-right: 28px; }
.kalk-kennzahlen b.rot { color: var(--rot, #c92a2a); }

.foto-bsp { display: block; aspect-ratio: 1; border-radius: var(--r-klein); }

.objekt-projekte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; }
.objekt-projekte .marke { text-decoration: none; }

/* Statt Schloss: kleines ruhiges „Pro“ am Knopf (Sven 11.11.2026) */
.pro-marke { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-rund); background: var(--brand-hell); color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; vertical-align: middle; }
.btn-primaer .pro-marke { background: rgba(255,255,255,.2); color: #fff; }

/* Leere Bereiche einheitlich (11.11.2026): Symbol, Titel, ein Satz, ein blauer Knopf, darunter leise „Kurz zeigen lassen“ */
.leer-bereich { margin-top: 16px; padding: 44px 20px 36px; display: flex; flex-direction: column; align-items: center; }
.leer-bereich > .i { width: 30px; height: 30px; }
.leer-bereich p { margin: 0 auto; }
.einst-leer .btn .i, .leer .btn .i { width: 18px; height: 18px; color: inherit; }
.pro-hinweis { margin-bottom: 14px; }
.pro-hinweis[hidden] { display: none; }
.leer-tour { display: block; margin: 8px auto 0; padding: 4px 8px; background: none; border: 0; cursor: pointer; font: 500 .86rem/1.3 Inter, sans-serif; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.leer-tour:hover { color: var(--brand); }

/* Assistent oder alles auf einmal (07.11.) */
.leer-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0 4px; }
.leer-knoepfe .leer-knopf { margin: 0; }
.leer-vorschau-karte > a.klein { font-size: .82rem; }
.assistent-schritt { display: grid; gap: 14px; }
.assistent-schritt[hidden] { display: none; }
.schritt-hilfe { margin: 0; }
dialog.alles-auf-einmal .schritt-hilfe,
dialog.alles-auf-einmal [data-weiter-zu] { display: none; }
dialog.alles-auf-einmal [data-schritt][hidden] { display: grid; gap: 14px; }
dialog.alles-auf-einmal .kalk-schritt[hidden] { display: grid; }
dialog.alles-auf-einmal [data-schritt] .assistent-fuss { display: none; }
dialog.alles-auf-einmal [data-schritt]:last-of-type .assistent-fuss { display: flex; }

/* Fenster mit Schritt-Anzeige: Innenabstand einheitlich (07.11.) */
dialog.fenster .fenster-innen { padding: 20px 22px; }
dialog.fenster .fenster-innen > form { padding: 0; margin-top: 14px; }

/* Assistent: Erklärungen in den Schritten und Karte „So geht es weiter“ (07.11.) */
.hilfe-kasten { background: var(--flaeche); border-radius: var(--r-klein); padding: 12px 14px; font-size: .88rem; line-height: 1.5; color: var(--text, inherit); }
.hilfe-kasten b { display: block; margin-bottom: 2px; }
.kalk-schritt > .hilfe-kasten { grid-column: 1 / -1; }
.tour-karte { border: 1px solid var(--line); border-left: 4px solid var(--akzent, #f2a516); border-radius: var(--r); background: var(--karte, #fff); padding: 16px 18px; margin-bottom: 16px; }
.tour-kopf { display: flex; gap: 12px; align-items: flex-start; }
.tour-kopf > div { flex: 1; }
.tour-kopf h3 { margin: 0; font-size: 1.02rem; }
.tour-kopf p { margin: 2px 0 0; }
.tour-kopf .leer-vorschau-icon { margin: 0; flex: none; }
dialog.alles-auf-einmal .hilfe-kasten { display: none; }
@media (max-width: 760px) { .tour-spalten { grid-template-columns: 1fr; } }

/* Assistent-Karte: oranger Rahmen, Symbol an der Ecke (07.11.) */
.tour-karte { position: relative; border: 2px solid var(--akzent, #f2a516); border-left-width: 2px; margin-top: 14px;
  box-shadow: 0 8px 24px -12px rgba(242, 165, 22, .45); }
.tour-abzeichen { position: absolute; top: -14px; left: -14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--akzent, #f2a516); color: var(--auf-farbe); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.tour-abzeichen .i { width: 17px; height: 17px; }
/* Beide Spalten beginnen oben an der Karte, das X steht frei in der Ecke (Sven 07.11.) */
button.tour-abzeichen { border: 0; padding: 0; cursor: pointer; }
/* Zugeklappt: nur das orange Symbol und eine feine Linie (Sven 07.11.) */
.tour-karte.zu { border: 0; box-shadow: none; background: none; padding: 0; height: 18px; margin: 18px 0 6px; }
.tour-karte.zu > :not(.tour-abzeichen) { display: none; }
.tour-karte.zu .tour-abzeichen { top: -7px; left: -14px; }
.tour-karte.zu::after { content: ""; position: absolute; left: 22px; right: 0; top: 8px; height: 2px; border-radius: var(--r-klein); background: var(--akzent, #f2a516); opacity: .55; }
.tour-karte.zu:hover::after { opacity: 1; }
/* Automation: lila, Symbol rechts, Linie endet links knapp unter dem orangen Symbol */
.auto-karte { position: relative; border: 2px solid var(--lila, #7c4dcc); border-radius: var(--r); background: var(--karte, #fff); padding: 16px 18px; margin: 18px 0 16px; }
.auto-abzeichen { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--lila, #7c4dcc); color: var(--auf-farbe); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.auto-abzeichen .i { width: 17px; height: 17px; }
.auto-zahl { position: absolute; top: -5px; left: -5px; min-width: 17px; height: 17px; border-radius: var(--r-klein); background: var(--rot, #c92a2a); color: var(--auf-farbe); font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.auto-zu { position: absolute; top: 12px; right: 24px; }
.auto-karte.zu { border: 0; background: none; padding: 0; height: 18px; margin: 4px 0 6px; }
.auto-karte.zu .auto-inhalt { display: none; }
.auto-karte.zu .auto-abzeichen { top: -7px; right: -14px; }
.auto-karte.zu::after { content: ""; position: absolute; left: -2px; right: 22px; top: 8px; height: 2px; border-radius: var(--r-klein); background: var(--lila, #7c4dcc); opacity: .55; }
@media (max-width: 760px) { .tour-tipps-kopf { flex-wrap: wrap; } }

/* Kopf-Knöpfe (es gibt schon Daten): Schritte ohne Erklärkästen (07.11.) */
dialog.kurz-hilfe .hilfe-kasten { display: none; }

/* Fenster: Knöpfe umbrechen statt seitlich überlaufen (07.11.) */
.fenster-fuss { flex-wrap: wrap; }
.fenster-fuss .btn { white-space: nowrap; }
.fenster-fuss > .btn-leise[data-schliessen] { margin-right: auto; }
@media (max-width: 520px) { .fenster-fuss .btn { white-space: normal; flex: 1 1 auto; } }
dialog.fenster { overflow-x: hidden; }
dialog.fenster .formular, dialog.fenster .feld { min-width: 0; }
#dlg-mangel-neu, #dlg-angebot { width: min(580px, calc(100vw - 24px)); }
.feld[hidden] { display: none; }

/* Zugänge und QR-Codes als Listen in voller Breite (07.11.) */
.zg-bereich { background: var(--karte, #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.zg-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.zg-kopf h2 { margin: 0 0 2px; font-size: 1.05rem; }
.zg-kopf p { margin: 0; }
.zg-liste { display: grid; }
.zg-zeile { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.zg-zeile:first-child { border-top: 0; }
.zg-wer { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zg-wer small { font-size: .8rem; }
.zg-stand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.zg-aktionen { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.zg-einladen { display: flex; gap: 6px; }
.zg-mehr { position: relative; }
.zg-mehr .kz-menue { right: 0; top: 36px; width: 230px; }
.zg-mehr .kz-menue form { margin: 0; }
.zg-leer { margin: 4px 0 0; }
.gw-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gw-chip { font-size: .72rem; line-height: 1; padding: 4px 8px; border-radius: var(--r-rund); background: var(--flaeche); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.qr-klein { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r-klein); padding: 4px; background: var(--auf-farbe); }
@media (max-width: 760px) {
  .zg-zeile { grid-template-columns: 1fr; gap: 8px; }
  .zg-aktionen { justify-content: flex-start; }
  .qr-zeile { grid-template-columns: 72px 1fr; }
  .qr-zeile .zg-aktionen { grid-column: 1 / -1; }
}

.nur-kopie { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.zg-zeile { grid-template-columns: minmax(200px, 1.3fr) minmax(140px, .8fr) auto; }
.zg-aktionen { flex-wrap: nowrap; }
.zg-einladen { flex-wrap: nowrap; }
.zg-mehr > summary.btn { list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.zg-mehr > summary::-webkit-details-marker { display: none; }
.zg-mehr .kz-menue a, .zg-mehr .kz-menue button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-klein); color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.zg-mehr .kz-menue a:hover, .zg-mehr .kz-menue button:hover { background: var(--flaeche); }
.zg-punkte { font-size: 1.2rem; line-height: 1; list-style: none; }
.zg-pin .pin { margin-left: 4px; }
@media (max-width: 760px) { .zg-aktionen, .zg-einladen { flex-wrap: wrap; } }
.zg-zeile { grid-template-columns: minmax(0, 1fr) 190px 320px; }
.zg-bereich .zg-mehr { position: relative; top: auto; right: auto; }
.zg-mehr > summary.btn { width: auto; height: auto; opacity: 1; display: inline-flex; padding: 6px 12px; border-radius: var(--r-rund); color: inherit; background: var(--karte, #fff); }
.zg-mehr > summary.zg-punkte { opacity: .8; }
form.inline.zg-einladen { display: flex; gap: 6px; }
@media (max-width: 760px) { .zg-zeile { grid-template-columns: 1fr; } .qr-zeile { grid-template-columns: 72px 1fr; } }.zg-name-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.zg-name-zeile b { margin-right: 2px; }
.zg-zeile { grid-template-columns: minmax(0, 1.6fr) 180px auto; }

/* Mängel: Ansicht Liste | Grundriss (07.11.) */
.ansicht-schalter { display: inline-flex; gap: 2px; padding: 3px; background: var(--flaeche); border-radius: var(--r-klein); margin: 4px 0 14px; }
.ansicht-schalter a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--r-klein); font-size: .88rem; color: var(--muted); text-decoration: none; }
.ansicht-schalter a[aria-current] { background: var(--karte, #fff); color: inherit; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ansicht-schalter .i { width: 15px; height: 15px; }
.grundriss-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.grundriss-wahl { font-size: .85rem; padding: 5px 12px; border-radius: var(--r-rund); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.grundriss-wahl.aktiv { background: var(--petrol, #0a5c80); border-color: var(--petrol, #0a5c80); color: var(--auf-farbe); }
.plan-im-fenster { max-height: 50vh; overflow: auto; }
.plan-im-fenster img { cursor: crosshair; }

/* QR-Codes: Tabelle mit festen Spalten, Anlegen in Schritten (07.11.) */
.qr-bereich { padding: 6px 20px; }
.qr-tabelle { display: grid; }
.qr-reihe { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px 120px 200px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.qr-reihe:first-child { border-top: 0; }
.qr-kopfzeile { padding: 10px 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.qr-reihe .qr-klein { width: 56px; height: 56px; padding: 3px; }
.qr-reihe .gw-chip { display: inline-flex; gap: 5px; align-items: center; justify-self: start; font-size: .78rem; padding: 5px 9px; }
.qr-reihe .gw-chip .i { width: 13px; height: 13px; }
.qr-reihe .zg-aktionen { justify-content: flex-end; }
.qr-tipp { margin: 4px 0 12px; }
.qr-zwecke { display: grid; gap: 8px; }
.qr-zweck { display: block; cursor: pointer; }
.qr-zweck input { position: absolute; opacity: 0; pointer-events: none; }
.qr-zweck > span { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte, #fff); }
.qr-zweck b { display: flex; gap: 8px; align-items: center; }
.qr-zweck small { color: var(--muted); line-height: 1.4; }
.qr-zweck input:checked + span { border-color: var(--petrol, #0a5c80); box-shadow: 0 0 0 2px color-mix(in srgb, var(--petrol, #0a5c80) 25%, transparent); }
.qr-zweck input:focus-visible + span { outline: 2px solid var(--petrol, #0a5c80); outline-offset: 2px; }
[data-nur-zweck][hidden] { display: none; }
.qr-aushang { text-align: center; max-width: 520px; margin: 24px auto; }
.qr-aushang h1 { font-size: 1.6rem; }
.qr-aushang .qr-aushang-code { width: 320px; max-width: 80%; image-rendering: pixelated; margin: 12px auto 4px; display: block; }
.qr-aushang-knoepfe { display: flex; justify-content: space-between; margin-bottom: 16px; }
/* Logo oben links, „powered by Cordimo“ klein unter dem Code (Sven 09.11.2026) */
.qr-aushang-logo { text-align: left; margin-bottom: 18px; }
.qr-aushang-logo img { max-height: 56px; max-width: 220px; }
.qr-aushang-logo .logo-wort { height: 34px; width: auto; }
.qr-powered { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .68rem; color: #8a96a3; margin: 0 0 14px; }
.qr-powered .logo-wort { height: 12px; width: auto; }
@media print {
  .qr-aushang-knoepfe { display: none; }
  .einfach:has(.qr-aushang) .einfach-kopf, .einfach:has(.qr-aushang) .einfach-fuss { display: none; }
}
body:has(.qr-aushang) .einfach-kopf { display: none; }
@media (max-width: 760px) {
  .qr-reihe { grid-template-columns: 56px 1fr; }
  .qr-kopfzeile { display: none; }
  .qr-reihe .gw-chip, .qr-reihe > span.klein, .qr-reihe .zg-aktionen { grid-column: 2; justify-content: flex-start; }
}
.qr-reihe { grid-template-columns: 56px minmax(200px, 2fr) minmax(150px, 1fr) 90px 170px; }
@media (max-width: 1100px) { .qr-reihe { grid-template-columns: 56px minmax(0, 1fr) 170px; } .qr-reihe > :nth-child(3), .qr-reihe > :nth-child(4) { display: none; } }

/* Nachrichten von Nachbarn (07.11.) */
.bs-zeile { grid-template-columns: minmax(0, 1fr) 130px auto; align-items: start; }
.bs-text { margin: 4px 0; white-space: pre-line; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis-ok { background: #e8f5ec; border: 1px solid #b7dfc3; border-radius: var(--r-klein); padding: 12px 14px; margin: 14px 0; }

/* Fenster-Fuß in Schritten: umbrechen statt überlaufen (07.11.) */
.assistent-fuss { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.assistent-fuss > .btn-leise:first-child { margin-right: auto; }
.assistent-fuss .btn { white-space: nowrap; }
dialog.fenster .fenster-innen, dialog.fenster .fenster-innen form, dialog.fenster .assistent-schritt { min-width: 0; max-width: 100%; }
dialog.fenster input, dialog.fenster select, dialog.fenster textarea { max-width: 100%; box-sizing: border-box; }
.farb-wahl input[type=color] { position: static; opacity: 1; pointer-events: auto; }

/* QR-Codes als eigener Menüpunkt (07.11.) */
.qr-gruppe-kopf { display: flex; align-items: baseline; gap: 8px; padding: 12px 0 4px; flex-wrap: wrap; }
.qr-gruppe-kopf a { color: inherit; text-decoration: none; }
.qr-gruppe-kopf .farb-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--objekt, #0a5c80); align-self: center; }
.qr-gruppe-kopf + .qr-tabelle .qr-reihe:first-child { border-top: 1px solid var(--line); }
.hinweis-notfall { background: #fdecea; border: 1px solid #f5c2c0; border-radius: var(--r-klein); padding: 12px 14px; margin: 12px 0; }

.portal-extra { display: grid; gap: 4px; padding: 6px 12px 10px; color: var(--muted); }
.portal-extra .i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
td .gw-chip { display: inline-flex; gap: 4px; align-items: center; margin-left: 4px; vertical-align: 1px; }
td .gw-chip .i { width: 12px; height: 12px; }

/* Verlauf mit Trichter (07.11.) */
.verlauf-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.verlauf-kopf h2 { margin: 0 0 2px; }
.verlauf .gw-chip { font-size: .7rem; padding: 2px 7px; margin-left: 4px; }
.verlauf .punkt.aenderung { background: var(--flaeche); color: var(--muted); }

/* Ankaufskalkulation: Bewertung, Kacheln oben, Szenarien, nichts klebt mehr beim Scrollen (07.11.) */
.ak-raster .kalk-ergebnis { position: static; }
.ak-kopf { margin: 14px 0 10px; }
.ak-szenarien { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ak-szenarien a { padding: 6px 12px; border-radius: var(--r-rund); border: 1px solid var(--line); text-decoration: none; color: inherit; font-size: .88rem; background: var(--karte, #fff); }
.ak-szenarien a[aria-current] { background: var(--petrol, #0a5c80); border-color: var(--petrol, #0a5c80); color: var(--auf-farbe); }
.ak-szenario-info { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ak-bewertung { border: 1px solid var(--line); border-left: 6px solid var(--stufe); border-radius: var(--r); padding: 14px 16px; background: color-mix(in srgb, var(--stufe) 7%, var(--karte, #fff)); margin-bottom: 12px; }
.ak-urteil { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ak-urteil a { margin-left: auto; }
.ak-skala { position: relative; height: 10px; border-radius: var(--r-rund); overflow: visible; }
.ak-skala span { position: absolute; top: 0; height: 10px; }
.ak-skala span:first-child { border-radius: 999px 0 0 999px; }
.ak-skala span:nth-child(4) { border-radius: 0 999px 999px 0; }
.ak-marke { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; background: var(--ink, #0e1a2b); border-radius: var(--r-klein); box-shadow: 0 0 0 2px #fff; }
.bewertung { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-rund);
  background: color-mix(in srgb, var(--stufe) 16%, #fff); color: color-mix(in srgb, var(--stufe) 80%, #000); white-space: nowrap; }
.bewertung::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stufe); }
.bewertung.gross { font-size: 1rem; padding: 6px 14px; }
.ak-kacheln { margin-bottom: 14px; }
.ak-kacheln .kalk-kz { position: relative; }
.ak-kacheln .kalk-kz .kz-wechsel { position: absolute; top: 8px; right: 8px; }
.ak-kacheln .ak-haupt b { color: var(--stufe, inherit); }
.ak-vergleich { margin-bottom: 14px; }
.ak-vergleich tr.aktiv td { background: color-mix(in srgb, var(--petrol, #0a5c80) 6%, transparent); }
.margen-stufen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; align-items: end; }
.stufe-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 700px) { .margen-stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Objekte: Ansicht Details (07.11.) */
.details-leiste a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 12px; border-radius: var(--r-rund); border: 1px solid var(--line);
  background: var(--karte, #fff); text-decoration: none; color: inherit; font-size: .88rem; }

/* Einstellungen: die eingeklappte Assistent-Karte ersetzt den Trennstrich unter der Überschrift (07.11.2026) */
.einst-kopf:has(+ .tour-karte) { border-bottom: 0; padding-bottom: 4px; margin-bottom: 0; }
.einst-kopf + .tour-karte.zu { margin: 10px 0 14px; }
.einst-kopf + .tour-karte.zu::after { left: 22px; }

/* Details: Objektauswahl statt Leiste (07.11.) */
.obj-wahl { position: relative; flex: 0 1 460px; min-width: 0; }
.obj-wahl > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--karte, #fff); }
.obj-wahl > summary::-webkit-details-marker { display: none; }
.obj-wahl > summary > i, .obj-wahl-liste a > i { width: 10px; height: 10px; border-radius: 50%; background: var(--objekt, #0a5c80); flex: none; }
.obj-wahl > summary > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.obj-wahl > summary small { color: var(--muted); font-size: .72rem; }
.obj-wahl > summary b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obj-wahl[open] > summary { border-color: var(--petrol, #0a5c80); }
.obj-wahl-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(520px, 92vw); background: var(--karte, #fff);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px -12px rgba(14, 26, 43, .35); padding: 10px; }
.obj-wahl-panel input[type=search] { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.obj-wahl-liste { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.obj-wahl-liste a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-klein); text-decoration: none; color: inherit; }
.obj-wahl-liste a span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.obj-wahl-liste a small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obj-wahl-liste a:hover, .obj-wahl-liste a[aria-current] { background: var(--flaeche); }
.obj-wahl-liste a[aria-current] b { color: var(--petrol, #0a5c80); }
.obj-wahl-leer { padding: 10px; color: var(--muted); font-size: .88rem; }

/* Startseite: leere Teilbereiche, ruhig (11.11.2026) */
.leer-klein-text { margin: 0; padding: 18px 10px; text-align: center; color: var(--muted); font-size: .9rem; }
.leer-klein-text a { font-weight: 600; white-space: nowrap; }

/* Objektname als Auswahl, mittig zu den Pfeilen (07.11.) */
.seitenkopf h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.seitenkopf h1 .blaettern { margin-right: 2px !important; }
.titel-wahl { flex: 0 1 auto; }
.titel-wahl > summary { padding: 2px 8px 2px 4px; border: 1px solid transparent; background: none; border-radius: var(--r-klein); gap: 8px; font: inherit; }
.titel-wahl > summary:hover, .titel-wahl[open] > summary { border-color: var(--line); background: var(--karte, #fff); }
.titel-wahl > summary > .farb-punkt { margin: 0; }
.titel-wahl > summary > span { flex: none; display: inline; white-space: normal; }
.titel-wahl > summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.titel-wahl[open] > summary .chev { transform: rotate(180deg); }
.titel-wahl .obj-wahl-panel { font-size: 1rem; font-weight: 400; }
.obj-wahl-zahl { display: block; margin: -2px 2px 6px; }

/* Schmale Assistent-Leiste ohne Vorschläge, Button rechts (07.11.2026) */
.titel-wahl > summary { border-color: var(--line); background: var(--karte, #fff); padding: 4px 10px 4px 8px; box-shadow: 0 1px 2px rgba(14, 26, 43, .06); }
.titel-wahl > summary:hover, .titel-wahl[open] > summary { border-color: var(--petrol, #0a5c80); }
.titel-wahl > summary .chev { color: var(--petrol, #0a5c80); }

/* Assistent: orange */
.btn-assistent, .btn[data-modus="schritte"], .btn[data-assistent-starten] {
  background: var(--akzent, #f2a516); color: var(--ink, #0e1a2b); box-shadow: 0 6px 16px -8px rgba(224, 146, 12, .7); }
.btn-assistent .i, .btn[data-modus="schritte"] .i, .btn[data-assistent-starten] .i { color: var(--ink, #0e1a2b); }
.btn-assistent:hover, .btn[data-modus="schritte"]:hover, .btn[data-assistent-starten]:hover { background: var(--akzent-dunkel, #e0920c); }
/* Startseite kompakter (Sven, 07.11.2026): Gruß-Kopf schmaler, Assistent und Automation ohne Extra-Abstand im Raster */
.db .db-held { padding: 16px 24px; }
.db .db-held .db-datum { margin-bottom: 2px; }
.db .db-held h1 { margin: 0; }
.db > .tour-karte.zu, .db > .auto-karte.zu { margin: 0; }
.db > .tour-karte:not(.zu), .db > .einstieg-karte { margin-top: 4px; margin-bottom: 0; }

/* Assistent und Automation zugeklappt: dicht untereinander (Sven, 07.11.2026) */
.tour-karte.zu { margin: 12px 0 0; }
.tour-karte.zu + .auto-karte.zu { margin-top: 10px; }
.db > .tour-karte.zu + .auto-karte.zu { margin-top: -12px; }
.db > .start-hinweis:not(:has(*)) { display: none; }

/* Gruß-Kasten: wechselnde Zeile mit Tageslage und Tipps (Sven, 07.11.2026) */
.db-held { grid-template-columns: 1fr; }
.held-wechsel { margin: 4px 0 0; min-height: 1.5em; color: var(--text); font-size: .98rem; }
.held-satz { animation: held-ein .4s ease; }
.held-satz.tipp { color: var(--muted); }
.held-satz a { font-weight: 600; white-space: nowrap; }
@keyframes held-ein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .held-satz { animation: none; } }

/* Objekt: Anlege-Knopf des Reiters oben rechts im Seitenkopf (07.11.) */
.seitenkopf .kopf-aktion { display: inline-flex; gap: 8px; align-items: center; }
.seitenkopf .kopf-aktion:empty { display: none; }
.seitenkopf .kopf-aktion form { margin: 0; }

/* Objekt: Anlege-Knopf auf derselben Höhe wie auf allen anderen Seiten (oben rechts, Höhe des Titels) */
.seitenkopf { position: relative; }
.seitenkopf .kopf-aktion { position: absolute; top: 0; right: 0; }
.seitenkopf > .aktionen:has(.kopf-aktion > *) { padding-top: 52px; }
@media (max-width: 700px) { .seitenkopf .kopf-aktion { position: static; } .seitenkopf > .aktionen:has(.kopf-aktion > *) { padding-top: 0; } }
.zurueck + .seitenkopf .kopf-aktion { top: -30px; }
.zurueck + .seitenkopf > .aktionen:has(.kopf-aktion > *) { padding-top: 22px; }

/* ---------- Assistent „Gespräch“ (A2) und Automation „Live-Protokoll“ (B2), Sven 07.11.2026 ---------- */
.tour-karte.assi { border: 0; background: none; box-shadow: none; padding: 0; display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 16px; height: auto; }
.tour-karte.assi::after { display: none; }
.tour-karte.assi .tour-abzeichen { position: static; flex: none; }
.assi-zu { display: none; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.tour-karte.assi.zu { align-items: center; gap: 10px; margin: 10px 0 0; }
.tour-karte.assi.zu > :not(.tour-abzeichen) { display: none; }
.tour-karte.assi.zu > .assi-zu { display: flex; }
.tour-karte.assi.zu .tour-abzeichen { width: 28px; height: 28px; }
.tour-karte.assi.zu .tour-abzeichen .i { width: 15px; height: 15px; }
.assi-sprech { border: 1px solid #f3dcb2; background: var(--karte, #fff); color: var(--text); border-radius: 14px 14px 14px 4px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px -9px rgba(0,0,0,.35); }
.assi-sprech b { color: #c46a00; font-weight: 600; }
.assi-sprech:hover { border-color: var(--akzent, #f2a516); }
.assi-linie { flex: 1; min-width: 20px; border-top: 1.5px dashed rgba(242,165,22,.65); }
.assi-voll { flex: 1; min-width: 0; background: var(--karte, #fff); border: 1px solid #f1dcb8; border-radius: 18px 18px 18px 6px; padding: 14px 16px; box-shadow: 0 14px 30px -22px rgba(180,110,0,.55); }
.assi-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.assi-kopf h3 { margin: 0 0 2px; font-size: 1rem; }
.assi-kopf small { color: var(--muted); font-size: .85rem; }
.assi-punkt { display: flex; gap: 10px; align-items: flex-start; background: rgba(242,165,22,.09); border-radius: var(--r); padding: 9px 12px; margin-bottom: 6px; font-size: .9rem; line-height: 1.45; }
.assi-punkt .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #d0661c; }
.assi-punkt.tipp { background: rgba(10,92,128,.05); }
.assi-punkt.tipp .i { color: var(--petrol, #0a5c80); }
.assi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.assi-chip { display: inline-flex; align-items: center; border: 1px solid #f0d3a2; background: rgba(242,165,22,.08); color: #8a5200; border-radius: var(--r-rund); padding: 5px 12px; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.assi-chip:hover { border-color: var(--akzent, #f2a516); }
html[data-design="dunkel"] .assi-sprech, html[data-design="dunkel"] .assi-voll { border-color: rgba(242,165,22,.35); }
html[data-design="dunkel"] .assi-chip { color: #ffc36a; border-color: rgba(242,165,22,.35); }

.auto-karte.auto-live { border: 1px solid var(--lila-hell); border-radius: var(--r); padding: 16px 18px; box-shadow: 0 18px 36px -26px rgba(80,40,160,.55); }
.auto-karte.auto-live:not(.zu) > .auto-abzeichen { display: none; }
.auto-zu-zeile { display: none; }
.auto-karte.auto-live.zu { border: 0; box-shadow: none; padding: 0; height: auto; display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.auto-karte.auto-live.zu::after { display: none; }
.auto-karte.auto-live.zu .auto-zu-zeile { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.auto-karte.auto-live.zu .auto-abzeichen { position: static; width: 28px; height: 28px; flex: none; }
.auto-karte.auto-live.zu .auto-abzeichen .i { width: 15px; height: 15px; }
.auto-linie { flex: 1; min-width: 20px; border-top: 1.5px dashed rgba(124,77,204,.55); }
.auto-pille { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e0d2fa; background: var(--karte, #fff); color: var(--text); border-radius: var(--r-rund); padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.auto-pille b { color: #a3123a; font-weight: 600; }
.auto-pille:hover { border-color: var(--lila, #7c4dcc); }
.auto-puls { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.18); }
.auto-live .auto-zu { top: 14px; right: 14px; }
.auto-kopf { display: flex; align-items: center; gap: 12px; padding-right: 40px; margin-bottom: 12px; }
.auto-kopf h3 { margin: 0; font-size: 1rem; }
.auto-kopf small { color: var(--muted); font-size: .85rem; }
.auto-symbol { width: 34px; height: 34px; border-radius: 50%; background: var(--lila, #7c4dcc); color: var(--auf-farbe); display: grid; place-items: center; flex: none; }
.auto-symbol .i { width: 17px; height: 17px; }
html[data-design="dunkel"] .auto-karte.auto-live:not(.zu), html[data-design="dunkel"] .auto-pille { border-color: rgba(124,77,204,.45); }
.tour-karte.assi.zu + .auto-karte.auto-live.zu { margin-top: 8px; }
.db > .tour-karte.assi + .auto-karte.auto-live.zu { margin-top: -6px; }
.hilfe-aktion.haupt { flex-direction: row; align-items: center; }
.hilfe-aktion.haupt .i { margin-top: 0; }
.tour-karte.assi, .auto-karte.auto-live { cursor: pointer; }
.tour-karte.assi a, .auto-karte.auto-live a { cursor: pointer; }
.assi-sprech { border-radius: var(--r-rund); }
/* zugeklappt: gleicher Abstand nach oben (Kennzahlen) und nach unten (erster Inhalt) */
.tour-karte.assi.zu { margin-top: 14px; margin-bottom: 16px; }
.auto-karte.auto-live.zu { margin-bottom: 16px; }
.tour-karte.assi.zu + .auto-karte.auto-live.zu { margin-top: -6px; }
.db > .auto-karte.auto-live.zu { margin-bottom: -6px; }

/* Übersichten objektbezogen, ganze Zeile klickbar (Regel Sven 07.11.) */
.angebot-liste li { padding: 0; }
.angebot-zeile { display: flex; align-items: center; gap: 16px; padding: 12px 14px; text-decoration: none; color: inherit; width: 100%; }
.angebot-zeile:hover { background: var(--flaeche); }
.angebot-preis { min-width: 150px; text-align: right; font-variant-numeric: tabular-nums; }
.angebot-stand { min-width: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.angebot-zeile .pfeil { color: var(--muted); width: 16px; height: 16px; flex: none; }
@media (max-width: 700px) { .angebot-zeile { flex-wrap: wrap; } .angebot-preis { text-align: left; min-width: 0; } }

/* Sortierbare Tabellen (07.11.) */
th.sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortierbar::after { content: "↕"; margin-left: 6px; opacity: .3; font-size: .85em; }
th.sortierbar[aria-sort="ascending"]::after { content: "↑"; opacity: .9; }
th.sortierbar[aria-sort="descending"]::after { content: "↓"; opacity: .9; }
th.sortierbar:hover { color: var(--ink); }
/* Leere Vorschau: Bild und Fenster liegen übereinander, der Bereich wächst mit dem Fenster mit (nie abgeschnitten) */
.leer-vorschau { display: grid; }
.leer-vorschau > .leer-vorschau-bild, .leer-vorschau > .leer-vorschau-mitte { grid-area: 1 / 1; min-width: 0; }
.leer-vorschau > .leer-vorschau-mitte { position: relative; inset: auto; }

/* Unternehmen: Gewerke als Checkbox-Liste wie in anderen Formularen (07.11.) */
.gewerke-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-klein); background: var(--karte, #fff); }
@media (max-width: 560px) { .gewerke-auswahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#dlg-unternehmen { width: min(600px, calc(100vw - 24px)); }
.gewerke-auswahl .haken-feld span { white-space: nowrap; }
/* Tipps und Protokoll-Einträge sind als Ganzes klickbar */
a.assi-punkt, button.assi-punkt { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: box-shadow .15s, background .15s; }
a.assi-punkt:hover, button.assi-punkt:hover { box-shadow: inset 0 0 0 1px rgba(242,165,22,.55); }
a.assi-punkt.tipp:hover, button.assi-punkt.tipp:hover { box-shadow: inset 0 0 0 1px rgba(10,92,128,.35); }

/* Analyse (07.11.) */
.an-titel { font-size: 1.02rem; margin: 26px 0 0; }
.an-rot { color: var(--rot); font-weight: 600; }
.an-gruen { color: var(--gruen); font-weight: 600; }
.an-summe { display: flex; flex-wrap: wrap; gap: 0; margin-top: 16px; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); }
.an-summe > div { flex: 1 1 180px; padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.an-summe > div:last-child { border-right: 0; }
.an-summe small { color: var(--muted); font-size: .78rem; }
.an-summe b { font: 700 1.25rem/1.1 InterDisplay, Inter, sans-serif; }
.an-balken { position: relative; height: 10px; border-radius: var(--r-klein); background: transparent; margin: 4px 0 6px; }
.an-balken span { position: absolute; left: 0; top: 0; height: 100%; border-radius: var(--r-klein); }
.an-b-budget { background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--line); }
.an-b-ist { background: var(--brand); }
.an-b-ist.rot { background: var(--rot); }
.an-zeile { display: flex; align-items: center; gap: 8px; }
.an-zeile .an-b-ist { display: block; height: 8px; border-radius: var(--r-klein); min-width: 4px; }
.an-legende { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-punkt { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-klein); }
.an-punkt.budget { background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--line); }
.an-punkt.ist { background: var(--brand); }
.an-punkt.rot { background: var(--rot); margin-left: 8px; }
.an-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .an-zwei { grid-template-columns: 1fr; } }
.tabelle .objekt-punkt { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-klein); background: var(--objekt); vertical-align: 1px; margin-right: 4px; }

/* ---------- Bereich „Automatisierung“ (07.11.2026, nur Projekte): Rahmen, Farbe und Symbol wie die Karte auf der Startseite ---------- */
.nav li.nav-auto .auto-nav-zahl { position: static; margin-left: auto; line-height: 18px; min-width: 18px; height: 18px; border-radius: var(--r-klein); background: var(--rot, #c92a2a); color: var(--auf-farbe); font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.auto-symbol.klein { width: 22px; height: 22px; }
.auto-symbol.klein .i { width: 12px; height: 12px; }
.btn-auto { background: var(--lila, #7c4dcc); color: var(--auf-farbe); border: 0; }
.btn-auto:hover { background: var(--lila-dunkel); color: var(--auf-farbe); }
.auto-seite-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.auto-seite-kopf .auto-kopf { padding-right: 0; margin-bottom: 0; }
.auto-seite-kopf h1 { margin: 0 0 4px; }
.auto-seite-kopf .kopf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.auto-regeln { list-style: none; margin: 0; padding: 0; }
.auto-regel { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.auto-regel:first-child { border-top: 0; }
.auto-regel.aus .auto-regel-text { opacity: .6; }
.auto-regel-text { flex: 1 1 320px; min-width: 0; }
.auto-regel-text b { color: var(--ink); }
.auto-regel-text small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.auto-regel-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auto-regel-aktionen select { font: inherit; font-size: .85rem; padding: 4px 8px; border-radius: var(--r-klein); border: 1px solid var(--line-stark); background: var(--karte, #fff); }
.auto-text-form { flex-basis: 100%; margin-top: 8px; }
.schalter-knopf { border: 0; background: none; padding: 4px; cursor: pointer; flex: none; line-height: 0; }
.schalter-knopf .schalter { display: inline-block; vertical-align: middle; }
.auto-w-liste li > span { flex: 1 1 auto; min-width: 0; }
.auto-w-liste li > form, .auto-w-liste li > a { flex: none; }
.schalter-knopf.an .schalter { background: var(--lila, #7c4dcc); }
.schalter-knopf.an .schalter::after { transform: translateX(18px); }
.auto-start { border-color: var(--lila-hell); background: rgba(124,77,204,.04); }
.auto-start h2 { margin-top: 0; }
.auto-ziel { border: 0; padding: 0; margin: 0 0 14px; }
.auto-ziel legend { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.auto-wahl { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; }
.auto-wahl:has(input:checked) { border-color: var(--lila, #7c4dcc); background: rgba(124,77,204,.05); }
.auto-wahl.gesperrt { opacity: .65; cursor: default; }
.auto-wahl input[type=radio] { margin-top: 4px; accent-color: var(--lila, #7c4dcc); }
.auto-wahl b { display: block; color: var(--ink); }
.auto-wahl small { display: block; color: var(--muted); font-size: .86rem; }
.auto-wahl select { margin-top: 6px; font: inherit; padding: 6px 8px; border-radius: var(--r-klein); border: 1px solid var(--line-stark); max-width: 100%; }
.auto-wahl[hidden] { display: none; }
.auto-chip { margin: 4px 4px 0 0; cursor: pointer; border-color: var(--lila-hell); background: rgba(124,77,204,.06); color: var(--lila-dunkel); }
.auto-ereignisse { list-style: none; padding: 0; margin: 4px 0 0; font-size: .9rem; }
.auto-ereignisse li { padding: 3px 0; }
.auto-ereignisse code { font-size: .8rem; background: var(--flaeche); padding: 1px 6px; border-radius: var(--r-klein); margin-right: 6px; }
.auto-w-liste { list-style: none; padding: 0; margin: 6px 0 0; }
.auto-w-liste li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.auto-w-liste li:first-child { border-top: 0; }
.auto-w-liste small { display: block; color: var(--muted); font-size: .8rem; }
.auto-w-titel { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; }
.bn-tabelle td, .bn-tabelle th { text-align: center; }
.bn-tabelle td:first-child, .bn-tabelle th:first-child { text-align: left; }
.bn-tabelle input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; }
/* Vorschlag im Alltag (08.11.2026) */
.auto-alltag { background: rgba(124,77,204,.06); border: 1px solid var(--lila-hell); border-radius: var(--r); padding: 10px 12px; margin: 4px 0 8px; }
.auto-alltag p { margin: 0 0 6px; }
.auto-alltag small { color: var(--muted); }
.auto-alltag-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Vorschlag im Alltag zugeklappt: oranges Abzeichen am Blitz (Variante B, Sven 08.11.2026) */
.auto-tipp { position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; border-radius: var(--r-klein); background: var(--akzent, #f2a516); color: #1a1a1a; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--karte, #fff); }
.auto-karte.auto-live.zu .auto-abzeichen { position: relative; }
.auto-tipp-text { color: #c46a00; }

/* Rote Zahl für Neues von außen (08.11.), wie bei der Automatisierung */
.nav .nav-neu { margin-left: auto; min-width: 18px; height: 18px; line-height: 18px; border-radius: var(--r-klein); background: var(--rot, #c92a2a); color: var(--auf-farbe); font-size: .7rem; font-weight: 700; text-align: center; padding: 0 5px; flex: none; }
.nav .unter .nav-neu { min-width: 16px; height: 16px; line-height: 16px; font-size: .66rem; }
.reiter .zahl.rot-neu { background: var(--rot, #c92a2a); color: var(--auf-farbe); font-weight: 700; }
/* Assistent: Treffer, Satz-Editor, Probelauf (08.11.2026) */
.auto-treffer { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--lila-dunkel); background: rgba(124,77,204,.1); border-radius: var(--r-rund); padding: 1px 8px; margin-left: 4px; }
.auto-empfohlen { background: rgba(124,77,204,.04); border: 1px solid var(--lila-hell); border-radius: var(--r); padding: 10px 12px 4px; }
.satz-editor { font-size: 1.12rem; line-height: 2; color: var(--ink); background: rgba(124,77,204,.05); border-left: 3px solid var(--lila, #7c4dcc); padding: 10px 16px; border-radius: var(--r-klein); }
.satz-teil { font: inherit; color: var(--lila-dunkel); background: var(--karte); border: 1px dashed #b9a0ea; border-radius: var(--r-klein); padding: 0 8px; cursor: pointer; }
.satz-teil:hover, .satz-teil.aktiv { border-style: solid; border-color: var(--lila, #7c4dcc); background: rgba(124,77,204,.08); }
.satz-panel { border: 1px solid var(--lila-hell); border-radius: var(--r); padding: 12px; margin: 10px 0; }
.auto-probelauf { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.auto-probelauf h3 { margin: 0 0 6px; font-size: 1rem; }
.auto-probelauf iframe { width: 100%; min-height: 420px; border: 0; }

/* Datumsmarke „Heute“ gut lesbar (08.11.): Listen-Stile färbten small/b grau */
.db-datum-marke small, .db-datum-marke b { color: inherit; }
.db-datum-marke.heute small { opacity: .9; font-weight: 600; }

/* Neue Einträge rot markiert, wie der Assistent orange markiert (08.11.) */
.neu-markiert { outline: 2px solid var(--rot, #c92a2a); outline-offset: 2px; border-radius: var(--r-klein); background-color: rgba(201, 42, 42, .05); animation: neu-puls 1.6s ease-out 2; }
tr.neu-markiert td { background-color: rgba(201, 42, 42, .05); }
tr.neu-markiert { outline-offset: -2px; }
a.neu-markiert { display: inline-block; }
.nav-neu[data-ziel] { cursor: pointer; }
.nav-neu[data-ziel]:hover { filter: brightness(1.1); box-shadow: 0 0 0 2px rgba(201, 42, 42, .25); }
@keyframes neu-puls { 0% { box-shadow: 0 0 0 0 rgba(201, 42, 42, .45); } 100% { box-shadow: 0 0 0 10px rgba(201, 42, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .neu-markiert { animation: none; } }
/* Vorlagen-Gruppen ein- und ausklappbar, Knöpfe mit lila Rahmen (Sven 08.11.2026) */
details.auto-gruppe > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
details.auto-gruppe > summary::-webkit-details-marker { display: none; }
details.auto-gruppe > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--lila, #7c4dcc); border-bottom: 2px solid var(--lila, #7c4dcc); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details.auto-gruppe[open] > summary::before { transform: rotate(45deg); }
details.auto-gruppe > summary h2 { margin: 0; font-size: 1.05rem; }
details.auto-gruppe[open] > summary { margin-bottom: 8px; }
.auto-ziel-gruppe { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
.auto-ziel-gruppe .auto-ziel { margin: 8px 0 0; }
.btn-auto-rahmen { background: var(--karte, #fff); color: var(--lila-dunkel); border: 1.5px solid var(--lila, #7c4dcc); }
.btn-auto-rahmen:hover { background: rgba(124,77,204,.08); color: var(--lila-dunkel); }

/* Datumsmarke mit Luft zum Rand (08.11.) */
.db-zeit a { grid-template-columns: 74px 1fr; }
.db-datum-marke { padding: 8px 10px; }
.db-datum-marke b { font-size: .95rem; white-space: nowrap; letter-spacing: .01em; }
.db-datum-marke small { font-size: .64rem; letter-spacing: .03em; }

/* Rote Markierung blendet nach ein paar Sekunden aus (08.11.) */
.neu-markiert { transition: outline-color 1.2s ease, background-color 1.2s ease; }
tr.neu-markiert td { transition: background-color 1.2s ease; }
.neu-markiert.neu-aus { outline-color: transparent; background-color: transparent; }
tr.neu-markiert.neu-aus td { background-color: transparent; }

/* Aktionen im Seitenkopf bleiben rechts, auch wenn der Kopf umbricht (08.11.) */
.einst-kopf > .aktionen { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.einst-kopf > .aktionen form { margin: 0; }

/* Kündigen und Widerrufen (§ 312k, § 356a BGB): eine luftige Seite, Pflichtangaben oben, Freiwilliges darunter (08.11.) */
.k-seite { display: grid; gap: 22px; padding-top: 8px; }
.k-kopf h1 { font-size: clamp(1.6rem, 4vw, 2.05rem); margin-bottom: 8px; }
.k-kopf p { margin: 0; font-size: 1.02rem; max-width: 60ch; }
.k-form { display: grid; gap: 22px; }
.k-block { padding: clamp(20px, 4vw, 30px); }
.k-block h2 { font-size: 1.15rem; margin-bottom: 18px; }
.k-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; align-items: start; }
.k-breit { grid-column: 1 / -1; }
.k-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.k-form legend { padding: 0; margin-bottom: 8px; }
.k-form input:not([type=radio]):not([type=checkbox]), .k-form select, .k-form textarea { min-height: 46px; font-size: 1rem; }
.k-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.k-chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--line-stark); border-radius: var(--r); background: var(--karte); cursor: pointer; font-size: .95rem; line-height: 1.3; }
.k-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.k-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-hell); color: var(--ink); }
.k-chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.k-grund, .k-datum { display: none; }
.k-raster:has(input[name=art][value=ausserordentlich]:checked) .k-grund { display: grid; }
.k-zeit:has(input[value=datum]:checked) .k-datum { display: block; margin-top: 10px; max-width: 220px; }
.k-absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.k-knopf { min-height: 50px; padding-inline: 28px; font-size: 1.02rem; }
.k-freiwillig { padding: 0; }
.k-freiwillig > summary { display: flex; gap: 14px; align-items: flex-start; padding: clamp(18px, 4vw, 24px) clamp(20px, 4vw, 30px); cursor: pointer; list-style: none; }
.k-freiwillig > summary::-webkit-details-marker { display: none; }
.k-freiwillig > summary > span:last-child { display: grid; gap: 2px; flex: 1; }
.k-freiwillig > summary::after { content: "▾"; color: var(--muted); margin-left: auto; transition: transform .15s; }
.k-freiwillig[open] > summary::after { transform: rotate(180deg); }
.k-umfrage { display: grid; gap: 20px; padding: 0 clamp(20px, 4vw, 30px) clamp(20px, 4vw, 30px); }
.k-umfrage .k-absenden { margin-top: 4px; }
.k-marke { display: inline-block; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--flaeche); border: 1px solid var(--line); border-radius: var(--r-rund); padding: 3px 10px; margin-top: 2px; }
.k-vorschlag { display: none; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--brand-hell); color: var(--ink); font-size: .93rem; }
.k-vorschlag .i { flex: none; margin-top: 2px; color: var(--brand); }
.k-umfrage:has(input[name=u_grund][value=teuer]:checked) [data-vorschlag=teuer],
.k-umfrage:has(input[name=u_grund][value=funktion]:checked) [data-vorschlag=funktion],
.k-umfrage:has(input[name=u_grund][value=kompliziert]:checked) [data-vorschlag=kompliziert],
.k-umfrage:has(input[name=u_grund][value=selten]:checked) [data-vorschlag=selten],
.k-umfrage:has(input[name=u_grund][value=abgeschlossen]:checked) [data-vorschlag=abgeschlossen],
.k-umfrage:has(input[name=u_grund][value=wechsel]:checked) [data-vorschlag=wechsel] { display: flex; }
.k-rabatt { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; border-color: var(--akzent); background: var(--akzent-hell); }
.k-rabatt > div { flex: 1 1 320px; }
.k-rabatt h2 { margin: 10px 0 6px; }
.k-rabatt p { margin: 0; }
.k-fertig { display: grid; gap: 10px; justify-items: start; padding: clamp(24px, 5vw, 36px); }
.k-fertig p { margin: 0; }
.k-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen); }
.k-symbol .i { width: 24px; height: 24px; }
.k-angaben-liste { grid-template-columns: 130px 1fr; width: 100%; padding: 14px 0; border-block: 1px solid var(--line); margin: 6px 0; }
.k-fuss { text-align: center; margin: 0; }
@media (max-width: 640px) {
  .k-raster { grid-template-columns: 1fr; }
  .k-wahl { display: grid; }
  .k-knopf, .k-rabatt .btn { width: 100%; }
  .k-angaben-liste { grid-template-columns: 1fr; gap: 0 12px; }
  .k-angaben-liste dd { margin-bottom: 8px; }
}

/* Tarife: Hub enthält Projekte und Bestand, Hinweis beim Dazubuchen, freiwillige Umfrage beim Herabstufen (08.11.) */
.hub-inklusive { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 5px; margin: 0 0 10px; padding: 5px 10px; max-width: 100%; border-radius: var(--r-rund); background: var(--brand-hell); color: var(--brand-dunkel); font-size: .8rem; font-weight: 600; }
.hub-inklusive .i { width: 16px; height: 16px; }
.hub-hinweis { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: var(--r); background: var(--akzent-hell); color: var(--ink); font-size: .86rem; }
.hub-hinweis .i { flex: none; margin-top: 2px; color: var(--akzent-dunkel); }
.bestellung .k-freiwillig { margin: 4px 0; box-shadow: none; }

/* Wartungsintervall: Zahl + Einheit in einer Zeile (08.11.) */
.intervall-feld { display: flex; align-items: center; gap: 8px; }
.intervall-feld input { width: 90px; flex: none; }
.intervall-feld select { flex: 1; min-width: 0; }

/* Wartungsarten verwalten (08.11.) */
#dlg-arten { width: min(760px, calc(100vw - 32px)); }
.arten-tabelle td { padding: 8px 10px; vertical-align: middle; }
.arten-tabelle td:first-child input { width: 100%; }

/* Wartungsarten: Zahl schmal, Einheit sichtbar, Häkchen ohne Rahmen (08.11.) */
.intervall-feld input[type=number] { flex: 0 0 76px; width: 76px; min-width: 0; }
.intervall-feld select { flex: 1 1 auto; width: auto; min-width: 104px; }
.arten-tabelle .mitte, .arten-tabelle th.mitte { text-align: center; }
.arten-tabelle input.arten-haken { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border: 0; box-shadow: none; background: none; accent-color: var(--brand); cursor: pointer; }
.arten-tabelle td:first-child { width: 42%; }
#dlg-arten { width: min(820px, calc(100vw - 32px)); }

/* Mehrfachauswahl skalierbar (08.11.) */
.mehrfach-wahl { border: 1px solid var(--line); border-radius: var(--r-klein); background: var(--karte, #fff); }
.mehrfach-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mehrfach-kopf input[type=search] { flex: 1 1 180px; min-width: 0; }
.mehrfach-kopf [data-mehrfach-zahl] { margin-left: auto; }
.mehrfach-liste { max-height: 220px; overflow-y: auto; padding: 8px 12px; display: grid; gap: 6px; }
.mehrfach-liste label[hidden] { display: none; }
.mehrfach-liste small { margin-left: 4px; }

/* Fenster, deren Kopf außerhalb des Formulars steht, bekommen denselben Innenabstand (08.11.) */
dialog.fenster > .fenster-kopf { padding: 20px 22px 0; }
dialog.fenster > .fenster-kopf + form { padding-top: 14px; }
/* Löschen-X in der Arten-Liste so klein wie die Häkchen */
.arten-tabelle .knopf-icon { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: var(--r-klein); }
.arten-tabelle .knopf-icon .i { width: 13px; height: 13px; }

/* Haus: Aufträge intern/extern (08.11.) */
.zust-chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: var(--r-rund); }
.zust-chip.intern { background: var(--gruen-hell, #e6f4ea); color: var(--gruen, #2b8a3e); }
.zust-chip.extern { background: var(--brand-hell); color: var(--brand); }
.knopf-icon.klein-x { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: var(--r-klein); }
.knopf-icon.klein-x .i { width: 13px; height: 13px; }
.zust-wahl { padding: 14px 22px 0; display: grid; gap: 8px; }
#dlg-h-auftrag:has(#zust-intern:checked) .zust-extern { display: none; }
#dlg-h-auftrag:has(#zust-extern:checked) .zust-intern { display: none; }
/* Skalierbarkeit (08.11.): Einzelauswahl mit Suche, Suchfeld über Listen */
.auswahl { position: relative; width: 100%; }
.auswahl-knopf { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 8px 12px; text-align: left; font: inherit; color: inherit;
  background: var(--karte, #fff); border: 1px solid var(--line); border-radius: var(--r-klein); cursor: pointer; }
.auswahl-knopf > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auswahl-knopf.leer > span { color: var(--muted); }
.auswahl-knopf .chev { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .15s; }
.auswahl-knopf[aria-expanded="true"] { border-color: var(--petrol, #0a5c80); }
.auswahl-knopf[aria-expanded="true"] .chev { transform: rotate(180deg); }
.auswahl-knopf.ungueltig { border-color: #c2410c; }
.auswahl-select { position: absolute !important; left: 50%; bottom: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important;
  border: 0 !important; opacity: 0; pointer-events: none; }
.auswahl-panel { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: max(100%, min(420px, 92vw)); background: var(--karte, #fff);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px -12px rgba(14, 26, 43, .35); padding: 8px; }
.auswahl-panel input[type=search] { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.auswahl-liste { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.auswahl-liste li[role=option] { display: flex; flex-direction: column; padding: 7px 10px; border-radius: var(--r-klein); cursor: pointer; }
.auswahl-liste li[role=option] small { color: var(--muted); font-size: .76rem; }
.auswahl-liste li[role=option]:hover, .auswahl-liste li.aktiv { background: var(--flaeche); }
.auswahl-liste li[aria-selected="true"] { color: var(--petrol, #0a5c80); font-weight: 600; }
.auswahl-liste li[aria-disabled="true"] { opacity: .5; cursor: default; }
.auswahl-liste li[hidden] { display: none; }
.auswahl-gruppe { padding: 8px 10px 2px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.auswahl-leer { padding: 8px 10px; margin: 0; color: var(--muted); font-size: .88rem; }
.liste-suche { position: relative; display: inline-flex; align-items: center; }
.liste-suche .i { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.liste-suche input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]) { padding-left: 32px; min-height: 36px; width: 220px; max-width: 60vw; }
.liste-suche-weg { position: absolute; right: 8px; color: var(--muted); text-decoration: none; font-size: 1.1rem; line-height: 1; }

/* Unsichtbares Feld für Programme (Honeypot) ragt nicht mehr aus der Seite (08.11., Meldeseite bei 390 px) */
input.nur-sr, .nur-sr { width: 1px !important; min-width: 0 !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; left: 0; overflow: hidden; }
/* Zugeklappt: Linie und Text auf Höhe des Blitz-Symbols (Sven 08.11.2026) */
.auto-karte.auto-live.zu .auto-zu-zeile { transform: translateY(-7px); }
/* Einstiegs-Karte im Assistent-Design (Sven 08.11.2026) */
form[data-einstieg-zu][hidden] { display: none; }
form[data-einstieg-zu] { display: inline-flex; }

/* Abstand Assistent → Automation überall wie auf „Aufträge“ (10 px), auch auf den Startseiten im Raster (08.11.) */
.db > .tour-karte + .auto-karte, .db > .tour-karte.assi + .auto-karte.auto-live.zu { margin-top: -12px; }

/* Portal für Eingeladene: Bestand je Haus, Projekte getrennt (08.11.2026) */
.portal-start h1 { margin: 0 0 4px; }
.portal-start p { margin: 0 0 16px; }
.portal-start small { display: block; font-size: .8rem; margin-top: 2px; }
.portal-bereich { display: flex; width: 100%; margin: 0 0 16px; }
.portal-bereich a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; }
.portal-bereich .i { width: 16px; height: 16px; }
.portal-bereich .zahl { font-size: .72rem; background: rgba(0,0,0,.08); padding: 1px 7px; border-radius: var(--r-rund); }
.portal-bereich a.aktiv .zahl { background: rgba(255,255,255,.25); }
.portal-haus { background: var(--karte, #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.portal-haus-kopf h2 { font-size: 1.15rem; margin: 0 0 2px; }
.portal-haus-kopf p { margin: 0; }
.portal-rollen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.portal-melden { margin-top: 14px; }
.portal-unter { font-size: .95rem; margin: 20px 0 8px; display: flex; align-items: center; gap: 6px; }
.portal-unter .zahl { font-size: .72rem; background: var(--akzent, #f2a516); color: var(--auf-farbe); padding: 1px 7px; border-radius: var(--r-rund); }
.portal-zeile { margin: -4px 0 8px; }
.portal-karte { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; display: grid; gap: 4px; }
.portal-karte .formular, .portal-karte .termin-zusage { margin-top: 8px; }
.portal-zeile-karte { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.portal-zeile-karte > span:first-child, .portal-zeile-karte > b { min-width: 0; display: grid; gap: 2px; }
.portal-zeile-karte .status { flex: none; }
.portal-aushang { margin-bottom: 6px; }
.portal-doks a { display: inline-flex; align-items: center; gap: 6px; }
.portal-doks .i { width: 15px; height: 15px; }
.portal-mehr { margin-top: 6px; }
.termin-zusage details:not([open]) { flex: 0 0 auto; }
fieldset.feld { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.feld legend { padding: 0; margin-bottom: 6px; }
.portal-chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-rund); background: var(--flaeche); color: var(--muted); }
.portal-haus details.aufklapp:not([open]), .termin-zusage details.aufklapp:not([open]) { border: 0; background: none; }

/* ---------- CSS 170 · Dark Mode lesbarer (Sven 08.11.2026) ----------
   Bedeutungen bleiben: Petrol = Grundfarbe, Orange = Signal/Assistent, Lila = Automationen, Rot/Grün/Gelb = Zustand.
   Im Dark Mode: helle Abstufung für Schrift auf dunklem Grund, satte Abstufung für Flächen mit weißer Schrift
   (Ziel WCAG AA: Text mind. 4,5:1). Gilt nur für html[data-design="dunkel"]; hell bleibt unverändert. */
/* Lila-Schalter im Empfehlungs-Block der Automatisierung (vorher Petrol, beide Modi): Automationen sind lila */
.auto-start .schalter-reihe input:checked + .schalter, .auto-empfohlen .schalter-reihe input:checked + .schalter { background: var(--lila); }
html[data-design="dunkel"] {
  --brand: #6cb8e0; --brand-dunkel: #8ccbec; --brand-hell: #233645;
  --petrol: #17698f;                     /* Petrol-Fläche mit weißer Schrift (6:1) */
  --muted: #a8aeb8;                      /* leise Schrift besser lesbar (6,6:1 auf Flächen) */
  --rot: #f1786c; --rot-fuell: #c8372b;  /* Rot als Schrift / als Fläche mit weißer Schrift */
  --gruen-fuell: #1f7a45;
  --lila: #7c4dcc; --lila-text: #b9a2f2; --lila-hell: rgba(124,77,204,.16); --lila-rand: rgba(124,77,204,.45);
  --orange-text: #f0ad48;
  --linie: var(--line); --leise: var(--muted);
}
/* Petrol als Fläche: weiße Schrift braucht die satte Abstufung */
html[data-design="dunkel"] .btn-primaer, html[data-design="dunkel"] .gross-knopf.haupt, html[data-design="dunkel"] .hilfe-knopf,
html[data-design="dunkel"] .kal-tag.heute .kal-zahl,
html[data-design="dunkel"] .db-datum-marke.heute, html[data-design="dunkel"] .or-schritt.jetzt { background: var(--petrol); border-color: var(--petrol); color: var(--auf-farbe); }
html[data-design="dunkel"] .btn-primaer:hover, html[data-design="dunkel"] .hilfe-knopf:hover { background: #1d7aa6; }
html[data-design="dunkel"] .schalter-reihe input:checked + .schalter { background: var(--petrol); }
html[data-design="dunkel"] .auto-start .schalter-reihe input:checked + .schalter, html[data-design="dunkel"] .auto-empfohlen .schalter-reihe input:checked + .schalter { background: var(--lila); }
/* Petrol als Schrift: helle Abstufung */
html[data-design="dunkel"] .obj-wahl-liste a[aria-current] b, html[data-design="dunkel"] .auswahl-liste li[aria-selected="true"],
html[data-design="dunkel"] .titel-wahl > summary .chev, html[data-design="dunkel"] .tour-liste .i, html[data-design="dunkel"] .assi-punkt.tipp .i,
html[data-design="dunkel"] .leer-vorschau-icon, html[data-design="dunkel"] .termin-liste-bestand .tag-kopf.heute { color: var(--brand); }
html[data-design="dunkel"] .assi-punkt.tipp { background: rgba(108,184,224,.07); }
/* Fahrplan-Streifen in der Objektübersicht: Flächen satt, Schrift weiß */
html[data-design="dunkel"] .or-schritt.fertig { background: var(--gruen-fuell); border-color: var(--gruen-fuell); }
html[data-design="dunkel"] .or-schritt.problem { background: var(--rot-fuell); border-color: var(--rot-fuell); }
/* Zähler-Punkte (Glocke, Automatisierung, Menü): ruhigeres Rot mit weißer Zahl */
html[data-design="dunkel"] .zaehler, html[data-design="dunkel"] .auto-zahl, html[data-design="dunkel"] .nav li.nav-auto .auto-nav-zahl { background: var(--rot-fuell); }
/* Kalender: Zahlen anderer Monate und erledigte Einträge lesbar */
html[data-design="dunkel"] .kal-tag.fremd .kal-zahl { color: #6e6e75; }
html[data-design="dunkel"] .kal-eintrag.abgehakt, html[data-design="dunkel"] .kal-eintrag.fertig { opacity: .78; }
/* Projekte/Bestand-Umschalter oben links */
html[data-design="dunkel"] .ansicht-schalter a { opacity: 1; color: var(--muted); }
html[data-design="dunkel"] .ansicht-schalter a[aria-current] { color: var(--ink); background: var(--flaeche); }

/* Assistent (orange): Schrift in heller Abstufung, Linien ruhiger, Knopf mit dunkler Schrift */
html[data-design="dunkel"] .assi-sprech b, html[data-design="dunkel"] .auto-tipp-text { color: var(--orange-text); }
html[data-design="dunkel"] .assi-punkt { background: rgba(242,165,22,.08); }
html[data-design="dunkel"] .assi-punkt .i { color: var(--orange-text); }
html[data-design="dunkel"] .assi-linie { border-top-color: rgba(242,165,22,.38); }
html[data-design="dunkel"] .tour-karte.zu::after { opacity: .35; }
html[data-design="dunkel"] .btn-assistent, html[data-design="dunkel"] .btn[data-modus="schritte"], html[data-design="dunkel"] .btn[data-assistent-starten],
html[data-design="dunkel"] .btn-assistent .i, html[data-design="dunkel"] .btn[data-modus="schritte"] .i, html[data-design="dunkel"] .btn[data-assistent-starten] .i { color: var(--auf-orange); }

/* Automationen (lila): Fläche bleibt var(--lila), Schrift helles Lila, Ränder und Linien gedämpft */
html[data-design="dunkel"] .auto-einst, html[data-design="dunkel"] .auto-chip, html[data-design="dunkel"] .auto-treffer,
html[data-design="dunkel"] .btn-auto-rahmen, html[data-design="dunkel"] .satz-teil { color: var(--lila-text); }
html[data-design="dunkel"] .btn-auto-rahmen:hover { color: var(--lila-rand); background: var(--lila-hell); }
html[data-design="dunkel"] .auto-chip, html[data-design="dunkel"] .auto-start, html[data-design="dunkel"] .auto-alltag,
html[data-design="dunkel"] .auto-empfohlen, html[data-design="dunkel"] .satz-panel, html[data-design="dunkel"] .auto-karte.auto-live { border-color: var(--lila-rand); }
html[data-design="dunkel"] .auto-chip, html[data-design="dunkel"] .auto-treffer, html[data-design="dunkel"] .auto-alltag { background: var(--lila-hell); }
html[data-design="dunkel"] .satz-teil { background: var(--karte); border-color: rgba(185,160,234,.55); }
html[data-design="dunkel"] .satz-teil:hover, html[data-design="dunkel"] .satz-teil.aktiv { background: var(--lila-hell); border-color: var(--lila-text); }
html[data-design="dunkel"] .auto-linie { border-top-color: rgba(124,77,204,.5); }
html[data-design="dunkel"] .auto-karte.zu::after { opacity: .4; }
html[data-design="dunkel"] .auto-pille b { color: var(--rot); }
html[data-design="dunkel"] .btn-auto:hover { background: #8a5cd8; }

/* Zustands-Chips und Hinweise mit festen hellen Farben */
html[data-design="dunkel"] .termin-marke.ok { background: var(--gruen-hell); color: var(--gruen); }
html[data-design="dunkel"] .termin-marke.vorschlag { background: var(--gelb-hell); color: var(--gelb); }
html[data-design="dunkel"] .bewertung { background: color-mix(in srgb, var(--stufe) 18%, var(--karte)); color: color-mix(in srgb, var(--stufe) 45%, #fff); }
html[data-design="dunkel"] .hinweis-ok { background: var(--gruen-hell); border-color: rgba(92,207,138,.35); }
html[data-design="dunkel"] .hinweis-notfall { background: var(--rot-hell); border-color: rgba(241,120,108,.4); }
html[data-design="dunkel"] .einst-block.gefahr .einst-block-feld { border-color: rgba(241,120,108,.4); }
html[data-design="dunkel"] .plan-flaeche { background: var(--flaeche); }
html[data-design="dunkel"] .zp-balken.vor_ort { background: var(--petrol); }
html[data-design="dunkel"] .zp-balken.informiert, html[data-design="dunkel"] .zp-balken.geplant, html[data-design="dunkel"] .zp-balken { background: #4b5a66; }
html[data-design="dunkel"] .zp-balken.problem { background: var(--rot-fuell); } html[data-design="dunkel"] .zp-balken.abgehakt { background: var(--gruen-fuell); }
html[data-design="dunkel"] .zp-balken.fertig { background: #c99300; }
/* Tourguide-Knöpfe (Assistent-Start mit Assistent-Start) blieben im Dark Mode blau: auch dort orange wie im hellen Modus */
html[data-design="dunkel"] .btn[data-modus="schritte"], html[data-design="dunkel"] .btn[data-assistent-starten] { background: var(--akzent); box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
html[data-design="dunkel"] .btn[data-modus="schritte"]:hover, html[data-design="dunkel"] .btn[data-assistent-starten]:hover { background: var(--akzent-dunkel); }
html[data-design="dunkel"] .btn[data-modus="schritte"] .i, html[data-design="dunkel"] .btn[data-assistent-starten] .i { color: var(--auf-orange); }
html[data-design="dunkel"] .kal-tag.fremd .kal-zahl { color: #85858c; }

/* ---------- CSS 171 · Einstellungen: Benachrichtigungen eingeklappt, Tarif und Abo neu (Sven 08.11.2026) ---------- */
/* Benachrichtigungen: jeder Bereich ist ein eigenes, standardmäßig eingeklapptes Feld */
.bn-bereiche { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bn-bereich { border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); }
.bn-bereich > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: var(--r); }
.bn-bereich > summary::-webkit-details-marker { display: none; }
.bn-bereich > summary:hover { background: var(--flaeche); }
.bn-bereich > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bn-titel { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.bn-zahl { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.bn-zahl .i { width: 14px; height: 14px; margin-left: 4px; }
.bn-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; flex: none; }
.bn-bereich[open] > summary .bn-chev { transform: rotate(180deg); }
.bn-bereich[open] > summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.bn-bereich .tabelle-rahmen { margin: 0; border: 0; border-radius: 0 0 12px 12px; }
@media (max-width: 640px) { .bn-zahl { display: none; } }

/* Ihr Paket: Kopf in Petrol mit Nutzung als Kacheln */
.paket-held.paket-uebersicht { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 16px;
  padding: 24px; border-radius: var(--r); color: var(--auf-farbe); background: radial-gradient(120% 140% at 100% 0%, #1679a8 0%, #0a5c80 45%, #074866 100%); box-shadow: 0 18px 40px -24px rgba(7,72,102,.7); }
.paket-kopf { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.paket-symbol { flex: none; display: inline-flex; gap: 2px; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: var(--r); background: rgba(255,255,255,.14); }
.paket-symbol .i { width: 24px; height: 24px; color: var(--auf-farbe); }
.paket-auge { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.paket-held .paket-gross { color: var(--auf-farbe); font-size: 1.75rem; margin: 2px 0 2px; overflow-wrap: anywhere; }
.paket-preis { display: block; color: rgba(255,255,255,.85); font-size: .92rem; }
.paket-preis b { color: var(--auf-farbe); }
.paket-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.paket-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-rund); background: rgba(255,255,255,.14); color: var(--auf-farbe); font-size: .76rem; font-weight: 600; }
.paket-chip .i { width: 13px; height: 13px; }
.paket-nutzung { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.paket-held .nutzung { padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.paket-held .nutzung span { display: flex; align-items: center; gap: 6px; justify-content: flex-start; margin: 0 0 4px; font-size: .8rem; color: rgba(255,255,255,.8); }
.paket-held .nutzung span .i { width: 14px; height: 14px; flex: none; }
.paket-held .nutzung-zahl { display: block; color: var(--auf-farbe); font: 700 1.35rem/1.2 InterDisplay, Inter, sans-serif; }
.paket-held .nutzung-zahl small { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); }
.paket-held .nutzung-text { display: block; font-size: .74rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.paket-held .fortschritt { margin-top: 8px; height: 6px; background: rgba(255,255,255,.18); }
.paket-held .fortschritt i { background: var(--auf-farbe); }
html[data-design="dunkel"] .paket-held.paket-uebersicht { background: radial-gradient(120% 140% at 100% 0%, #1d7aa6 0%, #17698f 45%, #0d4a66 100%); box-shadow: none; }
@media (max-width: 900px) { .paket-held.paket-uebersicht { grid-template-columns: 1fr; padding: 20px; } }

/* Editionen: Umschalter Monatlich/Jährlich (ohne JavaScript, über :has) */
.editionen { margin-top: 8px; }
.iv-wahl { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.editionen-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 14px; }
.editionen-kopf .einst-zwischen { margin: 0 0 4px; }
.editionen-kopf p { margin: 0; max-width: 560px; }
.intervall-schalter { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-rund); background: var(--flaeche); border: 1px solid var(--line); }
.intervall-schalter label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-rund); font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.geschenkt { padding: 2px 8px; border-radius: var(--r-rund); background: var(--gruen-hell); color: var(--gruen); font-size: .72rem; }
#iv-monat:checked ~ .editionen-kopf label[for="iv-monat"], #iv-jahr:checked ~ .editionen-kopf label[for="iv-jahr"] { background: var(--karte); color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,43,.12); }
#iv-monat:focus-visible ~ .editionen-kopf label[for="iv-monat"], #iv-jahr:focus-visible ~ .editionen-kopf label[for="iv-jahr"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.editionen:has(#iv-jahr:checked) .nur-monat, .editionen:has(#iv-monat:checked) .nur-jahr { display: none !important; }
.tarife.vier { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tarif .tarif-preis { margin-bottom: 2px; }
.tarif .tarif-preis small { font: 600 .9rem Inter, sans-serif; color: var(--muted); }
.tarif-unter { margin: 0 0 10px; font-size: .8rem; color: var(--gruen); font-weight: 600; }
.tarif-rechnung b + b { margin-left: 0; }
.tarif-klein { margin: 8px 0 0; text-align: center; }
.tarif-hub { background: linear-gradient(180deg, var(--brand-hell) 0, var(--karte) 140px); }
.tarif-tipp { color: var(--brand-dunkel); background: var(--karte); border: 1px solid var(--brand); }
.knopf-zusatz { font-weight: 500; opacity: .8; margin-left: 6px; font-size: .78rem; }
.modul-dazu { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0 0 10px; border: 1px dashed var(--line-stark); border-radius: var(--r-klein); cursor: pointer; font-size: .86rem; }
.modul-dazu:has(input:checked) { border-style: solid; border-color: var(--brand); background: var(--brand-hell); }
.modul-dazu input { margin-top: 3px; accent-color: var(--brand); }
.modul-dazu span { display: flex; flex-direction: column; }
.modul-dazu small { color: var(--muted); }
/* Hub-Hinweis „Projekte + Bestand inklusive“: bleibt innerhalb der blauen Fläche, bricht bei Bedarf um (vorher breiter als der Hintergrund) */
.hub-inklusive { display: flex; flex-wrap: wrap; white-space: normal; width: fit-content; max-width: 100%; box-sizing: border-box; row-gap: 2px; line-height: 1.3; }
.hub-inklusive .i { flex: none; }

/* Zusatzmodule */
.modul-karte .karte-kopf { margin-bottom: 4px; width: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; }
.modul-karte .karte-kopf b { min-width: 0; line-height: 1.25; }
.modul-karte .karte-kopf .status { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.modul-symbol { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-klein); background: var(--brand-hell); color: var(--brand); }
.modul-symbol .i { width: 18px; height: 18px; }
.modul-preis { margin: 0; font: 700 1.25rem/1.2 InterDisplay, Inter, sans-serif; color: var(--ink); }
.modul-preis small { font: 500 .85rem Inter, sans-serif; color: var(--muted); }
.modul-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.modul-tags span { padding: 3px 9px; border-radius: var(--r-rund); background: var(--flaeche); color: var(--text); font-size: .74rem; font-weight: 600; }

/* Individuell: ruhiges Band, hervorgehoben ab 700 Einheiten oder bei schnellem Wachstum */
.individuell-band { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); }
.individuell-band h3 { margin: 0 0 4px; font-size: 1.05rem; }
.individuell-band p { margin: 0; font-size: .88rem; color: var(--text); }
.individuell-text { flex: 1; min-width: 0; }
.individuell-symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--brand-hell); color: var(--brand); }
.individuell-symbol .i { width: 22px; height: 22px; }
.individuell-punkte { display: none; }
.individuell-band.hervor { margin: 0 0 16px; padding: 22px 24px; border: 0; color: var(--auf-farbe); background: linear-gradient(120deg, #074866 0%, #0a5c80 55%, #1679a8 100%); box-shadow: 0 18px 40px -24px rgba(7,72,102,.75); align-items: flex-start; }
.individuell-band.hervor h3 { color: var(--auf-farbe); font-size: 1.3rem; }
.individuell-band.hervor p { color: rgba(255,255,255,.88); max-width: 620px; }
.individuell-band.hervor p b { color: var(--auf-farbe); }
.individuell-band.hervor .individuell-symbol { background: rgba(255,255,255,.14); color: var(--auf-farbe); }
.individuell-band.hervor .individuell-punkte { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .84rem; }
.individuell-band.hervor .individuell-punkte li::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.individuell-chip { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: var(--r-rund); background: var(--auf-farbe); color: #074866; font-size: .74rem; font-weight: 700; }
.btn-weiss { background: var(--auf-farbe); color: #074866; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); align-self: center; }
.btn-weiss:hover { background: var(--brand-hell); }
html[data-design="dunkel"] .individuell-band.hervor { background: linear-gradient(120deg, #0d4a66 0%, #17698f 60%, #1d7aa6 100%); box-shadow: none; }
@media (max-width: 640px) { .individuell-band { flex-direction: column; align-items: flex-start; } .btn-weiss { align-self: flex-start; } }

/* Gutschein: eigene Karte unter den Editionen */
.gutschein-karte { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.gutschein-symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--gruen-hell); color: var(--gruen); }
.gutschein-symbol .i { width: 20px; height: 20px; }
.gutschein-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.gutschein-eingabe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .gutschein-eingabe, .gutschein-eingabe input { width: 100% !important; } }

/* ---------- CSS 172 · „Ihr Paket“ hell statt Petrol-Fläche (Sven 08.11.2026: zu penetrant) ---------- */
.paket-held.paket-uebersicht, html[data-design="dunkel"] .paket-held.paket-uebersicht { color: var(--text); background: var(--karte); border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: none; }
.paket-symbol { background: var(--brand-hell); }
.paket-symbol .i { color: var(--brand); }
.paket-auge { color: var(--muted); }
.paket-held .paket-gross { color: var(--ink); }
.paket-preis { color: var(--muted); }
.paket-preis b { color: var(--ink); }
.paket-chip { background: var(--flaeche); color: var(--text); }
.paket-held .nutzung { background: var(--flaeche); border-color: var(--line); }
.paket-held .nutzung span { color: var(--muted); }
.paket-held .nutzung-zahl { color: var(--ink); }
.paket-held .nutzung-zahl small, .paket-held .nutzung-text { color: var(--muted); }
.paket-held .fortschritt { background: var(--line); }
.paket-held .fortschritt i { background: linear-gradient(90deg, var(--brand), var(--verlauf-ende)); }
/* Individuell hervorgehoben: gleiche ruhige Art, Petrol nur als Rand und Chip */
.individuell-band.hervor, html[data-design="dunkel"] .individuell-band.hervor { color: var(--text); background: var(--karte); border: 1px solid var(--brand); border-left: 4px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-hell); }
.individuell-band.hervor h3 { color: var(--ink); }
.individuell-band.hervor p { color: var(--text); }
.individuell-band.hervor p b { color: var(--ink); }
.individuell-band.hervor .individuell-symbol { background: var(--brand-hell); color: var(--brand); }
.individuell-chip { background: var(--brand-hell); color: var(--brand-dunkel); }
.individuell-band.hervor .btn-weiss { background: var(--brand); color: var(--auf-farbe); }
.individuell-band.hervor .btn-weiss:hover { background: var(--brand-dunkel); }

/* ---------- CSS 173 · Editionen: drei nebeneinander, Hub breit darunter mit orangenem Akzent (Sven 08.11.2026) ---------- */
.tarife.vier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-verbindung { grid-column: 1 / -1; position: relative; height: 44px; margin: -6px 0 -6px; }
.hub-verbindung svg { display: block; overflow: visible; }
.hub-verbindung line { stroke: var(--akzent); stroke-width: 1.5; }
.hub-verbindung circle { fill: var(--akzent); }
.hub-verbindung-text { position: absolute; left: calc(66.7% + 10px); top: 24px; font-size: .74rem; font-weight: 600; color: var(--akzent-dunkel); white-space: nowrap; }
.tarif.tarif-hub { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start;
  border: 1px solid var(--akzent); border-top: 4px solid var(--akzent); background: linear-gradient(180deg, var(--akzent-hell) 0, var(--karte) 160px); }
.tarif.tarif-hub.aktuell { box-shadow: 0 0 0 2px var(--akzent-hell), var(--schatten); }
.hub-links, .hub-rechts { display: flex; flex-direction: column; min-width: 0; }
.hub-rechts form { margin-top: 10px; }
.tarif-hub .tarif-tipp { color: var(--akzent-dunkel); border-color: var(--akzent); }
.tarif-hub .hub-inklusive { background: var(--akzent-hell); color: var(--ink); border: 1px solid var(--akzent); }
.tarif-hub .hub-inklusive .i { color: var(--akzent-dunkel); }
html[data-design="dunkel"] .tarif-hub .tarif-tipp, html[data-design="dunkel"] .hub-verbindung-text { color: var(--orange-text, #f0ad48); }
@media (max-width: 1000px) {
  .tarife.vier { grid-template-columns: 1fr; }
  .hub-verbindung { display: none; }
  .tarif.tarif-hub { grid-template-columns: 1fr; }
}
.tarife.vier .tarif:not(.tarif-hub) .knopf-zusatz { display: none; }
.tarif form + form { margin-top: 6px; }
.tarif .btn-voll { white-space: normal; }

/* Excel-Import Häuser und Einheiten (0011) */
.import-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.import-zahlen > div { background: var(--flaeche); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.import-zahlen b { font: 700 1.5rem/1.1 InterDisplay, Inter, sans-serif; color: var(--ink); }
.import-zahlen span { font-size: .82rem; color: var(--muted); }
.import-warnung { display: flex; gap: 8px; align-items: flex-start; background: var(--gelb-hell); color: var(--gelb); border-radius: var(--r-klein); padding: 10px 12px; }
.import-warnung .i { flex: none; width: 18px; height: 18px; }
.import-hinweise { margin: 8px 0 12px; }
.import-hinweise summary { cursor: pointer; font-size: .88rem; color: var(--text); }
.import-hinweise ul { margin: 8px 0 0; padding-left: 18px; color: var(--text); max-height: 280px; overflow: auto; }
@media (max-width: 640px) { .import-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.import-fuss { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* Zuständigkeit: Filter „Nur meine“ (0012) */
.meine-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-rund); border: 1px solid var(--line-stark); background: var(--karte); color: var(--text); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.meine-chip .i { width: 15px; height: 15px; }
.meine-chip:hover { border-color: var(--brand); color: var(--brand); }
.meine-chip[aria-pressed="true"] { background: var(--brand-hell); border-color: var(--brand); color: var(--brand); }
.zust-zeile { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.zust-zeile .i { width: 15px; height: 15px; }
.zust-name { color: var(--text); font-weight: 600; }
.ansicht-reiter .nav-meine { display: inline-flex; align-items: center; padding: 0 0 6px 8px; }
.ansicht-reiter .nav-meine .meine-chip { padding: 5px 11px; margin: 0; border: 1px solid var(--line-stark); color: var(--text); font-size: .85rem; }
.ansicht-reiter .nav-meine .meine-chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
@media (max-width: 480px) { .ansicht-reiter .nav-meine .meine-text { display: none; } .ansicht-reiter .nav-meine .meine-chip { padding: 6px 8px; } .ansicht-reiter a { padding: 8px 9px; } }

/* Ansicht „Einfach“: feste Automatik-Schalter statt lila Widget (0013) */

/* Schalter „Einfach | Alle Funktionen“ oben neben der Glocke (0013) */

/* Leere Bereiche schlicht: ein Satz und ein Knopf (Plan 2 Hilfe-Ebenen, 0013) */
/* Plan 08.11.2026: schlichte leere Teilbereiche auf der Startseite */
/* Firmen-Testphase und „Mehr für Firmen“ (08.11.2026) */
.paket-test { margin: 10px 0 0; max-width: 46ch; }
/* Projekte nach Bauherr (08.11.2026, Bauleiter und Architekten) */
.bauherr-titel { display: flex; align-items: center; gap: 8px; margin: 28px 0 -8px; font-size: 1rem; color: var(--ink); }
.bauherr-titel .i { color: var(--muted); }
/* Zugänge auf dem Handy (08.11.2026): Kopf untereinander, Zeile einspaltig. Steht nach der Desktop-Regel, damit sie gewinnt. */
@media (max-width: 760px) {
  .zg-kopf { flex-direction: column; gap: 10px; }
  .zg-zeile:not(.qr-zeile) { grid-template-columns: 1fr; gap: 8px; }
  .zg-aktionen { justify-content: flex-start; flex-wrap: wrap; }
}
/* Handwerker-Link auf schmalen Handys (08.11.2026): der Knopf darf umbrechen, sonst wird die Karte breiter als der Bildschirm. */
.nachreichen-knopf { width: max-content; max-width: 100%; margin: 0 auto; white-space: normal; text-align: center; }
.aufklapp, .aufklapp-inhalt, .datei-feld { min-width: 0; max-width: 100%; }
/* Wartezeit nach einem Gewerk (08.11.2026): schraffiert hinter dem Balken, nur Tokens */
.zp-puffer { position: absolute; top: 5px; bottom: 5px; border-radius: var(--r-klein); border: 1px dashed var(--line-stark); background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px); }
.puffer-feld .einheit { max-width: 200px; }
/* Kalender im Dunkelmodus (08.11.2026): Einträge auf Kartenfarbe statt Weiß mischen, sonst heller Text auf hellem Grund */
html[data-design="dunkel"] .kal-eintrag { background: color-mix(in srgb, var(--farbe) 22%, var(--karte)); }
html[data-design="dunkel"] .kal-eintrag:hover { background: color-mix(in srgb, var(--farbe) 32%, var(--karte)); }
html[data-design="dunkel"] .kal-eintrag.uebergabe { background: color-mix(in srgb, var(--farbe) 45%, var(--karte)); }
/* Geldgeber-Portfolio im Portal (Modul Kapital, 08.11.2026) */
.pf-summe { margin: -4px 0 10px; }
.pf-liste { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pf-karte { display: grid; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.pf-karte:hover { border-color: var(--line-stark); }
.pf-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pf-kopf > div { display: grid; gap: 2px; min-width: 0; }
.pf-kopf .status { flex-shrink: 0; }
.pf-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-klein); background: var(--flaeche); }
/* CSV-Schnittstelle (08.11.2026) */
.sn-spalten { margin: 10px 0 0; }
.sn-einlesen { margin-top: 12px; max-width: 460px; }
.sn-code { margin: 10px 0; padding: 12px 14px; border-radius: var(--r-klein); background: var(--flaeche); border: 1px solid var(--line); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.sn-spalte { white-space: nowrap; }
/* Fenster mit langem Titel (08.11.2026): Titel bricht um, Schließen-Knopf bleibt frei */
.fenster-kopf { gap: 12px; }
.fenster-kopf h2 { min-width: 0; }
.fenster-kopf > .knopf-icon { flex-shrink: 0; }

/* Rückmeldung zur App (08.11.2026): Gründe und Skala 0–10 stehen offen da, kein Aufklappen */
.rm-gruende { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; margin: 4px 0 12px; }
.rm-gruende .e-haken { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.rm-gruende .e-haken input { flex: none; margin-top: 3px; }
@media (max-width: 640px) { .rm-gruende { grid-template-columns: 1fr; } }
.rm-skala { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rm-zahl input { position: absolute; opacity: 0; pointer-events: none; }
.rm-zahl span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border: 1px solid var(--rand, #d5dde3); border-radius: var(--r-klein); cursor: pointer; font-weight: 600; }
.rm-zahl input:checked + span { background: var(--petrol, #0a5c80); border-color: var(--petrol, #0a5c80); color: var(--auf-farbe); }
.rm-zahl input:focus-visible + span { outline: 2px solid var(--akzent, #f2a516); outline-offset: 2px; }
.daumen-frage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }

/* Anmelden mit Google / Microsoft (Paket 0028) */
.sso-knoepfe { display: grid; gap: 10px; }
.fehler[hidden] { display: none !important; }
.sso-knopf { gap: 10px; }
.sso-logo { width: 18px; height: 18px; flex: none; }
.sso-hinweis { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }

/* Rentabilität je Haus (09.11.2026, _rentabilitaet.html) */
.rt-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.rt-kopf > div { max-width: 640px; }
.rt-zeit { display: inline-flex; background: var(--flaeche); border: 1px solid var(--line); border-radius: var(--r-klein); padding: 3px; gap: 2px; }
.rt-zeit a { padding: 6px 12px; border-radius: var(--r-klein); font-size: .85rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.rt-zeit a[aria-current] { background: var(--karte); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(14,26,43,.08); }
.rt-balken { display: flex; align-items: center; gap: 0; }
.rt-balken i { display: block; height: 10px; min-width: 0; }
.rt-balken i.t { background: var(--brand); border-radius: 5px 0 0 5px; }
.rt-balken i.n { background: var(--akzent); }
.rt-balken i.p { background: var(--line-stark); border-radius: 0 5px 5px 0; }
.rt-balken b { margin-left: 8px; white-space: nowrap; font-size: .9rem; }
.rt-minuten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; margin: 6px 0 10px; }
.rt-nachtrag { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
@media (min-width: 901px) { .rt-nachtrag .drei { grid-template-columns: 1fr 1fr 1.4fr; } }
.rt-tabelle td, .rt-tabelle th { padding-left: 10px; padding-right: 10px; }
.rt-tabelle .status { white-space: nowrap; }
.rt-posten td.rechts { white-space: nowrap; }
.rt-nachtrag, .rt-nachtrag select, .rt-nachtrag input { min-width: 0; max-width: 100%; } .an-zwei > section { min-width: 0; }

/* Rentabilität als Kennzahl oben im Haus (09.11.2026) */
.rt-haus-kopf { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); color: var(--text); text-decoration: none; font-size: .85rem; max-width: 100%; }
.rt-haus-kopf:hover { border-color: var(--line-stark); }
.rt-haus-kopf b { color: var(--ink); }
.rt-hk-teil { color: var(--muted); }
.rt-hk-teil::before { content: "·"; margin-right: 10px; color: var(--line-stark); }
.rt-ampel { width: 10px; height: 10px; border-radius: 50%; background: var(--line-stark); flex: none; }
.rt-ampel.gruen { background: #1f9d55; } .rt-ampel.gelb { background: var(--akzent); } .rt-ampel.rot { background: #d64545; }
/* ---------- Kalender (09.11.2026): Monat, Woche nach Personen, Liste, Abo ---------- */
.kal-konflikt-band { border-color: var(--rot); background: var(--rot-hell); margin-bottom: 14px; }
.kal-konflikt-band .i { color: var(--rot); }
.kal-neu-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 14px; padding: 14px 16px; }
.kal-neu-form .kal-voll { grid-column: 1 / -1; }
.kal-eintrag.konflikt { box-shadow: inset 0 0 0 1px var(--rot); }
.kal-fuss { margin-top: 10px; }
.kal-liste { list-style: none; margin: 0; padding: 0; }
.kal-liste .tag-kopf { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 14px 4px 6px; }
.kal-liste .tag-kopf.heute { color: var(--brand); }
.kal-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-klein); background: var(--karte); margin-bottom: 6px; }
.kal-zeile.konflikt { border-color: var(--rot); }
.kal-zeile.erledigt { opacity: .65; }
.kal-zeile-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; text-decoration: none; color: var(--ink); }
.kal-zeile-text small { flex-basis: 100%; }
.kal-wer { flex: none; margin: 0; }
.kal-wer select { max-width: 230px; font-size: .85rem; padding: 6px 8px; }
.kal-warn { color: var(--rot); font-weight: 600; }
.woche-kopf { margin: 4px 0 10px; }
.woche-huelle { padding: 0; overflow-x: auto; }
.woche-plan { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 860px; }
.woche-plan th, .woche-plan td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; }
.woche-plan thead th { font-size: .75rem; color: var(--muted); font-weight: 600; background: var(--flaeche); }
.woche-plan thead th:first-child, .woche-plan tbody th { width: 170px; }
.woche-plan thead th.heute { color: var(--brand); }
.woche-plan tbody th { font-size: .85rem; font-weight: 600; }
.woche-plan tbody th a { color: var(--ink); text-decoration: none; }
.woche-plan tbody th small { display: block; font-weight: 400; font-size: .72rem; }
.woche-plan .woche-gruppe th { background: var(--flaeche); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: auto; }
.woche-plan td { display: table-cell; height: 54px; }
.woche-plan td .kal-eintrag { margin-bottom: 3px; white-space: normal; }
.woche-plan td .kal-eintrag small { display: block; color: var(--muted); font-size: .66rem; }
.woche-plan td.we { background: var(--flaeche); }
.woche-plan td.heute { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.woche-plan td.konflikt { background: var(--rot-hell); }
.woche-plan td.frei { }
.kal-abo-neu { border: 2px solid var(--brand); }
.kal-daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.kal-daten dt { color: var(--muted); font-weight: 600; }
.kal-daten dd { margin: 0; overflow-wrap: anywhere; }
.kal-link { overflow-wrap: anywhere; }
.kal-abo-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kal-abo-form .haken { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
.portal-termine-band { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 16px; }
.portal-termine-band span { flex: 1; }
.kal-portal-abo { margin-top: 18px; }
.kal-umfeld li { margin: 4px 0; }
@media (max-width: 640px) {
  .kal-zeile { flex-direction: column; align-items: stretch; }
  .kal-wer select { max-width: none; width: 100%; }
}
.kal-umfeld-karte { margin-bottom: 16px; }
.kal-umfeld-karte .karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kal-wer-inline select { max-width: 260px; }
.kal-gewerk-wer { margin-top: 10px; }

/* Assistent und Automation im Kopfmenü (Sven 09.11.2026): farbige Symbole, roter Punkt, großes Fenster mit
   abgedunkelter Seite drumherum, kleines Vorschlagsfenster ohne Unschärfe. Die Widgets selbst holt hilfe.js hierher. */
.symbol-knopf.kh-knopf { padding: 0 4px; }
.kh-kreis { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kh-kreis .i { width: 17px; height: 17px; }
.kh-knopf .kh-kreis .i { width: 17px; height: 17px; }
.assi .kh-kreis { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.auto .kh-kreis { background: color-mix(in srgb, var(--lila, #7c4dcc) 13%, var(--karte, #fff)); color: var(--lila, #7c4dcc); }
.kh-knopf.assi[aria-expanded="true"] .kh-kreis { background: var(--akzent); color: var(--auf-farbe); }
.kh-knopf.auto[aria-expanded="true"] .kh-kreis { background: var(--lila, #7c4dcc); color: var(--auf-farbe); }
.kh-punkt { position: absolute; top: 4px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); border: 2px solid var(--page, #f6f8fb); }
.kh-trenner { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.ausklapp.kh-panel { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; z-index: 80; }
.kh-panel-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.kh-panel.assi .kh-panel-kopf { border-top: 3px solid var(--akzent); }
.kh-panel.auto .kh-panel-kopf { border-top: 3px solid var(--lila, #7c4dcc); }
.kh-panel-kopf .kh-kreis { width: 32px; height: 32px; }
.kh-panel-kopf b { display: block; color: var(--ink); font-size: .95rem; }
.kh-panel-kopf small { color: var(--muted); font-size: .8rem; }
.kh-panel-inhalt { padding: 8px 14px 14px; max-height: min(60vh, 560px); overflow: auto; }
.kh-leer { color: var(--muted); font-size: .88rem; margin: 8px 4px; }
.kh-fuss a, .kh-knoepfe .btn, .kh-nie { white-space: nowrap; }
.kh-fuss { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--flaeche); font-size: .84rem; }
.kh-fuss a:not(.btn), .kh-link { color: var(--brand); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.kh-fuss .btn { margin-left: auto; color: var(--auf-farbe); text-decoration: none; }
/* Widgets im Fenster: offen, ohne eigene Kopfzeile, Abzeichen und Zuklapp-Leiste */
.kh-panel .tour-karte.assi, .kh-panel .auto-karte { display: block; border: 0; background: none; box-shadow: none; padding: 0; margin: 0; }
.kh-panel .tour-karte > .tour-abzeichen, .kh-panel .assi-zu, .kh-panel .assi-kopf,
.kh-panel .auto-zu-zeile, .kh-panel .auto-abzeichen, .kh-panel .auto-zu, .kh-panel .auto-kopf, .kh-panel .auto-karte > .leise.klein:last-child { display: none !important; }
.kh-panel .assi-voll, .kh-panel .auto-inhalt { display: block !important; border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.kh-panel .auto-karte::after, .kh-panel .auto-karte::before { display: none; }
/* Großes Fenster: Seite drumherum abgedunkelt wie beim Guide (Sven 09.11.2026, statt unscharf). Der Schatten liegt am Fenster
   selbst, so bleibt nur das Fenster hell, auch über der Kopfleiste. Dark Mode etwas kräftiger, damit es gleich wirkt. */
.kh-panel:not([hidden]) { --kh-abdunkeln: rgba(14, 26, 43, .38); box-shadow: 0 0 0 9999px var(--kh-abdunkeln), 0 18px 40px -14px rgba(14, 26, 43, .35); animation: kh-ein .2s ease-out; }
html[data-design="dunkel"] .kh-panel:not([hidden]) { --kh-abdunkeln: rgba(0, 0, 0, .55); }
@media (prefers-color-scheme: dark) { html[data-design="system"] .kh-panel:not([hidden]) { --kh-abdunkeln: rgba(0, 0, 0, .55); } }
@keyframes kh-ein { from { opacity: 0; } to { opacity: 1; } }
/* Kleines Vorschlagsfenster */
.kh-vorschlag { position: absolute; top: calc(100% + 12px); right: -6px; width: 330px; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 40px -16px rgba(14, 26, 43, .35); padding: 14px 16px 12px; z-index: 61; text-align: left; animation: kh-rein .35s ease-out; }
.kh-vorschlag::before { content: ""; position: absolute; top: -7px; right: 20px; width: 12px; height: 12px; background: var(--karte); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.kh-vorschlag.auto { border-left: 4px solid var(--lila, #7c4dcc); }
.kh-vorschlag.assi { border-left: 4px solid var(--akzent); }
.kh-marke { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-rund); margin-bottom: 6px; }
.kh-vorschlag.auto .kh-marke { background: color-mix(in srgb, var(--lila, #7c4dcc) 13%, var(--karte, #fff)); color: var(--lila, #7c4dcc); }
.kh-vorschlag.assi .kh-marke { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.kh-marke .i { width: 12px; height: 12px; }
.kh-vorschlag b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 3px; padding-right: 22px; }
.kh-vorschlag p { margin: 0 0 10px; color: var(--text); font-size: .86rem; line-height: 1.4; }
.kh-knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kh-nie { margin-left: auto; font-size: .76rem; color: var(--muted); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.kh-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); border-radius: var(--r-klein); display: grid; place-items: center; cursor: pointer; }
.kh-x:hover { background: var(--flaeche); }
.kh-x .i { width: 15px; height: 15px; }
@keyframes kh-rein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .kh-trenner { display: none; }
  .kh-fuss { flex-wrap: wrap; }
  .kh-fuss .btn { margin-left: 0; }
  .menue-ausklapp.kh-box { position: static; }
  .ausklapp.kh-panel { left: 8px; right: 8px; width: auto; top: calc(100% + 6px); }
  .kh-vorschlag.unten { position: fixed; top: auto; bottom: 16px; left: 12px; right: 12px; width: auto; z-index: 90; }
  .kh-vorschlag.unten::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kh-vorschlag, .kh-panel { animation: none !important; } }

/* Kippschalter in der Seitenleiste (Dunkler Modus) */
.nav .schalter-zeile { white-space: nowrap; }
.kipp { margin-left: auto; flex: none; width: 32px; height: 18px; border-radius: var(--r-rund); background: var(--line-stark); position: relative; transition: background .15s; }
.kipp::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--auf-farbe); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.kipp.an, html[data-design="dunkel"] .kipp-design { background: var(--brand); }
.kipp.an::after, html[data-design="dunkel"] .kipp-design::after { left: 16px; }
@media (prefers-color-scheme: dark) { html[data-design="system"] .kipp-design { background: var(--brand); } html[data-design="system"] .kipp-design::after { left: 16px; } }
@media (prefers-reduced-motion: reduce) { .kipp, .kipp::after { transition: none; } }

a.symbol-knopf { text-decoration: none; }
.symbol-knopf[aria-current="page"] { background: var(--brand-hell); color: var(--brand); }

.bereich-schalter { display: inline-flex; border: 1px solid var(--line-stark); border-radius: var(--r-rund); padding: 2px; background: var(--karte); margin-right: 4px; }
.bereich-schalter a { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: var(--r-rund); text-decoration: none; white-space: nowrap; }
.bereich-schalter a[aria-current="page"] { background: var(--brand-hell); color: var(--brand); }
.bereich-schalter a:hover:not([aria-current]) { color: var(--ink); }
@media (max-width: 480px) { .bereich-schalter a { padding: 4px 8px; font-size: .74rem; } }
.ansicht-schalter.bereich-mobil { display: none; }
@media (max-width: 600px) { .topbar .bereich-schalter { display: none; } .ansicht-schalter.bereich-mobil { display: flex; } }
html[data-design="dunkel"] .kipp.an::after, html[data-design="dunkel"] .kipp-design::after { background: var(--ink); }
@media (prefers-color-scheme: dark) { html[data-design="system"] .kipp.an::after, html[data-design="system"] .kipp-design::after { background: var(--ink); } }

/* Kopfmenü-Fenster: keine doppelten Knöpfe (Tourguide und Links stehen im Fuß), keine Scrollleiste (Sven 09.11.2026) */
.kh-panel [data-assistent-starten], .kh-panel .auto-links { display: none; }
.kh-panel-inhalt { overflow-x: hidden; }
.kh-panel, .kh-panel * { scrollbar-width: none; }
.kh-panel ::-webkit-scrollbar { display: none; }
.kh-fuss .btn-assistent { margin-left: 0; color: var(--ink, #0e1a2b); }
html[data-design="dunkel"] .kh-fuss .btn-assistent { color: var(--auf-orange); }
/* Menü links ein- und ausklappbar (Sven 09.11.2026); Knopf setzt app.js */
.leiste .nav > li { position: relative; }
.leiste .nav > li:not(.auf):not(:has(> a.bereich-aktiv)):not(:has(.unter [aria-current="page"])) > .unter,
.leiste .nav > li.zu > .unter { display: none; }
.leiste .nav > li.klappbar > a { padding-right: 34px; }
.leiste .nav .nav-klapp { position: absolute; right: 4px; top: 5px; width: 28px; height: 28px; padding: 0; gap: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-klein); background: none; color: var(--muted); cursor: pointer; }
.leiste .nav .nav-klapp:hover { background: var(--flaeche); color: var(--ink); }
.leiste .nav .nav-klapp .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.leiste .nav > li.auf > .nav-klapp .i { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .leiste .nav .nav-klapp .i { transition: none; } }

/* „Neu“-Knopf mit kleinem Menü (Sven 09.11.2026) */
.neu-menue { display: inline-block; }
.neu-menue > .btn .chev { width: 14px; height: 14px; margin-left: -2px; }
.neu-ausklapp { width: 250px; }
.topbar-neu { margin-right: 6px; }
.topbar-neu > .btn { height: 34px; padding: 0 12px; }
@media (max-width: 700px) { .topbar-neu { margin-right: 2px; } .topbar-neu > .btn span { display: none; } .topbar-neu > .btn { padding: 0; width: 34px; justify-content: center; } .topbar-neu .ausklapp { position: fixed; left: 12px; right: 12px; top: 58px; width: auto; } }
@media (max-width: 430px) { .topbar-symbole > [data-dialog="dlg-feedback"] { display: none; } }

/* Listen-Kopf: Aktionen und „Neu“ rechts über der Liste (Sven 09.11.2026) */
.reiter-werkzeuge .btn, .liste-aktionen .btn { white-space: nowrap; }
.reiter-zeile.liste-kopf { margin: 14px 0 10px; border-bottom: 0; }
.reiter-zeile.liste-kopf .reiter-werkzeuge { padding-bottom: 0; margin-left: auto; }
.liste-aktionen { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.liste-aktionen:empty { display: none; }
.reiter-werkzeuge .neu-menue .ausklapp, .liste-aktionen .neu-menue .ausklapp, .reiter-aktion .neu-menue .ausklapp { right: 0; left: auto; }
@media (max-width: 760px) { .reiter-zeile { flex-wrap: wrap; } .reiter-zeile .reiter-werkzeuge { flex-wrap: wrap; } }

/* Hinweis-Bänder: immer etwas Abstand oben und unten, rechts ein Kreuz zum Wegklicken (Sven 09.11.2026; Kreuz setzt app.js) */
.haupt .info-band, .haupt .hinweis-band, .haupt .fehler, .haupt .hub-hinweis, .haupt .hinweis-ok, .haupt .erledigt-band { margin-top: 14px; margin-bottom: 14px; }
.haupt .fehler, .haupt .hinweis-ok { display: flex; gap: 10px; align-items: flex-start; }
.tour-info { display: flex; align-items: center; gap: 10px; }
.tour-info .band-zu { color: var(--auf-farbe); margin: -4px -8px -4px 0; }
.band-zu { margin-left: auto; flex: none; width: 26px; height: 26px; margin-top: -3px; margin-right: -6px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-klein); background: none; color: var(--muted); cursor: pointer; }
.band-zu:hover { background: rgba(14, 26, 43, .07); color: var(--ink); }
.band-zu .i { width: 16px; height: 16px; margin: 0; color: inherit; }
.hinweis-band .band-zu { color: inherit; }

/* QR-Codes: Bereich-Auswahl wie im Kalender (Sven 09.11.2026) */
.qr-bereich-wahl { display: inline-flex; align-items: center; margin: 0; }
.qr-bereich-titel { font-size: 1.05rem; margin: 22px 0 8px; }
.fehler .band-zu, .erledigt-band .band-zu { color: inherit; }

/* Abstand unter den Kennzahlen, auch wenn direkt ein Kasten folgt (Sven 09.11.2026) */
.db-kz { margin-bottom: 16px; }

/* Neues als ruhiger roter Punkt ohne Zahl (Sven 09.11.2026, statt der harten roten Zahl). Die Anzahl steht weiter im Tooltip
   (title) bzw. bleibt für Screenreader im Text; sichtbar ist nur der Punkt, wie bei Glühbirne und Blitz. */
.nav .nav-neu, .nav .unter .nav-neu, .nav li.nav-auto .auto-nav-zahl { flex: none; margin-left: auto; width: 8px; min-width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--rot); color: transparent; font-size: 0; line-height: 0; overflow: hidden; box-shadow: none; }
.nav-neu[data-ziel] { position: relative; }
.nav-neu[data-ziel]::after { content: ""; position: absolute; inset: -8px; } /* größere Klickfläche */
.nav-neu[data-ziel]:hover { filter: none; box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }
.zaehler { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 4px; right: 3px; font-size: 0; color: transparent; background: var(--rot); border: 2px solid var(--page, #f6f8fb); }
.auto-zahl { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -2px; left: -2px; font-size: 0; color: transparent; background: var(--rot); }
html[data-design="dunkel"] .zaehler, html[data-design="dunkel"] .auto-zahl, html[data-design="dunkel"] .nav li.nav-auto .auto-nav-zahl, html[data-design="dunkel"] .nav .nav-neu { background: #ff6369; }

/* Mini-Ticketsystem (09.11.2026): Verlauf je Meldung/Nachricht und Antwortfeld mit Vorlagen */
.anliegen-verlauf { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.anliegen-verlauf .av { border: 1px solid var(--line); border-radius: var(--r-klein); padding: 8px 12px; background: var(--flaeche); max-width: 92%; }
.anliegen-verlauf .av.verwaltung { margin-left: auto; background: var(--brand-hell); border-color: transparent; }
.anliegen-verlauf .av.intern { margin-left: auto; background: #fff8e6; border: 1px dashed #e0b44a; }
.anliegen-verlauf .av-kopf { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.anliegen-verlauf .av-kopf b { font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.anliegen-verlauf .av-kopf small { color: var(--muted); font-size: .78rem; }
.anliegen-verlauf .av p { margin: 4px 0 0; white-space: pre-line; font-size: .9rem; overflow-wrap: anywhere; }
.antwort-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.antwort-kopf .klein-select { max-width: 220px; }
.anliegen-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.status.neu-nachricht { background: var(--brand); color: var(--auf-farbe); }
.anliegen-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.anliegen-filter select { width: auto; }
.anliegen-letzte { margin: 4px 0 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meldung-stand-verlauf .av.verwaltung { margin-left: 0; margin-right: auto; }
.meldung-stand-verlauf .av.melder { margin-left: auto; background: var(--brand-hell); border-color: transparent; }
dialog.fenster.fenster-anliegen { width: min(640px, calc(100vw - 24px)); }
.ansicht-reiter .zahl { font-size: .72rem; background: var(--flaeche); color: var(--muted); padding: 1px 7px; border-radius: var(--r-rund); margin-left: 6px; }
.ansicht-reiter .zahl.rot-neu { background: var(--rot, #c92a2a); color: var(--auf-farbe); font-weight: 700; }

/* UI-Check M1 (09.11.2026): Wahl Interne Notiz / Antwort an Melder */
.art-wahl { display: inline-flex; gap: 2px; padding: 3px; margin: 4px 0 2px; border-radius: var(--r-rund); background: var(--flaeche); }
.art-wahl label { cursor: pointer; }
.art-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.art-wahl span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-rund); font-size: .88rem; font-weight: 600; color: var(--muted); }
.art-wahl span .i { width: 15px; height: 15px; }
.art-wahl input:checked + span { background: var(--karte); color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,43,.1); }
.art-wahl input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.knopf-gruppe { display: contents; }
.knopf-gruppe[hidden], [data-nur][hidden] { display: none !important; }

/* UI-Check M14 (09.11.2026): Objektzeile passt sich der Breite des Kastens an, Fahrplan scrollt statt „E…“ */
@media (max-width: 1280px) { .ob-karte { grid-template-columns: minmax(0, 1fr); } .ob-rechts { border-left: 0; border-top: 1px solid var(--line); } }
.ob-links .or-fahrplan { overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ob-links .or-schritt { flex: 1 0 72px; }
.marke { white-space: nowrap; }
.titel-status { font-size: .8rem; vertical-align: middle; margin-left: 6px; }

/* UI-Check M15/M12 (09.11.2026): Reiter scrollen waagerecht mit sanftem Auslauf rechts; „Neu“ hat eine eigene Spalte in Reiterhöhe */
.reiter-zeile .ansicht-reiter { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.reiter, .reiter-zeile .ansicht-reiter { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.reiter > a, .ansicht-reiter > a { white-space: nowrap; flex: none; }
.reiter-aktion .btn, .reiter-werkzeuge > .btn, .reiter-werkzeuge .neu-menue > .btn, .reiter-aktion .neu-menue > .btn { padding: 7px 14px; font-size: .88rem; }

/* UI-Check M23–M33 (09.11.2026): Komfort. Weiche Flächen, gleiche Radien, Farben nur über Variablen. */
/* Bestätigung (Toast) mit Rückgängig */
.toast-ort { position: fixed; top: 72px; right: 20px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--karte); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(14,26,43,.35); font-size: .92rem; animation: toast-ein .2s ease; transition: opacity .3s, transform .3s; }
.toast > .i { color: var(--gruen); flex: none; }
.toast a { white-space: nowrap; }
.toast.weg { opacity: 0; transform: translateY(-6px); }
.toast-aktion { border: 0; background: var(--brand-hell); color: var(--brand); font: 600 .86rem Inter, sans-serif; padding: 6px 12px; border-radius: var(--r-rund); cursor: pointer; }
.toast-aktion:hover { background: var(--flaeche); }
.toast-x { margin-left: auto; border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: var(--r-klein); display: grid; place-items: center; cursor: pointer; }
.toast-x:hover { background: var(--flaeche); }
.toast-x .i { width: 15px; height: 15px; }
@keyframes toast-ein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }
@media (max-width: 860px) { .toast-ort { top: 62px; right: 12px; left: 12px; max-width: none; } }

/* Suche über alles */
dialog.suche-fenster { width: min(640px, calc(100vw - 24px)); margin-top: 10vh; padding: 0; overflow: hidden; }
.suche-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.suche-kopf .i { color: var(--muted); }
.suche-kopf input { flex: 1; border: 0; outline: none; font: 500 1.05rem Inter, sans-serif; background: none; color: var(--ink); min-width: 0; }
.suche-ergebnis { max-height: min(60vh, 520px); overflow: auto; padding: 8px; }
.suche-gruppe-titel { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 10px 4px; font-weight: 600; }
.suche-treffer { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--r-klein); text-decoration: none; color: var(--ink); }
.suche-treffer small { color: var(--muted); font-size: .82rem; }
.suche-treffer:hover, .suche-treffer.aktiv { background: var(--brand-hell); }
.suche-leer { color: var(--muted); margin: 14px 12px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--line-stark); border-bottom-width: 2px; border-radius: var(--r-klein); font: 600 .76rem Inter, sans-serif; color: var(--muted); background: var(--flaeche); text-align: center; }
.kuerzel-liste { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 0; align-items: center; }
.kuerzel-liste dd { margin: 0; }

/* Massenaktionen */
.sammel-haken { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; cursor: pointer; position: relative; }
.sammel-haken input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sammel-haken span { width: 18px; height: 18px; border-radius: var(--r-klein); border: 1.5px solid var(--line-stark); background: var(--karte); transition: background .15s, border-color .15s; }
.sammel-haken input:checked + span { background: var(--petrol); border-color: var(--petrol); box-shadow: inset 0 0 0 3px var(--karte); }
.sammel-haken input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.sammel-zelle { width: 34px; padding-right: 0 !important; }
li.mit-haken { position: relative; }
li.mit-haken > .sammel-haken { position: absolute; left: -30px; top: 14px; opacity: .35; transition: opacity .15s; }
li.mit-haken:hover > .sammel-haken, li.mit-haken > .sammel-haken:has(input:checked), body.mit-sammel li.mit-haken > .sammel-haken { opacity: 1; }
.sammel-leiste { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; background: var(--karte); border: 1px solid var(--line);
  border-radius: var(--r-rund); box-shadow: 0 16px 40px -16px rgba(14,26,43,.4); padding: 8px 10px 8px 18px; max-width: calc(100vw - 24px); }
.sammel-leiste form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sammel-zahl { font-weight: 600; color: var(--ink); margin-right: 6px; font-size: .9rem; }
@media (max-width: 860px) { li.mit-haken > .sammel-haken { position: static; opacity: 1; margin-right: 8px; } .sammel-leiste { bottom: 12px; left: 12px; right: 12px; transform: none; max-width: none; border-radius: var(--r); padding: 10px 12px; } }

/* Entwurf, Link kopieren, Datum-Schnellwahl */
.entwurf-hinweis { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.datum-schnell { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.datum-schnell button { border: 1px solid var(--line); background: var(--karte); color: var(--text); border-radius: var(--r-rund); padding: 3px 10px; font: 500 .8rem Inter, sans-serif; cursor: pointer; }
.datum-schnell button:hover { background: var(--flaeche); }
.stand-link { margin: 4px 0 12px; }
.stand-link input { font-size: .84rem; color: var(--muted); }

/* UI-Check M12 (09.11.2026): alle Auswahlfelder im App-Stil (heller und dunkler Modus), Pfeil aus Variablen statt Browser-Grau */
select:not([multiple]) { -webkit-appearance: none; appearance: none; background-color: var(--karte); color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select:not([multiple]) option { background: var(--karte); color: var(--ink); }
.sl-feld select { padding-right: 30px; }
/* Kopfleiste kompakt wie vor dem UI-Check (Sven 09.11.2026), trotz zusätzlicher Lupe */
.topbar-symbole .symbol-knopf { min-width: 34px; height: 36px; padding: 0 7px; }
.topbar-symbole .symbol-knopf.paket { padding: 0 10px; }
.kh-trenner { margin: 0 2px; }

/* Verlauf eingeklappt in der Übersicht (Sven 09.11.2026): neueste Zeile sichtbar, roter Punkt bei Neuem */
.verlauf-kurz { margin: 6px 0 2px; border-radius: var(--r-klein); background: var(--flaeche); }
.verlauf-kurz > summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; list-style: none; font-size: .85rem; min-width: 0; }
.verlauf-kurz > summary::-webkit-details-marker { display: none; }
.verlauf-kurz .vk-zahl { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; flex: none; }
.verlauf-kurz .vk-zahl .i, .verlauf-kurz .vk-text .i { width: 14px; height: 14px; }
.verlauf-kurz .vk-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.verlauf-kurz .vk-text b { font-weight: 600; color: var(--ink); }
.verlauf-kurz > summary small { flex: none; }
.verlauf-kurz .chev { width: 14px; height: 14px; color: var(--muted); flex: none; transition: transform .15s; }
.verlauf-kurz[open] .chev { transform: rotate(180deg); }
.verlauf-kurz .vk-neu { width: 8px; height: 8px; border-radius: 50%; background: var(--rot-fuell); flex: none; }
.verlauf-kurz.hat-neu { background: var(--rot-hell); }
.verlauf-kurz .anliegen-verlauf { margin: 0; padding: 4px 10px 10px; }

/* Trichter sichtbarer (Sven 09.11.2026: „geht etwas unter“): kleiner weißer Knopf mit Wort „Filter“ in Höhe der Reiter */
.trichter > summary { width: auto; height: 32px; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; opacity: 1;
  color: var(--text); background: var(--karte); border: 1px solid var(--line-stark); border-radius: var(--r-rund); font: 600 .86rem Inter, sans-serif; }
.trichter > summary::after { content: "Filter"; }
.trichter > summary:hover, .trichter[open] > summary { background: var(--flaeche); opacity: 1; }
.trichter > summary.an { color: var(--brand); background: var(--brand-hell); border-color: var(--brand-hell); }
.trichter > summary.an::after { content: "Filter an"; }
.trichter > summary .i { width: 15px; height: 15px; }
/* in den kleinen Listen-Köpfen der Startseite nur das Symbol, aber mit Rahmen */
.db-titel .trichter > summary, .kal-nav .trichter > summary, .fluss-kopf .trichter > summary { width: 30px; height: 30px; padding: 0; justify-content: center; opacity: 1; }
.db-titel .trichter > summary::after, .kal-nav .trichter > summary::after, .fluss-kopf .trichter > summary::after { content: none; }
.sl-werkzeuge .kz-wechsel > summary { opacity: 1; border: 1px solid var(--line); }

/* Einheitlich (Sven 09.11.2026): jeder Kasten mit farbigem Rand links bekommt den leichten Verlauf in seiner Farbe,
   wie Objektübersicht und Aufträge. Farbe kommt aus --rand-farbe. */
.meldungen-liste li.notfall { --rand-farbe: var(--rot); }
.meldungen-liste li.dringend { --rand-farbe: var(--gelb-fuell); }
.bitte-karte:not(.start-hinweis .bitte-karte), .tour-karte, .kh-vorschlag.assi { --rand-farbe: var(--akzent); }
.kh-vorschlag.auto { --rand-farbe: var(--lila); }
.zl-eintraege a { --rand-farbe: var(--objektfarbe, var(--brand)); }
.paket-held.paket-uebersicht, .individuell-band.hervor { --rand-farbe: var(--brand); }
.meldungen-liste li.notfall, .meldungen-liste li.dringend, .bitte-karte:not(.start-hinweis .bitte-karte), .tour-karte, .kh-vorschlag.assi, .kh-vorschlag.auto,
.zl-eintraege a, .paket-held.paket-uebersicht, .individuell-band.hervor {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rand-farbe) 5%, var(--karte)) 0, var(--karte) 240px); }

/* Instandhaltungsplan (Bestand Pro, 09.11.2026): 10 Jahre als Säulen */
.ih-balken { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; margin: 8px 0 10px; }
.ih-jahr { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ih-saeule { display: block; width: 70%; min-height: 2px; background: var(--petrol); border-radius: 6px 6px 2px 2px; }
.ih-wert { font-size: .72rem; color: var(--leise, #5b6573); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ih-label { font-size: .78rem; margin-top: 4px; }
@media (max-width: 560px) { .ih-balken { gap: 3px; } .ih-wert { display: none; } }

/* Nicht gebuchter Zusatz als Demo (Sven 09.11.2026): Band oben, Beispielinhalt abgeblendet und nicht bedienbar */
.zusatz-demo-band { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; margin: 0 0 16px;
  border-radius: var(--r-klein); background: var(--flaeche); border: 1px solid var(--line); border-left: 4px solid var(--petrol); }
.zusatz-demo-band > span:nth-child(2) { flex: 1 1 260px; }
.zusatz-demo-inhalt { opacity: .55; filter: saturate(.6); pointer-events: none; user-select: none; }

/* Import-Dialoge (Sven 09.11.2026: kein grauer Fließtext mit Links, sondern Schritte, Knöpfe, Spalten als Marken) */
.import-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.import-schritte li { display: flex; gap: 12px; align-items: flex-start; }
.import-schritte b { display: block; color: var(--text); font-weight: 600; }
.import-nr { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: var(--auf-farbe); font-size: .8rem; font-weight: 700; }
.import-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.import-sicher { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--text); font-size: .86rem; }
.import-sicher .i { color: var(--gruen); flex: 0 0 auto; }

/* Erklär-i und Symbol-Zeile (Sven 09.11.2026): keine grauen Erklärsätze; Erklärung hinter dem i, Wichtiges als kurze Zeile */
.info-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.info-i { border: 0; background: none; padding: 2px; margin-left: 2px; color: var(--muted); cursor: pointer; line-height: 0; border-radius: 50%; }
.info-i .i { width: 16px; height: 16px; }
.info-i:hover, .info-i[aria-expanded="true"] { color: var(--petrol); }
.info-blase { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 40; width: max-content;
  max-width: min(300px, 80vw); padding: 10px 12px; background: var(--karte); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-klein); box-shadow: var(--schatten); font-size: .84rem; font-weight: 400; line-height: 1.45; text-align: left;
  text-transform: none; letter-spacing: normal; white-space: normal; }
.symbol-zeile { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; color: var(--text); font-size: .86rem; }
.symbol-zeile > .i { color: var(--muted); flex: 0 0 auto; }
.symbol-zeile.ok > .i { color: var(--gruen); }
.symbol-zeile.warn > .i { color: var(--gelb-fuell); }
.zeile-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.glocke-knoepfe { display: inline-flex; gap: 4px; }
/* Sven 09.11.2026 18:29: Verweise unter Hinweiszeilen als blauer Link, nicht als Knopf */
.zeile-knoepfe { gap: 16px; margin: 6px 0 12px; }
a.zeile-link { display: inline-flex; align-items: center; gap: 6px; color: var(--petrol); font-weight: 600; font-size: .88rem; text-decoration: none; }
a.zeile-link:hover { text-decoration: underline; }
a.zeile-link .i { width: 16px; height: 16px; }
.nav li.nav-auto .auto-i { color: var(--lila, #7c4dcc); }
html[data-design="dunkel"] .nav li.nav-auto .auto-i { color: var(--lila-rand); }
/* Sven 09.11.2026 18:41: keine Chat-Blase unten rechts mehr; Hilfe über ?, Feedback über das Symbol oben */
.hilfe-knopf { display: none !important; }
/* Sven 09.11.2026 19:43: Status „Im Test enthalten“ lag über dem Modulnamen. Kopf darf umbrechen, Name braucht Platz. */
.modul-karte .karte-kopf { flex-wrap: wrap; row-gap: 6px; }
.modul-karte .karte-kopf b { flex: 1 1 7em; overflow-wrap: anywhere; }
.modul-karte .karte-kopf .status { margin-left: 0; }
/* Modul-Preise: nur Monat oder nur Jahr, je nach Schalter der Editionen (ohne Schalter: Monat) */
.module-zeilen .nur-jahr { display: none; }
body:has(#iv-jahr:checked) .module-zeilen .nur-jahr { display: inline; }
body:has(#iv-jahr:checked) .module-zeilen .nur-monat { display: none; }

/* Klickwege (Sven 09.11.2026): Knöpfe je nach Weg im Auftrag-Dialog, Tabelle „Alle bearbeiten“ */
.weg-knoepfe { display: flex; gap: 10px; align-items: center; }
.weg-knoepfe[hidden] { display: none; }
.einheiten-alle .tabelle input, .einheiten-alle .tabelle select { width: 100%; }

/* Gesamttest 10.11.2026: Funde aus Klick-Roboter und Layout-Check */
/* Reiter + Aktionsknöpfe: passen beide nicht in eine Zeile, stehen die Knöpfe rechts über den Reitern statt darüber zu liegen */
.reiter-mit-aktion { flex-wrap: wrap-reverse; align-items: flex-start; column-gap: 12px; row-gap: 0; }
.reiter-mit-aktion .reiter { flex: 1 0 auto; max-width: 100%; }
.reiter-mit-aktion .reiter-aktion { margin-left: auto; }
/* Handy: Filter-Reiter bekommen eine eigene Zeile, Suche/Filter/Excel darunter */
@media (max-width: 760px) {
  .reiter-zeile .ansicht-reiter { flex: 1 0 100%; }
  .reiter-zeile .reiter-werkzeuge { margin-left: auto; padding-top: 6px; }
}
/* Interne Notiz: im Dunkelmodus dunkler Gelbton statt Hellgelb (vorher weiße Schrift auf #fff8e6, 1,1:1) */
html[data-design="dunkel"] .anliegen-verlauf .av.intern { background: rgba(242,165,22,.12); border-color: rgba(242,165,22,.55); }
@media (prefers-color-scheme: dark) { html[data-design="system"] .anliegen-verlauf .av.intern { background: rgba(242,165,22,.12); border-color: rgba(242,165,22,.55); } }
/* Orange als Schrift auf hellem Grund: dunkle Abstufung (vorher 2,4:1) */
.hub-verbindung-text, .tarif-hub .tarif-tipp, .tour-marke { color: var(--orange-text); }
/* Textlinks in Zeilen: im Dunkelmodus helles Petrol statt Flächen-Petrol (vorher 2,6:1) */
html[data-design="dunkel"] a.zeile-link { color: var(--brand); }
/* Tage außerhalb des Monats: blass, aber lesbar (vorher 1,3:1) */
.kal-tag.fremd .kal-zahl { color: #78818d; }
html[data-design="dunkel"] .kal-tag.fremd .kal-zahl { color: #9a9aa2; }
/* Unterschriftfeld bleibt weiß: „Neu“ dort in dunklem Petrol */
html[data-design="dunkel"] .unterschrift .link-knopf { color: #0a5c80; }
/* Filter-Knopf in der Suchzeile (Unternehmen, Kontakte): lag absolut oben rechts unter der Kopfleiste und war nicht klickbar (Klick-Roboter 10.11.2026) */
.filter-zeile .trichter { position: relative; top: auto; right: auto; }

/* ---------- Dunkelmodus nach YouTube-Vorbild (Sven 10.11.2026 23:58) ----------
   Fast schwarzer Grund #0f0f0f, Flächen in abgestuftem Grau (#212121, #272727), Schrift #f1f1f1 und #aaaaaa,
   wenig Farbe. Gilt für dunkel und für System-dunkel und steht bewusst am Ende, damit es die älteren Dunkel-Blöcke ablöst. */
html[data-design="dunkel"] {
  --page: #0f0f0f; --karte: #212121; --flaeche: #272727; --held: #212121;
  --ink: #f1f1f1; --text: #f1f1f1; --muted: #aaaaaa; --leise: #aaaaaa; --line: rgba(255, 255, 255, .1); --linie: rgba(255, 255, 255, .1); --line-stark: rgba(255, 255, 255, .2);
  --schatten: none;
}
@media (prefers-color-scheme: dark) {
  html[data-design="system"] {
  --page: #0f0f0f; --karte: #212121; --flaeche: #272727; --held: #212121;
  --ink: #f1f1f1; --text: #f1f1f1; --muted: #aaaaaa; --leise: #aaaaaa; --line: rgba(255, 255, 255, .1); --linie: rgba(255, 255, 255, .1); --line-stark: rgba(255, 255, 255, .2);
  --schatten: none;
  }
}
html[data-design="dunkel"] .leiste { background: var(--page); border-right-color: rgba(255, 255, 255, .08); }
html[data-design="dunkel"] .nav a[aria-current="page"], html[data-design="dunkel"] .einst-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--ink); font-weight: 600; }
html[data-design="dunkel"] .nav a[aria-current="page"] .i, html[data-design="dunkel"] .einst-nav a[aria-current="page"] .i { color: var(--ink); }
html[data-design="dunkel"] input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), html[data-design="dunkel"] select, html[data-design="dunkel"] textarea { background: #121212; border-color: #303030; }
html[data-design="dunkel"] input:focus, html[data-design="dunkel"] select:focus, html[data-design="dunkel"] textarea:focus { border-color: var(--brand); box-shadow: none; }
html[data-design="dunkel"] .tabelle th { color: var(--muted); }
@media (prefers-color-scheme: dark) {
html[data-design="system"] .leiste { background: var(--page); border-right-color: rgba(255, 255, 255, .08); }
html[data-design="system"] .nav a[aria-current="page"], html[data-design="system"] .einst-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--ink); font-weight: 600; }
html[data-design="system"] .nav a[aria-current="page"] .i, html[data-design="system"] .einst-nav a[aria-current="page"] .i { color: var(--ink); }
html[data-design="system"] input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), html[data-design="system"] select, html[data-design="system"] textarea { background: #121212; border-color: #303030; }
html[data-design="system"] input:focus, html[data-design="system"] select:focus, html[data-design="system"] textarea:focus { border-color: var(--brand); box-shadow: none; }
html[data-design="system"] .tabelle th { color: var(--muted); }
}

/* Ruhigeres Bild und luftigere Tarifseite (Sven 11.11.2026) */
.db-held::after { content: none; }
.topbar .kh-knopf .kh-kreis { background: none; color: var(--text); }
.topbar .kh-knopf:hover .kh-kreis { color: var(--ink); }
@media (hover: hover) {
  .leiste .nav .nav-klapp { opacity: 0; transition: opacity .15s; }
  .leiste:hover .nav .nav-klapp, .leiste .nav .nav-klapp:focus-visible, .leiste .nav > li.auf > .nav-klapp { opacity: 1; }
  .kz-wechsel > summary, .sl-werkzeuge .kz-wechsel > summary { opacity: 0; }
  .kz:hover .kz-wechsel > summary, .sl:hover .sl-werkzeuge .kz-wechsel > summary, .kz-wechsel[open] > summary, .kz-wechsel > summary:focus-visible, .sl-werkzeuge .kz-wechsel > summary.an { opacity: 1; }
}
.tarif-neben { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.tarif-paket { margin: 0 0 12px; font-size: .9rem; color: var(--text); }
.tarif .kauf-form { display: grid; gap: 14px; margin-top: 16px; }
.tarif .kauf-form .feld { margin: 0; }
.tarif form + form, .tarif .kauf-form + form { margin-top: 12px; }
.tarif .pakete-tabelle { margin-top: 14px; }
.tarif .pakete-tabelle caption { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 0 4px; }
.tarif .pakete-tabelle td { white-space: nowrap; padding-top: 9px; padding-bottom: 9px; }
.tarif .tarif-klein { text-align: left; }
@media (min-width: 901px) {
  .tarife:not(.vier) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
  .tarife:not(.vier) .tarif-pro { padding: 24px 26px; }
  .tarife:not(.vier) .tarif-individuell { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
  .tarife:not(.vier) .tarif-individuell .tarif-preis { margin: 0; font-size: 1.1rem; }
  .tarife:not(.vier) .tarif-individuell .haken-liste { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; flex: 1 1 320px; }
  .tarife:not(.vier) .tarif-individuell .btn-voll { width: auto; margin-left: auto; }
  .tarife:not(.vier) .tarif-individuell .tarif-rechnung { flex: 1 1 100%; margin: 0; }
}

/* Fünf Punkte für mehr Ruhe (Sven 11.11.2026): Mehr-Menü, ruhiger Hinweispunkt, keine Farbkanten, neutrale Kennzahl-Symbole */
.leiste .nav.mehr-zu > li[data-selten] { display: none; }
.nav-mehr-knopf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-klein); color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.nav-mehr-knopf:hover { background: var(--flaeche); color: var(--ink); }
.nav-mehr-knopf .i { width: 20px; height: 20px; fill: currentColor; stroke: none; flex: none; }
.nav-mehr-punkt { display: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); }
.leiste .nav.mehr-zu:has(> li[data-selten] .nav-neu, > li[data-selten] .auto-nav-zahl) .nav-mehr-punkt { display: block; }
.kh-punkt { top: 6px; right: 5px; width: 7px; height: 7px; border: 0; background: var(--akzent); }
.db-objekt.mit-farbe { border-top: 1px solid var(--line); }
.db-kz .db-icon, .db-kz .db-icon.warm, .db-kz .db-icon.gruen { background: var(--flaeche); color: var(--muted); }
.kh-knopf.auto .kh-punkt { background: var(--rot); }

/* Schönheitsfunde aus dem Gesamtcheck 11.11.2026 */
.kal-tag.fremd .kal-zahl { color: #646d79; }
.ansicht-schalter a { opacity: 1; }
.einst-leiste { background: var(--page); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 8px; }
.or-fahrplan { height: 38px; }
.or-schritt > span { white-space: normal; line-height: 1.15; text-align: center; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* KI-Zustimmung: rechts die Wortmarke statt des CI-Zeichens (Sven 11.11.2026: CI-Zeichen nur als Favicon) */
.oauth-logos .kreis-wort { width: auto; padding: 0 16px; background: var(--page); border: 1px solid var(--line); }
.oauth-logos .kreis-wort svg.logo-wort { height: 22px; width: auto; }
/* Masterplan M1 (11.11.2026): lesbare, ruhige Zeile am Fuß der QR-Druckseite, nur ohne Eigene Marke */
.qr-aushang-zeile { margin: 28px 0 0; font-size: .8rem; color: #6b7682; }

/* Masterplan Kundengewinnung 11.11.2026 (P4, P7, P8, P11): Karten der Startseite, Umschalter Zahlweise, Hinweis Individuell */
.start-karte-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.start-karte-kopf h2 { margin: 0 0 6px; }
.start-karte-kopf form { margin: -4px 0 0 0; }
.start-schritte-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.start-schritte-liste li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.start-schritt-haken { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.start-schritte-liste li.fertig .start-schritt-haken { border-color: var(--gruen); background: var(--gruen-hell); color: var(--gruen); }
.start-schritt-haken .i { width: 12px; height: 12px; }
.start-schritt-text { flex: 1 1 220px; }
.start-schritte-liste li.fertig .start-schritt-text b { font-weight: 500; color: var(--muted); }
.start-empfehlung .link-feld { max-width: 520px; margin: 8px 0; }
.start-empfehlung .bitte-knoepfe { margin-bottom: 8px; }
.iv-wechsel label { color: var(--brand); text-decoration: underline; cursor: pointer; }
.individuell-hinweis { margin: 14px 0 0; }

/* Cordimo bewerten (bewertung_anfrage.py, 11.11.2026): eine ruhige Zeile auf der Startseite und das Fenster mit drei
   Reglern 1 bis 5. Die Regler sind Radio-Knöpfe (Pfeiltasten, Tab) und am Handy groß genug zum Tippen. */
.bw-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.bw-zeile p { margin: 0; }
.bw-regler .rm-skala { gap: 8px; margin: 4px 0 6px; }
.bw-regler .rm-zahl span { min-width: 44px; height: 44px; }
.fenster-fuss.bw-fuss { flex-direction: row-reverse; justify-content: flex-start; }
.btn.kopiert::after { content: " ✓"; }

/* Nachcheck 11.11.2026: Ein langer Objektname im Auswahlfeld schiebt sich nicht mehr über das Nachbarfeld */
.zwei > .feld, .drei > .feld { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.zwei > .feld > * { max-width: 100%; }
