/*
 * Stilblatt der Anwendung — Bausteine des freigegebenen Klick-Dummys, 1:1 uebernommen.
 *
 * Quelle: DOKUMENTATION/Design/expose-grundriss-studio-mockup/app.css (Freigabe 2026-08-26).
 * Uebernommen statt nachgebaut: der ui-treue-Review vergleicht Screenshots der laufenden
 * Anwendung mit den Dummy-Screens. Ein zweiter, handgeschriebener Satz Regeln waere genau der
 * Ort, an dem beide auseinanderlaufen.
 *
 * Zwei belegte Abweichungen zum Dummy:
 *   · Die Steuerleiste des Dummys (.mockbar) ist Werkzeug der Vorlage und faellt weg.
 *   · Der Hex-Wert fuer Weiss wurde durch var(--surface) ersetzt; er waere eine zweite Farbquelle
 *     neben tokens.css (Gate: scripts/gates/tokens.mjs). Der Wert ist derselbe.
 *   · var(--fs-15, 15px) wurde zu var(--fs-15); die Stufe steht jetzt in tokens.css.
 *   · Die 38 px Versatz der klebenden Kopfzeile waren die Hoehe der Dummy-Steuerleiste. Ohne
 *     sie klebte die Kopfzeile 38 px zu tief und verdeckte die Etagenleiste darunter.
 *
 * Die Klassen der noch nicht gebauten Screens (U2 bis U7) bleiben stehen: sie sind das
 * freigegebene Design-System dieses Produkts, nicht Vorrat.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

/* ===================================================================}

   2 — App-Shell (S0)
   ========================================================================== */

.app {
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
/* Trägt die Seite den Versionsstreifen, gehört seine Höhe zum Fenster dazu —
   sonst entsteht ein 32-px-Überhang. */
.app:has(> .versionline) { min-height: calc(100vh - 32px); }
.app--flush { height: 100vh; min-height: 0; overflow: hidden; }

.appbar {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-5); background: var(--header-surface);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.appbar--slim { height: 46px; padding: 0 var(--sp-4); }
/* Auf scrollenden Seiten bleibt die Kopfzeile stehen — Manual und Zahnrad sind
   damit von jeder Stelle der Seite aus erreichbar (UI-Standard). */
.app:not(.app--flush) > .appbar { position: sticky; top: 0; }
.app:not(.app--flush) > .ribbon { position: sticky; top: var(--header-h); z-index: 55; }
.app:not(.app--flush) [id] { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy-800); white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark__glyph {
  width: 30px; height: 30px; color: var(--navy-800); display: grid;
}
.wordmark__glyph svg { width: 30px; height: 30px; }
.wordmark__name { font-family: Sora, Inter, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.wordmark__name em { font-style: normal; font-weight: 400; color: var(--gold-700); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-600); }
.crumbs a { position: relative; color: var(--ink-600); white-space: nowrap; }
.crumbs a:hover { color: var(--navy-800); }
.crumbs__sep { color: var(--ink-300); }
.crumbs__cur { color: var(--ink-900); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbtn__dot { position: absolute; right: 8px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-500); box-shadow: 0 0 0 2px var(--surface); }
.topbtn__dot--danger { background: var(--danger-500); }
.appbar .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-left: 4px; background: var(--navy-800); color: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.wordmark--dark { color: var(--navy-800); }
.wordmark--lg { font-size: var(--fs-20); }
.wordmark--lg .wordmark__glyph { width: 34px; height: 34px; border-radius: var(--r-sm); }

.appbar__divider { width: 1px; height: 22px; background: var(--line-invert); flex: none; }
.appbar__project { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; }
.appbar__project-name {
  font-weight: var(--fw-semibold); font-size: var(--fs-14); color: var(--surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.appbar__project-sub { font-size: var(--fs-12); color: var(--navy-300); white-space: nowrap; }
.appbar__spacer {
  flex: 1 1 auto; display: flex; justify-content: center; min-width: 0;
}
.appbar__actions {
  display: flex; align-items: center; gap: 6px; flex: none;
}
/* Alles zwischen Wortmarke und Aktionen darf schrumpfen — Manual und Zahnrad
   bleiben dadurch immer im Bild, egal wie viel dazwischen steht. */
.appbar > *:not(.wordmark):not(.appbar__actions) { min-width: 0; }
.saveind, .jobchip { overflow: hidden; }
.saveind { text-overflow: ellipsis; }

/* Dauerhaft sichtbare Shell-Elemente halten die volle Klickgröße von 40 px ein */
.appbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border: 0; background: transparent;
  border-radius: 10px; color: var(--ink-700); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.appbtn:hover {
  background: var(--surface-3); text-decoration: none; color: var(--ink-900);
}
.appbtn--icon { width: var(--touch); padding: 0; justify-content: center; }

/* Etagenumschalter */
.floorswitch { display: flex; align-items: center; gap: 2px; background: var(--surface-3);
  border-radius: var(--r-sm); padding: 3px; border: 1px solid var(--line);
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
.floorswitch::-webkit-scrollbar { display: none; }
.floorswitch__item {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  height: 28px; padding: 0 var(--sp-2); border-radius: var(--r-xs);
  font-size: var(--fs-12); color: var(--ink-600); cursor: pointer; white-space: nowrap;
  border: 0; background: transparent;
}
.floorswitch__item:hover { background: var(--surface); color: var(--navy-800); text-decoration: none; }
.floorswitch__item.is-active { background: var(--surface); color: var(--navy-800); font-weight: var(--fw-semibold); }
/* „Etage hinzufügen“ ist eine Aktion, kein Reiter — sie trägt deshalb eine eigene Kante */
.floorswitch__item--add {
  color: var(--gold-700); border: 1px dashed var(--gold-400); margin-left: var(--sp-1);
}
.floorswitch__item--add:hover { background: var(--gold-100); color: var(--gold-700); }
.floorswitch__check { color: var(--ok-500); }
.floorswitch__item.is-active .floorswitch__check { color: var(--ok-600); }

/* Statuschips laufender Aufträge */
.jobchip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 28px; padding: 0 var(--sp-2) 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: rgba(200,146,60,.16); border: 1px solid rgba(200,146,60,.42);
  color: var(--gold-300); font-size: var(--fs-12); font-weight: var(--fw-medium);
  white-space: nowrap;
}
.jobchip__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}
.jobchip__x {
  width: 24px; height: 24px; border-radius: var(--r-xs); border: 0; background: transparent;
  color: var(--gold-300); cursor: pointer; display: grid; place-items: center; position: relative;
}
.jobchip__x:hover { background: rgba(255,255,255,.14); color: var(--surface); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Verbindungs-/Hinweisstreifen unter der Kopfzeile */
.ribbon {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5); font-size: var(--fs-13);
  border-bottom: 1px solid var(--line);
  background: var(--warn-050); color: var(--warn-700);
}
.ribbon--danger { background: var(--danger-050); color: var(--danger-700); border-bottom-color: var(--danger-100); }
.ribbon--info   { background: var(--info-050); color: var(--navy-700); border-bottom-color: var(--navy-100); }
.ribbon--ok     { background: var(--ok-050); color: var(--ok-700); border-bottom-color: var(--ok-100); }
.ribbon__icon { flex: none; display: grid; place-items: center; }
.ribbon__text { flex: 1 1 auto; min-width: 0; }
.ribbon__text--umbruch { overflow-wrap: anywhere; }
.ribbon__actions { display: flex; gap: var(--sp-2); flex: none; }

/* Listen halten die Versionszeile im Fluss; Arbeitsflächen brauchen den festen Fuß. */
.versionline {
  position: fixed; left: 10px; bottom: 10px; z-index: 70; pointer-events: none;
  font-size: 11px; color: var(--ink-600); letter-spacing: .01em;
  padding: 3px 8px; border-radius: 6px; background: var(--version-surface);
}
.versionline--inset { border-top: 0; background: transparent; }
/* Nur auf den Anmelde-Screens, dort steht unten links nichts anderes */
.versionline--fixed {
  position: fixed;
}

.versionline--static { position: static; max-width: 1240px; margin: -64px auto 0; padding: 0 32px 28px; width: 100%; }
/* Versionsangabe in der Kopfzeile der Vollbild-Screens */
.appbar__version {
  font-size: var(--fs-11); color: var(--navy-300); white-space: nowrap;
  padding-right: var(--sp-2); letter-spacing: .01em;
}

/* Bug-Widget — überall dieselbe Optik, überall unten rechts */
.bugwidget {
  position: fixed; right: 20px; bottom: 16px; z-index: 80;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  width: 44px; height: 44px; padding: 0; justify-content: center;
  background: var(--surface); color: var(--ink-700);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  box-shadow: var(--sh-md); font-size: var(--fs-13); font-weight: var(--fw-medium);
  cursor: pointer;
}
.bugwidget:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.bugwidget:hover { color: var(--navy-800); border-color: var(--navy-300); text-decoration: none; }
/* Auch mit Versionsstreifen bleibt die Meldung im unteren Freiraum. */
body:has(.versionline:not(.versionline--fixed)) .toaststack { bottom: 8px; }

/* ------------------------------------------------------------------------
   Freiraum für das Bug-Widget — es liegt fix unten rechts und darf NIE auf
   Inhalt liegen. Jeder eigenständig scrollende Bereich hält --bug-clear frei.
   ------------------------------------------------------------------------ */
.app:not(.app--flush) .page { padding-bottom: var(--bug-clear); }

/* Vollbild-Screens: die rechte Spalte reserviert den Streifen, in dem das Widget
   liegt. Wichtig ist padding auf der SPALTE, nicht auf dem Scrollbereich — nur so
   endet der Sichtbereich oberhalb des Widgets und es kann nie Inhalt verdecken.
   Dasselbe gilt für den festen Panelfuß („Diesen Stand wiederherstellen“). */
.app--flush .work > .side:last-child {
  padding-bottom: var(--bug-clear); background: var(--surface);
}
/* Panel-Fuß in der rechten Spalte: der Inhalt darüber verschwindet nicht hart,
   sondern läuft sichtbar unter einem kurzen Verlauf aus. */
.side__foot { position: relative; }
.side__foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
  background: linear-gradient(to top, var(--surface-2), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* Werkzeug- und Maßstabspillen weichen dem Widget aus, wenn rechts keine Spalte steht */
.app--flush .work > .canvas:last-child .canvas__scale { right: calc(var(--sp-4) + 190px); }

/* Meldungen im reservierten Freiraum links vom Bug-Widget. */
.toaststack {
  position: fixed; right: 72px; bottom: 8px;
  z-index: 85; display: flex; flex-direction: column-reverse; gap: var(--sp-2);
  width: 360px; max-width: calc(100vw - 80px);
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 56px; max-height: 64px;
  opacity: 1; transition: opacity .3s;
  background: var(--navy-900); color: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); font-size: var(--fs-13);
}
.toast__icon { flex: none; margin-top: 1px; color: var(--gold-400); }
.toast__body {
  flex: 1 1 auto; min-width: 0; line-height: 20px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.toast--aus { opacity: 0; }
.toast__close {
  flex: none; position: relative; width: 24px; height: 24px; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 20px;
}
.toast__close::after {
  content: ""; position: absolute; width: 44px; height: 44px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.toast__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; animation: none; }
}
.toast__action {
  flex: none; background: transparent; border: 0; padding: 0; position: relative;
  color: var(--gold-400); font-weight: var(--fw-semibold); cursor: pointer; font-size: var(--fs-13);
}
.toast__action:hover { text-decoration: underline; }

/* ===================================================================}

   3 — Grundbausteine
   ========================================================================== */

.page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 940px; }
.stack { display: flex; flex-direction: column; }
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }

.h1 { font-size: var(--fs-28); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--ink-900); line-height: var(--lh-tight); }
.h2 { font-size: var(--fs-18); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); color: var(--ink-900); line-height: var(--lh-snug); }
.h3 { font-size: var(--fs-16); font-weight: var(--fw-semibold); color: var(--ink-900); }
.h4 { font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--ink-800); }
.eyebrow {
  font-size: var(--fs-11); font-weight: var(--fw-semibold); text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--ink-600);
}
.lead { font-size: var(--fs-16); color: var(--ink-600); line-height: var(--lh-normal); }
/* Kleintext trägt immer --ink-600 (≥ 4,5:1). --ink-500 nur für Sekundärtext ab 14 px,
   Icons und Trenner; --ink-400 nie für Text. */
.muted { color: var(--ink-600); }
.muted-2 { color: var(--ink-500); }
.small { font-size: var(--fs-12); }
.xsmall { font-size: var(--fs-11); }
.mono { font-family: var(--font-mono); font-size: var(--fs-12); }
.strong { font-weight: var(--fw-semibold); }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: var(--touch); padding: 0 var(--sp-4);
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-800);
  font-size: var(--fs-13); font-weight: var(--fw-medium); cursor: pointer;
  white-space: nowrap; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  box-shadow: var(--sh-xs);
}
.btn:hover { background: var(--surface-3); text-decoration: none; color: var(--ink-900); }
.btn--primary {
  background: var(--navy-800); border-color: var(--navy-800); color: var(--surface);
}
.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--surface); }
.btn--gold {
  background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--danger { background: var(--danger-600); border-color: var(--danger-600); color: var(--surface); }
.btn--danger:hover { background: var(--danger-700); color: var(--surface); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-600); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink-900); }
.btn--quiet { background: var(--surface-3); border-color: transparent; box-shadow: none; }
.btn--lg { height: 46px; padding: 0 22px; font-size: var(--fs-14); border-radius: 12px; }
/* Primäraktion in Seitenköpfen — überall dieselbe Höhe und Position */
.btn--action { height: var(--touch); padding: 0 var(--sp-4); }
.btn--sm { height: 34px; padding: 0 var(--sp-3); font-size: var(--fs-12); border-radius: 8px; }
.btn--xs { height: 26px; padding: 0 var(--sp-2); font-size: var(--fs-11); }
.btn--block { width: 100%; }
/* Gedrückter Zustand eines Werkzeugs — Navy, NIE Gold.
   Gold bleibt „offen / noch zu prüfen“ und der Marke vorbehalten. */
.btn--pressed {
  background: var(--navy-050); border-color: var(--navy-800); color: var(--navy-800);
  font-weight: var(--fw-semibold); box-shadow: inset 0 1px 2px rgba(20, 35, 63, .12);
}
.btn--pressed:hover { background: var(--navy-100); color: var(--navy-900); }
.btn--icon { width: var(--touch); padding: 0; }
.btn--icon.btn--sm { width: 32px; }
/* Gesperrt: heller Grund, dunkle Schrift — Kontrast ≥ 4,5:1 statt ausgegraut */
.btn:disabled, .btn.is-disabled {
  background: var(--off-bg) !important;
  color: var(--off-text) !important;
  border-color: var(--off-line) !important;
  cursor: not-allowed; pointer-events: none; box-shadow: none;
}
/* Begründung neben einem gesperrten Button */
.lockhint {
  font-size: var(--fs-12); color: var(--ink-500); line-height: var(--lh-snug);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.lockhint--block { display: flex; margin-top: var(--sp-2); }
.btn--pulse { box-shadow: 0 0 0 0 rgba(200,146,60,.5); animation: ringpulse 2.2s infinite; }
@keyframes ringpulse {
  0% { box-shadow: 0 0 0 0 rgba(200,146,60,.45); }
  70% { box-shadow: 0 0 0 8px rgba(200,146,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,146,60,0); }
}

.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-600);
  font-size: var(--fs-13); font-weight: var(--fw-medium); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* Segmented control */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-3); border-radius: var(--r-sm); border: 1px solid var(--line);
}
.segmented__item {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--touch); padding: 0 var(--sp-3); border-radius: var(--r-xs);
  font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--ink-600);
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  position: relative;
}
.segmented__item:hover { color: var(--ink-900); text-decoration: none; }
/* Der gewählte Zustand trägt zusätzlich zur weißen Fläche einen Navy-Rahmen und
   halbfette Schrift — Weiß auf Hellgrau allein ist auf dem Bildschirm nicht lesbar. */
.segmented__item.is-active,
.segmented__item:has(.check__native:checked) {
  background: var(--surface); color: var(--navy-800); font-weight: var(--fw-semibold);
  box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs);
}
.segmented--block { display: flex; width: 100%; }
.segmented--block .segmented__item { flex: 1 1 0; }
.segmented--rows { flex-wrap: wrap; }
/* Dunkle Variante (Logbox) */
.logbox__bar .segmented__item.is-active {
  background: var(--navy-700); color: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
}

/* --------------------------------------------------------------------------
   Klickziel-Erweiterung: die optische Höhe bleibt, der Trefferbereich wächst
   senkrecht auf --touch. Nur senkrecht, damit Nachbarn sich nicht überlappen.
   -------------------------------------------------------------------------- */
.chip, .btn--sm, .btn--xs, .floorswitch__item, .palette__cat,
.statelink, .flowstep, .infoicon__btn, .jobchip__x, .switch,
a.wordmark, a.pcard__title, .linkbtn, a.badge, .input-affix,
a.appbar__project-name, a.hitarea, .table a.strong { position: relative; }
.chip::after, .btn--sm::after, .btn--xs::after, .floorswitch__item::after,
.palette__cat::after, .statelink::after, .flowstep::after,
.infoicon__btn::after, .jobchip__x::after, .switch::before,
a.wordmark::after, a.pcard__title::after, .linkbtn::after, a.badge::after,
.input-affix::after, a.appbar__project-name::after, a.hitarea::after,
.table a.strong::after, .toast__action::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc((var(--touch) - 100%) / -2); bottom: calc((var(--touch) - 100%) / -2);
}
/* Das Info-Icon ist 18 px breit; die Erweiterung oben wirkt nur senkrecht. Waagerecht bleibt
   es damit unter den 24 px, die WCAG 2.5.8 als Mindestziel verlangt — die drei Pixel je Seite
   liegen im Freiraum neben dem Icon und stoßen an keinen Nachbarn. */
.infoicon__btn::after { left: -3px; right: -3px; }
.dialog__close { width: var(--touch); height: var(--touch); }
.menu__item, .tabs__item { min-height: var(--touch); }

/* Karten */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-card);
}
.card--flat { box-shadow: none; }
.card--pad { padding: var(--sp-5); }
.card__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line);
}
.card__body { padding: var(--sp-5); }
.card__foot {
  padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line);
  background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Panels / Abschnitte in Einstellungen */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.panel__body { padding: var(--sp-5); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  height: 20px; padding: 0 var(--sp-2); border-radius: var(--r-xs);
  font-size: var(--fs-11); font-weight: var(--fw-semibold); letter-spacing: .01em;
  background: var(--surface-3); color: var(--ink-600); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--ok     { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-100); }
.badge--warn   { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-100); }
.badge--danger { background: var(--danger-050); color: var(--danger-700); border-color: var(--danger-100); }
.badge--navy   { background: var(--navy-050); color: var(--navy-700); border-color: var(--navy-100); }
.badge--gold   { background: var(--gold-050); color: var(--gold-700); border-color: var(--gold-200); }
.badge--solid  { background: var(--navy-800); color: var(--surface); border-color: var(--navy-800); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); flex: none; display: inline-block; }
.dot--ok { background: var(--ok-500); }
.dot--warn { background: var(--warn-500); }
.dot--danger { background: var(--danger-500); }
.dot--gold { background: var(--gold-500); }

/* Chips (Etagen) */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-xs);
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: var(--fs-12); color: var(--ink-700); white-space: nowrap;
}
.chip:hover { border-color: var(--navy-300); color: var(--navy-800); text-decoration: none; }
.chip.is-open { border-color: var(--gold-300); background: var(--gold-050); color: var(--gold-700); }
.chip--plain { background: transparent; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.label { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--ink-700); }
.hint { font-size: var(--fs-12); color: var(--ink-600); line-height: var(--lh-snug); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink-900); font-size: var(--fs-14);
  font-family: inherit;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--focus-ring-navy); }
.textarea { height: auto; min-height: 96px; padding: var(--sp-3); line-height: var(--lh-normal); resize: vertical; }
.select { appearance: none; padding-right: var(--sp-6);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23616E88' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right var(--sp-3) center; }
.input--sm, .select--sm { height: 30px; font-size: var(--fs-13); }
/* --off-text statt --ink-400: die Tokens fuehren fuer gesperrte Bedienelemente eigens eine
   Farbe mit >= 4,5:1 — ink-400 erreicht auf der Sperrflaeche nur 2,8:1. */
.input:disabled, .textarea:disabled, .select:disabled { background: var(--surface-3); color: var(--off-text); cursor: not-allowed; }
/* Gesperrtes, aber GEFÜLLTES Feld: der Wert bleibt dunkel und lesbar — sonst
   sieht ein übernommener Wert aus wie ein leeres Pflichtfeld. */
.input--locked, .input--locked:disabled {
  background: var(--surface-3); color: var(--ink-800); -webkit-text-fill-color: var(--ink-800);
  border-color: var(--line); cursor: default;
}
.input.is-error { border-color: var(--danger-500); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 40px; }
.input-affix {
  position: absolute; right: var(--sp-1); top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; border-radius: var(--r-xs);
  color: var(--ink-500); cursor: pointer; display: grid; place-items: center;
}
.input-affix:hover { background: var(--surface-3); color: var(--ink-800); }

/* Auswahlfelder — mit echtem <input> darin sind sie tatsächlich bedienbar */
.check {
  display: flex; align-items: center; gap: var(--sp-2); cursor: pointer;
  min-height: var(--touch); position: relative;
}
.check--tight { min-height: 0; align-items: flex-start; }
.check__native {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none;
}
.check__box {
  width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  background: var(--surface); flex: none; display: grid; place-items: center; color: transparent;
}
.check.is-on .check__box,
.check__native:checked ~ .check__box { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); }
.check.is-part .check__box { background: var(--navy-300); border-color: var(--navy-400); color: var(--surface); }
.check__label { font-size: var(--fs-13); color: var(--ink-700); line-height: var(--lh-snug); }
.check:hover .check__box { border-color: var(--navy-400); }
.check__native:focus-visible ~ .check__box { box-shadow: var(--focus-ring); }

.radio__dot {
  width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); flex: none; display: grid; place-items: center;
}
.radio.is-on .radio__dot { border-color: var(--navy-800); border-width: 6px; }
.check__native:checked ~ .radio__dot { border-color: var(--navy-800); border-width: 6px; }

.switch {
  width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--ink-200);
  position: relative; flex: none; cursor: pointer; border: 0; transition: background var(--dur) var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--sh-xs); transition: transform var(--dur) var(--ease);
}
.switch.is-on { background: var(--ok-600); }
.switch.is-on::after { transform: translateX(16px); }

.searchfield { position: relative; }
.searchfield .input { padding-left: 34px; }
.searchfield__icon {
  position: absolute; left: var(--sp-3); top: 50%; transform: translateY(-50%);
  /* Bedeutungstragendes Symbol: 3:1 sind Pflicht (WCAG 1.4.11), ink-400 erreicht 2,97:1. */
  color: var(--ink-500); pointer-events: none; display: grid; place-items: center;
}

/* Info-Icon (sparsam, nur auf Abschnittsebene) */
.infoicon { position: relative; display: inline-flex; }
.infoicon__btn {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-500); font-size: var(--fs-11);
  font-weight: var(--fw-bold); display: grid; place-items: center; cursor: pointer; padding: 0;
  line-height: 1;
}
.infoicon__btn:hover { border-color: var(--navy-400); color: var(--navy-700); }
.infoicon__pop {
  position: absolute; z-index: 120; top: calc(100% + var(--sp-2)); left: -8px;
  width: 340px; padding: var(--sp-4);
  background: var(--navy-900); color: var(--navy-100); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); font-size: var(--fs-12); line-height: var(--lh-normal);
  display: none;
}
.infoicon__pop::before {
  content: ""; position: absolute; top: -5px; left: 12px; width: 10px; height: 10px;
  background: var(--navy-900); transform: rotate(45deg);
}
.infoicon.is-open .infoicon__pop { display: block; }
.infoicon__pop strong { color: var(--surface); }
.infoicon__pop--right { left: auto; right: -8px; }
.infoicon__pop--right::before { left: auto; right: 12px; }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.table th {
  text-align: left; font-size: var(--fs-11); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-600);
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface-2);
}
.table td { padding: var(--sp-3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-700); }
.table tbody tr:hover td { background: var(--surface-2); }
.table--dense td { padding: var(--sp-2) var(--sp-3); }
.table th:first-child, .table td:first-child { padding-left: var(--sp-5); }
.table th:last-child, .table td:last-child { padding-right: var(--sp-5); }
/* Feste Spaltenbreiten — die Tabelle bleibt in ihrer Karte */
.table--fixed { table-layout: fixed; width: 100%; }
.table--fixed td { overflow: hidden; text-overflow: ellipsis; }
/* Zellen, die niemals gekürzt werden dürfen — Rollen, Status, Aktionen */
.table--fixed td.nocrop, .table--fixed th.nocrop { overflow: visible; text-overflow: clip; white-space: nowrap; }
.table--fixed td.cell-actions { overflow: visible; }
/* Rollen-Chip: nie kürzen, immer als ein Wort lesbar */
.table .badge { white-space: nowrap; }
.table--num td.num, .table--num th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Waagerecht scrollende Hülle für breite Tabellen */
.tablewrap { width: 100%; overflow-x: auto; }

/* Fortschritt */
.progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunk); overflow: hidden; }
.progress__bar { height: 100%; background: var(--navy-600); border-radius: var(--r-pill); }
.progress__bar--gold { background: var(--gold-500); }
.progress__bar--ok { background: var(--ok-600); }
.progress--thin { height: 4px; }

/* Skeletons */
.sk { background: linear-gradient(90deg, var(--surface-3) 25%, var(--ink-100) 37%, var(--surface-3) 63%);
  background-size: 400% 100%; animation: skshine 1.4s ease infinite; border-radius: var(--r-xs); }
@keyframes skshine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk--text { height: 10px; }
.sk--line { height: 14px; }
.sk--block { height: 100%; border-radius: var(--r-md); }

/* Leerzustand */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--sp-8) var(--sp-5); gap: var(--sp-4);
}
.empty__art {
  width: 88px; height: 88px; border-radius: var(--r-lg);
  background: var(--navy-050); border: 1px dashed var(--navy-200);
  display: grid; place-items: center; color: var(--navy-400);
}
.empty__title { font-size: var(--fs-18); font-weight: var(--fw-semibold); color: var(--ink-900); }
.empty__text { max-width: 520px; color: var(--ink-600); font-size: var(--fs-14); line-height: var(--lh-normal); }

/* Notice / Meldungen im Fluss */
.notice {
  display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2); font-size: var(--fs-13); line-height: var(--lh-snug);
  color: var(--ink-700);
}
.notice--danger { background: var(--danger-050); border-color: var(--danger-100); color: var(--danger-700); }
.notice--warn   { background: var(--warn-050); border-color: var(--warn-100); color: var(--warn-700); }
.notice--ok     { background: var(--ok-050); border-color: var(--ok-100); color: var(--ok-700); }
.notice--info   { background: var(--info-050); border-color: var(--navy-100); color: var(--navy-700); }
.notice--gold   { background: var(--gold-050); border-color: var(--gold-200); color: var(--gold-700); }
.notice__icon { flex: none; margin-top: 1px; }
.notice__body { flex: 1 1 auto; min-width: 0; }
.notice__actions { display: flex; gap: var(--sp-2); flex: none; align-items: center; }

/* Dialoge */
/* Der Innenabstand unten hält die Zone des Bug-Widgets frei */
.scrim {
  position: fixed; inset: 0; background: var(--overlay); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6) var(--sp-6) var(--bug-clear);
  backdrop-filter: blur(1.5px);
}
.dialog {
  width: 100%; max-width: 720px; max-height: calc(100vh - 96px);
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  display: flex; flex-direction: column; overflow: hidden;
}
.dialog--wide { max-width: 1040px; }
.dialog--slim { max-width: 520px; }
/* Kopf und Fuß stehen fest, nur der Mittelteil scrollt */
.dialog__head {
  display: flex; align-items: flex-start; gap: var(--sp-3); flex: none;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.dialog__body {
  padding: var(--sp-5); overflow-y: auto; flex: 1 1 auto; min-height: 0;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--surface) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), var(--surface) 70%),
    linear-gradient(rgba(14, 21, 34, .16), rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), rgba(14, 21, 34, .16));
  background-position: 0 0, 0 100%, 0 0, 0 100%;
  background-size: 100% 24px, 100% 24px, 100% 24px, 100% 24px;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.dialog__foot {
  display: flex; align-items: center; gap: var(--sp-3); flex: none; flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line);
  background: var(--surface-2);
}
/* Hinweiszeile im Dialogfuß: eigene Zeile über der Buttonleiste */
.dialog__note {
  flex: 1 0 100%; order: -1;
  font-size: var(--fs-13); color: var(--ink-500); line-height: var(--lh-snug);
}
.dialog__note--danger { color: var(--danger-700); }
.dialog__note--ok { color: var(--ok-700); }
.dialog__close {
  width: var(--touch); height: var(--touch); border: 0; background: transparent; border-radius: var(--r-sm);
  color: var(--ink-500); cursor: pointer; display: grid; place-items: center; flex: none;
}
.dialog__close:hover { background: var(--surface-3); color: var(--ink-900); }

/* Menü (…) */
.menu {
  position: absolute; z-index: 150; min-width: 232px; padding: var(--sp-1);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.menu__item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-xs);
  font-size: var(--fs-13); color: var(--ink-700); background: transparent; border: 0;
  cursor: pointer; text-align: left;
}
.menu__item:hover { background: var(--surface-3); color: var(--ink-900); text-decoration: none; }
.menu__item--danger { color: var(--danger-600); }
.menu__item--danger:hover { background: var(--danger-050); color: var(--danger-700); }
.menu__sep { height: 1px; background: var(--line); margin: var(--sp-1) 0; }

/* Tabs */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.side .tabs__item { padding-left: var(--sp-2); padding-right: var(--sp-2); }
.tabs__item {
  padding: var(--sp-2) var(--sp-3); font-size: var(--fs-13); font-weight: var(--fw-medium);
  color: var(--ink-600); border: 0; background: transparent; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs__item:hover { color: var(--ink-900); text-decoration: none; }
.tabs__item.is-active { color: var(--navy-800); border-bottom-color: var(--gold-500); font-weight: var(--fw-semibold); }

/* Icons */
.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 20px; height: 20px; }
.ico--xl { width: 28px; height: 28px; }

/* ===================================================================}

   4 — Stepper (die vier Schritte)
   ========================================================================== */

.stepbar {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  min-height: var(--subheader-h); flex: none;
  padding: 0 var(--sp-5); background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.steps { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; flex-wrap: wrap; }
/* Der Zusatz weicht vor den Schritten und den Bedienelementen. */
@media (max-width: 1439px) { .step__flag { display: none; } }
.step {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--touch); padding: 0 var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-13); color: var(--ink-600); background: transparent;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.step:hover { background: var(--surface-3); color: var(--ink-800); text-decoration: none; }
.step__num {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: var(--fs-11); font-weight: var(--fw-bold);
  background: var(--off-bg); color: var(--off-text); border: 1px solid var(--off-line);
}
.step.is-active {
  background: var(--navy-050); color: var(--navy-800); font-weight: var(--fw-bold);
  border-color: var(--navy-200); box-shadow: var(--sh-xs);
}
.step.is-active .step__num { background: var(--navy-800); color: var(--surface); }
/* Ein erledigter Schritt zeigt den Haken, nicht seine Ziffer — so steht es im Dummy („✓ Plan").
   Eine grün gefüllte Zahl sah aus wie „hier stehen Sie gerade" (Fix-Pass 1, U3). */
.step.is-done .step__num {
  background: var(--ok-600); color: var(--surface); font-size: 0;
}
.step.is-done .step__num::after { content: '\2713'; font-size: var(--fs-11); }
.step.is-done { color: var(--ink-700); }
.step.is-blocked { color: var(--off-text); cursor: not-allowed; }
.step__sep { width: 16px; height: 1px; background: var(--line-strong); flex: none; }
/* Ruhiges Beiwerk — nie lauter als der aktive Schritt, nur am aktiven Schritt sichtbar */
.step__flag {
  font-size: var(--fs-10); text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-600); background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 1px 5px; font-weight: var(--fw-medium);
}
/* Sie hängt am Schritt, nicht an seinem Zustand: Schritt 3 ist auf S4 nie der aktive, und die
   Kennzeichnung gehört genau dorthin. */

/* ===================================================================}

   5 — Arbeitsfläche: Canvas + Seitenpanel
   ========================================================================== */

.work { flex: 1 1 auto; min-height: 0; display: flex; }
/* Die Umschaltung „Plan | Liste" gibt es nur im schmalen Fenster; breit stehen Zeichenfläche und
   Panel nebeneinander. Die Media-Query weiter unten schaltet sie ein. */
.worktabs { display: none; }
.canvas {
  flex: 1 1 auto; min-width: 0; position: relative;
  background: var(--bg-deep);
  background-image:
    linear-gradient(rgba(20,35,63,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,35,63,.045) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: var(--sp-5);
}
.canvas__sheet {
  background: var(--plan-paper); border-radius: var(--r-sm);
  box-shadow: var(--sh-lg); padding: var(--sp-4);
  max-height: 100%; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.canvas__sheet > svg { max-height: 100%; max-width: 100%; height: auto; }
.canvas__tools {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  display: flex; gap: var(--sp-1); padding: var(--sp-1);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
.canvas__scale {
  position: absolute; right: var(--sp-4); bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2); min-height: var(--touch);
  padding: var(--sp-2) var(--sp-3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm);
  font-size: var(--fs-12); color: var(--ink-600);
}
.canvas__badge {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm);
  font-size: var(--fs-12); color: var(--ink-600);
}

.side {
  width: var(--rail-w); flex: none; background: var(--surface);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0;
}
.side--wide { width: var(--panel-w); }
.side--left { border-left: 0; border-right: 1px solid var(--line); }
.side__head {
  flex: none; padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.side__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.side__foot { flex: none; padding: var(--sp-4); border-top: 1px solid var(--line); background: var(--surface-2); }
.side__section { padding: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.side__section:last-child { border-bottom: 0; }

/* ===================================================================}

   6 — Projektliste (S2)
   ========================================================================== */

.projectgrid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-card); display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}
.pcard:hover { box-shadow: var(--sh-md); border-color: var(--line-strong); }
/* Alle Kartenzustände teilen dieselbe Bildfläche mit 16 px Innenabstand */
.pcard__thumb {
  height: 168px; background: var(--plan-paper); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; align-items: center; justify-content: center;
  padding: 36px var(--sp-4) var(--sp-4);
}
.pcard__thumb > * { max-height: 100%; width: 100%; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pcard__thumb > svg { width: 100%; height: 100%; }
.pcard__thumb-tag { position: absolute; left: var(--sp-2); top: var(--sp-2); z-index: 4; }
.pcard__menu { position: absolute; right: var(--sp-2); top: var(--sp-2); z-index: 5; }
.pcard__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1 1 auto; }
.pcard__title { font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--ink-900); line-height: var(--lh-snug); }
.pcard__addr { font-size: var(--fs-12); color: var(--ink-600); }
.pcard__chips { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.pcard__foot {
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-soft);
  background: var(--surface-2); display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-11); color: var(--ink-600);
}

/* Fortschrittspunkte 1–5 */
.steps5 { display: flex; align-items: center; gap: var(--sp-1); }
.steps5__item { display: flex; align-items: center; gap: var(--sp-1); }
.steps5__dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: var(--fs-10); font-weight: var(--fw-bold);
  background: var(--off-bg); color: var(--off-text); border: 1px solid var(--off-line);
}
.steps5__dot.is-done { background: var(--ok-600); border-color: var(--ok-600); color: var(--surface); }
.steps5__dot.is-part { background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-900); }
.steps5__dot.is-now  { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); }
.steps5__label { font-size: var(--fs-11); color: var(--ink-600); }
.steps5__bar { width: 10px; height: 1px; background: var(--line-strong); }

/* ===================================================================}

   7 — Prüfliste Fenster & Türen (S5)
   ========================================================================== */

.checkcount {
  position: sticky; top: 0; z-index: 4;
  padding: var(--sp-3) var(--sp-4); background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Die Zeile ist ein Container. Öffnen, Bestätigen und Löschen sind DREI getrennte
   Klickziele — ein Klick auf den Papierkorb darf nie die Zeile aufklappen. */
.opitem {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.opitem__link {
  display: flex; align-items: center; gap: var(--sp-3);
  flex: 1 1 auto; min-width: 0; min-height: var(--touch);
  color: inherit; cursor: pointer; border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-1) var(--sp-1) 0;
}
.opitem__link:hover { background: var(--surface-2); text-decoration: none; }
.opitem:hover { background: var(--surface-2); }
.opitem.is-disabled, .opact.is-disabled { opacity: .55; pointer-events: none; }
.opitem.is-focus {
  background: var(--gold-050); box-shadow: inset 3px 0 0 var(--gold-500);
}
.opitem.is-done { opacity: .62; }
.opitem__sym { width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  background: var(--surface-3); border-radius: var(--r-xs); border: 1px solid var(--line); }
.opitem__main { flex: 1 1 auto; min-width: 0; }
.opitem__title { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--ink-900); }
.opitem__meta { font-size: var(--fs-11); color: var(--ink-600); }
.opitem__actions { display: flex; gap: var(--sp-1); flex: none; }
/* Haken und Papierkorb: 40 × 40 px — auch in den unsicheren Zeilen */
.opact {
  width: var(--touch); height: var(--touch); flex: none;
  display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-600); cursor: pointer;
}
.opact:hover { border-color: var(--navy-400); color: var(--navy-800); background: var(--surface-3); text-decoration: none; }
.opact--danger:hover { border-color: var(--danger-500); color: var(--danger-700); background: var(--danger-050); }
.opact .ico { width: 20px; height: 20px; }

/* Tastaturzeile: zwei ausgerichtete Spalten statt freier Fluss */
.keyrow {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line);
  background: var(--surface-2); font-size: var(--fs-11); color: var(--ink-500);
  max-width: 100%;
}
.keyrow > span { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; }

.kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  font-family: var(--font-mono); font-size: var(--fs-11); color: var(--ink-700); text-align: center;
}

/* ===================================================================}

   8 — Stilkarten (S6)
   ========================================================================== */

.stylegrid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr); }
.stylecard {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
}
.stylecard:hover { border-color: var(--navy-300); box-shadow: var(--sh-md); text-decoration: none; }
.stylecard.is-selected { border-color: var(--gold-500); box-shadow: var(--sh-md); }
.stylecard.is-disabled { opacity: .68; cursor: not-allowed; }
.stylecard__preview {
  height: clamp(280px, 34vh, 380px); background: var(--plan-paper); position: relative; overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
  padding: var(--sp-3);
}
.stylecard__preview > svg { width: 100%; height: 100%; }
.stylecard__preview img { width: 100%; height: 100%; object-fit: cover; }
.stylecard__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; }
/* Auswahl-Anzeiger oben rechts — leer, wenn nicht gewählt; Gold mit Haken, wenn gewählt */
.stylecard__check {
  position: absolute; right: var(--sp-3); top: var(--sp-3); z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); color: transparent;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.stylecard:hover .stylecard__check { border-color: var(--navy-400); }
.stylecard.is-selected .stylecard__check {
  background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-900);
}
.stylecard.is-disabled .stylecard__check { color: var(--ink-400); border-color: var(--line-strong); }
.stylecard__pick {
  position: absolute; left: var(--sp-3); right: 52px; top: var(--sp-3); z-index: 3;
  font-size: var(--fs-11); color: var(--ink-600);
}
/* Beschrifteter Auswahl-Knopf im Kartenfuß — der Ring oben rechts zeigt nur den
   Zustand, er ist nicht die Aktion. */
.stylecard__foot {
  margin-top: auto; padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex; gap: var(--sp-2); align-items: center;
}
.stylecard__foot .btn { flex: 1 1 auto; }

/* ===================================================================}

   9 — Editor (S7)
   ========================================================================== */

.toolbar {
  display: flex; align-items: center; gap: var(--sp-2);
  height: 52px; flex: none; padding: 0 var(--sp-3);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.toolbar__group { display: flex; align-items: center; gap: 2px; }
.toolbar__sep { width: 1px; height: 24px; background: var(--line); margin: 0 var(--sp-1); flex: none; }
.tbtn {
  height: var(--touch); min-width: var(--touch); padding: 0 var(--sp-2); border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink-600);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); cursor: pointer;
  font-size: var(--fs-12); white-space: nowrap;
}
.tbtn:hover { background: var(--surface-3); color: var(--ink-900); text-decoration: none; }
.tbtn.is-active { background: var(--navy-050); border-color: var(--navy-100); color: var(--navy-800); }
.tbtn:disabled { opacity: .4; cursor: not-allowed; }

.palette__cats { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0 var(--sp-4) var(--sp-3); }
.palette__cat {
  height: 30px; padding: 0 var(--sp-3); border-radius: var(--r-xs); border: 1px solid var(--line);
  background: var(--surface); font-size: var(--fs-12); color: var(--ink-600); cursor: pointer;
}
.palette__cat:hover { border-color: var(--navy-300); color: var(--navy-800); text-decoration: none; }
.palette__cat.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); }
.palette__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.pitem {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  padding: var(--sp-2); cursor: grab; display: flex; flex-direction: column; gap: var(--sp-1);
  transition: border-color var(--dur-fast) var(--ease);
}
.pitem:hover { border-color: var(--navy-300); box-shadow: var(--sh-xs); text-decoration: none; }
.pitem__thumb {
  height: 56px; background: var(--surface-2); border-radius: var(--r-xs);
  display: grid; place-items: center; overflow: hidden;
}
.pitem__thumb img, .pitem__thumb > svg { max-height: 48px; max-width: 92%; object-fit: contain; }
.pitem__name { font-size: var(--fs-11); color: var(--ink-800); font-weight: var(--fw-medium);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitem__dim { font-size: var(--fs-10); color: var(--ink-600); font-variant-numeric: tabular-nums; }

/* Outliner — jede Zeile ist ein Klickziel von 40 px */
.tree__row {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-2) 0 var(--sp-4); font-size: var(--fs-13); color: var(--ink-700);
  cursor: pointer; min-height: var(--touch);
}
.tree__row:hover { background: var(--surface-2); text-decoration: none; }
.tree__row.is-selected { background: var(--navy-050); color: var(--navy-800); font-weight: var(--fw-medium);
  box-shadow: inset 2px 0 0 var(--navy-800); }
.tree__row--group { font-weight: var(--fw-semibold); color: var(--ink-800); }
.tree__row--child { padding-left: calc(var(--sp-4) + var(--sp-5)); }
.tree__row > .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree__eye {
  margin-left: var(--sp-1); color: var(--ink-500); flex: none;
  width: var(--touch); height: var(--touch); display: grid; place-items: center;
  border-radius: var(--r-sm);
}
.tree__eye:hover { color: var(--ink-800); background: var(--surface-3); }
.tree__eye .ico { width: 20px; height: 20px; }

/* Kontext-Popover am Objekt */
.objpop {
  position: absolute; z-index: 40;
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg);
}
.objpop__field { display: flex; align-items: center; gap: var(--sp-1); }
.objpop__label { font-size: var(--fs-11); color: var(--ink-700); letter-spacing: 0; }
.objpop__input {
  width: 56px; height: 26px; padding: 0 var(--sp-1); text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  font-size: var(--fs-12); font-variant-numeric: tabular-nums; color: var(--ink-900); background: var(--surface);
}
.objpop__sep { width: 1px; height: 20px; background: var(--line); }

/* Speicherindikator */
.saveind {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-12); color: var(--navy-200); white-space: nowrap;
}

/* ===================================================================}

   10 — Manual (S11)
   ========================================================================== */

.manual { display: flex; flex: 1 1 auto; min-height: 0; }
.manual__nav {
  width: 288px; flex: none; border-right: 1px solid var(--line);
  background: var(--surface-2); overflow: auto; padding: var(--sp-4) 0 var(--sp-8);
}
.manual__link {
  display: block; padding: var(--sp-3) var(--sp-5); font-size: var(--fs-13); color: var(--ink-600);
  border-left: 2px solid transparent; min-height: var(--touch);
}
.manual__link:hover { color: var(--navy-800); background: var(--surface-3); text-decoration: none; }
.manual__link.is-active { color: var(--navy-800); font-weight: var(--fw-semibold);
  border-left-color: var(--gold-500); background: var(--surface); }
.manual__content { flex: 1 1 auto; min-width: 0; overflow: auto; padding: var(--sp-6) var(--sp-7) var(--sp-8); }
.manual__content h2 { margin-bottom: var(--sp-3); }
.manual__content h3 { margin: var(--sp-5) 0 var(--sp-2); }
.manual__content p { color: var(--ink-700); margin-bottom: var(--sp-3); max-width: 76ch; }
.manual__content ol { counter-reset: s; max-width: 76ch; }
.manual__content ol li {
  position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-3); color: var(--ink-700);
  counter-increment: s;
}
.manual__content ol li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy-800); color: var(--surface);
  font-size: var(--fs-11); font-weight: var(--fw-bold); display: grid; place-items: center;
}
.manual__content ul.bullets { max-width: 76ch; }
.manual__content ul.bullets li { position: relative; padding-left: var(--sp-4); margin-bottom: var(--sp-2); color: var(--ink-700); }
.manual__content ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold-500);
}
.figure {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); margin: var(--sp-4) 0; max-width: 720px;
}
.figure__cap { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-12); color: var(--ink-600);
  border-top: 1px solid var(--line); background: var(--surface); }

/* ===================================================================}

   11 — Logs
   ========================================================================== */

.logbox {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-950);
}
.logbox__bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3); background: var(--navy-900); border-bottom: 1px solid var(--line-invert);
}
.logbox__rows { max-height: 320px; overflow: auto; padding: var(--sp-2) 0; }
.logrow {
  display: grid; grid-template-columns: 148px 74px 1fr; gap: var(--sp-3);
  padding: 3px var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-11);
  color: var(--navy-200); line-height: 1.7;
}
.logrow:hover { background: rgba(255,255,255,.05); }
.logrow__lvl { font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); }
.logrow__lvl--info { color: var(--navy-300); }
.logrow__lvl--warn { color: var(--gold-400); }
.logrow__lvl--error { color: var(--danger-on-dark); }
.logrow__msg { color: var(--navy-100); word-break: break-word; }

/* ===================================================================}

   12 — Übersichtsseite index.html
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: var(--surface); padding: var(--sp-8) 0 var(--sp-7); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,146,60,.22), transparent 68%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-38); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.1; }
.hero p { color: var(--navy-200); max-width: 68ch; margin-top: var(--sp-3); font-size: var(--fs-16); }
.hero__facts { display: flex; gap: var(--sp-6); margin-top: var(--sp-6); flex-wrap: wrap; }
.hero__fact { display: flex; flex-direction: column; gap: 2px; }
.hero__fact b { font-size: var(--fs-24); color: var(--gold-400); font-weight: var(--fw-bold); }
.hero__fact span { font-size: var(--fs-12); color: var(--navy-300); text-transform: uppercase; letter-spacing: var(--ls-caps); }

.idxsection { padding: var(--sp-7) 0; }
.idxgrid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.idxcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--sh-xs);
}
.idxcard__head { display: flex; align-items: flex-start; gap: var(--sp-3); }
.idxcard__id {
  flex: none; min-width: 38px; height: 24px; padding: 0 var(--sp-2); border-radius: var(--r-xs);
  background: var(--navy-800); color: var(--surface); font-size: var(--fs-11); font-weight: var(--fw-bold);
  display: grid; place-items: center; letter-spacing: var(--ls-wide);
}
.idxcard__id--gold { background: var(--gold-500); color: var(--navy-900); }
.idxcard__title { font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--ink-900); line-height: var(--lh-snug); }
.idxcard__desc { font-size: var(--fs-12); color: var(--ink-600); line-height: var(--lh-snug); }
.idxstates { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.statelink {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  height: 26px; padding: 0 var(--sp-2); border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: var(--fs-11); color: var(--ink-600); white-space: nowrap;
}
.statelink:hover { border-color: var(--navy-400); color: var(--navy-800); background: var(--navy-050); text-decoration: none; }
.statelink--main { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); font-weight: var(--fw-semibold); }
.statelink--main:hover { background: var(--navy-700); color: var(--surface); }
.statelink--variant { background: var(--gold-050); border-color: var(--gold-300); color: var(--gold-700); font-weight: var(--fw-semibold); }
.statelink--variant:hover { background: var(--gold-100); color: var(--gold-700); }
.statelink--err { border-color: var(--danger-100); background: var(--danger-050); color: var(--danger-700); }
.statelink--err:hover { border-color: var(--danger-500); background: var(--danger-100); color: var(--danger-700); }

.flowcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); box-shadow: var(--sh-xs);
}
.flowsteps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.flowstep {
  display: inline-flex; align-items: center; height: 28px; padding: 0 var(--sp-3);
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface-2);
  font-size: var(--fs-12); color: var(--ink-700); white-space: nowrap;
}
.flowstep:hover { border-color: var(--navy-500); background: var(--navy-050); color: var(--navy-800); text-decoration: none; }
.flowarrow { color: var(--ink-300); flex: none; }

/* ===================================================================}

   13 — Zentrierte Auth-Screens
   ========================================================================== */

.authwrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: var(--sp-6); position: relative;
  background:
    radial-gradient(1100px 520px at 50% -160px, var(--navy-100), transparent 70%),
    var(--bg);
}
.authcard {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: var(--sp-6);
}
.authcard--wide { max-width: 560px; }

/* ===================================================================}

   14 — Diverses
   ========================================================================== */

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2); padding: var(--sp-6); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.dropzone.is-hot { border-color: var(--gold-500); background: var(--gold-050); }
.dropzone.is-error { border-color: var(--danger-500); background: var(--danger-050); }

.filerow {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.filerow--error { border-color: var(--danger-100); background: var(--danger-050); }
.filerow__thumb {
  width: 44px; height: 56px; flex: none; border-radius: var(--r-xs); border: 1px solid var(--line);
  background: var(--plan-paper); overflow: hidden; display: grid; place-items: center;
}
.filerow__thumb > svg { width: 100%; height: 100%; }

.pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--sp-3); }
.pagethumb {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--plan-paper);
  cursor: pointer; overflow: hidden; position: relative; aspect-ratio: 3 / 4;
  display: grid; place-items: center; padding: 26px var(--sp-2) var(--sp-2);
  text-align: center;
}
.pagethumb:hover { border-color: var(--navy-400); }
/* Auswahl über einen inneren Schatten — die Boxgröße bleibt konstant,
   die Abstände im Raster bleiben damit gleich. */
.pagethumb.is-on,
.pagethumb:has(.check__native:checked) {
  border-color: var(--gold-500);
  box-shadow: inset 0 0 0 2px var(--gold-500), var(--sh-sm);
}
.pagethumb__no {
  position: absolute; right: 4px; top: 4px; font-size: var(--fs-10); font-weight: var(--fw-bold);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 0 4px; color: var(--ink-600); z-index: 2;
}
/* 20-px-Auswahlfeld oben links in jeder Kachel */
.pagethumb__pick { position: absolute; left: 5px; top: 5px; z-index: 2; min-height: 0; }
.pagethumb__pick .check__box { box-shadow: var(--sh-xs); }
.pagethumb > svg { width: 100%; height: 100%; }
.pagethumb__note {
  font-size: var(--fs-11); color: var(--ink-500); line-height: var(--lh-snug);
  display: grid; place-items: center; height: 100%;
}

.roomrow {
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--touch);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.roomrow__edit {
  width: var(--touch); height: var(--touch); flex: none; border: 0; background: transparent;
  /* Bedienelement-Symbol: 3:1 sind Pflicht (WCAG 1.4.11), ink-400 erreicht 2,97:1. */
  border-radius: var(--r-sm); color: var(--ink-500); display: grid; place-items: center; cursor: pointer;
}
.roomrow__edit:hover { background: var(--surface-3); color: var(--navy-800); text-decoration: none; }
.roomrow__edit .ico { width: 18px; height: 18px; }
.roomrow:hover { background: var(--surface-2); }
.roomrow.is-active { background: var(--gold-050); box-shadow: inset 3px 0 0 var(--gold-500); }
.roomrow__name { flex: 1 1 auto; font-size: var(--fs-13); color: var(--ink-800); }
.roomrow__area { font-size: var(--fs-12); color: var(--ink-600); font-variant-numeric: tabular-nums; }
/* Raumtyp-Marker: runder Punkt mit Rahmen — nie als Kontrollkästchen lesbar */
.roomrow__sw {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong);
  background: var(--ink-200);
}
.roomrow__sw--wohnen   { background: var(--room-wohnen); }
.roomrow__sw--schlafen { background: var(--room-schlafen); }
.roomrow__sw--flur     { background: var(--room-flur); }
.roomrow__sw--bad      { background: var(--room-bad); }
.roomrow__sw--lager    { background: var(--room-lager); }

/* Betriebsfelder: gleiches Raster, Label immer oben, Wert immer darunter */
.metagrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5);
}
@media (max-width: 768px) { .metagrid { grid-template-columns: 1fr; } }

/* Farbfeld als echtes Auswahlelement, 40 × 40 px */
.swatch {
  width: var(--touch); height: var(--touch); flex: none; cursor: pointer;
  display: grid; place-items: center; border-radius: var(--r-sm);
  border: 2px solid transparent; position: relative;
}
.swatch:hover { border-color: var(--navy-300); }
.swatch:has(.check__native:checked) { border-color: var(--navy-800); }
/* Das Auswahlfeld hat kein `.check__box`, an dem der allgemeine Fokusring haengt — ohne diese
   Zeile springt der Tastaturfokus unsichtbar durch die vier Farben. */
.swatch:has(.check__native:focus-visible) { box-shadow: var(--focus-ring); }
.swatch__dot { width: 26px; height: 26px; border-radius: var(--r-xs); border: 1px solid var(--line); }

.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi__val { font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--ink-900); font-variant-numeric: tabular-nums; }
.kpi__lbl { font-size: var(--fs-11); color: var(--ink-600); text-transform: uppercase; letter-spacing: var(--ls-caps); }

.meter { height: 8px; border-radius: var(--r-pill); background: var(--surface-sunk); overflow: hidden; }
.meter__fill { height: 100%; background: var(--navy-600); }
.meter__fill--gold { background: var(--gold-500); }
.meter__fill--danger { background: var(--danger-500); }

.divider { height: 1px; background: var(--line); }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--navy-100); color: var(--navy-700);
  display: grid; place-items: center; font-size: var(--fs-11); font-weight: var(--fw-bold);
}
.avatar--gold { background: var(--gold-100); color: var(--gold-700); }

/* Rollen-Legende: feste erste Spalte, jede Erklärung startet auf derselben Kante */
.rolegrid {
  display: grid; grid-template-columns: 180px 1fr; gap: var(--sp-3) var(--sp-4);
  align-items: center;
}
.rolegrid > .badge { justify-self: start; }
@media (max-width: 768px) { .rolegrid { grid-template-columns: 1fr; gap: var(--sp-1) 0; } }

.optioncard {
  display: flex; gap: var(--sp-3); padding: var(--sp-4); min-height: var(--touch);
  border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer;
  position: relative;
}
.optioncard:hover { border-color: var(--navy-300); text-decoration: none; }
.optioncard.is-on,
.optioncard:has(.check__native:checked),
.optioncard:has(input[type="radio"]:checked) { border-color: var(--gold-500); background: var(--gold-050); }
.optioncard .h4 { display: block; }
.optioncard .small { display: block; }
.optioncard__flag {
  position: absolute; right: var(--sp-3); top: calc(var(--sp-3) * -1);
  background: var(--surface); padding: 0 var(--sp-2);
}
.optioncard__mini {
  width: 108px; height: 84px; flex: none; border-radius: var(--r-xs); border: 1px solid var(--line);
  background: var(--plan-paper); overflow: hidden; display: grid; place-items: center;
}
.optioncard__mini > svg { width: 100%; height: 100%; }

/* Nordpfeil-Regler — kompakt: Scheibe 56 px, daneben Schieber und Zahlenfeld.
   Die frei werdende Breite geht an die Titelzeile. */
.northdial {
  width: 56px; height: 56px; border-radius: 50%; flex: none; position: relative;
  border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.northdial svg { width: 56px; height: 56px; }
.northdial__ticks { position: absolute; inset: 0; }
/* Die Bahn bleibt optisch 4 px, das Bedienelement selbst ist 24 px hoch: ein 4-px-Streifen ist
   mit der Maus kaum und mit dem Finger gar nicht zu treffen (WCAG 2.5.8). */
.northrange { -webkit-appearance: none; appearance: none; height: 24px; background: transparent;
  flex: 1 1 auto; min-width: 90px; }
.northrange::-webkit-slider-runnable-track {
  height: 4px; border-radius: var(--r-pill); background: var(--surface-sunk);
}
.northrange::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -10px;
  background: var(--navy-800); border: 2px solid var(--surface); box-shadow: var(--sh-xs); cursor: pointer;
}

.exportpreview {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  box-shadow: var(--sh-md); overflow: hidden; display: flex; flex-direction: column;
}
.exportpreview__plan { flex: 1 1 auto; background: var(--plan-paper); display: grid; place-items: center; padding: var(--sp-3); min-height: 0; }
.exportpreview__plan > svg { max-height: 100%; max-width: 100%; }
.exportpreview__foot {
  flex: none; display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border-top: 2px solid var(--gold-500); background: var(--surface);
}

.scalebar { display: flex; flex-direction: column; gap: 2px; }
.scalebar__track { display: flex; height: 7px; border: 1px solid var(--ink-700); }
.scalebar__seg { flex: 1; }
.scalebar__seg:nth-child(odd) { background: var(--ink-800); }
.scalebar__labels { display: flex; justify-content: space-between; font-size: var(--fs-10); color: var(--ink-700); }

/* Waagerecht scrollende Leiste mit sichtbarem Überlauf-Verlauf am rechten Rand */
.scrollx { position: relative; min-width: 0; }
.scrollx::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface));
}
.thumbstrip { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-1); }
.thumbstrip__item {
  width: 84px; flex: none; border: 2px solid var(--line); border-radius: var(--r-xs);
  background: var(--plan-paper); aspect-ratio: 3/4; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; position: relative;
}
.thumbstrip__item.is-on { border-color: var(--gold-500); }
.thumbstrip__item > svg { width: 100%; height: 100%; }

/* Verlauf */
.histrow {
  display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.histrow { align-items: center; min-height: var(--touch); }
.histrow:hover { background: var(--surface-2); text-decoration: none; }
/* Einträge bleiben einzeilig und enden mit Auslassungszeichen statt mitten im Satz */
.histrow__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.histrow.is-on { background: var(--navy-050); box-shadow: inset 2px 0 0 var(--navy-800); }
.histrow__mini {
  width: 56px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--plan-paper); overflow: hidden; display: grid; place-items: center;
}
.histrow__mini > svg { width: 100%; height: 100%; }

/* Scrollbars dezent */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--r-pill); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); background-clip: content-box; }

/* Hilfsklassen */
.pad-4 { padding: var(--sp-4); }
.pad-5 { padding: var(--sp-5); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.scroll-y { overflow-y: auto; }
.rel { position: relative; }
/* Sichtbarkeit nach Fensterbreite — die Umschaltung steht im Markup, nicht im Kopf */
.only-mobile { display: none !important; }

/* ===================================================================}

   14b — Tabellen, die auf schmalen Fenstern zu Karten werden
   Verwendung: <table class="table table--cards"> und je Zelle data-label="…"
   ========================================================================== */

@media (max-width: 768px) {
  .tablewrap .table--cards, .table--cards { min-width: 0 !important; }
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr {
    position: relative; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-3) var(--sp-2);
    margin-bottom: var(--sp-3);
  }
  .table--cards tbody tr:hover td { background: transparent; }
  .table--cards td {
    border: 0; padding: var(--sp-1) 0 !important; overflow: visible; text-overflow: clip;
  }
  .table--cards td[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 2px;
    font-size: var(--fs-10); font-weight: var(--fw-semibold);
    text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-600);
  }
  /* Kopf der Karte: Name und E-Mail ohne Beschriftung, direkt untereinander */
  .table--cards td.cell-head::before, .table--cards td.cell-sub::before { content: none; }
  .table--cards td.cell-head { padding-right: 48px !important; }
  .table--cards td.cell-inline { display: inline-block; width: auto; margin-right: var(--sp-4); }
  .table--cards td.cell-actions {
    position: absolute; right: var(--sp-2); top: var(--sp-2);
    width: auto; padding: 0 !important;
  }
  .table--cards td.cell-actions::before { content: none; }
}

/* ===================================================================}

   15 — Umschalter „Plan | Liste“ (nur schmale Fenster, von shell.js gesetzt)
   ========================================================================== */

.worktabs { display: none; }

/* ===================================================================}

   16 — Schmale Fenster
   ========================================================================== */

@media (max-width: 1180px) {
  .stylegrid { grid-template-columns: 1fr; }
  .container { padding: 0 var(--sp-4); }
  .dialog--wide > .dialog__body > .row--top { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  /* Seitenraster: alles einspaltig, nichts läuft aus dem Bild */
  .container, .container--narrow { padding: 0 var(--sp-4); max-width: 100%; }
  .projectgrid { grid-template-columns: 1fr; }
  /* Zeilen brechen um, statt ihre Felder zu quetschen; leere Abstandshalter entfallen */
  .row, .row--between { flex-wrap: wrap; }
  .row > .grow:empty { display: none; }
  .searchfield, .searchfield.grow { max-width: 100% !important; flex: 1 1 100%; }
  .select, .input { max-width: 100%; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: flex !important; }
  /* Bottom-Sheet-Ersatz: Block ist auf Mobil eingeklappt, bis der Knopf ihn öffnet */
  .m-sheet { display: none !important; }
  .m-sheet.is-open { display: flex !important; }

  /* ------------------------------------------------------------------
     Kopfzeile: Wortmarke, Manual und Zahnrad bleiben FEST in der ersten
     Zeile. Projektname, Etagen, Speicherstand und Version wandern in eine
     zweite Zeile — nichts scrollt waagerecht aus dem Bild.
     ------------------------------------------------------------------ */
  .appbar, .appbar--slim {
    height: auto; min-height: var(--header-h);
    padding: var(--sp-2) var(--sp-3); gap: var(--sp-2);
    overflow: visible; flex-wrap: wrap; row-gap: var(--sp-2);
  }
  .appbar__spacer { display: none; }
  .appbar__divider { display: none; }
  .appbar .wordmark { order: 1; }
  .appbar__actions { order: 2; margin-left: auto; }
  .appbar__project { order: 10; flex: 1 0 100%; }
  .appbar__project-name { max-width: 100%; }
  .floorswitch { order: 11; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
  .saveind, .jobchip { order: 12; }
  .appbar__version { order: 13; flex: 1 0 100%; padding-right: 0; }

  /* Karten und Dialoge auf volle Breite */
  .card, .panel, .authcard { max-width: 100% !important; }
  .authwrap { padding: var(--sp-4); }
  .authcard { padding: var(--sp-5); }

  /* Die Mockup-Leiste bleibt sichtbar, der Dialog beginnt darunter */
  .scrim { padding: 0; top: 0; align-items: stretch !important; justify-content: stretch !important; }
  .dialog {
    max-width: 100% !important; width: 100%; max-height: none; height: 100%;
    border-radius: 0; box-shadow: none;
  }
  .dialog__head, .dialog__body, .dialog__foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  /* Fuß als feste Vollbreiten-Leiste, Primärbutton über die ganze Breite */
  .dialog__foot {
    position: sticky; bottom: 0; z-index: 5; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap; gap: var(--sp-2);
    box-shadow: 0 -8px 20px rgba(14, 21, 34, .10);
  }
  .dialog__foot > * { flex: none !important; width: 100%; }
  .dialog__foot > .btn { height: 44px; }
  .dialog__foot > .btn--primary { order: -1; }
  .dialog__foot > .grow { display: none; }

  /* Zweispaltige Arbeitsflächen stapeln */
  .work { flex-direction: column; min-height: 0; }
  .side, .side--wide, .side--left {
    width: 100% !important; border-left: 0; border-right: 0;
    border-top: 1px solid var(--line); min-height: 0;
  }
  /* Gestapelt scrollt die ganze Seite — der Freiraum für das Widget gehört
     deshalb ans Seitenende, nicht mehr an die rechte Spalte. */
  .app--flush { height: auto; min-height: 100vh; overflow: visible;
    padding-bottom: var(--bug-clear); }
  .app--flush .side__body { overflow: visible; }
  .app--flush .work > .side:last-child { padding-bottom: 0; }
  .canvas { min-height: 46vh; padding: var(--sp-3); }
  .stepbar { height: auto; padding: var(--sp-2) var(--sp-4); flex-wrap: wrap; gap: var(--sp-2); }
  .stepbar > .row { flex: 1 0 100%; flex-wrap: wrap; }
  .stepbar .lockhint { flex: 1 0 100%; }
  .stepbar .btn--primary { width: 100%; }
  .stepbar > .grow { display: none; }

  /* Umschalter „Plan | Liste“ statt Nebeneinander */
  .worktabs {
    display: flex; gap: var(--sp-1); padding: var(--sp-2) var(--sp-4);
    background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
  }
  .worktabs .segmented { width: 100%; }
  .work.is-plan > .side { display: none; }
  .work.is-list > .canvas { display: none; }
  .work.is-list { min-height: 0; }
  /* Beim Nachmessen gehören Plan und Panel zusammen: die Strecke wird im Plan gezogen, die
     Länge im Panel eingetragen. Ohne diese Ausnahme wäre der zweite Weg zum Maßstab im schmalen
     Fenster nicht bedienbar (Fix-Pass 1, U2). */
  .work.is-messen > .canvas,
  .work.is-messen > .side { display: flex; }
  .work.is-messen { flex-direction: column; }

  /* Manual: Navigation über den Inhalt */
  .manual { flex-direction: column; }
  .manual__nav { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .manual__content { padding: var(--sp-5) var(--sp-4) var(--bug-clear); }

  /* Werkzeugleiste bricht in Zeilen um, statt als Streifen ohne Hinweis zu scrollen */
  .toolbar {
    height: auto; overflow: visible; flex-wrap: wrap;
    padding: var(--sp-2) var(--sp-3); row-gap: var(--sp-1);
  }
  .toolbar > .grow { flex: 1 0 100%; height: 0; margin: 0; }
  .toolbar__sep { display: none; }
  .toolbar__group { flex-wrap: wrap; }
  .toolbar .btn { flex: 1 1 auto; }

  /* Segmentierte Schalter brechen um, statt aus dem Bild zu laufen */
  .segmented--block { flex-wrap: wrap; }
  .segmented--block .segmented__item { flex: 1 1 46%; }

  /* Schrittleiste: alle fünf Schritte in zwei Zeilen statt als Scrollstreifen */
  .stepbar .steps { overflow-x: visible; flex-wrap: wrap; max-width: 100%; }
  .stepbar .step__sep { display: none; }

  /* Objekt-Popover bricht um, statt über den Rand zu ragen */
  .objpop { left: var(--sp-3) !important; right: var(--sp-3);
    transform: none !important; flex-wrap: wrap; }
  .objpop .tbtn { flex: 1 1 auto; }

  /* Zoom-Pille bleibt unten links, weicht aber dem Widget aus */
  .canvas__tools { bottom: var(--bug-clear); flex-wrap: wrap; max-width: calc(100% - var(--sp-6)); }

  /* Stilvergleich: drei Karten nebeneinander wischbar, identischer Bildausschnitt */
  .stylegrid {
    display: flex; gap: var(--sp-3); overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: var(--sp-2);
    margin: 0 calc(var(--sp-4) * -1); padding-left: var(--sp-4); padding-right: var(--sp-4);
  }
  .stylegrid > .stylecard { flex: 0 0 78%; scroll-snap-align: start; }
  .stylecard__preview { height: 200px; }
  /* Immer derselbe Raumausschnitt statt des ganzen Grundrisses — sonst ist
     bei 200 px Höhe kein Unterschied zwischen den Stilen zu erkennen. */
  .stylecard__preview > svg { transform: scale(2.6); transform-origin: 42% 26%; }
  .stylecard__body { padding: var(--sp-3); gap: var(--sp-1); }
  .stylecard__body .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; }
  /* Zoom bleibt überall die Pille unten links; Maßstab und Kennzeichnung
     wandern nach oben, damit sie dem Bug-Widget nicht in die Quere kommen. */
  .canvas__tools { left: var(--sp-3); }
  .canvas__scale { right: var(--sp-3); bottom: auto; top: var(--sp-3); }
  .canvas__badge { top: var(--sp-3); left: var(--sp-3); }
  .keyrow { grid-template-columns: 1fr; }
  .table--fixed { table-layout: auto; }
  .table th:first-child, .table td:first-child { padding-left: var(--sp-3); }
  .table th:last-child, .table td:last-child { padding-right: var(--sp-3); }
  .logrow { grid-template-columns: 1fr; gap: 0; }
}

/* Füll-Container für per JS eingesetzte SVGs */
.fill { display: block; width: 100%; height: 100%; min-width: 0; }
.fill > svg { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------------------
   Ergaenzungen der Anwendung (U1).
   Bausteine, die der Klick-Dummy als Screen zeigt, aber nicht als eigene Klasse
   fuehrt: die Einstellungen als Panel statt als Seite (UI-Standard „Logs in-place"),
   die Kopfzeile der Projektliste, die Etagenleiste und das Manual-Geruest.
   Nur Tokens, keine zweiten Farbwerte.
   --------------------------------------------------------------------------- */

.panel__title { font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--ink-900); }

.panel--bug {
  position: fixed; z-index: 90; width: min(420px, calc(100vw - var(--sp-6)));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl);
}
.panel--bug { bottom: calc(var(--sp-6) + var(--touch)); right: var(--sp-4); }

.statusline {
  font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--ok-700);
  background: var(--ok-050); border: 1px solid var(--ok-100);
  border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3);
}

.logbox { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-sunk); padding: var(--sp-3); }
.logbox__text {
  margin: 0; font-family: var(--font-mono); font-size: var(--fs-11);
  color: var(--ink-700); white-space: pre-wrap; word-break: break-word;
  max-height: 260px; overflow: auto;
}

.kv { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.kv__k { font-size: var(--fs-12); color: var(--ink-600); }
.kv__v { font-size: var(--fs-13); color: var(--ink-900); text-align: right; }

.listhead { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-4); }

.subheader {
  background: var(--surface); border-bottom: 1px solid var(--line);
  min-height: var(--subheader-h); display: flex; align-items: center;
}
.subheader .container { display: flex; align-items: center; width: 100%; }

.stepper { font-size: var(--fs-12); color: var(--ink-600); letter-spacing: var(--ls-wide); }

.manual__section { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
/* Kopf der Manual-Sidebar: „Zurueck zur App" und das Suchfeld (Dummy S11). */
.manual__navkopf { padding: 0 var(--sp-5) var(--sp-4); }

.input--area { height: auto; padding: var(--sp-3); line-height: var(--lh-snug); resize: vertical; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ===================================================================}

   16 — Klassen statt Inline-Stilen (Fix-Pass 1, U1)
   --------------------------------------------------------------------------
   Die Produktions-CSP erlaubt kein `style-src 'unsafe-inline'`. Jedes
   `style="…"` im ausgelieferten HTML wurde deshalb vom Browser verworfen — die
   Oberflaeche rendert dann in JEDEM Betriebsmodus mit kaputtem Layout
   (Suchfeld 175 px statt 420 px, Kartenmenue ueber die Karte hinaus, volle
   Streifen statt Karten in den Leerzustaenden). Der Dummy darf mit Inline-Stil
   arbeiten, die Anwendung nicht: hier stehen dieselben Werte als Klasse.
   `apps/web/test/sicherheit-header.int.test.ts` haelt durch, dass keine
   ausgelieferte Seite ein `style`-Attribut traegt.
   ========================================================================== */

.row--bottom { align-items: flex-end; }

/* Kartenmenue: rechtsbuendig unter dem Ausloeser (Dummy: right:0;top:44px). */
.menu--karte { right: 0; top: 44px; }
/* Menue unter einem Knopf in einer Leiste. */
.menu--unter { top: calc(var(--touch) + var(--sp-1)); }

.searchfield--breit { max-width: 420px; }
.select--sortierung { width: 220px; }

.page__kopf { padding-top: var(--sp-5); }
.page__inhalt { padding-top: var(--sp-5); padding-bottom: var(--sp-8); }

.card--mittig-md { max-width: 640px; margin: var(--sp-6) auto; }
.card--mittig-lg { max-width: 760px; margin: var(--sp-6) auto; }

.dropzone__icon { color: var(--navy-400); }
.dropzone.is-error .dropzone__icon { color: var(--danger-600); }
.dropzone__text { max-width: 560px; }
.dropzone__titel--fehler { color: var(--danger-700); }
.dropzone__text--fehler { color: var(--danger-700); max-width: 520px; }

.etagenname { max-width: 280px; }
.filerow__haken { color: var(--ok-600); }
.filerow__griff { color: var(--ink-500); }
.filerow__fehler { color: var(--danger-700); }
.filerow__thumb--fehler { background: var(--danger-100); color: var(--danger-600); }

.pagethumb__bild { width: 100%; height: 100%; object-fit: contain; background: var(--plan-paper); }

/* Das echte <input> deckt sein Kaestchen ab: mit Maus, Tastatur und Testwerkzeug bedienbar,
   optisch bleibt das eigene Kaestchen des Design-Systems. Ohne das war die Seitenauswahl nur
   ueber die umgebende Beschriftung erreichbar — und fuer jedes Werkzeug unsichtbar. */
.pagethumb__pick .check__native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; pointer-events: auto; cursor: pointer;
}

@media (max-width: 768px) {
  .panel--bug { left: var(--sp-3); right: var(--sp-3); width: auto; }
}

/* ---------------------------------------------------------------- Plan (U2)
   Der aufbereitete Grundriss wird als eingebettetes SVG gezeichnet, nicht als Bild der
   Quelldatei: nur so tragen Wände, Räume und Möbel eigene Klassen — und nur so sieht man den
   Unterschied zwischen „vorher" und „bereinigt". Alle Farben kommen aus den Plan-Tokens. */
.planwand { fill: var(--plan-wall); }
.planraum { fill: var(--plan-room); stroke: var(--plan-line); stroke-width: 6; }
.planmoebel { fill: var(--plan-furniture); stroke: var(--plan-furniture-line); stroke-width: 8; }
/* Durchgereichte Originalpfade (E1): gezeichnete Wandkonturen, Treppen, Symbolpfade. Sie tragen
   ihre Form aus der Quelle und hier ihre Farbe — Füllung und Strich kommen aus den Plan-Tokens,
   damit die technische Ansicht dieselbe Farbquelle hat wie der Verkaufsgrundriss. */
.planpfad { fill: none; stroke: var(--plan-line); }
.planpfad--gefuellt { fill: var(--plan-paper); }
.planpfad--wand { stroke: var(--plan-wall); }
.planmesslinie {
  stroke: var(--gold-600); stroke-width: 24; stroke-linecap: round;
}
/* Raumbeschriftung im Plan. Ohne sie ist bei drei Räumen „SCHLAFZIMMER" nicht ablesbar, welche
   Zeile der Liste zu welcher Fläche gehört (Fix-Pass 1, U2). */
.planlabel {
  fill: var(--plan-text); text-anchor: middle; dominant-baseline: middle;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  paint-order: stroke; stroke: var(--plan-room); stroke-width: 24; stroke-linejoin: round;
  pointer-events: none;
}
.planlabel__mass { font-weight: var(--fw-regular); fill: var(--plan-line); }
/* Zoom der Zeichenfläche in festen Stufen — als Klasse, weil die CSP kein `style`-Attribut
   erlaubt (AC90). */
.canvas__sheet.zoom--50  { transform: scale(.5); }
.canvas__sheet.zoom--75  { transform: scale(.75); }
.canvas__sheet.zoom--100 { transform: none; }
.canvas__sheet.zoom--150 { transform: scale(1.5); }
.canvas__sheet.zoom--200 { transform: scale(2); }
.canvas__vorher {
  position: absolute; inset: var(--sp-5); object-fit: contain;
  background: var(--plan-paper); border-radius: var(--r-sm);
}
.stack-1 > * + * { margin-top: var(--sp-1); }
.quellenzeile { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-12); }
.quellenzeile__eintrag { color: var(--ink-500); }
.quellenzeile__eintrag.is-active { color: var(--ink-700); font-weight: var(--fw-semibold); }
/* Kein `style`-Attribut: die CSP der Anwendung erlaubt keinen Inline-Stil (AC90). Was der
   Klick-Dummy dort schreibt, steht hier als Klasse. */
.roomlist__head { padding: 0 var(--sp-4) var(--sp-3); }
.karte--schmal { max-width: 560px; }
/* Das Blatt fuellt die Zeichenflaeche und begrenzt das eingebettete SVG in **beide**
   Richtungen. Ohne die Hoehenbindung wuchs es aus dem Seitenverhaeltnis heraus und der untere
   Teil des Grundrisses lag ausserhalb des Fensters. */
.canvas__sheet--plan { width: min(100%, 760px); height: 100%; }
.canvas__sheet--plan > svg { width: 100%; height: 100%; }
.segmented__item--mitte { justify-content: center; }
.input--kurz { max-width: 120px; }
.side__section--flush { padding-left: 0; padding-right: 0; }
/* Platz fuer das Bug-Widget unten rechts: ohne ihn verdeckt es das letzte Bedienelement des
   Seitenpanels — auf S4 genau den Knopf zum Nachmessen. */
.side--wide .side__body { padding-bottom: calc(var(--sp-7) + var(--touch)); }
.fortschritt { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; }
.fortschritt::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
.fortschritt::-webkit-progress-value { background: var(--gold-600); border-radius: 999px; }
.fortschritt::-moz-progress-bar { background: var(--gold-600); border-radius: 999px; }

/* ------------------------------------------------ Fenster und Türen (U3, S5)
   Der Typ steht im **Symbol**, die Sicherheit im **Muster**, die Farbe verstärkt nur. Das ist
   keine Stilfrage: im Graustufen-Druck und für farbfehlsichtige Nutzer bleibt sonst nichts
   übrig, woran ein Fenster von einer Tür zu unterscheiden wäre (AC35). Das Strichmuster steht
   deshalb als Attribut am Pfad und nicht hier — es muss auch ohne Formatvorlage ankommen. */
.planoeffnung { fill: none; stroke-width: 34; stroke-linejoin: round; stroke-linecap: round; }
.planoeffnung--fenster, .planoeffnung--zweifluegelfenster { stroke: var(--plan-window); fill: var(--plan-window-fill); }
.planoeffnung--tuer { stroke: var(--plan-door); fill: var(--plan-door-fill); }
/* Art unbekannt (F1): die Farbe der unsicheren Erkennung, ohne Füllung. Sie behauptet weder
   Fenster noch Tür — vorher trug dieselbe Öffnung die Türfarbe. */
.planoeffnung--unbekannt { stroke: var(--plan-unsure); fill: none; }
[data-rolle='oeffnung'][data-sicher='false'] .planoeffnung { stroke: var(--plan-unsure); fill: none; }
[data-rolle='oeffnung'][data-status='bestaetigt'] .planoeffnung { opacity: .72; }
/* Kompakter Ausrufezeichen-Kreis statt des ausgeschriebenen Wortes: „Unsicher" war rund zwölfmal
   so breit wie die Öffnung und lief bei benachbarten Markern quer durch deren Symbol. */
.planoeffnung__badge { pointer-events: none; }
.planoeffnung__badgering {
  fill: var(--plan-paper); stroke: var(--plan-unsure); stroke-width: 60;
}
.planoeffnung__badgetext {
  fill: var(--plan-unsure); font-family: var(--font-sans); font-weight: var(--fw-bold);
  font-size: 260px;
}
/* Die vier Außenwände als Klickziele. Sichtbar erst im Ergänzen-Modus — vorher wären sie ein
   Angebot, das nichts tut. */
.planwandziel { fill: transparent; pointer-events: none; }
.is-ergaenzen .planwandziel {
  fill: var(--gold-500); opacity: .18; pointer-events: auto; cursor: crosshair;
}
.is-ergaenzen .planwandziel:hover { opacity: .34; }
.is-ergaenzen .canvas__sheet--plan { cursor: crosshair; }
.legendensymbol { width: 30px; height: 16px; flex: none; }
.canvas__scale--legende {
  flex-direction: column; align-items: flex-start; gap: var(--sp-1);
}
.canvas__badge--gold {
  background: var(--gold-050); border-color: var(--gold-300); color: var(--gold-700);
}
/* Die Prüfliste. Ihre Höhe ist begrenzt und sie scrollt für sich — der Kopf mit Zähler und
   Sammelaktion bleibt dabei stehen. */
.oplist { display: block; }
.opitem { outline: none; cursor: pointer; }
.opitem:focus-visible, .opitem.is-focus {
  background: var(--gold-050); box-shadow: inset 3px 0 0 var(--gold-500);
}
/* **Kein `opacity` auf der ganzen Zeile.** Es dimmt auch den Text und drückt den Kontrast unter
   den Schwellwert — axe meldet auf der fertig geprüften Liste vier `color-contrast`-Verstöße
   (Fix-Pass 1, U3). „Erledigt" ist hier ein ruhigerer Grund und ein blasseres Symbol; die Schrift
   bleibt lesbar. */
.opitem[data-status='bestaetigt'] { background: var(--surface-2); }
.opitem[data-status='bestaetigt'] .opitem__sym { opacity: .55; }
.opitem__sym { padding: 2px; }
.opitem__sym .planoeffnung { stroke-width: 60; }
/* Der Sperrgrund neben „Weiter zum Stil" ist **anklickbar** und springt zum ersten offenen
   Eintrag (AC37). Er sieht aus wie der Hinweistext daneben — deshalb erbt er dessen Aussehen,
   statt wie ein zweiter Knopf zu wirken. */
button.lockhint--block {
  border: 0; text-align: left; font: inherit; font-size: var(--fs-12);
  color: var(--ink-500); background: none; cursor: pointer; padding: 0;
}
button.lockhint--block:hover { color: var(--ink-700); text-decoration: underline; }
/* Beide Zustände stehen im Markup, die Formatvorlage wählt. Eine Entscheidung im Prüf-Modus
   ändert damit ein `data-`-Merkmal und keinen Text — der Wortlaut bleibt an einer Stelle. */
.opitem .nur-fenster, .opitem .nur-tuer, .opitem .nur-unbekannt,
.opitem .nur-unsicher, .opitem .nur-bestaetigt,
.opitem .nur-anschlag-angenommen,
.opitem .anschlag { display: none; }
.opitem[data-typ='fenster'] .nur-fenster { display: inline; }
.opitem[data-typ='tuer'] .nur-tuer { display: inline; }
/* Die dritte Art (F1). Sie hat kein Symbol und keinen Anschlag — nur den Block und ein Wort,
   das sagt, dass hier nichts gelesen wurde. */
.opitem[data-typ='unbekannt'] .nur-unbekannt { display: inline; }
.opitem[data-sicher='false'] .nur-unsicher { display: inline-flex; }
.opitem[data-status='bestaetigt'] .nur-bestaetigt { display: inline-flex; }
.opitem[data-status='bestaetigt'] [data-aktion='oeffnung-bestaetigen'] { display: none; }
.opitem[data-aufgehrichtung=''] .opitem__anschlag { display: none; }
.opitem[data-aufgehrichtung='links-innen'] .anschlag--links-innen,
.opitem[data-aufgehrichtung='rechts-innen'] .anschlag--rechts-innen,
.opitem[data-aufgehrichtung='links-aussen'] .anschlag--links-aussen,
.opitem[data-aufgehrichtung='rechts-aussen'] .anschlag--rechts-aussen { display: inline; }
/* Ein Anschlag, den niemand abgelesen hat (E3). Ohne diese Kennzeichnung steht die
   Voreinstellung `links-innen` im selben Wortlaut da wie eine am Schwenkbogen gemessene
   Richtung — und wer sie bestätigt, bestätigt eine Annahme im Glauben, sie sei ein Messwert.
   Das Wort steht im Markup und trägt die Aussage; die Farbe verstärkt sie nur. */
.opitem[data-anschlag-quelle='angenommen'] .nur-anschlag-angenommen { display: inline-flex; }
.opitem[data-anschlag-quelle='angenommen'] .opitem__anschlag { color: var(--danger-700); }
.planoeffnung--zeile { stroke: var(--ink-700); fill: var(--surface); }
.opitem[data-typ='fenster'] .planoeffnung--zeile,
.opitem[data-typ='zweifluegelfenster'] .planoeffnung--zeile {
  stroke: var(--plan-window); fill: var(--plan-window-fill);
}
.opitem[data-typ='tuer'] .planoeffnung--zeile,
.opitem[data-typ='tor'] .planoeffnung--zeile {
  stroke: var(--plan-door); fill: var(--plan-door-fill);
}
.opitem[data-typ='unbekannt'] .planoeffnung--zeile {
  stroke: var(--plan-unsure); fill: none;
}
.opitem[data-sicher='false'] .planoeffnung--zeile { stroke: var(--plan-unsure); fill: none; }

/* Auswahl = zusätzlicher Haloring (verbindliche Darstellungsregel des Entwurfs). Ohne diese
   Regel trug `is-focus` am Marker keine Wirkung: die im Plan gewählte Öffnung sah aus wie jede
   andere, und der Fokussprung war im Bild nicht zu verfolgen (Fix-Pass 1, U3). */
[data-rolle='oeffnung'] .planoeffnung__halo { display: none; }
[data-rolle='oeffnung'].is-focus .planoeffnung__halo {
  display: block; fill: none; stroke: var(--gold-500); stroke-width: 110; opacity: .9;
}
[data-rolle='oeffnung'].is-focus .planoeffnung { stroke-width: 48; }

/* Die aufgeklappte Karte des fokussierten Eintrags — Prüf-Modus mit der Maus.
   Sie liegt **unter** der Zeile, nicht neben ihr: die Zeile ist ein Flex-Container, ohne Umbruch
   quetschte die Karte Symbol, Text und Knöpfe in schmale Spalten. */
.opitem { flex-wrap: wrap; }
.opcard {
  display: none; flex: 0 0 100%; width: 100%;
  margin: var(--sp-2) calc(var(--sp-3) * -1) calc(var(--sp-2) * -1) calc(var(--sp-4) * -1);
  padding: var(--sp-3) var(--sp-4); background: var(--gold-050);
  border-top: 1px solid var(--gold-300);
}
.opitem.is-focus .opcard, .opitem:focus-visible .opcard { display: block; }
.opitem .opcard .nur-fenster, .opitem .opcard .nur-tuer,
.opitem .opcard .nur-unbekannt { display: none; }
.opitem[data-typ='fenster'] .opcard .nur-fenster { display: block; }
.opitem[data-typ='tuer'] .opcard .nur-tuer { display: block; }
.opitem[data-typ='unbekannt'] .opcard .nur-unbekannt { display: block; }
.opitem[data-typ='fenster'] .opcard button.nur-fenster,
.opitem[data-typ='tuer'] .opcard button.nur-tuer { display: inline-flex; }
/* Wo die Art unbekannt ist, stehen **beide** Umschalter: es gibt keine Gegenart, von der aus
   umgestellt würde — der Makler setzt sie zum ersten Mal. */
.opitem[data-typ='unbekannt'] .opcard button.nur-fenster,
.opitem[data-typ='unbekannt'] .opcard button.nur-tuer { display: inline-flex; }
.opitem[data-sicher='true'] .opcard [data-testid='fokus-erklaerung'] { display: none; }
/* „Die Automatik hat hier geraten“ stimmt für die unbekannte Art nicht — dort hat sie
   nichts geraten, sondern nichts gelesen. Die eigene Erklärung steht daneben. */
.opitem[data-typ='unbekannt'] .opcard [data-testid='fokus-erklaerung'] { display: none; }
.anschlagwahl { height: auto; min-width: 76px; flex-direction: column; gap: 2px;
  padding: var(--sp-2); }
.anschlagwahl__sym { width: 30px; height: 26px; }
.anschlagwahl__sym .planoeffnung { stroke-width: 70; }
.opitem .anschlagtext { display: none; }
.opitem[data-aufgehrichtung='links-innen'] .anschlagtext--links-innen,
.opitem[data-aufgehrichtung='rechts-innen'] .anschlagtext--rechts-innen,
.opitem[data-aufgehrichtung='links-aussen'] .anschlagtext--links-aussen,
.opitem[data-aufgehrichtung='rechts-aussen'] .anschlagtext--rechts-aussen { display: inline; }
.opitem[data-aufgehrichtung='links-innen'] .anschlagwahl--links-innen,
.opitem[data-aufgehrichtung='rechts-innen'] .anschlagwahl--rechts-innen,
.opitem[data-aufgehrichtung='links-aussen'] .anschlagwahl--links-aussen,
.opitem[data-aufgehrichtung='rechts-aussen'] .anschlagwahl--rechts-aussen {
  border-color: var(--navy-400); background: var(--navy-050); font-weight: var(--fw-semibold);
}
/* Die Legende steht über der Maßstabsangabe — beide sitzen unten rechts an der Zeichenfläche. */
.canvas__scale--legende { bottom: calc(var(--sp-4) + var(--touch) + var(--sp-2)); }
/* Die Versionszeile steht auf jeder Seite unten links (UI-Standard). Auf den Vollbild-Screens
   liegt dort auch die Zoom-Steuerung — sie weicht der Zeile aus, statt sich mit ihr zu
   überlagern (gemessen: 13 px Überschneidung bei voller Breitendeckung, Fix-Pass 1, U3). */
@media (min-width: 769px) {
  body:has(.app--flush) .canvas__tools { bottom: calc(var(--sp-4) + var(--sp-5)); }
}
/* Der Ergänzen-Hinweis steht unter dem Vorher/Nachher-Abzeichen, nicht darüber. */
.canvas__badge--gold { top: calc(var(--sp-4) + 44px); }
@media (max-width: 768px) {
  /* Ergänzen heißt „auf die Wand klicken". Im schmalen Fenster liegt die Zeichenfläche hinter
     dem Umschalter — im Ergänzen-Modus gehört sie nach vorn, sonst gäbe es kein Ziel. */
  .work.is-list.is-ergaenzen > .canvas { display: flex; }
  .work.is-list.is-ergaenzen > .side { display: none; }

  /*
   * **Die Legende bleibt eine Fußnote, kein Vorhang.**
   *
   * Die Regel weiter oben schiebt `.canvas__scale` im schmalen Fenster nach oben
   * (`bottom: auto; top: sp-3`); die U3-Regel setzte für die Legende danach wieder ein `bottom`.
   * Ein absolut positionierter Kasten mit `top` **und** `bottom` wird über die ganze Höhe
   * gestreckt: 238 × 312 px über einem 366 × 326 px großen Planblatt — rund 62 % verdeckt, im
   * Ergänzen-Modus dazu der Abbrechen-Knopf (Fix-Pass 1, U3).
   *
   * Am Telefon gibt es keinen Platz **neben** dem Blatt. Die Legende verlässt deshalb die
   * absolute Lage und steht als eigene Zeile **unter** dem Blatt: das Blatt wird kürzer, statt
   * verdeckt zu werden. Drei Symbole mit ihrer Erklärung sind keine Nebensache — ohne sie ist
   * der Plan nicht zu lesen.
   */
  /* Die Filterzeile bleibt **eine** Zeile. Zweizeilig kostet sie im Prüfschritt 40 px Kopfhöhe —
     Platz, den am Telefon der Ausweg im Fehlerzustand braucht (Fix-Pass 1, U3). */
  [data-testid='filterzeile'].segmented--block { flex-wrap: nowrap; }
  [data-testid='filterzeile'] .segmented__item {
    flex: 1 1 0; min-width: 0; padding: 0 var(--sp-1); font-size: var(--fs-11);
  }
  .canvas { flex-direction: column; }
  .canvas__sheet--plan { flex: 1 1 auto; height: auto; min-height: 0; }
  .canvas__scale--legende {
    position: static; top: auto; bottom: auto; left: auto; right: auto;
    width: 100%; flex: none; margin-top: var(--sp-2);
    flex-direction: row; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3);
    padding: var(--sp-1) var(--sp-2); min-height: 0;
  }
  /* Der Hinweis im Ergänzen-Modus darf nicht abgeschnitten werden: er trägt den Ausweg. */
  .canvas__badge--gold {
    top: calc(var(--sp-3) + 44px); left: var(--sp-3); right: var(--sp-3);
    flex-wrap: wrap; z-index: 2;
  }
}
/* Im Ergänzen-Modus ist die Zeichenfläche das Ziel. Die Chips darüber — Maßstab, Legende,
   Vorher/Nachher — sind Auskunft, kein Bedienelement; im schmalen Fenster decken sie einen
   spürbaren Teil des Blattes ab und fingen den Klick ab, der der Wand gilt. */
.is-ergaenzen .canvas__scale,
.is-ergaenzen [data-testid='canvas-badge'] { pointer-events: none; }

/* ---------- S6: Bodenbelag-Vorauswahl ----------
   Die Kacheln des Entwurfs unter der grossen Vorschau (`#floors`). Sie stehen hier statt als
   Inline-Stil im Markup: die CSP der Anwendung erlaubt keinen Inline-Stil, und eine zweite
   Farbquelle waere der Guard aus U0. */
.bodenwahl {
  height: auto; padding: var(--sp-1); flex-direction: column; gap: 4px;
}
.bodenwahl img {
  width: 52px; height: 36px; object-fit: cover; border-radius: var(--r-xs);
}
.bodenwahl.is-active { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
/* Ein Paletteneintrag, der (noch) nicht ablegbar ist: sichtbar, aber sichtbar gesperrt — mit dem
   Grund darunter. Verstecken waere der bequemere und der schlechtere Weg (AC44). */
.pitem.is-disabled { opacity: .62; cursor: not-allowed; }
.pitem.is-disabled .pitem__thumb { filter: grayscale(1); }
/* Halter eines Menues, das unter seinem Knopf aufgeht (Etagenumschalter der Arbeitsflaeche). */
.menuhalter { position: relative; }

/* ---------- S6/S7: die Werte, die vorher als `style`-Attribut im Markup standen ----------
   Zehn Inline-Stile lieferte die Stilseite aus; `style-src 'self'` verwirft sie in **jedem**
   Betriebsmodus, und damit fielen Abstand, Blattbreite, Zentrierung, Vorschauhintergrund und
   Auswahlbreite ersatzlos aus (Fix-Pass 1, U4). Sie stehen jetzt hier — an derselben Stelle wie
   jede andere Gestaltung, und der Waechter `oberflaeche-app.int.test.ts` faehrt Schritt 3 und 4
   mit. */
.page__inhalt--stil { padding-top: var(--sp-6); }
.row--bottom { align-items: flex-end; }
.sk--fill { width: 100%; }
/* Der Vorschaukörper klemmt seinen Inhalt wie die Zeichenfläche auf S4/S5: eine auf 200 %
   gezoomte Vorschau legte sich sonst über den Kartenkopf und fing die Zoom-Knöpfe ab. */
.card__body--tief { background: var(--bg-deep); overflow: hidden; }
.canvas__sheet--breit { max-width: 820px; margin: 0 auto; }
.select--etage { width: 170px; }
.bodenblock { min-width: 280px; }
.eyebrow--eingerueckt { padding: 0 var(--sp-4); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-3 { margin-bottom: var(--sp-3); }
/* Zoomanzeige im Kartenkopf der grossen Vorschau — dieselbe Optik wie die Pille auf S4/S5. */
.zoomwert { min-width: 56px; justify-content: center; }

/* Fehlerzustand einer Stilvorschau: er sitzt **in** der Vorschauflaeche, nicht als grauer
   Fliesstext im Kartenkoerper. Der Nutzer sieht dort das Loch, das er sonst nicht erklaeren
   kann — mit Warnsymbol, Danger-Farbe und dem Weg zurueck darunter (Entwurf `?state=fehler`). */
.stylecard__preview--fehler { background: var(--danger-050); }
.stylecard__preview--fehler .ico { color: var(--danger-600); }
.stylecard__preview--fehler p { color: var(--danger-700); }
/* Vollstaendig fehlender Assetsatz: die Karte ist nicht waehlbar und sieht auch so aus. */
.stylecard__preview--gesperrt { background: var(--surface-3); }

/* ---------------------------------------------------------------- Editor (U5) */
/* Die Auswahl liegt **im** SVG, nicht als HTML-Kasten darueber: sie muss jeder Drehung und
   jedem Zoom folgen, ohne dass eine zweite Rechnung ihre Lage nachfuehrt. */
.auswahlrahmen { fill: none; stroke: var(--gold-500); stroke-width: 12; vector-effect: non-scaling-stroke; }
.auswahlgriff { fill: var(--gold-500); stroke: var(--surface); stroke-width: 4; }
.hilfslinie { stroke: var(--gold-500); stroke-width: 6; stroke-dasharray: 40 30; vector-effect: non-scaling-stroke; }
[data-rolle='objekt'] { cursor: grab; }
[data-rolle='objekt'][data-ausgewaehlt='ja'] { cursor: grabbing; }
[data-rolle='beschriftung'] { cursor: move; }

/* Speicherindikator in der Schrittleiste — dieselbe Pillenoptik wie die uebrigen Chips. */
.savechip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--sp-3);
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-600);
  font-size: var(--fs-12); white-space: nowrap;
}

.savechip:empty { display: none; }

.thumb48 {
  width: 52px; height: 52px; flex: none; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--ink-500);
}

.side__head--flach { padding-bottom: 0; }
.pad-6 { padding: var(--sp-6); }

/* Die Kuerzeluebersicht liegt mittig ueber der Zeichenflaeche (Entwurf `#shortcuts`). */
.kuerzelkarte {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, 92%); z-index: 60;
}

/* ---------------------------------------------- Klickziele im schmalen Fenster (U5, AC61)
   Die Design-Regel „Klickziele ≥ 40 px hoch" galt bisher nur für die Bedienelemente des
   Design-Systems (`--touch`). Wortmarke, Kartentitel, Etagenchips und die kleinen Icon-Knöpfe
   der Projektkarte lagen darunter — am Telefon die vier Ziele, die man am häufigsten trifft.
   Am Schreibtisch bleibt es bei der kompakten Optik: dort zielt eine Maus, kein Daumen. */
@media (max-width: 768px) {
  .wordmark, .pcard__title { min-height: var(--touch); display: inline-flex; align-items: center; }
  .chip { min-height: var(--touch); }
  .btn--sm { min-height: var(--touch); }
}

/* Das Auswahlfeld der Beschriftungs-Eigenschaften deckt sein Kästchen ab — dieselbe Regel wie
   bei der Seitenauswahl (`.pagethumb__pick`): ein `<input>` mit 0 × 0 px ist für Maus, Tastatur
   und Testwerkzeug unsichtbar, und die Fläche wäre nur über die Beschriftung daneben zu
   treffen. */
.check--deckend .check__native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; pointer-events: auto; cursor: pointer;
}

/* ===================================================================}

   17 · Branding und Export (U7 — S10 „Branding", S9 „Grundriss exportieren")
   ========================================================================== */

/* Die Ablagefläche eines Logos: feste Größe wie im Entwurf, damit die Vorschau nicht springt,
   wenn ein hohes Logo ein breites ablöst. */
.logopad {
  width: 200px; height: 96px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); display: grid; place-items: center; padding: var(--sp-3);
}
.logopad--dunkel { background: var(--navy-800); }
.logopad--dunkel .xsmall { color: var(--navy-300); }
.logopad__bild { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Der Farbknopf ist das Eingabefeld selbst — dieselbe Regel wie `.check--deckend`: ein
   `<input>` mit 0 × 0 px ist für Maus, Tastatur und Testwerkzeug nicht zu treffen, und die
   Auswahl hinge allein am umgebenden Label. */
.swatch .check__native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; pointer-events: auto; cursor: pointer;
}

/* Die vier Akzentfarben stehen als Tokennamen in der Datenbank; hier bekommen sie ihr Feld. */
.swatch__dot--gold   { background: var(--gold-500); }
.swatch__dot--navy   { background: var(--navy-800); }
.swatch__dot--ok     { background: var(--ok-600); }
.swatch__dot--danger { background: var(--danger-600); }

/* Live-Vorschau der Exportfußzeile: nur die Fußzeile, ohne Planfläche darüber. */
.exportpreview--flach { max-width: 520px; }
.exportpreview__foot--gold   { border-top-color: var(--gold-500); }
.exportpreview__foot--navy   { border-top-color: var(--navy-800); }
.exportpreview__foot--ok     { border-top-color: var(--ok-600); }
.exportpreview__foot--danger { border-top-color: var(--danger-600); }
.exportpreview__logo { width: 34px; height: 34px; flex: none; object-fit: contain; }
.exportpreview__logo--leer { border: 1px dashed var(--line-strong); border-radius: var(--r-xs); }

/* Der Dateiwähler bleibt für Maus, Tastatur und Testwerkzeug erreichbar — er ist nur nicht zu
   sehen. `display: none` würde ihn aus dem Zugänglichkeitsbaum nehmen und die Beschriftung
   daneben verlöre ihr Ziel. */
.visuallyhidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Eine erzeugte Ausgabe in der Ergebnisliste des Dialogs (Entwurf `.filerow`). */
.exportzeile { display: flex; align-items: center; gap: var(--sp-3); }
.exportzeile__thumb {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-xs);
  background: var(--ok-050); color: var(--ok-600); display: grid; place-items: center;
}
.exportzeile--fehler .exportzeile__thumb { background: var(--danger-050); color: var(--danger-600); }

/* Fix-Pass 1 (U7): Die Maßstabsleiste hatte keine Breite. Im Dummy kam sie aus einem
   `style="width:82px;flex:none"`, das wegen `style-src 'self'` nicht übernommen werden konnte —
   in der schmalen Einstellungen-Schublade lief „0 / 2 m / 4 m" dadurch zu „02  4" zusammen und
   die Einheiten rutschten in eine zweite Zeile. Die Breite gehört zur Klasse, nicht zum Knoten. */
.scalebar { width: 82px; flex: none; }

/* Die linke Spalte des Exportdialogs: Blatt, Seitenblätterer, Seitenleiste (Entwurf S9). */
.exportvorschau { flex: 0 0 340px; min-width: 0; }
.exportvorschau .exportpreview { height: 400px; }
@media (max-width: 900px) {
  .exportvorschau { flex: 1 1 100%; }
}

/* Zahlenfeld neben dem Nordpfeil-Schieber — im Entwurf 62 px breit. */
.input--kurz { width: 62px; flex: none; }

/* QR-Einrichtung nach N1/B10; die Zeile muss auch im Konto-Panel umbrechen. */
.mfa-einrichtung { flex-wrap: wrap; gap: 20px; }
.mfa-qr {
  flex: none; width: 132px; height: 132px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 0;
}
.mfa-einrichtung > .grow { flex-basis: 200px; }
.mfa-einrichtung .btn { white-space: normal; }

/* Die unsichtbare Fläche erfüllt 44 px, ohne die N1-Geometrie zu ändern. */
.appbar a.wordmark::after, .appbtn::after, .bugwidget::after {
  content: ""; position: absolute; left: -2px; right: -2px;
  top: calc((44px - 100%) / -2); bottom: calc((44px - 100%) / -2);
}
@media (max-width: 768px) {
  .appbar { height: var(--header-h); padding: 0 12px; gap: 8px; flex-wrap: nowrap; }
  .appbar__spacer { display: flex; }
  .appbar .wordmark, .appbar__actions { order: 0; }
  .appbar__actions { margin-left: 0; }
  .crumbs, .appbtn span, .bugwidget > span { display: none; }
  .wordmark__name { font-size: 16px; }
  .appbtn { width: 40px; padding: 0; justify-content: center; }
  .h1 { font-size: var(--fs-24); }
  .versionline, .versionline--static { position: static; margin: 0; padding: 12px 16px 84px; }
  .bugwidget { width: 44px; padding: 0; justify-content: center; }
}

.authcard.authcard--einrichtung { max-width: 400px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.authcard--einrichtung .h1 { font-size: var(--fs-28); }
.authcard--einrichtung .lead { font-size: 15px; line-height: 1.6; }
/* Die N1-Aktionen sind Links; native Button-Malregeln duerfen ihre CSS-Kanten nicht verschieben. */
.authcard--einrichtung .btn { font-weight: 550; appearance: none; }
.authcard--einrichtung .btn--primary { box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-800) 25%, transparent), inset 0 1px 0 color-mix(in srgb, var(--surface) 8%, transparent); }
.authcard--einrichtung .btn--ghost { height: 40px; color: var(--ink-700); }
.authcard--einrichtung .input { height: 44px; padding: 0 14px; border-radius: 10px; }
.codebox { display: flex; gap: 8px; }
.authcard--einrichtung .codebox .input { height: 44px; width: 48px; text-align: center; font-size: 20px; font-weight: 600; padding: 0; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; line-height: 1.5; color: var(--ink-700); }
.note--warn { background: var(--warn-050); border-color: var(--warn-100); color: var(--warn-700); }
.authcard--einrichtung .mono { font-family: var(--font-mono); font-size: var(--fs-12); }
@media (max-width: 768px) { .authcard--einrichtung .h1 { font-size: 24px; } .authcard--einrichtung .mfa-einrichtung { flex-direction: column; } .authcard--einrichtung .mfa-einrichtung > .grow { width: 248px; max-width: 100%; flex-basis: auto; } }

/* N1/B1 und B10 teilen dieselbe Authspalte; ihr Grid bestimmt auch die Rasterposition. */
.authwrap.authwrap--einrichtung {
  padding: 0; grid-template-columns: minmax(420px, 1fr) 1.1fr; place-items: stretch;
}
.authwrap--einrichtung > .auth__form {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px clamp(24px, 6vw, 96px); background: var(--surface);
}
.authwrap--einrichtung .authcard--einrichtung { max-width: 400px !important; margin: 0 auto; }
@media (max-width: 768px) {
  .authwrap.authwrap--einrichtung { grid-template-columns: 1fr; }
}

/* B3 — Objekt anlegen, Geometrie aus dem freigegebenen N1-Dummy. */
.n1-anlegen.page { max-width: 1240px; margin: 0 auto; padding: 32px 32px 96px; }
.n1-anlegen.page--narrow { max-width: 960px; }
.n1-anlegen .pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .stack-1 > * + * { margin-top: 4px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .stack-3 > * + * { margin-top: 12px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .stack-4 > * + * { margin-top: 16px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .stack-5 > * + * { margin-top: 24px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .row--top { align-items: flex-start; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .grow { flex: 1 1 auto; min-width: 0; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-900); line-height: 1.2; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); line-height: 1.35; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-700); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .lead { font-size: 15px; color: var(--ink-600); line-height: 1.6; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .muted { color: var(--ink-600); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .small { font-size: 12px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .strong { font-weight: 600; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-800); font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-btn); transition: background .12s, border-color .12s, transform .06s;
}
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn:hover { background: var(--surface-3); text-decoration: none; color: var(--ink-900); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn:active { transform: translateY(1px); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--primary { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); box-shadow: var(--sh-btn-primary); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--surface); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-700); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--ghost:hover { background: var(--surface-3); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn:disabled, :is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn.is-off { background: var(--off-bg) !important; color: var(--off-text) !important; border-color: var(--off-line) !important; box-shadow: none; cursor: not-allowed; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .iconbtn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 0; background: transparent; color: var(--ink-600); cursor: pointer;
}
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .iconbtn:hover { background: var(--surface-3); color: var(--ink-900); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .badge {
  letter-spacing: normal;
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-700);
}
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .badge--navy { background: var(--navy-050); color: var(--navy-700); border-color: var(--navy-100); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-card); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card--pad { padding: 24px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card__body { padding: 24px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card__foot { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; }
/* Die zusaetzliche Wiederholung braucht Platz, ohne den Standardfuss zu veraendern. */
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card__foot:has(#n1-retry:not(.hidden)) { flex-wrap: wrap; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .card__foot:has(#n1-retry:not(.hidden)) > .grow { flex-basis: 100%; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .field { display: flex; flex-direction: column; gap: 7px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .label { font-size: 13px; font-weight: 550; color: var(--ink-800); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .hint { font-size: 12px; color: var(--ink-600); line-height: 1.45; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .input {
  height: 44px; width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); font: inherit; font-size: 14px; color: var(--ink-900); transition: border-color .12s, box-shadow .12s;
}
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .input:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--focus-ring-input); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .input::placeholder { color: var(--ink-400); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .input.is-bad { border-color: var(--danger-500); box-shadow: var(--focus-ring-input-bad); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .input.is-ok { border-color: var(--ok-500); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .fielderr { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--danger-700); }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .affix { position: relative; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .affix .input { padding-left: 40px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .affix > .ico, :is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .affix > span { position: absolute; display: grid; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-500); }
.n1-anlegen .info { position: relative; display: inline-flex; vertical-align: middle; }
.n1-anlegen .info__btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-600); display: grid; place-items: center; cursor: pointer; font-size: 11px; font-weight: 700; padding: 0; }
.n1-anlegen .info__btn:hover { color: var(--navy-800); border-color: var(--navy-300); }
.n1-anlegen .info__pop { display: none; position: absolute; z-index: 120; left: -10px; top: 30px; width: 300px; padding: 14px 16px; border-radius: 12px; background: var(--navy-900); color: var(--ink-invert-soft); font-size: 12.5px; line-height: 1.55; font-weight: 400; box-shadow: var(--sh-lg); text-transform: none; letter-spacing: 0; }
.n1-anlegen .info__pop strong { color: var(--surface); }
.n1-anlegen .info.is-open .info__pop { display: block; }
.n1-anlegen .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.n1-anlegen .drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 24px; border-radius: 14px;
  border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--ink-600); cursor: pointer; transition: all .15s;
}
.n1-anlegen .drop:hover { border-color: var(--navy-400); background: var(--navy-050); }
.n1-anlegen .drop.is-bad { border-color: var(--danger-500); background: var(--danger-050); }
.n1-anlegen .drop__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--sh-sm); color: var(--navy-700); }
.n1-anlegen .file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.app:not(.app--flush) .n1-anlegen { flex: none; display: block; width: 100%; padding-bottom: 96px; }
.n1-anlegen .lead { margin-top: 6px; }
.n1-anlegen .n1-optional { font-weight: 400; }
.n1-anlegen .n1-labelrow { gap: 8px; }
.n1-anlegen .drop > strong { color: var(--ink-900); }
.n1-anlegen .n1-waehlen { color: var(--navy-600); font-weight: 600; }
.n1-anlegen .split > * { min-width: 0; }
.n1-anlegen .fielderr:empty { display: none; }
.n1-anlegen .btn, .n1-anlegen .iconbtn, .n1-anlegen .info__btn { position: relative; }
/* Die Trefferflaeche bleibt unsichtbar, damit die freigegebene Geometrie erhalten bleibt. */
.n1-anlegen .btn::after, .n1-anlegen .iconbtn::after, .n1-anlegen .info__btn::after { content: ""; position: absolute; width: max(100%, 44px); height: max(100%, 44px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.n1-anlegen .info__btn { z-index: 1; }
.n1-anlegen .file .grow { overflow-wrap: anywhere; }
@media (max-width: 960px) { .n1-anlegen .split { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .n1-anlegen .field { position: relative; } .n1-anlegen .info { position: static; } .n1-anlegen .info__pop { left: 0; right: 0; width: auto; } .n1-anlegen.page { padding: 20px 16px 96px; } .n1-anlegen .pagehead { flex-direction: column; align-items: stretch; } .n1-anlegen .h1 { font-size: 24px; } }

/* B3 folgt dem Dummy mit Kopf, Seite und statischem Fuss ohne eigene App-Malflaeche. */
.app:has(> .n1-anlegen) { display: contents; }
/* B9-Schalter und Dialogaktionen bleiben auch im schmalen Konto-Panel nebeneinander. */
.mfa-team .h3 { line-height: 1.35; }
.mfa-team__seg { display: flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.mfa-team__teil {
  display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent;
  font-size: 12.5px; font-weight: 550; color: var(--ink-600); cursor: pointer; white-space: nowrap;
}
.mfa-team__teil.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
.mfa-team__teil:disabled { cursor: not-allowed; }
.mfa-team__fuss { display: flex; justify-content: flex-end; gap: 10px; }
.mfa-team__fuss .btn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 550; }
.mfa-team__fuss .btn--ghost { color: var(--ink-700); }
.mfa-team__fuss .btn--primary { box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-800) 25%, transparent), inset 0 1px 0 color-mix(in srgb, var(--surface) 8%, transparent); }

/* B2 — Geometrie des N1-Dummys; das sichtbare Menue folgt Freigabe F7. */
.app:has(> .n1-objekte) { display: contents; }
.n1-objekte.page { display: block; max-width: 1240px; width: 100%; margin: 0 auto; padding: 32px 32px 96px; }
.app:not(.app--flush) .n1-objekte.page { padding-bottom: 96px; }
.n1-objekte .pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.n1-objekte .pagehead .affix { width: 280px; flex: none; }
.n1-objekte .row--wrap { flex-wrap: wrap; }
.n1-objekte .grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.n1-objekte .obj { position: static; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; box-shadow: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
.n1-objekte .obj:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--line-strong); }
.n1-objekte a.obj:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line-strong); }
.n1-objekte .obj__img { position: relative; aspect-ratio: 4 / 3; background: var(--objekt-papier-klassisch); }
.n1-objekte .obj__img--foto { background: var(--objekt-papier-foto); }
.n1-objekte .obj__img--farbig { background: var(--objekt-papier-farbig); }
.n1-objekte .obj__plan { position: absolute; inset: 0; display: grid; place-items: center; }
.n1-objekte .obj__plan img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.n1-objekte .obj__tag { position: absolute; left: 12px; top: 12px; pointer-events: none; }
.n1-objekte .obj__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.n1-objekte .obj__name { font-size: 15px; font-weight: 650; color: var(--ink-900); align-self: flex-start; }
.n1-objekte .obj__meta { font-size: 12.5px; color: var(--ink-600); }
.n1-objekte .obj__name, .n1-objekte .obj__meta { overflow-wrap: anywhere; }
.n1-objekte .obj__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.n1-objekte .obj--new { border-style: dashed; border-width: 1.5px; align-items: center; justify-content: center; min-height: 300px; color: var(--ink-600); gap: 10px; background: transparent; }
.n1-objekte .obj--new:hover { border-color: var(--navy-400); color: var(--navy-800); background: var(--surface); }
.n1-objekte .pcard__menu { position: absolute; right: 8px; top: 8px; opacity: 1; visibility: visible; z-index: 2; }
.n1-objekte .pcard__menu .opact { position: relative; scroll-margin-block: calc(var(--header-h) + 12px) 84px; width: 44px; height: 44px; opacity: 1; visibility: visible; background: var(--surface); }
.n1-objekte .pcard__menu .opact::after { content: ""; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.n1-objekte .pcard__menu .menu { z-index: 3; }
.n1-objekte .obj:has(.menu:not(.hidden)) { z-index: 4; overflow: visible; }
.n1-objekte .obj:has(.menu:not(.hidden)) .obj__img { border-radius: 16px 16px 0 0; }
.n1-objekte .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.n1-objekte .seg__i { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.n1-objekte .seg__i:hover { color: var(--ink-900); text-decoration: none; }
.n1-objekte .seg__i.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
.n1-objekte .obj-filter { margin-bottom: 20px; }
.n1-objekte .badge--gold { background: var(--gold-050); color: var(--gold-700); border-color: var(--gold-200); }
.n1-objekte .badge--ok { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-100); }
.n1-objekte .dot { width: 8px; height: 8px; }
.n1-objekte .dot--gold { background: var(--gold-500); }
.n1-objekte .empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 64px 24px; }
.n1-objekte .empty__art { width: 120px; height: 96px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--gold-600); box-shadow: var(--sh-sm); margin: 0; }
.n1-objekte .obj-leertext { max-width: 440px; }
.n1-objekte .btn, .n1-objekte .obj__name { position: relative; }
.n1-objekte .btn::after, .n1-objekte .obj__name::after, .n1-objekte .seg__i::after { content: ""; position: absolute; width: max(100%, 44px); height: max(100%, 44px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
body[data-seite="projektliste"] > .versionline--static { width: 100%; max-width: 1240px; margin: -64px auto 0; padding: 0 32px 28px; pointer-events: none; }
body[data-seite="projektliste"] .strip { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid; }
body[data-seite="projektliste"] .strip--info { background: var(--navy-050); border-color: var(--navy-100); color: var(--navy-700); }
@media (max-width: 768px) {
  .n1-objekte.page { padding: 20px 16px 96px; }
  .n1-objekte .pagehead { flex-direction: column; align-items: stretch; }
  .n1-objekte .pagehead .affix { width: 100%; }
  .n1-objekte .h1 { font-size: 24px; }
  /* Die Scrollfläche umfasst die Trefferziele; ihr sichtbarer Rahmen bleibt 42 px hoch. */
  .n1-objekte .seg { position: relative; flex: 0 0 auto; max-width: calc(100vw - 16px); padding: 6px 4px; margin-block: -2px; border: 0; background: transparent; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 3px; }
  .n1-objekte .seg::before { content: ""; position: absolute; inset: 2px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); pointer-events: none; }
  .n1-objekte .seg::-webkit-scrollbar { display: none; }
  .n1-objekte .seg__i { flex-shrink: 0; }
  .n1-objekte .seg__i:focus-visible { outline: 2px solid var(--gold-600); outline-offset: -2px; }
  body[data-seite="projektliste"] > .versionline--static { margin: 0; padding: 12px 16px 84px; }
}

.n1-objekte .h2 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }

html:has(body[data-seite="projektliste"]) { scroll-padding-block: calc(var(--header-h) + 12px) 84px; }

/* B5: Die Prüfkarte behält ihre Bedienung auch ohne ausgewählte Zeile. */
.oplist { display: grid; gap: var(--sp-3); }
.opitem[data-pruefung] {
  display: block; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; background: var(--surface); width: 319px; max-width: 100%;
}
.opitem[data-pruefung]:hover { background: var(--surface); }
.opitem[data-pruefung].is-focus, .opitem[data-pruefung].is-edit, .opitem[data-pruefung]:focus-visible {
  background: var(--surface); border-color: var(--gold-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 15%, transparent);
}
.opitem[data-pruefung] .opitem__head { display: flex; gap: var(--sp-3); align-items: flex-start; }
.opitem[data-pruefung] .opitem__sym {
  width: 38px; height: 38px; border-radius: var(--r-md); padding: 0;
  background: var(--gold-050); border: 1px solid var(--gold-200); color: var(--gold-700);
}
.opitem[data-pruefung] .opitem__title { font-size: 13.5px; font-weight: 600; }
.opitem__grund { font-size: 12.5px; color: var(--gold-700); margin-top: 2px; overflow-wrap: anywhere; }
.opitem[data-pruefung] .opitem__actions { display: flex; gap: 6px; margin-top: var(--sp-3); }
/* ::after hält die --touch-Trefferfläche unsichtbar groß; B5 bleibt auch mobil 34 px hoch. */
.opitem[data-pruefung] .opitem__actions .btn { flex: 1 1 auto; min-height: 34px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: var(--fs-12); }
.opitem[data-pruefung] .opitem__actions .opitem__loeschen { flex: none; color: var(--danger-700); }
.opitem[data-pruefung] .opcard { display: none; margin: var(--sp-3) 0 0; padding: var(--sp-3) 0 0; border-color: var(--line-soft); background: var(--surface); }
.opitem[data-pruefung].is-edit .opcard { display: block; }
.vorschlag-kontur { stroke: var(--plan-unsure); stroke-width: 35; fill: none; }
.vorschlag-marke { fill: var(--plan-unsure); font-size: 300px; font-weight: 600; }
@media (max-width: 700px) {
  .opitem[data-pruefung] { width: 350px; }
}

.opitem[data-pruefung] .opitem__actions .btn { font-weight: 550; box-shadow: 0 1px 2px rgba(20, 24, 30, .05); }
.opitem[data-pruefung] .opitem__actions .btn--primary {
  box-shadow: 0 1px 2px rgba(20, 35, 63, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.opitem__sym .symbol--fenster { display: none; }
.opitem__sym[data-typ='fenster'] .symbol--fenster { display: inline-block; }
.opitem__sym[data-typ='fenster'] .symbol--tuer { display: none; }
/* Das kleine Icon allein trägt AC35 nicht: ein gestrichelter Rahmen macht die
   Unsicherheit auch ohne Farbe lesbar, ohne Kachelmaß oder Trefferfläche zu ändern. */
.opitem[data-pruefung][data-sicher='false'][data-typ='tuer'] .opitem__sym,
.opitem[data-pruefung][data-sicher='false'][data-typ='fenster'] .opitem__sym {
  border-style: dashed; border-color: var(--plan-unsure);
}
.opitem[data-pruefung][data-sicher='false'][data-typ='tuer'] .opitem__sym .ico,
.opitem[data-pruefung][data-sicher='false'][data-typ='fenster'] .opitem__sym .ico {
  stroke-dasharray: 2 1; color: var(--plan-unsure);
}

/* B1: Geometrie des N1-Dummys; Farben bleiben in der Tokenquelle. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1fr) 1.1fr; }
.auth__form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); background: var(--surface); }
.auth__inner { width: 100%; max-width: 400px; margin: 0 auto; }
.auth__art { position: relative; overflow: hidden; background: var(--auth-art); display: flex; align-items: flex-end; }
.auth__plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth__quote { position: relative; z-index: 2; margin: 32px; padding: 20px 22px; border-radius: 16px; background: var(--auth-quote-bg); color: var(--auth-quote-ink); backdrop-filter: blur(8px); max-width: 440px; font-size: 14px; line-height: 1.6; }
.auth__quote strong { color: var(--surface); display: block; font-size: 16px; margin-bottom: 4px; }
.auth .brand { min-height: 30px; position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); white-space: nowrap; }
.auth .brand:hover { text-decoration: none; }
.auth .brand__mark, .auth .brand__mark svg { width: 30px; height: 30px; display: grid; }
.auth .brand__name { font-family: Sora, Inter, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.auth .brand__name em { font-style: normal; font-weight: 400; color: var(--gold-700); }
.auth__inhalt .stack-2 > * + * { margin-top: 8px; }
.auth__inhalt .stack-4 > * + * { margin-top: 16px; }
.auth__inhalt .stack-5 > * + * { margin-top: 24px; }
.auth__inhalt .stack-6 > * + * { margin-top: 32px; }
.auth__inhalt .hidden { display: none !important; }
.auth__inhalt .h1 { font-size: 28px; line-height: 1.2; }
.auth__inhalt .lead { font-size: 15px; line-height: 1.6; }
.auth__inhalt .small { font-size: 12px; }
.auth__inhalt .field { display: flex; flex-direction: column; gap: 7px; }
.auth__inhalt .label { font-size: 13px; font-weight: 550; color: var(--ink-800); }
.auth__inhalt .row { flex-wrap: nowrap; gap: 12px; }
.auth__inhalt .input { height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.auth__inhalt .input:focus { border-color: var(--navy-500); }
.auth__inhalt .btn { font-weight: 550; box-shadow: 0 1px 2px rgba(20, 24, 30, .05); }
.auth__inhalt .btn--lg { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 14px; }
.auth__inhalt .btn--primary { box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-800) 25%, transparent), inset 0 1px 0 color-mix(in srgb, var(--surface) 8%, transparent); }
.auth__inhalt .affix { display: block; position: relative; }
.auth__inhalt .affix .input { padding-right: 48px; }
.auth__inhalt .affix__btn { position: absolute; z-index: 2; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-500); cursor: pointer; }
.auth__inhalt .affix__btn::after { content: ""; position: absolute; inset: -4px; z-index: 1; }
.auth__inhalt .affix__btn:hover { background: var(--surface-3); color: var(--ink-900); }
.auth__inhalt .codebox .input { width: 48px; text-align: center; font-size: 20px; font-weight: 600; padding: 0; }
.auth__inhalt .note > .ico { margin-top: 2px; }
.auth__inhalt .note--danger { background: var(--danger-050); border-color: var(--danger-100); color: var(--danger-700); }
.auth__inhalt .note--info { background: var(--navy-050); border-color: var(--navy-100); color: var(--navy-700); }
.auth__inhalt .note--ok { background: var(--ok-050); border-color: var(--ok-100); color: var(--ok-700); }
.auth__inhalt .note__t { font-weight: 650; }
.auth .brand, .auth__inhalt a { position: relative; z-index: 1; }
.auth .brand::after, .auth__inhalt a::after { content: ""; position: absolute; left: 0; right: 0; top: calc((44px - 100%) / -2); bottom: calc((44px - 100%) / -2); }
.auth .brand:focus-visible, .auth__inhalt :focus-visible, .auth__bug:focus-visible, #authMeldedialog :focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.auth ~ .versionline { position: fixed; left: 10px; bottom: 10px; margin: 0; padding: 3px 8px; border: 0; border-radius: 6px; font-size: 11px; letter-spacing: .01em; background: var(--version-surface); }
.auth__bug { height: 44px; width: 44px; gap: 8px; padding: 0; font-size: 13px; font-weight: 500; border-radius: 999px; }
#authMeldedialog { width: 480px; max-width: calc(100vw - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-800); background: var(--surface); }
#authMeldedialog::backdrop { background: var(--overlay); }
@media (max-width: 768px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .auth .brand__name { font-size: 16px; }
  .auth__inhalt .h1 { font-size: 24px; }
  .auth ~ .versionline { position: static; margin: 0; padding: 12px 16px 84px; }
  .auth__bug { width: 44px; padding: 0; justify-content: center; }
}

.auth__inhalt.is-faktor form > * + * { margin-top: 24px; }
.auth #anmeldehinweis.hidden { margin-top: 0; }
.auth ~ .toaststack { bottom: 8px; }

.auth [hidden] { display: none !important; }

/* Die Countdown-Ansage bleibt erreichbar, ohne die Dummy-Geometrie zu verschieben. */
.auth__inhalt .sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth__inhalt .btn:disabled, .auth__inhalt .btn.is-disabled { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .auth__inhalt .btn, .auth__inhalt .input, .auth__inhalt .note, .authcard--einrichtung .btn { transition: none; animation: none; }
}

/* Beim umbrochenen Link traegt der Absatz die unsichtbare Trefferflaeche. */
.auth__inhalt #faktorHinweis { position: relative; }
.auth__inhalt #faktorWechsel { position: static; }
.auth__inhalt #faktorWechsel::after { top: 50%; bottom: auto; height: 100%; min-height: 44px; transform: translateY(-50%); z-index: 1; }

/* Die unsichtbare Erweiterung nach links haelt Abstand zum Auge am Feldende. */
.auth__inhalt #anmeldeformular a[href="/passwort"] { padding-left: 44px; margin-left: -44px; }
.auth__inhalt #anmeldeformular a[href="/passwort"]::after { top: 50%; bottom: auto; height: 44px; transform: translateY(-50%); z-index: 1; }
@media (max-width: 768px) {
  .authcard--einrichtung form.stack-2 > * + * { margin-top: 24px; }
}

/* B10 behaelt die Dummy-Geometrie; die Checkbox bekommt ihr Ziel unsichtbar. */
.auth__einladung .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gold-700); }
.auth__einladung .input[readonly] { background: var(--surface-3); }
.auth__einladung .input[aria-invalid="true"] { border-color: var(--danger-500); }
.auth__einladung .hint { font-size: 12px; line-height: 1.45; }
.auth__einladung .fielderr { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--danger-700); }
.auth__einladung .fielderr .ico { flex: none; }
.auth__einladung .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-700); min-height: 24px; }
.auth__einladung .check input { position: relative; z-index: 1; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy-800); flex: none; }
.auth__einladung .check::after { content: ""; position: absolute; inset: 0; min-height: 44px; top: 50%; transform: translateY(-50%); }
.auth__einladung .check:has(:focus-visible) { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.auth__einladung .btn:disabled { background: var(--surface-3); border-color: var(--line); color: var(--off-text); }
.auth__einladung .note--warn { background: var(--warn-050); border-color: var(--warn-100); color: var(--warn-700); }
.auth__einladung { overflow-wrap: anywhere; }

/* B9 nutzt die N1-Geometrie; native Auswahlfelder brauchen eine echte Trefferflaeche. */
.app:has(> .n1-einstellungen) { display: contents; }
.n1-einstellungen.page { display: block; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 32px 96px; }
.app:not(.app--flush) .n1-einstellungen.page { padding-bottom: 96px; }
.n1-einstellungen .pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.n1-einstellungen .settings { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.n1-einstellungen .settings > * { min-width: 0; }
.n1-einstellungen .snav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 24px); }
.n1-einstellungen .snav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-700); font-size: 13.5px; font-weight: 500; }
.n1-einstellungen .snav a:hover { background: var(--surface); text-decoration: none; }
.n1-einstellungen .snav a.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: var(--sh-xs); border: 1px solid var(--line); }
/* Der dunklere Hinweis erfuellt den Kontrast fuer kleine Schrift. */
.n1-einstellungen .snav__lock { margin-left: auto; color: var(--ink-600); }
.n1-einstellungen .xsmall { font-size: 11px; }
.n1-einstellungen .card__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.n1-einstellungen .table { width: 100%; border-collapse: collapse; font-size: 13px; }
.n1-einstellungen .table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-600); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.n1-einstellungen .table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.n1-einstellungen .table tr:last-child td { border-bottom: 0; }
.n1-einstellungen .table tbody tr:hover td { background: transparent; }
.n1-einstellungen .person { display: flex; align-items: center; gap: 12px; }
.n1-einstellungen .person .avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; margin: 0; background: var(--navy-100); color: var(--navy-800); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.n1-einstellungen .btn--sm { height: 34px; min-height: 0; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.n1-einstellungen .team-entfernen, .n1-einstellungen .team-entfernen:hover { color: var(--danger-700); }
.n1-einstellungen .team-aktionen { text-align: right; }
.n1-einstellungen .table select { width: auto; height: 44px; margin-block: -4px; font-size: 13px; border-radius: 8px; padding-left: 10px; padding-right: 34px; }
.n1-einstellungen .badge--ok { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-100); }
.n1-einstellungen .badge--gold { background: var(--gold-050); color: var(--gold-700); border-color: var(--gold-200); }
.n1-einstellungen .badge--danger { background: var(--danger-050); color: var(--danger-700); border-color: var(--danger-100); }
.n1-einstellungen .empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 64px 24px; }
.n1-einstellungen .empty__art { width: 120px; height: 96px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--gold-600); box-shadow: var(--sh-sm); margin: 0; }
.n1-einstellungen .h2 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.n1-einstellungen .team-leertext { max-width: 420px; }
.n1-einstellungen .note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; line-height: 1.5; color: var(--ink-700); }
.n1-einstellungen .note > .ico { margin-top: 2px; }
.n1-einstellungen .note--ok { background: var(--ok-050); border-color: var(--ok-100); color: var(--ok-700); }
.n1-einstellungen .note__t { font-weight: 650; }
.n1-einstellungen #team-status:empty, .n1-team-dialog .team-dialog-status:empty { display: none; }
.n1-einstellungen .sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Die Karte mischt ihren Schatten innerhalb derselben Scrim-Ebene wie im N1-Dummy. */
.n1-team-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; border-radius: 0; box-shadow: none; background: rgba(16,24,38,.42); color: inherit; backdrop-filter: blur(2px); }
.n1-team-dialog:not([open]) { display: none; }
.n1-team-dialog[open] { display: grid; place-items: center; }
.n1-team-dialog::backdrop { background: transparent; backdrop-filter: none; }
.n1-team-dialog .team-dialog-karte { width: 100%; max-width: 480px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-xl); }
.n1-team-dialog .dialog__head { align-items: center; gap: 12px; padding: 20px 24px 8px; border: 0; background: none; }
.n1-team-dialog .dialog__head .iconbtn { margin-left: auto; flex: none; }
.n1-team-dialog .dialog__body { padding: 8px 24px 20px; background: none; }
.n1-team-dialog .dialog__foot { position: static; flex-direction: row; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: none; box-shadow: none; flex-wrap: nowrap; }
.n1-team-dialog .dialog__foot > .btn { width: auto; height: 40px; order: 0; }
.n1-team-dialog .btn--danger { background: var(--danger-600); border-color: var(--danger-600); color: var(--surface); }
.n1-team-dialog .btn--danger:hover { background: var(--danger-700); color: var(--surface); }
.n1-team-dialog .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.n1-team-dialog .seg--block { display: flex; }
.n1-team-dialog .seg__i { position: relative; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.n1-team-dialog .seg__i.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
:is(.n1-einstellungen, .n1-team-dialog) :is(.btn, .iconbtn) { position: relative; }
:is(.n1-einstellungen, .n1-team-dialog) :is(.btn, .iconbtn, .seg__i, .snav a)::after { content: ""; position: absolute; width: max(100%, 44px); height: max(100%, 44px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
body[data-seite="team"] > .versionline--static { width: 100%; max-width: 1240px; margin: -64px auto 0; padding: 0 32px 28px; pointer-events: none; }
@media (min-width: 961px) {
  .n1-einstellungen .snav a { padding-block: 11px; }
}
@media (max-width: 960px) {
  .n1-einstellungen .settings { grid-template-columns: 1fr; }
  .n1-einstellungen .snav { position: static; flex-direction: row; overflow-x: auto; padding-block: 3px; margin-block: -3px; }
}
@media (max-width: 768px) {
  .n1-einstellungen.page { padding: 20px 16px 96px; }
  .n1-einstellungen .pagehead { flex-direction: column; align-items: stretch; }
  .n1-einstellungen .h1 { font-size: 24px; }
  .n1-einstellungen .snav a { white-space: nowrap; }
  .n1-einstellungen .table--stack thead { display: none; }
  .n1-einstellungen .table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .n1-einstellungen .table--stack td { border: 0; padding: 0 4px; min-width: 0; }
  .n1-einstellungen .person > div { min-width: 0; overflow-wrap: anywhere; }
  body[data-seite="team"] > .versionline--static { margin: 0; padding: 12px 16px 84px; }
}

.n1-einstellungen #team-hinweis.hidden + .card { margin-top: 0; }
.n1-einstellungen .table select, .n1-einstellungen #darstellung .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.2 8 10l4-3.8' fill='none' stroke='%23616E88' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }

.n1-einstellungen .table td:not(.muted) { color: var(--ink-800); }

/* B9b — Kundenwerte werden erst nach Prüfung per CSSOM eingesetzt. */
.n1-einstellungen #darstellung .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.n1-einstellungen #darstellung .kv > .field { min-width: 0; }
.n1-einstellungen #darstellung .row--wrap { flex-wrap: wrap; }
.n1-einstellungen .darstellung-optional { font-weight: 400; }
.n1-einstellungen .file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.n1-einstellungen .darstellung-logokarte { height: 110px; justify-content: center; }
.n1-einstellungen .darstellung-logokarte--dunkel { background: var(--b9-logo-dunkel-grund); }
.n1-einstellungen .darstellung-logobild { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.n1-einstellungen .darstellung-logobild--auto { filter: brightness(0) invert(1); opacity: .92; }
.n1-einstellungen .drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 24px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--ink-600); }
.n1-einstellungen .drop:has(button:not(:disabled)):hover { border-color: var(--navy-400); background: var(--navy-050); }
.n1-einstellungen .drop__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--sh-sm); color: var(--navy-700); }
.n1-einstellungen .darstellung-upload, .n1-einstellungen .darstellung-link { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.n1-einstellungen .darstellung-upload.strong { color: var(--ink-900); font-weight: 700; }
.n1-einstellungen .darstellung-upload.small { color: inherit; font-size: 12px; }
.n1-einstellungen .darstellung-upload::after { content: ""; position: absolute; inset: 0; }
.n1-einstellungen .darstellung-link { position: relative; color: var(--navy-600); }
.n1-einstellungen .darstellung-link::after { content: ""; position: absolute; width: max(100%, 44px); height: 44px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.n1-einstellungen .darstellung-link:hover { text-decoration: underline; }
.n1-einstellungen [data-logo-meta] { overflow-wrap: anywhere; }
.n1-einstellungen .darstellung-fehler { font-size: 12.5px; color: var(--danger-700); }
.n1-einstellungen [data-logo-fehler]:empty { display: none; }
.n1-einstellungen #darstellung-erfolg.hidden + #darstellung { margin-top: 0; }
.n1-einstellungen .colorrow { display: flex; align-items: center; gap: 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.n1-einstellungen .colorrow input { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: inherit; }
.n1-einstellungen .colorrow:focus-within { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.n1-einstellungen #darstellung .darstellung-schrift { font-family: var(--kunde-schrift, Inter), Inter, sans-serif; }
.n1-einstellungen .darstellung-vorschau { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--kunde-flaeche, var(--surface)); }
.n1-einstellungen .darstellung-farbband { height: 6px; background: linear-gradient(90deg, var(--kunde-haupt, var(--gold-500)) 0 72%, var(--kunde-text, var(--ink-900)) 72%); }
.n1-einstellungen .darstellung-kopf { padding: 16px 20px; }
/* Der feste Platz erhält die Kopfgeometrie des Dummys trotz quadratischem Lieferraster. */
.n1-einstellungen .darstellung-vorschaulogo { height: 36px; width: calc(36px * 600 / 207); max-width: 100%; object-fit: contain; flex: none; }
.n1-einstellungen .darstellung-titel { min-width: 0; text-align: right; font-family: var(--kunde-schrift, Inter), Inter, sans-serif; color: var(--kunde-text, var(--ink-900)); font-weight: 600; font-size: 14px; }
.n1-einstellungen .darstellung-massstab { font-weight: 400; font-size: 11.5px; color: var(--kunde-text-hell, var(--ink-700)); }
.n1-einstellungen .field:has(input[type="file"]:focus-visible) [data-logo-karte] { box-shadow: var(--focus-ring); }

.n1-einstellungen #darstellung .select { padding-right: 34px; }

/* B9c behält die Dummy-Geometrie mit unsichtbar erweiterten Button-Zielen. */
.n1-einstellungen #ki-konto-form .ki-kachel { width: 40px; height: 40px; border-radius: 10px; background: var(--b9-ki-kachel); color: var(--surface); display: grid; place-items: center; }
.n1-einstellungen #ki-konto-form .card__body { padding: 24px; }
.n1-einstellungen #ki-konto-form .card__foot { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 0 0 16px 16px; }
.n1-einstellungen #ki-konto-form .badge { height: 24px; gap: 6px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: normal; color: var(--ink-700); border-color: transparent; }
.n1-einstellungen #ki-konto-form .badge--ok { color: var(--ok-700); border-color: var(--ok-100); }
.n1-einstellungen #ki-konto-form .badge--warn { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-100); }
.n1-einstellungen #ki-konto-form .badge--danger { color: var(--danger-700); border-color: var(--danger-100); }
.n1-einstellungen #ki-konto-form .dot { width: 8px; height: 8px; }
.n1-einstellungen #ki-konto-form .input.mono { min-width: 0; font-family: inherit; font-size: 14px; }
.n1-einstellungen #ki-konto-form .field { gap: 7px; }
.n1-einstellungen #ki-konto-form .hint { font-size: 12px; line-height: 1.45; color: var(--ink-600); }
.n1-einstellungen #ki-konto-eingabe { display: flex; flex-direction: column; gap: 7px; }
.n1-einstellungen #ki-konto-form .is-bad { border-color: var(--danger-500); box-shadow: var(--focus-ring-input-bad); }
.n1-einstellungen #ki-konto-form .btn { height: 40px; min-height: 0; font-weight: 550; flex: none; }
.n1-einstellungen #ki-konto-form .btn--sm { height: 34px; }
.n1-einstellungen #ki-konto-form .ki-entfernen { color: var(--danger-700); }
.n1-einstellungen .ki-verbunden { color: var(--ok-700); }
.n1-einstellungen .ki-aufladen { margin-top: 8px; }
.n1-einstellungen .note--info { background: var(--navy-050); border-color: var(--navy-100); color: var(--navy-700); }
.n1-einstellungen .note--warn { background: var(--warn-050); border-color: var(--warn-100); color: var(--warn-700); }
.n1-einstellungen .note--danger { background: var(--danger-050); border-color: var(--danger-100); color: var(--danger-700); }
.n1-einstellungen [hidden] { display: none !important; }
.n1-einstellungen #ki-konto-status[hidden] + .field { margin-top: 0; }
.n1-einstellungen #ki-konto-form .label { font-weight: 550; color: var(--ink-800); }

.n1-einstellungen #betrieb .card__body { padding: 24px; }
.n1-einstellungen #betrieb .kv--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.n1-einstellungen #betrieb .kv--3 > div { min-width: 0; }
.n1-einstellungen #betrieb .betrieb-wert { gap: 8px; }
.n1-einstellungen #betrieb .dot { width: 8px; height: 8px; }
.n1-einstellungen #betrieb .dot--ok { background: var(--ok-500); }
.n1-einstellungen #betrieb .dot--warn { background: var(--warn-500); }
.n1-einstellungen #betrieb .dot--danger { background: var(--danger-500); }
.n1-einstellungen #betrieb .row--wrap { flex-wrap: wrap; }
.n1-einstellungen #betrieb .btn { height: 40px; min-height: 0; font-weight: 550; }
.n1-einstellungen #betrieb .btn--sm { height: 34px; }
.n1-einstellungen #betrieb .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.n1-einstellungen #betrieb .seg__i { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.n1-einstellungen #betrieb .seg__i:hover { color: var(--ink-900); }
.n1-einstellungen #betrieb .seg__i.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
/* Nur vertikal erweitern, damit benachbarte Filter ihre Trefferflaechen behalten. */
.n1-einstellungen #betrieb .seg__i::after { width: 100%; }
.n1-einstellungen #betrieb .seg__i:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; z-index: 1; }
.n1-einstellungen #betrieb .logbox { border: 0; background: var(--logbox-grund); color: var(--logbox-text); border-radius: 12px; padding: 14px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; max-height: 280px; overflow: auto; white-space: pre; }
.n1-einstellungen #betrieb .logbox .w { color: var(--logbox-warn); }
.n1-einstellungen #betrieb .logbox .e { color: var(--logbox-fehler); }
.n1-einstellungen #betrieb .logbox .t { color: var(--logbox-zeit); }
@media (max-width: 768px) {
  .n1-einstellungen #betrieb .kv--3 { grid-template-columns: 1fr; }
}

/* Der Avatar bleibt optisch 34 px; sein Link trifft die volle 44-px-Fläche. */
.appbar a.avatar { position: relative; flex: none; text-decoration: none; }
.appbar a.avatar:hover { text-decoration: underline; }
.appbar a.avatar::after { content: ""; position: absolute; inset: -5px; }
.n1-einstellungen #konto-team td, .n1-einstellungen #meldungenListe { overflow-wrap: anywhere; }
.n1-einstellungen #konto-faktor section > p:empty { display: none; }
.n1-einstellungen #konto-team .mfa-team__teil:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.n1-einstellungen #konto-faktor .mfa-einrichtung { gap: 20px; flex-wrap: wrap; }
.n1-einstellungen #konto-team .mfa-team__teil::after { content: ""; position: absolute; width: 44px; height: 44px; }

.crumbs a::after { content: ""; position: absolute; width: max(100%, 44px); height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.bugwidget > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth__inhalt h1.note__t { margin: 0; font: inherit; font-weight: 650; letter-spacing: inherit; }
.n1-objekte .menu__item { min-height: 44px; min-width: 44px; }
.n1-einstellungen #konto > .card__head > .avatar { width: 34px; height: 34px; flex: 0 1 auto; display: grid; place-items: center; margin-left: 4px; border-radius: 50%; background: var(--navy-800); color: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.n1-einstellungen :is(#konto, #konto-faktor, #konto-team) .row--wrap { flex-wrap: wrap; }
.n1-einstellungen :is(#konto, #konto-faktor, #konto-team) .btn { height: 40px; min-height: 0; font-weight: 550; flex: none; }
.n1-einstellungen #konto-team .mfa-team__fuss { gap: 12px; }
.n1-einstellungen #konto-team-inhalt > div:empty { display: none; }
.n1-einstellungen :is(#konto-faktor-badge, #konto-team .badge) { height: 24px; gap: 6px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: normal; }
.n1-einstellungen #konto-team .badge:not(.badge--ok) { color: var(--ink-700); border-color: transparent; }
.n1-einstellungen #konto-faktor-badge .dot { width: 8px; height: 8px; }
@media (max-width: 480px) { .seg__lang { display: none; } }

/* B5: Die unsichtbaren Ziele bleiben auch zwischen den beiden Segmentreihen getrennt. */
.tauschkarte { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.opitem.is-edit .tauschkarte { display: block; }
.tausch-fertig, .opitem.is-edit .tausch-oeffnen { display: none; }
.opitem.is-edit .tausch-fertig { display: inline; }
.tauschkarte .sect__t { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-600); margin-bottom: 6px; }
.tauschkarte .seg { display: flex; flex-wrap: wrap; padding: 3px; gap: 10px 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.tauschkarte .seg__i { position: relative; display: inline-flex; flex: 1 1 30%; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.tauschkarte .seg--fluegel .seg__i { flex: 1 1 45%; }
.tauschkarte .seg__i.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
.tauschkarte .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tauschkarte .field { min-width: 0; gap: 7px; padding-bottom: 4px; }
.tauschkarte .label { font-size: 13px; font-weight: 550; color: var(--ink-800); }
.tauschkarte .input { width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 13px; }
.tauschkarte .select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.2 8 10l4-3.8' fill='none' stroke='%23616E88' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-size: 16px; }
.tauschkarte .unit { position: relative; }
.tauschkarte .unit .input { padding-right: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.tauschkarte .unit > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-600); pointer-events: none; }
.tauschkarte .tausch-chips { display: flex; flex-wrap: wrap; gap: 14px 6px; margin-top: 8px; }
.tauschkarte .var { position: relative; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 550; color: var(--ink-700); text-align: center; line-height: 1.2; white-space: nowrap; }
.tauschkarte .var.is-on { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); color: var(--navy-800); font-weight: 650; }
.opitem__actions .btn { position: relative; }
.tauschkarte button::after, .opitem__actions .btn::after { content: ""; position: absolute; width: max(100%, 44px); height: max(100%, 44px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tauschkarte button:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; z-index: 1; }
.tauschkarte [hidden] { display: none; }
[data-testid="oeffnungs-marker"] [data-rolle="oeffnung"] * { pointer-events: none; }
[data-testid="oeffnungs-marker"] [data-rolle="oeffnung"] [data-rolle="oeffnung-treffer"] { pointer-events: all; cursor: pointer; }
.planoeffnung--doppeltuer, .planoeffnung--schiebetuer { stroke: var(--plan-door); fill: var(--plan-door-fill); }
.planoeffnung--durchgang, .planoeffnung--tor { stroke: var(--plan-door); fill: none; }

/* D2a: sichtbare Dummy-Maße und davon unabhängige Trefferflächen. */
.pruefseite { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; min-width: 0; }
.pruefseite .ws__bar { flex: none; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pruefseite .ws__bar > * { flex-shrink: 0; }
.pruefseite .ws__bar .sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.pruefseite .reiter-scroll { display: flex; }
.pruefseite .ws__bar .seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.pruefseite .ws__bar .seg__i { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-600); white-space: nowrap; }
.pruefseite .ws__bar .seg__i:hover { color: var(--ink-900); text-decoration: none; }
.pruefseite .ws__bar .seg__i.is-on { background: var(--surface); color: var(--navy-800); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--navy-800), var(--sh-xs); }
.pruefseite .ws__bar .seg .badge { height: 20px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: normal; }
.pruefseite [data-testid="reiter-geprueft"] { color: var(--ok-600); }
.pruefseite .ws__bar .btn, .pruefseite .side__foot .btn { position: relative; font-weight: 550; box-shadow: 0 1px 2px rgba(20,24,30,.05); }
.pruefseite .side__foot .btn--primary { box-shadow: 0 1px 2px rgba(20,35,63,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.pruefseite :is(.ws__bar, .side__foot) .btn:disabled { box-shadow: none; }
.pruefseite .side .btn { max-width: 100%; white-space: normal; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.app--flush .pruefseite .work > .side:last-child { padding-bottom: 0; }
.pruefseite .side__foot { padding: 14px 20px 70px; border-top: 1px solid var(--line); background: var(--surface-2); }
.pruefseite .side__foot::before { display: none; }
.pruefseite .lockhint { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.55; color: var(--ink-600); }
.pruefseite button.lockhint { position: relative; border: 0; background: none; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.pruefseite button.lockhint > span { min-width: 0; }
.pruefseite :is(.ws__bar .seg__i, .ws__bar .btn, .side__foot .btn, button.lockhint)::after { content: ""; position: absolute; width: max(100%, 44px); height: max(100%, 44px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pruefseite .side__foot button:disabled::after { display: none; }
.pruefseite button.lockhint { z-index: 1; }
@media (min-width: 769px) {
  .stepbar { height: 52px; flex-wrap: nowrap; }
  .stepbar > .row { flex-wrap: nowrap; min-width: 0; }
  .stepbar .steps { flex-wrap: nowrap; flex-shrink: 0; }
  /* Die Begründung braucht eigenen Platz; Schritte und Aktionen dürfen ihn nicht aufbrauchen. */
  .stepbar > .row:has(> .lockhint) { padding-inline: 0; gap: var(--sp-2); }
  .stepbar .row:has(> .lockhint) > .grow { display: none; }
  .stepbar:has(.lockhint) .step { padding-inline: var(--sp-1); gap: var(--sp-1); }
  .stepbar:has(.lockhint) .step__sep { width: 8px; }
  .stepbar:has(.lockhint) .step__flag { display: none; }
  .stepbar .lockhint { flex: 1 0 200px; min-width: 200px; margin-top: 0; white-space: normal; }
  .stepbar .lockhint > span {
    min-width: 0; overflow-wrap: anywhere; overflow: hidden;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
  .stepbar .btn, .stepbar form { flex-shrink: 0; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .stepbar:has(.lockhint) { height: auto; }
  .stepbar > .row:has(> .lockhint) { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .pruefseite .ws__bar { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  /* Wie im Dummy bis zum rechten Bildschirmrand; vertikal Platz für die 44-px-Trefferflächen. */
  .pruefseite .reiter-scroll { max-width: calc(100% + 16px); overflow-x: auto; padding: 2px 0; margin: -2px -16px -2px 0; }
  .pruefseite .ws__bar .seg { flex: none; }
  .pruefseite .ws__bar .seg__i { flex-shrink: 0; }
  .pruefseite .ws__bar .seg__i:focus-visible { outline-offset: -2px; }
  .pruefseite .ws__bar .btn { white-space: normal; height: auto; min-height: 34px; }
  .pruefseite .work { flex-direction: column; }
  .pruefseite .canvas { display: flex; min-height: 380px; flex: none; }
}

/* D2b: Kopf und eingeklappter Bestand folgen B5; Trefferflächen bleiben 44 px. */
.pruefseite .side__head { padding: 18px 20px 12px; border-bottom: 0; }
.pruefseite .side__head .row { gap: 12px; }
.pruefseite .side__head .h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.pruefseite .side__head > p { margin-top: 4px; }
.pruefseite .side__head .infoicon__btn { width: 22px; height: 22px; color: var(--ink-600); }
.pruefseite .side__head .infoicon__btn::after { content: ""; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.pruefseite .side__body { padding: 0 20px 20px; }
.pruefseite [data-testid="sicher-erkannt"] { padding: 16px 0; border-top: 1px solid var(--line-soft); margin-top: 12px; }
.pruefseite [data-testid="sicher-erkannt"] > summary { position: relative; display: list-item; cursor: pointer; }
.pruefseite [data-testid="sicher-koerper"] { margin-top: 12px; }
.tauschkarte .kv:has([data-testid="tausch-aufschlag-feld"]:not([hidden])) { grid-template-columns: 104px 1fr; }

.pruefseite [data-testid="sicher-erkannt"] > summary::after { content: ""; position: absolute; inset: -12px 0; min-height: 44px; }

/* Strom B */
.b-vorlagen-editor { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.b-vorlagen-editor label { display: grid; gap: 6px; margin-bottom: 12px; }
.b-vorlagen-editor fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.b-vorlagen-editor input[type="color"] { width: 100%; height: 44px; }
.b-vorlagen-live { position: sticky; top: 16px; min-width: 0; }
[data-testid="vorlagen-seite"] .stylecard__foot { flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .b-vorlagen-editor { grid-template-columns: minmax(0, 1fr); }
  .b-vorlagen-live { grid-row: 1; position: static; }
}
.b-vorlagen-live svg { display: block; width: 100%; max-height: calc(100vh - 200px); }

/* Strom B */
.b3-arbeitsplatz { display: flex; align-items: flex-start; gap: 24px; }
.b3-arbeitsplatz > .canvas__sheet { flex: 1; min-width: 0; }
.b3-palette[hidden] { display: none; }
.b3-bodenmodus [data-rolle="raum"] { cursor: pointer; }
.b3-bodenmodus [data-rolle="beschriftung"] { pointer-events: none; }
.b3-bodenmodus .b3-ausgewaehlt { stroke: var(--gold-700); stroke-width: 4px; vector-effect: non-scaling-stroke; }
@media (max-width: 700px) { .b3-arbeitsplatz { flex-direction: column; } .b3-arbeitsplatz > .canvas__sheet { flex: none; width: 100%; } }
/* Strom C */
#moebelsaetze { max-width: 1120px; margin-inline: auto; }
#moebelsaetze textarea { width: 100%; resize: vertical; }
.moebel-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.moebel-bilder figure { margin: 0; min-width: 0; }
.moebel-bilder img { display: block; width: 100%; height: 128px; object-fit: contain; background: var(--bg); }
.moebel-bilder figcaption { font-size: 12px; overflow-wrap: anywhere; }

/* Strom C */
.c3-bodenvorschau { width: 256px; max-width: 100%; height: 192px; background-size: 64px 64px; border: 1px solid var(--line); }
#moebelsaetze select { max-width: 100%; }
/* Strom A */
.editor-a1 .auswahlrahmen { stroke-width: 1.5; }
.editor-a1 .auswahlgriff { fill: transparent; stroke: transparent; pointer-events: all; cursor: nwse-resize; }
.editor-a1 [data-griff="drehen"] { cursor: grab; }
.editor-a1 .griffpunkt { fill: var(--surface); stroke: var(--gold-500); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.editor-a1 .canvas__sheet { touch-action: none; }
.editor-a1 [data-rolle="beschriftung"] { pointer-events: all; }
.editor-a1 .objpop { display: none; }
.editor-a1 [data-testid="eigenschaften"] .btn { min-height: 44px; white-space: normal; }
@media (max-width: 768px) {
  .work.editor-a1 { flex-direction: column; overflow: auto; }
  .work.editor-a1 > .canvas { display: flex; flex: none; min-height: 420px; height: 55vh; order: -1; }
  .work.editor-a1 > .side { display: flex; width: 100%; flex: none; max-height: none; }
  .editor-a1 .canvas__sheet--plan { width: 100%; height: 100%; }
  .editor-a1 .canvas__tools { bottom: 16px; }
  .editor-a1 > [data-testid="palette"] { order: 1; }
}

/* Strom A */
[data-testid="palette"] .palette__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-testid="palette"] .pitem { min-width: 0; }
[data-testid="palette"] .pitem__name { white-space: normal; overflow-wrap: anywhere; }
.hilfslinie { stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.moebel-wandueberstand { fill: none; stroke: var(--danger-600); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }

/* Strom A */
.a3-panel { padding: 16px; display: grid; gap: 12px; }
.a3-panel label { display: grid; gap: 6px; margin: 12px 0; }
.a3-panel button, .a3-panel input, .a3-panel select { min-height: 44px; }
.a3-modus [data-rolle="raum"] { pointer-events: all; cursor: pointer; }
.a3-gewaehlt { stroke: var(--ink-900); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.a3-modus { touch-action: none; }
.a3-inspektor > :not(.a3-panel) { display: none; }
.a3-inspektor .a3-panel { overflow-y: auto; }
/* Strom D */
.n1-einstellungen #betrieb #betrieb-matterport { min-height: 44px; }
/* Strom C */
#moebelsaetze { max-width: 1120px; margin-inline: auto; }
#moebelsaetze textarea { width: 100%; resize: vertical; }
.moebel-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.moebel-bilder figure { margin: 0; min-width: 0; }
.moebel-bilder img { display: block; width: 100%; height: 128px; object-fit: contain; background: var(--bg); }
.moebel-bilder figcaption { font-size: 12px; overflow-wrap: anywhere; }

/* Strom C */
.c3-bodenvorschau { width: 256px; max-width: 100%; height: 192px; background-size: 64px 64px; border: 1px solid var(--line); }
#moebelsaetze select { max-width: 100%; }

/* Strom A */
[data-testid="geschoss-formular"] { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
[data-testid="geschoss-formular"] .select { width: auto; min-width: 72px; }
.canvas__scale { max-width: calc(100% - 32px); }
.canvas__scale [data-testid="massstab"] { flex: none; }
.canvas__scale .xsmall { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .appbar .wordmark__name, .appbar__spacer { display: none; }
  .appbar__actions { margin-left: auto; }
  .appbar__actions > a[href="/moebelsaetze"] { width: auto; padding-inline: var(--sp-2); }
}
/* Strom B */
[data-kuechen-vorlage], [data-kuechen-schenkel] { touch-action: none; }
[data-kuechen-schenkel] { cursor: ew-resize; }

/* Strom INT183 */
.pruefseite [data-testid="seitenkopf"] [data-aktion="alle-sicheren"],
.pruefseite [data-testid="seitenkopf"] [data-aktion="alle-uebernehmen"] { min-height: calc(var(--touch) + var(--sp-1)); }
@media (max-width: 480px) {
  .appbar .wordmark { min-width: var(--touch); min-height: var(--touch); justify-content: center; }
}

/* Strom INT183b */
/* Der Platzhalter enthält auf Objektseiten den Etagenwechsel und darf mobil nicht verschwinden. */
@media (max-width: 480px) {
  .appbar:has(.floorswitch) { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: var(--sp-2); }
  .appbar__spacer:has(.floorswitch) { display: flex; order: 1; flex: 1 0 100%; }
}

/* Strom A */
[data-testid="editor-blatt"], [data-testid="editor-canvas"] { user-select: none; -webkit-user-select: none; }
.egs-bestaetigung { border: 0; padding: 0; color: var(--ink-900); width: min(520px, calc(100% - 32px)); }
.egs-bestaetigung::backdrop { background: rgb(0 0 0 / 35%); }
/* Strom D */
.toaststack { left: 16px; right: auto; }
@media (max-width: 600px) {
  .appbar:has(.floorswitch) { flex-wrap: wrap; height: auto; padding-block: var(--sp-2); }
  .appbar__spacer:has(.floorswitch) { display: flex; flex: 1 0 100%; order: 3; min-width: 0; }
  .floorswitch { flex-wrap: wrap; }
  .pruefseite .canvas { display: flex; flex-direction: column; }
  .pruefseite .canvas__tools { position: static; align-self: center; flex: none; margin: var(--sp-2); transform: none; }
  .pruefseite .canvas__sheet { min-height: 0; flex: 1; }
}
/* Strom B */
.b-vorlagen-seite { overflow: visible; }
[data-vorlagen-bearbeitung] { overflow: visible; }
.b-vorlagen-live { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
@media (max-width: 760px) {
  .b-vorlagen-live { top: var(--header-h); z-index: 2; background: var(--surface); }
  .b-vorlagen-live svg { max-height: 28vh; }
}
/* Strom C */
dialog.c7-dialog { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 0; width: min(720px, calc(100vw - 32px)); height: auto; max-height: calc(100dvh - 32px); margin: auto; }
dialog.c7-dialog:not([open]) { display: none; }
dialog.c7-dialog::backdrop { background: rgb(14 21 34 / 45%); }

/* Strom A */
.editor-a1 > .canvas { padding: 0; background: var(--plan-paper); }
.editor-a1 .canvas__sheet--plan { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
.editor-a1 .canvas__sheet--plan > svg { width: 100%; height: 100%; }
.editor-a1 [data-rolle="blatt"] { display: none; }
.editor-a1 .tree__row--child { width: 100%; border: 0; border-radius: 0; background: transparent; text-align: left; font-family: inherit; }
.editor-a1 .tree__row--child:hover { background: var(--surface-2); }
.editor-a1 .tree__row--child.is-selected { background: var(--navy-050); }
.editor-a1 .tree__row--group { cursor: default; margin-top: var(--sp-3); }
.editor-a1 [data-rolle="beschriftung"] { pointer-events: bounding-box; }

/* Strom D */
#umbenennenFehler { color: var(--danger-700); }
.n1-objekte .menu__item[aria-disabled="true"] { color: var(--ink-500); cursor: not-allowed; }
@media (max-width: 600px) {
  .n1-anlegen .card__foot { flex-wrap: wrap; gap: var(--sp-3); }
  .n1-anlegen .card__foot > .grow { flex: 1 0 100%; }
  .n1-anlegen .card__foot > .btn { flex: 1 0 auto; }
}
/* Strom C */
.c9-moebelsaetze { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 32px 96px; }
.c9-moebelsaetze .pagehead { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 32px; }
.c9-erzeugen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; align-items: start; }
.c9-moebelsaetze .card--pad { padding: 24px; }
.c9-moebelsaetze :is(.input, .btn) { min-height: 44px; max-width: 100%; }
.c9-moebelsaetze textarea { height: auto; width: 100%; }
.c9-moebelsaetze .btn { white-space: normal; height: auto; padding: 12px 16px; }
.c9-moebelsaetze .check { display: flex; align-items: start; gap: 12px; min-height: 44px; }
.c9-moebelsaetze .check input { flex: none; margin-top: 4px; accent-color: var(--navy-800); }
.c9-moebelsaetze form > a { display: inline-flex; align-items: center; min-height: 44px; }
.c9-moebelsaetze figure { margin: 0; min-width: 0; }
.c9-moebelsaetze figcaption { font-size: 12px; color: var(--ink-600); overflow-wrap: anywhere; }
.c9-moebelsaetze #moebel-saetze { margin-top: 24px; }
.c9-moebelsaetze [role="status"]:empty { display: none; }
.n1-einstellungen .snav a { border: 0; box-shadow: none; gap: 8px; min-height: 44px; }
.n1-einstellungen .snav a.is-on { border: 0; box-shadow: none; background: var(--navy-050); }
.n1-einstellungen .table select { min-height: 44px; }
@media (max-width: 960px) {
  .c9-erzeugen { grid-template-columns: 1fr; }
  .c9-moebelsaetze { padding: 24px 16px 96px; }
  .c9-moebelsaetze .pagehead { flex-direction: column; }
  .n1-einstellungen .snav { flex-wrap: wrap; gap: 8px; overflow: visible; }
}
/* Strom C */
dialog.c7-dialog { height: fit-content; }
dialog.c7-dialog .dialog__body { flex: 0 1 auto; }
dialog.c7-dialog .dialog__foot { justify-content: flex-end; }
dialog.c7-dialog .dialog__foot a { display: inline-flex; min-height: 44px; align-items: center; margin-right: auto; }
.n1-einstellungen #ki-konto-anzeigezeile { flex-wrap: wrap; }
.n1-einstellungen #ki-konto-anzeigezeile .input { min-width: 0; flex: 1 1 200px; }
.n1-einstellungen #ki-konto-anzeigezeile .btn { min-height: 44px; }
/* Strom C */
:is(.c9-moebelsaetze, .n1-einstellungen, .c7-dialog, .egs-bestaetigung) :is(button, a, input, textarea, select):focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
/* Strom C */
@media (min-width: 769px) {
  dialog.c7-dialog .dialog__foot a { flex-basis: 100%; }
}

/* Strom C */
.egs-bestaetigung { border-radius: var(--r-xl); overflow: hidden; }
.egs-bestaetigung .dialog__body:empty { display: none; }
/* Strom A */
:root { --touch: 44px; }
.btn, .tbtn, .input, .select, .palette__cat, .tabs__item, .check, .tree__row--child { min-height: 44px; }
.btn, .tbtn, .palette__cat { min-width: 44px; }
.a9-feldfehler { color: var(--danger-600); font-size: var(--fs-12); margin-top: 8px; }
.input[aria-invalid="true"] { border-color: var(--danger-600); }
.editor-a1 .auswahlrahmen--beschriftung { stroke-dasharray: 4 4; }
.editor-a1 [data-testid="eigenschaften-objekt"] .row > .btn { flex: 1; }
.editor-a1 .canvas__tools { left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); flex-wrap: nowrap; }
.editor-a1 .tree__row--child .grow { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.editor-a1 .tree__row--child { height: auto; padding-block: 8px; }
body:has(.editor-a1) .savechip { display: inline-flex; min-width: 128px; }
/* Breit reicht die Arbeitsfläche bis an die Versionszeile am Fensterrand: das Bug-Widget liegt im
   reservierten Fuß der rechten Spalte (--bug-clear), ein Leerstreifen darunter wäre verschenkt (ED-001).
   Schmal scrollt die Arbeitsfläche; dort hält der Fuß unter der Versionszeile Widget und Meldung frei. */
body:has(.editor-a1) { --versionszeile-h: 24px; --editor-fuss: 0px; }
body:has(.editor-a1) .app--flush { height: calc(100dvh - var(--versionszeile-h) - var(--editor-fuss)); }
body:has(.editor-a1) > .versionline { position: fixed; bottom: var(--editor-fuss); height: var(--versionszeile-h); line-height: 16px; padding: 4px 16px; left: 0; background: var(--surface); width: 100%; border-radius: 0; }
@media (max-width: 768px) { body:has(.editor-a1) { --editor-fuss: 80px; } }
/* Eine Meldung liegt kurz über dem Fuß; die Versionszeile tritt solange zurück, statt verdeckt zu werden. */
@media (min-width: 769px) { body:has(.editor-a1):has(.toaststack:not(:empty)) > .versionline { display: none; } }
@media (min-width: 769px) {
  .toolbar { gap: 4px; padding-inline: 8px; }
  .toolbar__sep { margin: 0; }
  .toolbar__group { gap: 0; }
  .toolbar .grow { min-width: 0; }
  .toolbar [data-testid="editor-stilwechsel"] { max-width: 224px; white-space: normal; }
}
@media (max-width: 768px) {
  body:has(.editor-a1) .app--flush { min-height: 0; overflow: auto; }
  .work.editor-a1 { min-height: 0; flex: none; overflow: visible; }
  body:has(.editor-a1) .appbar { position: static; }
  .toaststack { width: calc(100vw - 32px); max-width: none; }
  body:has(.toaststack:not(:empty)) .bugwidget { bottom: 88px; }
  body:has(.editor-a1):has(.toaststack:not(:empty)) .app--flush { height: calc(100dvh - 168px); }
  body:has(.editor-a1):has(.toaststack:not(:empty)) > .versionline { bottom: 144px; }
  .manual__nav { max-height: 40vh; }
  .manual__content { overflow: visible; }
}
/* Strom A */
.editor-a1 .tree__row--group .grow { white-space: normal; overflow: visible; text-overflow: clip; }
/* Strom B */
.roomrow__edit { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Strom B */
@font-face { font-family: 'IBM Plex Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/ibmplexserif-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/ibmplexserif-bold.woff2') format('woff2'); }

/* Strom B */
@media (max-width: 760px) {
  .b-vorlagen-live { max-height: 28dvh; }
  .b-vorlagen-live .canvas__sheet { padding: 0; }
  .b-vorlagen-live svg { max-height: calc(28dvh - 56px); }
}

/* Strom B */
.work.is-plan .canvas__tools { left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) {
  .work.is-plan .canvas__scale { top: auto; bottom: 12px; }
  .work.is-plan .canvas__tools { bottom: 64px; }
}

/* Strom KAT-e18 */
/* Exportdialog: Einstellungen stehen bei breitem Fenster rechts neben der Vorschau statt darunter (EX-001). */
.dialog--wide > .dialog__body > .row--top > .exportvorschau + .grow { flex: 1 1 360px; }
.exportvorschau .exportpreview[data-seite$="-quer"] { height: auto; aspect-ratio: 297 / 210; }
.exportvorschau .exportpreview[data-seite$="-hoch"] { height: auto; aspect-ratio: 210 / 297; }
/* App-Rückfragen (egsBestaetigen): Abbrechen und Hauptaktion unten rechts wie alle Dialoge (SH-019, SR-18). */
dialog.egs-bestaetigung .dialog__foot { justify-content: flex-end; }
/* Lange Dateinamen brechen um, statt unter den Knopf „Herunterladen“ zu laufen (EX-013 bei 390 px). */
.exportzeile > .grow > .strong { overflow-wrap: anywhere; }

/* Strom KAT-c */
.editor-a1 .canvas__sheet--plan > svg { cursor: grab; }
.editor-a1 .kuerzelkarte { left: auto; right: var(--sp-4); top: var(--sp-4); transform: none; width: min(400px, calc(100% - 32px)); }
.editor-a1 .palette__cat { border-radius: 999px; }
.editor-a1 [data-testid="palette"] .pitem__name { overflow-wrap: break-word; hyphens: auto; min-height: 2lh; }
.editor-a1 .beschriftungshilfe { fill: none; stroke: var(--gold-500); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .7; }
.editor-a1 [data-testid="eigenschaften-symbol"] > * { width: 40px; height: 40px; }
.editor-a1 .kuechengriff { cursor: ew-resize; }
.editor-a1 [data-testid="eigenschaften-objekt"] .row > .btn { white-space: nowrap; padding-inline: 6px; font-size: 13px; }
.toolbar [data-a3="modus"][aria-pressed="true"] { background: var(--navy-050); border-color: var(--navy-400); color: var(--navy-800); box-shadow: inset 0 1px 2px rgba(20, 35, 63, .12); }
.a3-panel [data-a3="felder"] { display: grid; gap: 12px; }
.a3-panel [data-a3="felder"] > label, .a3-panel [data-a3="felder"] > p { margin: 0; }
body:has(.app--flush) .editor-a1 .canvas__tools { bottom: 12px; }
.editor-a1 .tree__row--child.is-selected { border-left: 2px solid var(--navy-600); }
.editor-a1 [data-testid="eigenschaften-objekt"] .row { flex-wrap: nowrap; }
.editor-a1 [data-testid="eigenschaften-objekt"] .row > .field { min-width: 0; }
.editor-a1 [data-testid="eigenschaften-objekt"] .row { align-items: flex-start; }

/* Strom KAT-a */
.n1-objekte .grid3 { gap: 24px; }
.topbtn__dot:not(.topbtn__dot--danger) { display: none; }
.appbar .wordmark { min-height: 44px; flex: none; }
.n1-objekte .obj__name { max-width: 100%; }
.n1-objekte .obj__name-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__actions { gap: 8px; }
.auth .fielderr { display: flex; gap: 6px; font-size: 12.5px; color: var(--danger-700); }
.auth .fielderr.hidden { display: none; }
.n1-anlegen .drop.is-over { border-color: var(--gold-500); background: var(--gold-050); }
#massstab-nenner-fehler { display: flex; font-size: 12.5px; color: var(--danger-700); }
#massstab-nenner-fehler.hidden { display: none; }
#loeschScrim .dialog, #umbenennenScrim .dialog { max-width: 520px; }
#bugErgebnis.fielderr { color: var(--danger-700); font-size: 12.5px; }
@media (min-width: 481px) { .canvas__scale { max-width: calc(50% - 104px); } }
.appbar .crumbs { flex: 0 1 auto; max-width: 34%; }
.floorswitch__item { flex: none; }
.floorswitch__name { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.appbar__spacer { justify-content: safe center; }
.appbar__spacer .floorswitch { max-width: 100%; }
.canvas__badge, .canvas__tools, .canvas__scale { z-index: 2; }
#massstab { position: relative; }
#massstab .infoicon { position: static; }
#massstab .infoicon__pop { left: 0; right: 0; width: auto; top: 32px; }
#massstab .infoicon__pop::before { left: 84px; right: auto; }

/* Strom KAT-b */
/* SR-17: Solange eine Meldung steht, scrollt der Seitenkoerper oberhalb des Meldungsstreifens
   (klient-meldung.ts); auf Vollbildflaechen weicht die Zoomleiste der Meldung aus. */
html.egs-meldung-frei:not(:has(.app--flush)) { overflow: hidden; height: 100%; }
html.egs-meldung-frei:not(:has(.app--flush)) body { height: calc(100dvh - 80px); overflow-y: auto; }
@media (max-width: 768px) {
  html.egs-meldung-frei { overflow: hidden; height: 100%; }
  html.egs-meldung-frei body { height: calc(100dvh - 80px); overflow-y: auto; }
  /* Meldung und Melde-Knopf teilen sich den freien Streifen nebeneinander. */
  html.egs-meldung-frei .toaststack { width: calc(100vw - 92px); }
  html.egs-meldung-frei body:has(.toaststack:not(:empty)) .bugwidget { bottom: 16px; }
}
@media (min-width: 769px) {
  body:has(.app--flush):has(.toaststack:not(:empty)) .canvas__tools { bottom: 88px; }
}
/* FT-011: Segmente der Tauschkarte 44 px hoch. */
.tauschkarte .seg { gap: 2px; }
.tauschkarte .seg__i { height: 44px; }
/* FT-015: Ein Durchgang unterbricht die Wand — die Öffnung trägt die Raumfarbe, ohne Blatt. */
[data-rolle='oeffnung'][data-typ='durchgang'] [data-rolle='oeffnung-treffer'] { fill: var(--plan-room); }
/* FT-046: Im schmalen Fenster steht die Prüfliste vor dem Plan. */
@media (max-width: 768px) {
  .pruefseite .work > .side { order: -1; }
}
/* FT-028/030: neu gesetzte Öffnung. */
.opitem__neu { display: inline-flex; margin-top: var(--sp-1); }
/* VO-004: Hinweis rot über den Karten. */
[data-vorlagen-fehler]:not([hidden]) {
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--danger-100);
  border-radius: var(--r-md); background: var(--danger-050); color: var(--danger-700); font-size: var(--fs-13);
}
/* VO-017: Seitenkopf wie auf den übrigen Seiten. */
.b-vorlagen-seite .pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); margin-bottom: var(--sp-5); }
@media (max-width: 768px) { .b-vorlagen-seite .pagehead { flex-direction: column; align-items: stretch; } }
/* VE-002 / BO-015: Vorschau und Böden-Leiste passen ins Fenster und enden über dem Melde-Knopf. */
@media (min-width: 761px) {
  .b-vorlagen-live { max-height: calc(100dvh - var(--header-h) - 32px); }
  .b-vorlagen-live svg { max-height: calc(100dvh - var(--header-h) - 120px); }
}
.editor-a1 [data-testid="palette"] .pitem__name { display: flex; align-items: center; justify-content: center; text-align: center; }
/* ED-027: Kacheln über alle Kategorien gleich hoch – der längste Name („Esstisch eckig, 4 Stühle“)
   braucht im schmalen Raster drei Zeilen, alle Namen bekommen denselben Platz. */
@media (min-width: 769px) { .editor-a1 [data-testid="palette"] .pitem__name { min-height: 3lh; } }
/* ED-023: Auf dem Handy steht der Plan im Startbild – Schrittleiste und Werkzeugleiste werden knapp. */
@media (max-width: 768px) {
  body:has(.editor-a1) .stepbar .steps { flex-wrap: nowrap; }
  body:has(.editor-a1) .stepbar .step:not(.is-active) { font-size: 0; gap: 0; padding-inline: var(--sp-3); }
  body:has(.editor-a1) .stepbar .savechip { min-width: 0; }
  body:has(.editor-a1) .stepbar > .row { column-gap: var(--sp-2); }
  body:has(.editor-a1) .stepbar .btn { padding-inline: 10px; }
  body:has(.editor-a1) .stepbar > .row { padding-inline: 0; }
  body:has(.editor-a1) .toolbar { column-gap: 2px; }
  body:has(.editor-a1) .toolbar [data-editor="raster"], body:has(.editor-a1) .toolbar [data-testid="editor-stilwechsel"] { padding-inline: 8px; }
  body:has(.editor-a1) .toolbar > [data-a3="modus"] { flex: none; }
  body:has(.editor-a1) .toolbar__group { display: contents; }
}
/* Strom KAT-e18 */
/* Knopfgrößen einheitlich (SR-08): Standard 44 px, klein 34 px sichtbar mit 44 px Trefferfläche über die
   Klickziel-Erweiterung (`.btn--sm::after`, oben). Die Seitenregeln mit 40/46 px und ohne Mindesthöhe ziehen nach. */
.btn.btn--sm { min-height: 34px; }
.btn.btn--lg, :is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog) .btn--lg, .auth__inhalt .btn--lg { height: 44px; }
.n1-einstellungen :is(#ki-konto-form, #betrieb, #konto, #konto-faktor, #konto-team) .btn:not(.btn--sm) { min-height: 44px; }
.c9-moebelsaetze .btn { padding: 0 16px; }
.pruefseite .side .btn--sm { height: 34px; padding-block: 0; white-space: nowrap; }
.pruefseite .side__foot .btn--primary { min-height: 44px; }
/* Trefferflächen ≥ 44 × 44 px (SR-03), ohne die Optik zu vergrößern. */
.appbtn { height: 44px; }
@media (max-width: 768px) { .appbtn { width: 44px; } }
.infoicon__btn::after { left: calc((44px - 100%) / -2); right: calc((44px - 100%) / -2); }
.n1-einstellungen #konto-team .mfa-team__teil::after { top: 50%; left: 50%; width: max(100%, 44px); transform: translate(-50%, -50%); }
summary.small { position: relative; }
summary.small::after { content: ""; position: absolute; left: 0; right: 0; top: calc((44px - 100%) / -2); bottom: calc((44px - 100%) / -2); }
.northrange { height: 44px; }
.n1-einstellungen .colorrow input { width: 44px; height: 44px; margin-block: -7px; }
/* Abstände auf der Skala 4/8/12/16/24/32/48/64 (SR-09). */
.n1-einstellungen .card__head { padding: 16px 24px; }
:is(.n1-anlegen, .n1-objekte, .n1-einstellungen, .n1-team-dialog, .auth__inhalt, .tauschkarte) .field,
.n1-einstellungen #ki-konto-form .field, .n1-einstellungen #ki-konto-eingabe { gap: 8px; }
.n1-einstellungen .darstellung-kopf { padding: 16px 24px; }
.pruefseite .side__foot { padding-top: 16px; }
.pruefseite :is(.side__head, .side__body, .side__foot) { padding-inline: 24px; }
/* Fokusring einheitlich 3 px Gold (--gold-600), auch dort, wo Seitenregeln Navy, Hellgold oder 2 px setzten (SR-16). */
:is(a, button, input, select, textarea, summary, [role="button"], [tabindex]:not(svg *)):focus-visible { outline: 3px solid var(--gold-600) !important; }
.n1-einstellungen .colorrow:focus-within { outline: 3px solid var(--gold-600); }
/* Schließen-Kreuz der Meldung: 44 × 44 px Trefferfläche, die Zeile behält ihre Höhe (SR-17, SH-015). */
.toast__close { width: 44px; height: 44px; margin: -10px -10px -10px 0; }
/* Vorlagen-Vorschaukarten zeigen bei schmalem Fenster den ganzen Plan statt eines Ausschnitts (SR-02). */
@media (max-width: 768px) { .stylecard__preview > svg { transform: none; } }
/* Team als gestapelte Karten: Innenabstand wie die Kartenköpfe (TE-003). */
@media (max-width: 768px) {
  .n1-einstellungen .table--stack tr { padding: 12px 16px; }
  .n1-einstellungen .table--stack td { padding: 0; }
}
/* Etagenumschalter: der Rollbereich schnitt die 44-px-Erweiterung der 28-px-Einträge ab (SR-03). Er bekommt
   senkrecht Luft für die Trefferfläche; die Pille liegt unverändert als Hintergrund dahinter. */
.floorswitch { position: relative; isolation: isolate; padding-block: 8px; margin-block: -5px; background: transparent; border-color: transparent; }
.floorswitch::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-sm); }
/* Umgebrochene Etagenzeilen: 16 px Zeilenabstand, damit sich die 44-px-Trefferflächen nicht überdecken. */
@media (max-width: 600px) { .floorswitch { row-gap: 16px; } }
/* Kleine Knöpfe der Prüfliste wie alle kleinen Knöpfe: 34 px sichtbar, Trefferfläche über die Erweiterung (SR-08). */
.pruefseite [data-testid="seitenkopf"] :is([data-aktion="alle-sicheren"], [data-aktion="alle-uebernehmen"]) { min-height: 34px; }
.n1-einstellungen #konto-team .mfa-team__teil { position: relative; }
/* Gesperrte Knöpfe bleiben trefferbar, damit ihr Grund als Tooltip erscheint (SR-05); klicken lassen sie sich ohnehin nicht. */
button.btn:disabled { pointer-events: auto; }
/* „Erneut erkennen“ und die Sammelknöpfe darunter: 44 px Abstand von Mitte zu Mitte, sonst überdecken sich die Trefferflächen. */
.pruefseite [data-testid="seitenkopf"] > [data-aktion="erkennung-neu"] { margin-block: 4px 12px; }
/* IM-020: Ablage wie bei der Neuanlage auch im Dialog „Grundriss erstellen“ */
.n1-dialog .drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 24px; border-radius: 14px;
  border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--ink-600); cursor: pointer; transition: all .15s;
}
.n1-dialog .drop:hover { border-color: var(--navy-400); background: var(--navy-050); }
.n1-dialog .drop.is-over { border-color: var(--gold-500); background: var(--gold-050); }
.n1-dialog .drop > strong { color: var(--ink-900); }
.n1-dialog .drop__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--sh-sm); color: var(--navy-700); }
.n1-dialog .n1-waehlen { color: var(--navy-600); font-weight: 600; }
.n1-dialog .file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.n1-dialog .file .grow { overflow-wrap: anywhere; }
.n1-dialog .iconbtn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink-600); cursor: pointer; }
.n1-dialog .iconbtn::after { content: ""; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.n1-dialog .iconbtn:hover { background: var(--surface-3); color: var(--ink-900); }
/* SH-003: auch schmal steht der Pfad „/ Objekte“ im Kopf; der Objektname folgt erst ab 769 px */
@media (max-width: 768px) {
  .appbar .crumbs { display: flex; flex: 0 1 auto; min-width: 0; max-width: 40%; }
  .appbar .crumbs > :nth-child(n+3) { display: none; }
}
/* AN-020: anonymer Melde-Dialog wie der App-Dialog — Kopf mit Kreuz, Fuß rechts */
#authMeldedialog { width: 520px; padding: 0; border: 0; border-radius: var(--r-xl); background: transparent; overflow: visible; }
#authMeldedialog .dialog { max-width: none; }
#authMeldefehler { color: var(--danger-700); }
#authMeldefehler:empty { display: none; }
/* Integration 1.84: Fußzone (SR-01, SR-17, SH-010, SH-014). Unten links steht die Versionszeile, unten rechts
   „Fehler oder Wunsch melden“. Eine Meldung tritt unten links an die Stelle der Versionszeile, statt sie zu überdecken; der
   Bereich darunter hält solange den Meldungsstreifen frei. Die Versionszeile ist nur so breit wie ihr Text.
   Schmal steht „Fehler oder Wunsch melden“ außerhalb des Editors im Seitenfuß neben der Versionszeile — schwebend läge der
   Knopf dort immer über Inhalt. */
body:has(.toaststack:not(:empty)) > .versionline { visibility: hidden; }
.versionline--static { width: fit-content; max-width: none; }
@media (min-width: 769px) {
  body > .versionline--static { margin-left: max(0px, calc((100% - 1240px) / 2)); }
  /* Anleitung: Vollbild mit Versionszeile im Fluss darunter — die Arbeitsfläche lässt ihr Platz, statt dass die
     Zeile über die Navigation rückt. */
  body[data-seite="manual"] .app--flush { height: calc(100dvh - 40px); }
  body[data-seite="manual"] > .versionline--static { margin-top: 0; padding: 12px 32px; line-height: 16px; }
  html.egs-meldung-frei body[data-seite="manual"] .app--flush { height: calc(100dvh - 80px); }
  /* Editor: der Knopf steht über dem vollen Versionsstreifen, in der reservierten Fußfläche der rechten Spalte. */
  body:has(.editor-a1) > .bugwidget { bottom: calc(var(--versionszeile-h) + 12px); }
  /* Solange eine Meldung steht, hält die linke Spalte der Arbeitsfläche den Meldungsstreifen frei. */
  body:has(.toaststack:not(:empty)) .app--flush .work > .side:first-child:not(:last-child) { padding-bottom: 80px; }
}
/* Editor ab 1024 px: die Meldung (links, 360 px) erreicht die mittige Zoomleiste nicht. Wiche die Leiste trotzdem
   88 px nach oben, läge sie über dem Plan und finge Griffe am unteren Rand ab (KU-005). */
@media (min-width: 1024px) {
  body:has(.app--flush):has(.toaststack:not(:empty)) .editor-a1 .canvas__tools { bottom: 12px; }
}
@media (max-width: 768px) {
  body:not(:has(.editor-a1)) > .bugwidget { position: relative; right: auto; bottom: auto; display: flex; margin: 12px 16px 0 auto; }
  body:not(:has(.editor-a1)) > .versionline { width: fit-content; margin-top: -44px; padding: 14px 16px 16px; }
  html.egs-meldung-frei body:not(:has(.editor-a1)) > .toaststack { width: calc(100vw - 32px); }
}

/* Strom A */
.a185-modi { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.a185-modi [aria-pressed="true"], [data-editor="hand"][aria-pressed="true"] { background: var(--navy-800); color: var(--surface); }
.a185-raumeditor [data-rolle="objekte"], .a185-raumeditor [data-testid="palette"] { display: none !important; }
.editor-a1 .a185-hand, .editor-a1 .a185-hand * { cursor: grab !important; }
.editor-a1 [data-a185-verschieben] { cursor: move; }
.editor-a1 #inspektor { min-width: 0; }
.editor-a1 #inspektor .side__head { padding-inline: 12px; }
.editor-a1 #inspektor .tabs { display: grid; grid-template-columns: 1fr 1.5fr 1fr; width: 100%; gap: 0; overflow: visible; min-width: 0; }
.editor-a1 #inspektor .tabs__item { min-width: 0; padding-inline: 4px; font-size: 12px; white-space: normal; }
.editor-a1 #inspektor .side__body, .editor-a1 #inspektor .side__section, .editor-a1 #inspektor .grow { min-width: 0; max-width: 100%; }
.editor-a1 #inspektor .row { flex-wrap: wrap; }
.editor-a1 #inspektor .btn { white-space: normal; max-width: 100%; }
.editor-a1 #inspektor input, .editor-a1 #inspektor select { width: 100%; min-width: 0; max-width: 100%; }
.editor-a1 #inspektor input[type="checkbox"] { width: auto; }
.editor-a1 #inspektor .histrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.editor-a1 #inspektor .histrow__line { white-space: normal; overflow-wrap: anywhere; }
.editor-a1 #inspektor .histrow .btn { justify-self: start; }
.a3-panel { min-height: 0; }
.a3-panel [data-a3="hilfe"], .a3-panel p { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  body:has(.editor-a1) .toolbar:has([data-a3="modus"]) { flex-wrap: wrap; }
  body:has(.editor-a1) .toolbar .a185-modi, body:has(.editor-a1) .toolbar [data-editor="hand"], body:has(.editor-a1) .toolbar [data-editor="alle-entfernen"] { display: inline-flex; }
}
/* Strom A */
.a3-panel label:has([data-a3="snap"]) { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.editor-a1 #inspektor .a3-panel input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: none; }

/* Strom A */
.editor-a1 { --a185-rand: var(--line); }
.editor-a1 :is(.btn,.tbtn,.palette__cat,.input,.select) { min-height: 30px; min-width: 0; font-size: 13px; }
.editor-a1 :is(.btn,.tbtn)::after { display: none; }
.editor-a1 :is(.input,.select) { height: 32px; padding-block: 4px; }
.editor-a1 :is(.label,.hint,.small,.xsmall), .editor-a1 .a3-panel { font-size: 12px; }
.editor-a1 .canvas { position: relative; }
.editor-a1 .a185-toolbar { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); min-height: 0; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--sh-sm); flex-wrap: nowrap; }
.editor-a1 .a185-toolbar .tbtn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; flex: none; }
.editor-a1 .a185-toolbar .a185-ki { width: auto; gap: 4px; padding-inline: 8px; white-space: nowrap; color: var(--gold-700); }
.editor-a1 .a185-modi { border: 0; background: var(--surface-2); padding: 2px; }
.editor-a1 .a185-modi .btn { height: 26px; min-height: 26px; padding: 0 8px; font-size: 12px; background: transparent; border: 0; white-space: nowrap; }
.editor-a1 .a185-modi [aria-pressed="true"] { background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-sm); }
.editor-a1 .toolbar__sep { margin-inline: 3px; height: 18px; }
.editor-a1 .canvas__tools { left: 16px; right: auto; bottom: 16px; transform: none; padding: 3px; gap: 2px; border-radius: 10px; }
.editor-a1 .canvas__tools .tbtn { height: 28px; min-height: 28px; padding: 0 8px; }
.editor-a1 #inspektor .side__head { padding: 0; }
.editor-a1 #inspektor .tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
.editor-a1 #inspektor .tabs__item { display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; min-height: 40px; font-size: 13px; white-space: nowrap; padding: 0 4px; }
.editor-a1 #inspektor .tabs__item::after { display: none; }
.editor-a1 #inspektor .thumb48 { width: 72px; height: 48px; flex: none; }
.editor-a1 #inspektor .thumb48 :is(svg,img) { width: 100%; height: 100%; object-fit: contain; }
.editor-a1 #inspektor .a185-entfernen { margin-top: auto; border-top: 1px solid var(--line); }
.editor-a1 #inspektor .a185-entfernen .btn { color: var(--danger-700); box-shadow: none; height: auto; padding: 0; border: 0; background: transparent; text-align: left; font-size: 12px; }
.editor-a1 #inspektor.a3-inspektor .a185-entfernen { display: none; }
.editor-a1 .a3-panel { padding: 16px; overflow: auto; }
.editor-a1 .a3-panel :is(label,p) { margin-block: 8px; }
.editor-a1 .a3-panel label { display: block; }
.editor-a1 .a3-panel h3 { font-size: 14px; margin-top: 0; }
.editor-a1 .a3-panel label:has([data-a3="snap"]) { display: flex; min-height: 28px; gap: 6px; }
.editor-a1 .a3-panel :is(input,select) { margin-top: 4px; }
.editor-a1 .a3-panel .a185-dicken { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editor-a1 [data-a185-waende] { pointer-events: none; }
@media (max-width: 768px) {
  body:has(.editor-a1) .editor-a1 .a185-toolbar { flex-wrap: nowrap; gap: 0; }
  .editor-a1 .a185-toolbar .toolbar__sep { margin-inline: 1px; }
  .editor-a1 .a185-modi .btn { padding-inline: 5px; }
  .editor-a1 .a185-toolbar .tbtn { width: 28px; }
  .editor-a1 .a185-toolbar .a185-ki { width: auto; padding-inline: 5px; }
}

/* Strom A */
.editor-a1 .canvas__sheet--plan { inset: 56px 0 48px; height: calc(100% - 104px); }
@media (max-width: 768px) { .editor-a1 .canvas__badge { display: none; } }

/* Strom A */
.editor-a1 #inspektor :is(.btn,.tbtn) { height: 32px; min-height: 28px; box-shadow: none; }
.editor-a1 #inspektor [data-testid="eigenschaften-objekt"] > .row:has(.field) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.editor-a1 #inspektor .a185-entfernen .btn { height: auto; min-height: 28px; }

/* Strom A */
.editor-a1 .palette__cat { height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; }

/* Strom B */
.b185-raummasse { display: block; color: var(--ink-600); font-size: 11px; margin-top: 4px; }
.b185-overlay-regler { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 10px 12px; border-radius: 8px; background: var(--surface); box-shadow: var(--sh-sm); display: flex; flex-wrap: wrap; gap: 8px 14px; max-width: calc(100% - 24px); }
.b185-overlay-regler label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.b185-overlay-regler input[type="range"] { width: 96px; }
.b185-messpopover { position: absolute; z-index: 6; bottom: 64px; left: 12px; width: min(320px, calc(100% - 24px)); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--sh-sm); }
.b185-raumname { border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: calc(100% - 24px); }
.roomrow__edit { border: 0; background: transparent; cursor: pointer; }
body:not(:has(.editor-a1)) > .bugwidget { position: fixed; right: 16px; bottom: 16px; margin: 0; opacity: .72; z-index: 30; }
.bugwidget:hover, .bugwidget:focus-visible { opacity: 1; }
body:has([data-testid="plan-arbeitsflaeche"]) { --bug-clear: 16px; }
.stepbar [data-aktion="weiter"] { white-space: nowrap; }
.stepbar form { margin-left: auto; flex: 0 0 auto; }
.side__foot [data-aktion="weiter-stil"] { width: auto; align-self: flex-end; }
[data-testid="etagen-reiter"] small { display: block; font-size: 10px; }

/* Strom B */
.stepbar [data-aktion="weiter"] { width: auto; min-height: 36px; padding: 8px 14px; }
.stepbar .visually-hidden { display: none; }
@media (max-width: 767px) { .stepbar .steps { flex-basis: 100%; } }

/* Strom B – schlank */
body:has(.b-arbeitskopf) { --header-h: 48px; --subheader-h: 48px; }
body:has(.b-arbeitskopf) .appbar { height: 48px; padding: 0 20px; gap: 14px; background: var(--surface); }
body:has(.b-arbeitskopf) .appbtn { min-height: 30px; height: 30px; padding: 0 8px; font-size: 13px; }
body:has(.b-arbeitskopf) .appbtn--icon { width: 30px; padding: 0; }
body:has(.b-arbeitskopf) .avatar { height: 28px; width: 28px; font-size: 11px; }
body:has(.b-arbeitskopf) .wordmark__glyph, body:has(.b-arbeitskopf) .wordmark__glyph svg { width: 26px; height: 26px; }
.b-arbeitskopf { padding: 0 20px; min-height: 48px; position: relative; z-index: 50; }
.b-arbeitskopf > .container { width: 100%; max-width: none; padding: 0; gap: 10px; flex-wrap: nowrap; min-height: 48px; }
.b-arbeitskopf .floorswitch { padding: 0; margin: 0; background: transparent; border: 0; overflow: visible; flex-shrink: 0; gap: 2px; }
.b-arbeitskopf .floorswitch::before { display: none; }
.b-stockwerk { display: flex; align-items: center; position: relative; }
.b-arbeitskopf .floorswitch__item { height: 28px; min-height: 28px; padding: 0 8px; font-size: 13px; border: 0; gap: 6px; background: transparent; }
.b-arbeitskopf .floorswitch__item.is-active { background: var(--surface-3); }
.b-arbeitskopf .floorswitch__item--add { width: 28px; padding: 0; justify-content: center; border: 1px dashed var(--line-strong); }
.b-arbeitskopf .floorswitch__name { max-width: 132px; }
.b-stand { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-300); flex: none; }
.b-stand.is-active { background: var(--gold-500); border-color: var(--gold-500); }
.b-stand.is-done { background: var(--ok-600); border-color: var(--ok-600); }
.b-arbeitskopf .steps { flex-wrap: nowrap; gap: 2px; border-left: 1px solid var(--line); padding-left: 8px; }
.b-arbeitskopf .step { min-height: 28px; height: 28px; padding: 0 5px; gap: 4px; font-size: 12px; border: 0; box-shadow: none; }
.b-arbeitskopf .step__num { width: 17px; height: 17px; font-size: 10px; }
.b-arbeitskopf .step__sep { width: 5px; }
.b-arbeitskopf .btn { height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.b-arbeitskopf :is(.appbtn,.btn,.floorswitch__item)::after { display: none; }
.b-arbeitskopf .savechip { font-size: 12px; white-space: nowrap; padding: 0; background: transparent; border: 0; }
.b-arbeitskopf .lockhint { display: none; }
.b-stockwerkmenue summary { list-style: none; cursor: pointer; width: 20px; height: 28px; display: grid; place-items: center; }
.b-stockwerkmenue .menu { display: flex; flex-direction: column; position: absolute; top: 32px; left: 0; min-width: 190px; padding: 4px; }
.b-stockwerkmenue .menu .btn { border: 0; justify-content: flex-start; background: transparent; }
body:has([data-testid="plan-arbeitsflaeche"]) :is(.side,.ws__bar,.b185-messpopover), .b-vorlagen-seite { font-size: 14px; }
body:has([data-testid="plan-arbeitsflaeche"]) :is(.side,.ws__bar,.b185-messpopover) :is(.btn,.tbtn), .b-vorlagen-seite .btn { min-height: 30px; padding: 4px 10px; font-size: 13px; border-radius: 7px; }
body:has([data-testid="plan-arbeitsflaeche"]) :is(.side,.b185-messpopover) .input, .b-vorlagen-seite :is(.input,select) { height: 32px; min-height: 32px; font-size: 13px; padding: 0 10px; }
body:has([data-testid="plan-arbeitsflaeche"]) .seg__i, .b-vorlagen-seite .seg__i { min-height: 28px; padding: 4px 8px; font-size: 12px; }
body:has([data-testid="plan-arbeitsflaeche"]) .side :is(.card,.notice,.side__section) { box-shadow: none; border-color: var(--line); }
.b185-overlay-regler { padding: 4px 10px; border: 1px solid var(--line); box-shadow: none; }
.b185-messpopover { padding: 12px; width: min(280px, calc(100% - 24px)); }
@media (max-width: 1100px) {
  .b-arbeitskopf > .container { flex-wrap: wrap; padding: 8px 0; }
  .b-arbeitskopf .steps { order: 3; flex-basis: 100%; border-left: 0; padding-left: 0; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  body:has(.b-arbeitskopf) .appbar { height: auto; min-height: 48px; padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
  body:has(.b-arbeitskopf) .appbar .crumbs { order: 2; max-width: 100%; }
  body:has(.b-arbeitskopf) .appbar__actions { order: 3; }
  .b-arbeitskopf { padding: 0 12px; }
  .b-arbeitskopf .floorswitch { flex-wrap: wrap; flex-shrink: 1; row-gap: 4px; }
  .b-arbeitskopf .floorswitch__name { max-width: 100px; }
  .b-arbeitskopf > .container > .grow { display: none; }
  .b-arbeitskopf form { margin-left: auto; }
}
/* Strom B – schlank: feste Desktop-Zeilen einschließlich Rand. */
@media (min-width: 1101px) {
  body:has(.b-arbeitskopf) .appbar, .b-arbeitskopf { min-height: 0; height: 48px; box-sizing: border-box; }
  .b-arbeitskopf > .container { min-height: 0; height: 47px; }
}
/* Strom B – schlank: nach dem Ziehen erklärt die Linie selbst den Messweg. */
.b-messtitel { display: none; }
.b185-messpopover { gap: 8px; }
.b185-messpopover > .notice { display: none; }
.b185-messpopover .b-messtitel { display: block; font-size: 13px; }
body:has([data-testid="plan-arbeitsflaeche"]) .b185-messpopover .btn { height: 30px; min-height: 30px; }
.b185-messpopover .label { font-size: 12px; }
@media (max-width: 1100px) {
  .b-arbeitskopf .floorswitch { order: 0; }
  .b-arbeitskopf .steps { order: 1; }
}
/* Strom B – schlank */
body:has(.b-arbeitskopf) .appbar a { min-height: 0; max-height: 32px; }
.b-arbeitskopf .btn--block { width: auto; }
.b-arbeitskopf > .container > .grow { display: block; }
body:has(.editor-a1) .b-arbeitskopf .step:not(.is-active) { font-size: 12px; gap: 4px; padding-inline: 5px; }
/* Strom B – schlank */
body[data-seite="projekt"]:has(.b-arbeitskopf) .work :is(.side,.canvas) .btn,
body[data-seite="projekt"]:has(.b-arbeitskopf) .pruefseite .ws__bar .btn,
body[data-seite="projekt"]:has(.b-arbeitskopf) .b-vorlagen-seite .btn {
  height: 32px; min-height: 28px; padding: 0 10px; font-size: 13px; box-sizing: border-box;
}

/* Strom E */
.export-zwecktext { display: block; font-weight: 400; font-size: 11px; line-height: 1.5; white-space: normal; }
#exportScrim .thumbstrip__item { width: 96px; aspect-ratio: 297 / 210; }
#exportScrim .thumbstrip[data-seite$="-hoch"] .thumbstrip__item { aspect-ratio: 210 / 297; }
#exportScrim .thumbstrip__item img,
#exportScrim .exportpreview__plan > img { width: 100%; height: 100%; object-fit: contain; }
#exportScrim [hidden] { display: none; }
.export-abschluss { min-height: 280px; }
.export-abschluss #exportErgebnis { display: flex; flex-direction: column; gap: var(--sp-5); }
.export-abschluss .export-download { min-height: 48px; }
.export-abschluss .exportzeile { flex-wrap: wrap; }
.export-abschluss #exportAlle { min-height: 48px; }
.geschoss-kennzeichen { position: relative; display: inline-block; font-size: 12px; font-weight: 400; }
.geschoss-kennzeichen summary { display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); color: var(--ink-800); }
.geschoss-kennzeichen summary::-webkit-details-marker { display: none; }
.geschoss-erklaerung { display: none; position: absolute; z-index: 100; top: 100%; right: 0; width: min(340px, 85vw); padding: 14px; background: var(--surface, white); color: var(--ink-800); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-geschoss-erklaerung); line-height: 1.5; }
.geschoss-kennzeichen[open] > .geschoss-erklaerung,
.geschoss-kennzeichen:hover > .geschoss-erklaerung,
.geschoss-kennzeichen:focus-within > .geschoss-erklaerung { display: block; }
.geschoss-messdaten { display: flex; align-items: center; gap: 8px; padding: 4px 16px; }
@media (max-width: 600px) {
  #exportScrim .exportzeile > .grow { flex-basis: 100%; }
  #exportScrim .segmented[aria-labelledby="verwendungLabel"] { flex-wrap: wrap; }
  #exportScrim .segmented[aria-labelledby="verwendungLabel"] > label { flex-basis: 100%; }
}

/* Strom E */
#exportScrim .exportpreview__plan { position: relative; }
#exportScrim .exportpreview__plan > img { position: absolute; inset: 0; padding: var(--sp-3); }
.geschossgruppe { display: flex; align-items: center; gap: 6px; min-width: 0; }
.geschossgruppe .floorswitch { flex: 1; }
@media (max-width: 600px) {
  .geschossgruppe { width: 100%; }
  .geschoss-erklaerung { position: fixed; left: 16px; right: 16px; top: 100px; width: auto; }
}

/* Strom E */
.geschoss-kennzeichen:hover::details-content,
.geschoss-kennzeichen:focus-within::details-content { content-visibility: visible; }

/* Strom E */
.geschoss-erklaerung { pointer-events: none; }
@media (max-width: 600px) {
  .geschoss-erklaerung { top: 160px; }
}

/* Strom E */
#exportScrim .dialog { width: min(1120px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); box-shadow: none; }
#exportScrim .dialog__head { padding: 20px 28px 16px; }
#exportScrim .dialog__head .h2 { font-size: 22px; }
#exportScrim .dialog__body { padding: 22px 28px; }
#exportScrim .dialog__foot { padding: 14px 28px; background: var(--surface-2); }
#exportScrim .btn { min-height: 32px; padding-block: 5px; font-size: 13px; }
#exportScrim .dialog__close { width: 30px; height: 30px; }
#exportScrim .export-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#exportScrim .exportvorschau { width: 100%; }
#exportScrim .export-einstellungen { min-width: 0; gap: 16px; }
#exportScrim .export-zweckkarten { display: flex; flex-direction: column; gap: 8px; }
#exportScrim .export-zweckkarte { display: flex; align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; cursor: pointer; }
#exportScrim .export-zweckkarte:has(:checked) { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); }
#exportScrim .export-zweckkarte:focus-within { outline: 2px solid var(--gold-500); outline-offset: 2px; }
#exportScrim .export-zweckkarte > .ico { display: none; }
#exportScrim .export-zweckkarte input { margin-top: 3px; accent-color: var(--navy-800); }
#exportScrim .export-zweckkarte > span { font-weight: 600; }
#exportScrim #verwendungHinweisDruck, #exportScrim #verwendungHinweisPortal { display: none; }
#exportScrim .export-titel-nord { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
#exportScrim .export-titel-nord > .field { grid-column: 1; grid-row: 1; }
#exportScrim .export-nord { grid-column: 2; gap: 6px; }
#exportScrim .export-nord .northdial { width: 32px; height: 32px; flex: 0 0 32px; }
#exportScrim .export-nord .hint, #exportScrim .export-nord label { display: none; }
#exportScrim .export-nord .mt-2 { margin-top: 0; gap: 4px; }
#exportScrim .export-nord .grow { min-width: 0; }
#exportScrim .northrange { min-width: 0; width: 100%; }
#exportScrim .input { min-height: 32px; height: 32px; font-size: 13px; padding: 4px 8px; }
#exportScrim .input--kurz { width: 35px; }
#exportScrim .export-eigen > summary { cursor: pointer; font-size: 12px; color: var(--ink-600); }
#exportScrim .export-eigen > .row { align-items: start; margin-top: 10px; gap: 12px; }
#exportScrim .export-eigen .segmented__item { min-height: 28px; padding: 3px 8px; font-size: 12px; }
#exportScrim [data-testid="export-branding"] .filerow { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
#exportScrim [data-testid="export-branding"] .eyebrow { display: none; }
#exportScrim .export-abschluss { min-height: 440px; text-align: center; }
#exportScrim .export-fertig-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-100); color: var(--ok-600); margin: 20px auto; }
#exportScrim #exportErgebnis > .row { justify-content: center; flex-wrap: wrap; }
#exportScrim #exportAlle { order: 2; }
#exportScrim .export-fertig-seiten { justify-content: center; gap: 14px; flex-wrap: wrap; }
#exportScrim .export-fertig-seiten img { width: min(180px, 28%); aspect-ratio: 297 / 210; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
#exportScrim .exportzeile { justify-content: center; gap: 14px; }
#exportScrim .exportzeile__thumb { display: none; }
#exportScrim .exportzeile .grow { flex: 0 1 auto; }
#exportScrim .export-download, #exportScrim #exportAlle { min-height: 32px; }
@media (max-width: 700px) {
  #exportScrim .dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  #exportScrim .dialog__head, #exportScrim .dialog__body, #exportScrim .dialog__foot { padding: 14px; }
  #exportScrim .export-spalten { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #exportScrim .export-titel-nord { grid-template-columns: minmax(0, 1fr); }
  #exportScrim .export-nord { grid-column: 1; grid-row: 2; }
  #exportScrim .dialog__foot { flex-wrap: wrap; }
}

/* Strom E */
#exportScrim .dialog { max-width: 1120px; }
#exportScrim .dialog__foot { flex-wrap: nowrap; }
#exportScrim .dialog__foot .dialog__note { flex: 1; width: auto; font-size: 12px; }
#exportScrim .dialog__foot > .grow { display: none; }
#exportScrim .btn { height: 32px; }
#exportScrim .export-einstellungen > .stack-3 { gap: 8px; }
#exportScrim #exportFormatHinweis, #exportScrim #exportSeitenHinweis { display: none; }
#exportScrim .export-titel-nord > .field { gap: 6px; }
#exportScrim .export-titel-nord > .field > label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); }
@media (max-width: 700px) {
  #exportScrim .dialog__foot { flex-wrap: wrap; }
  #exportScrim .dialog__foot .dialog__note { flex-basis: 100%; }
}

/* Strom E */
#exportScrim .export-einstellungen > * { margin-top: 0; }
#exportScrim .export-nord { display: flex; flex-direction: column; }
#exportScrim .export-nord > * + * { margin-top: 0; }
#exportScrim .export-nord .northdial svg { width: 32px; height: 32px; }

/* Strom E */
#exportScrim .export-einstellungen { display: flex; flex-direction: column; }

/* Strom E3 */
/* Nur die Restseiten: Kopfzeile und die anderen Baustroeme behalten ihre Geometrie. */
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(main, .dialog, .team-dialog-karte, .toast) { font-size: 14px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.btn.btn, #ki-konto-form .btn.btn.btn, #betrieb .btn.btn.btn, #konto .btn.btn.btn, #konto-faktor .btn.btn.btn, #konto-team .btn.btn.btn, .dialog__foot > .btn) { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; line-height: 1.2; border-radius: 7px; box-shadow: none; white-space: nowrap; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.btn--sm.btn, .seg__i.seg__i, #betrieb .seg__i.seg__i, .segmented__item) { height: 28px; min-height: 28px; padding: 0 8px; font-size: 12px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.input.input, .select.select, #betrieb .select, .codebox .input, #konto .input, #ki-konto-form .input) { height: 32px; min-height: 32px; padding: 0 9px; font-size: 13px; border-radius: 7px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) input[type="color"] { width: 32px; height: 32px; margin-block: 0; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.iconbtn.iconbtn, .dialog__close, .opact, .affix__btn) { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 6px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.affix:not(.affix--end) > .input, .searchfield > .input, #suchfeld.input, #manualsuche.input, #n1-link.input) { padding-left: 34px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.affix--end > .input, #passwort.input, #einladung-passwort.input) { padding-right: 36px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.btn--icon, .codebox .input) { width: 32px; min-width: 0; padding-inline: 0; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.btn, .seg__i, .segmented__item, .bugwidget, .snav a, .affix__btn, summary.small)::after { content: none; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .bugwidget { height: 30px; min-height: 0; padding: 0 9px; border-radius: 7px; font-size: 12px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.card, .obj, .dialog, .team-dialog-karte) { border: 1px solid var(--line); box-shadow: none; border-radius: 10px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.card__head, .card__body, .card__foot, .dialog__head, .dialog__body, .dialog__foot, .darstellung-kopf) { padding: 14px 16px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.label, .table, .snav, .menu__item, .obj__meta, .obj__foot) { font-size: 13px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .snav a { min-height: 28px; padding: 5px 10px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .toast { padding: 10px 12px; font-size: 13px; box-shadow: none; border: 1px solid var(--line); }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .toast__close { width: 30px; height: 30px; margin: -4px -4px -4px 0; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .pagehead { gap: 12px; flex-wrap: wrap; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) :is(.lead, .manual__content) { font-size: 14px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .field { min-width: 0; gap: 6px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .textarea { font-size: 13px; border-radius: 7px; }
:is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"], body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .mfa-einrichtung .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .b-vorlagen-seite .row { flex-wrap: wrap; }
  :is(body[data-seite="projektliste"], body[data-seite="team"], body[data-seite="n1-import"], body[data-seite="kein-import"], body[data-seite="manual"]) :is(main .row, .dialog__foot) { flex-wrap: wrap; }
  body[data-seite="team"] :is(.settings, #inhalt, .card, .mfa-einrichtung > .grow) { min-width: 0; }
  body[data-seite="team"] .n1-einstellungen .snav { flex-wrap: wrap; overflow: visible; }
  body[data-seite="team"] .n1-einstellungen .snav a { flex: 0 1 auto; white-space: normal; }
  :is(body:has(> main.auth), body:has(> main.authwrap), .b-vorlagen-seite) .bugwidget { width: 30px; }
}

/* Strom E – Kennzeichen im gemeinsamen Stockwerk-Reiter. */
.b-stockwerk [data-stockwerk-hinweis]:empty { display: none; }
.b-stockwerk .geschoss-kennzeichen summary { min-height: 28px; padding: 3px 6px; white-space: nowrap; }
.b-stockwerk .geschoss-erklaerung { left: 0; right: auto; }
@media (max-width: 600px) {
  .b-stockwerk .geschoss-kennzeichen { position: static; }
  .b-stockwerk .geschoss-erklaerung { left: 0; width: min(340px, calc(100vw - 24px)); }
}

/* Strom D */
.planoeffnung--kellerfenster { stroke: var(--plan-window); fill: var(--plan-window-fill); }
/* Strom C */
.c185-bildstatus { max-height: 18rem; overflow: auto; padding-left: 1.4rem; overflow-wrap: anywhere; }
.c9-moebelsaetze progress { width: 100%; height: 1rem; accent-color: var(--gold-500); }
#diktat-pegel { width: 100%; height: 1.2rem; }
[aria-busy="true"] { cursor: progress; }

/* Strom C */
.c185-saetze{width:100%;max-width:1200px;min-width:0;margin:0 auto;padding:32px 24px 96px;box-sizing:border-box}
.c185-saetze .pagehead{align-items:flex-end}
.c185-saetze .btn{min-height:28px;height:32px;font-size:13px;padding:0 12px;white-space:nowrap}
.c185-saetze .input{min-height:32px;font-size:14px}
.c185-saetze textarea.input{padding:10px}
.c185-satzkarten{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px;margin:14px 0 30px}
.c185-satzkarte{text-align:left;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);font:inherit;color:inherit;cursor:pointer}
.c185-vorschauen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;background:var(--bg)}
.c185-vorschauen img,.c185-vorschauen>span{width:100%;height:140px;object-fit:contain;background:var(--surface)}
.c185-vorschauen>span{display:grid;place-items:center;font-size:11px}
.c185-karteninhalt{padding:14px 16px}
.c185-karteninhalt strong{font-size:16px}
.c185-status{display:inline-block;margin-left:8px;font-size:11px;border-radius:20px;padding:2px 8px;background:var(--bg)}
.c185-karteninhalt p{font-size:13px;margin:6px 0}
.c185-karteninhalt progress{width:100%;height:6px;accent-color:var(--gold-500)}
.c185-detailkopf{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin:20px 0}
.c185-detailkopf>div:first-child{flex:1;min-width:min(100%,300px)}
.c185-detailkopf .row{max-width:460px}
.c185-gruppen{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.c185-gruppen label{font-size:13px;border:1px solid var(--line);border-radius:20px;padding:5px 10px}
.c185-gruppen [aria-pressed=true]{background:var(--navy-800);color:var(--surface)}
.c185-bildraster{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.c185-bildkarte{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface);display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}
.c185-bildkarte img{width:100%;height:110px;object-fit:contain}
.c185-bildplatz{height:110px;display:grid;place-items:center;background:var(--bg);text-align:center}
.c185-saetze dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:14px;box-sizing:border-box}
.c185-saetze dialog::backdrop{background:color-mix(in srgb, var(--navy-800) 35%, transparent)}
.c185-saetze dialog header{justify-content:space-between}
.c185-saetze fieldset{border:0;padding:0;min-width:0}
.c185-kosten{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);font-size:13px}
.c185-diktat{padding:12px;background:var(--bg);border-radius:10px}
.c185-saetze [hidden]{display:none!important}
.c185-saetze meter{width:100%;accent-color:var(--gold-500)}

@media(max-width:500px){.c185-saetze{padding:20px 16px 96px}.c185-saetze .pagehead{align-items:flex-start;gap:12px;flex-direction:column}
.c185-saetze dialog{padding:16px}
.c185-bildraster{grid-template-columns:repeat(2,minmax(0,1fr))}
.c185-detailkopf .row{gap:6px}
}


/* Strom C */
.c185-saetze input.input { height: 32px; padding-block: 0; }
.c185-saetze textarea.input { min-height: 84px; }
.c185-saetze #satz-detail > progress { width: 100%; height: 6px; accent-color: var(--gold-500); }

/* Strom C */
.c185-gruppen input { accent-color: var(--navy-800); }

/* Strom C */
.c185-saetze .pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:30px}
.c185-saetze .pagehead>div{flex:1}
.c185-saetze .pagehead h1{margin-top:0}
.c185-saetze #satz-neu{margin-top:0}
.c185-meldung{position:fixed;right:24px;bottom:64px;z-index:30;max-width:min(420px,calc(100vw - 48px));padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:13px}
.c185-meldung:empty{display:none}
.c185-saetze #studio-saetze{margin-top:30px}
.c185-dialogabschnitte{display:grid;gap:30px}
.c185-dialogabschnitt{display:grid;gap:8px}
.c185-saetze #satz-auswahl{margin-top:30px}
.c185-saetze #satz-auswahl legend{font-weight:600;color:var(--navy-800)}
.c185-dialogfuss{display:flex;justify-content:flex-end;position:static;background:var(--surface);border-top:1px solid var(--line);padding:16px 0;margin-top:30px}
@media(max-width:500px){.c185-saetze .pagehead{flex-direction:row;flex-wrap:wrap;gap:12px}}

/* Strom C */
.c185-saetze #satz-dialog{padding:0;overflow:hidden}
.c185-saetze #moebelsatz-form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);gap:0}
.c185-saetze #moebelsatz-form>header{padding:20px 24px;flex-shrink:0;border-bottom:1px solid var(--line)}
.c185-dialoginhalt{padding:24px;overflow:auto;min-height:0}
.c185-dialoginhalt>.c185-diktat{margin-top:12px}
.c185-saetze .c185-dialogfuss{position:static;margin:0;padding:16px 24px;flex-shrink:0}
@media(max-width:500px){.c185-dialoginhalt{padding:16px}.c185-saetze #moebelsatz-form>header{padding:16px}.c185-saetze .c185-dialogfuss{padding:16px}}

/* Strom F4 */
.f4-konzept { font-size: 14px; max-height: 55vh; overflow: auto; }
.f4-konzept section { border-top: 1px solid var(--line); padding: 12px 0; }
.f4-konzept h4 { margin: 0 0 8px; }
.f4-konzept .input { min-height: 32px; height: 32px; font-size: 13px; }
.f4-moebel { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }
[data-c4-dialog] { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
[data-c4-dialog] .dialog__foot { flex-wrap: wrap; }
[data-c4-dialog] button { min-height: 32px; font-size: 13px; }
[data-c4-dialog] [hidden] { display: none; }
[data-c4-dialog].c7-dialog { width: min(680px, calc(100vw - 24px)); box-shadow: none; }
[data-c4-dialog].c7-dialog .btn { min-height: 32px; height: 32px; padding: 0 12px; font-size: 13px; }
[data-c4-dialog].c7-dialog .dialog__foot { box-shadow: none; gap: 8px; padding: 12px 24px; }
[data-c4-dialog].c7-dialog .input { min-height: 32px; height: 32px; font-size: 13px; }

/* Strom F */
[data-c4-dialog].c7-dialog { max-height: calc(100dvh - 32px); }
[data-c4-dialog] .dialog__head, [data-c4-dialog] .dialog__foot { flex-shrink: 0; }
[data-c4-dialog] .dialog__body { min-height: 0; overflow-y: auto; }
[data-c4-dialog] .f4-kosten { margin: 0; font-size: 12px; color: var(--ink-500); }
[data-c4-dialog] .f4-konzept { max-height: none; overflow: visible; font-size: 13px; }
[data-c4-dialog] .f4-konzept > h3 { font-size: 14px; margin: 0 0 4px; }
[data-c4-dialog] .f4-konzept section { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-top: 8px; }
[data-c4-dialog] .f4-konzept h4 { font-size: 13px; margin: 0 0 2px; }
[data-c4-dialog] .f4-konzept section > p { margin: 0 0 8px; color: var(--ink-500); font-size: 12px; }
[data-c4-dialog] .f4-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
[data-c4-dialog] .f4-moebel { height: 26px; display: inline-flex; gap: 5px; margin: 0; padding: 2px 7px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; }
[data-c4-dialog] .f4-entfernen { min-height: 20px; height: 20px; min-width: 0; width: 20px; border: 0; background: transparent; padding: 0 2px; font-size: 16px; line-height: 20px; cursor: pointer; color: inherit; }
[data-c4-dialog].c7-dialog .f4-konzept select { width: auto; max-width: 100%; height: 28px; min-height: 28px; font-size: 12px; }
[data-c4-dialog] .f4-regeln { background: transparent; border: 0; padding: 0; font: inherit; font-size: 12px; text-decoration: underline; color: var(--ink-500); cursor: pointer; }
[data-c4-dialog].c7-dialog .dialog__foot { flex-wrap: wrap; padding: 12px 16px; }
/* Der alte Konto-Link reservierte eine ganze Fußzeile und verdrängte die Konzeptaktionen. */
[data-c4-dialog].c7-dialog .dialog__foot a { flex-basis: auto; min-height: 32px; margin-right: 0; }
[data-c4-dialog] .dialog__foot .btn { white-space: nowrap; }
@media (max-width: 520px) {
  [data-c4-dialog] .dialog__body, [data-c4-dialog] .dialog__head { padding: 12px; }
  [data-c4-dialog].c7-dialog .dialog__foot { flex-direction: row; align-items: center; }
  [data-c4-dialog] .dialog__foot > .btn { width: auto; order: 0; }
  [data-c4-dialog] .dialog__foot .grow { display: none; }
  [data-c4-dialog] .dialog__foot [data-c4-schliessen] { margin-right: auto; }
  [data-c4-dialog] .f4-regeln { order: 4; width: 100%; text-align: left; }
}

/* Strom kb */
.tauschkarte .seg__i { height: 28px; min-height: 26px; padding: 0 8px; }
.tauschkarte button::after { content: none; }
[data-raumname-eingabe] { min-width: 0; width: 100%; height: 32px; }

/* Strom kb */
.b-arbeitskopf .b-status-stockwerk {
  display: block; min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}

/* Strom INT6 */
body[data-seite="projektliste"] .obj.obj--new { border-style: dashed; }
body > #bugKnopf.bugwidget { width: 32px; height: 32px; min-height: 32px; padding: 0; }
body > #bugKnopf.bugwidget::after { content: ""; position: absolute; inset: 0; }
.b-stockwerkmenue summary { width: 28px; }
.b185-overlay-regler label { min-height: 28px; padding-inline: 6px; }
.b185-overlay-regler input[type="checkbox"] { width: 14px; height: 14px; margin: 0; }
.b185-overlay-regler input[type="range"] { height: 28px; margin-block: 0; }
#exportEigeneFelder > summary { min-height: 28px; padding-block: 4px; }
body[data-seite="nicht-gefunden"] .btn { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
html.egs-meldung-frei body:has(.toaststack:not(:empty)) .editor-a1 .canvas__tools { bottom: 16px; }
@media (max-width: 768px) {
  body:not(:has(.editor-a1, [data-testid="plan-arbeitsflaeche"])) > .bugwidget { position: fixed; right: 16px; bottom: 16px; margin: 0; }
  html.egs-meldung-frei body:has(.toaststack:not(:empty)) > .bugwidget { bottom: 88px; }
  body:has([data-testid="plan-arbeitsflaeche"]) > .versionline { margin-top: 0; }
  .work.is-plan .canvas__scale { left: 12px; right: auto; max-width: calc(100% - 100px); }
}

/* Strom P */
.work.is-plan .canvas__tools { left: 16px; transform: none; }
.editor-a1 .toaststack { position: absolute; left: 16px; right: auto; bottom: 56px; width: 360px; max-width: calc(100% - 32px); }
.editor-a1 [data-testid="eigenschaften"] .btn { min-height: 28px; height: 30px; padding: 0 9px; font-size: 12px; white-space: nowrap; }
.editor-a1 .canvas__badge { display: block; font-size: 12px; padding: 4px 8px; pointer-events: none; }
body:has(.editor-a1) .app--flush, body:has(.editor-a1):has(.toaststack:not(:empty)) .app--flush { height: 100dvh; }
@media (max-width: 768px) {
  .editor-a1 .canvas__badge { display: block; top: 64px; }
}

/* Strom ka */
body:has([data-testid="plan-arbeitsflaeche"][data-schritt="1"]) .work > .side { width: 340px; }
body:has([data-testid="plan-arbeitsflaeche"][data-schritt="1"]) .canvas { background: var(--bg-deep); }
body:has([data-testid="plan-arbeitsflaeche"][data-schritt="1"]) .b185-overlay-regler { left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); border-radius: 10px; background: rgb(255 255 255 / 96%); align-items: center; }
body:has([data-testid="plan-arbeitsflaeche"]) .b185-overlay-regler input[type="range"] { width: 120px; accent-color: var(--gold-500); }
body:has([data-testid="plan-arbeitsflaeche"]) .canvas__tools { left: 20px; right: auto; transform: none; bottom: 16px; }
.ka-massstab { background: var(--plan-massstab-grund); border: 1px solid var(--plan-massstab-rand); border-radius: 12px; padding: 14px; font-size: 13px; }
.ka-massstab--warnung { background: var(--gold-050); border-color: var(--gold-300); }
.ka-massstab .ka-massstab-bestaetigen { height: 30px; min-height: 30px; background: var(--plan-bestaetigt); color: white; }
.roomrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
.roomrow__name { grid-column: 1; font-size: 13px; }
.roomrow__name[role="button"] { min-height: 24px; display: flex; align-items: center; }
.roomrow__area { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; font-weight: 600; }
.roomrow .b185-raummasse { grid-column: 1; font-size: 12px; color: var(--plan-masse-text); }
.roomrow[data-massabweichung] { background: var(--gold-050); }
.ka-massabweichung { grid-column: 1; font-size: 11px; color: var(--gold-700); }
.b185-messpopover { width: 260px; max-width: calc(100% - 24px); border-radius: 12px; }
body:has(.editor-a1) .toaststack { bottom: 64px; }
@media (max-width: 480px) {
  body:has([data-testid="plan-arbeitsflaeche"][data-schritt="1"]) .work > .side { width: 100%; }
}
/* Strom ka: Die letzte Objektkachel ist ebenfalls eine Aktion im Raster. */
#projektgitter > .obj--new { border-style: dashed; }
@media (max-width: 480px) {
  body:not(:has(.editor-a1)):has(.toaststack:not(:empty)) .bugwidget { bottom: 88px; }
  html.egs-meldung-frei body:not(:has(.editor-a1)) > .toaststack { width: calc(100vw - 32px); }
}
/* Strom ka */
.geschoss-kennzeichen > summary { font-size: 10px; font-weight: 600; color: var(--gold-700); background: var(--gold-100); border-radius: 999px; }
/* Strom ka */
.b-stand.is-done { background: var(--plan-bestaetigt); border-color: var(--plan-bestaetigt); }
/* Strom ka */
body:has([data-testid="plan-arbeitsflaeche"]) .work.is-plan .canvas__tools { left: 20px; right: auto; transform: none; bottom: 16px; }
body:has([data-testid="plan-arbeitsflaeche"]):has(.toaststack:not(:empty)) .work.is-plan .canvas__tools { bottom: 88px; }
body:has(.app--flush) .editor-a1 .canvas__tools,
body:has(.app--flush):has(.toaststack:not(:empty)) .editor-a1 .canvas__tools { left: 20px; bottom: 16px; transform: none; }
/* Strom ka: Ohne Versionsstreifen gehört die gesamte Höhe dem Editor. */
body:has(.editor-a1) { --versionszeile-h: 0px; }
/* Strom ka: Kopfzeile 1 gilt auf allen angemeldeten Seiten. */
body:has(.appbar) { --header-h: 48px; }
.appbar { background: var(--surface); border-bottom-color: var(--line); }
.appbar .wordmark__glyph, .appbar .wordmark__glyph svg { width: 26px; height: 26px; }
.appbar .appbtn { font-size: 13px; }
.appbar a.avatar { width: 28px; height: 28px; }
@media (min-width: 769px) { .appbar { height: 48px; } }
/* Strom ka */
body:has([data-testid="plan-arbeitsflaeche"]) > .versionline { position: fixed; left: 10px; bottom: 88px; margin: 0; padding: 3px 8px; width: fit-content; max-width: calc(100% - 20px); border-radius: 6px; }
/* Strom ka */
/* Zweizeilige Beschriftungen ragen sonst in die benachbarte 32-px-Trefferfläche. */
.n1-objekte .menu--karte { width: max-content; }
.n1-objekte .menu__item { height: 32px; min-height: 32px; padding-block: 0; white-space: nowrap; }
/* Strom ka */
#bugKnopf { position: fixed; right: 16px; bottom: 16px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / 60%); border-color: rgb(20 35 63 / 12%); opacity: 1; }
@media (max-width: 480px) {
  body:not(:has(.editor-a1)):has(.toaststack:not(:empty)) #bugKnopf { bottom: 88px; }
}

.canvas__sheet.zoom--125 { transform: scale(1.25); }
.canvas__sheet.zoom--175 { transform: scale(1.75); }

@media (min-width: 769px) {
  .editor-a1 > [data-testid="palette"] { width: 272px; flex: 0 0 272px; }
  .editor-a1 > #inspektor { width: 300px; flex: 0 0 300px; }
}

/* Strom ka: Lange unzugeordnete Blattnamen dürfen die Schrittanzeige nicht verdrängen. */
.b-arbeitskopf .savechip { min-width: 0; max-width: 100%; }
.savechip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.savechip__name + span { flex-shrink: 0; }

/* Strom ka */
.b185-overlay-regler label:has([data-original-an]) { color: var(--navy-800); font-weight: 600; }
.b185-overlay-regler [data-original-an] { width: 14px; height: 14px; }

/* Strom ka */
.b185-overlay-regler label { min-height: 24px; }
.b185-overlay-regler input[type="range"] { height: 24px; }
/* Strom kc */
.editor-a1 .canvas__sheet--plan { inset: 0; height: 100%; }
/* Strom kc */
.a185-raumeditor [data-testid="palette"] { display: flex !important; }
.a185-raumeditor [data-testid="palette"] > :not(.a185-raumwerkzeuge) { display: none; }
@media (min-width: 769px) {
  .editor-a1 > [data-testid="inspektor"] { width: 300px; flex: 0 0 300px; }
}

/* Strom kc */
body:has(.editor-a1) > .versionline { display: none; }
body:has(.editor-a1) .app--flush { height: 100dvh; }

/* Strom kc */
#exportScrim #exportStarten, #exportScrim #exportAbbrechen, #exportScrim #exportFertig { min-height: 44px; height: 44px; }
#exportScrim #exportAlle { min-height: 56px; height: 56px; }

/* Strom kc */
.c185-saetze .btn { height: 46px; min-height: 46px; }
.c185-saetze .h1 { font-family: Sora, sans-serif; font-size: 30px; }
.c185-saetze .pagehead p { font-size: 15px; }
.c185-satzkarten { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.c185-satzkarte { border-radius: 14px; }
.c185-vorschauen img, .c185-vorschauen > span { height: 150px; }
.c185-status[data-stand="fertig"] { background: var(--satz-fertig-grund); color: var(--satz-fertig-text); }
.c185-status[data-stand="offen"] { background: var(--satz-offen-grund); color: var(--satz-offen-text); }

/* Strom kc */
#exportScrim .export-zweckkarte { border-radius: 10px; font-size: 14px; }
#exportScrim .export-zweckkarte > span { font-weight: 700; }
#exportScrim .export-zwecktext { font-size: 13px; font-weight: 400; color: var(--ink-500); }
#exportScrim .export-zweckkarte:has(:checked) { border-width: 2px; padding: 9px 11px; box-shadow: none; }

/* Strom kc */
/* Feste Fußaktionen brauchen auch auf schmalen Seiten einen Bereich außerhalb des scrollenden Inhalts. */
@media (max-width: 768px) {
  body[data-seite] > .app, body:has(.editor-a1) > .app--flush {
    min-height: 0; height: calc(100dvh - 64px); overflow: auto;
  }
  body[data-seite] > #bugKnopf { width: 32px; height: 32px; min-height: 32px; right: 16px; }
  body[data-seite]:has(.toaststack:not(:empty)) > .app { height: calc(100dvh - 104px); }
}

/* Strom kc */
.floorswitch summary { min-width: 24px; min-height: 28px; }
.b185-overlay-regler input[type="checkbox"] { flex: none; }
.b185-overlay-regler input[type="range"] { min-height: 24px; }
#exportScrim summary { min-height: 28px; line-height: 28px; }
body[data-seite="nicht-gefunden"] .btn { height: 32px; min-height: 32px; padding-block: 0; font-size: 13px; }
@media (min-width: 769px) {
  body:has(.editor-a1):has(.toaststack:not(:empty)) > .toaststack { bottom: 72px; }
}

/* Strom kc */
.c185-bodenvorschau { height: 110px; background-repeat: repeat; background-size: 64px 64px; }
.c185-bodenvorschau > img { opacity: 0; }

/* Strom kc */
@media (max-width: 768px) {
  body[data-seite]:not(:has(.editor-a1)) > .versionline {
    position: fixed; left: 12px; bottom: 12px; margin: 0; padding: 3px 0;
    width: max-content; max-width: calc(100vw - 80px); line-height: 16px; background: var(--surface);
  }
}

/* Strom kc */
@media (min-width: 769px) {
  body:has(.editor-a1):has(.toaststack:not(:empty)) .app--flush .work > .side:first-child:not(:last-child) { padding-bottom: 144px; }
}

/* Strom E 1.86 */
.editor-a1 [data-rolle="beschriftung"][data-markiert] text { fill: var(--danger-600); }
.editor-a1 .e186-freistellen-fehler { max-height: none; }
.editor-a1 .e186-freistellen-fehler .toast__body { display: block; }

/* Strom A 1.86 */
.a186-export:not([open]) > .geschoss-erklaerung { display: none; }
.a186-export[open] > .geschoss-erklaerung { display: block; pointer-events: auto; }
.a186-export:not([open])::details-content { content-visibility: hidden; }
.a186-export[open]::details-content { content-visibility: visible; }
.a186-stockwerk-stift { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: var(--navy-800); border-radius: 0 999px 999px 0; color: var(--surface); cursor: pointer; flex-shrink: 0; }
.b-stockwerk:has(> .a186-stockwerk-stift) > .floorswitch__item.is-active { background: var(--navy-800); border-radius: 999px 0 0 999px; color: var(--surface); }
.a186-stockwerk-stift:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Strom R 1.86 */
.r186-bauweisen { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.editor-a1 .r186-bauweisen button { min-width:0; min-height:116px; padding:10px 4px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink-900); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; font:inherit; cursor:pointer; }
.r186-bauweisen span { white-space:normal; overflow-wrap:normal; line-height:1.4; }
.editor-a1 .r186-bauweisen button[aria-pressed="true"] { border:1.5px solid var(--ink-900); background:var(--surface-2); }
.r186-oeffnungsarten { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.r186-oeffnungsarten .btn { padding:2px; min-width:0; }
.r186-oeffnungsarten svg { width:24px; height:24px; }
.r186-wahl { display:flex; flex-wrap:wrap; gap:4px; }
.r186-wahl .btn { padding:4px 8px; font-size:12px; }
.r186-einheit { display:flex; align-items:center; gap:8px; }
.r186-einheit input { min-width:0; width:100%; }
.r186-oeffnungsliste { list-style:none; padding:0; display:grid; gap:6px; }
.r186-oeffnungsliste li { border:1px solid var(--line); border-radius:10px; padding:8px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.r186-oeffnungsliste span { flex:1 1 100%; }
.r186-oeffnungsliste .btn { min-height:36px; font-size:12px; }
.editor-a1 .r186-gefahr { color:var(--danger-600); background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; text-align:left; justify-content:flex-start; margin-top:16px; }
.r186-wahl [aria-pressed="true"], .r186-oeffnungsarten [aria-pressed="true"] { border-color:var(--ink-900); background:var(--surface-2); }
/* Strom E 1.86 */
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog { width: min(760px, calc(100vw - 24px)); max-width: calc(100vw - 24px); border-radius: 16px; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot { padding: 16px 28px; gap: 10px; flex-wrap: nowrap; background: var(--surface-2); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot > .btn, body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .e186-ki-konto { min-height: 44px; white-space: nowrap; }
.e186-ki-konto { display: inline-flex; align-items: center; color: var(--ink-500); text-decoration: none; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .notice--danger { background: var(--danger-050); border: 1px solid var(--danger-100); border-radius: 12px; padding: 14px 16px; color: var(--danger-700); }
@media (max-width: 700px) {
  body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot { display: grid; grid-template-columns: auto 1fr; padding: 16px; }
  body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot .grow { display: none; }
  body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog [data-c4-modus], body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog [data-f4-platzieren] { grid-column: 1 / -1; width: 100%; }
}
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__head { padding: 24px 28px 8px; border-bottom: 0; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__body { padding: 16px 28px 24px; gap: 16px; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__head h2:focus { outline: none; box-shadow: none; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot > .btn { height: 44px; min-height: 44px; font-size: 14px; }
@media (max-width: 700px) {
  body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__body, body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__head { padding: 16px; }
}
body[data-seite="projekt"] .e186-fernes-stueck { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; }
body[data-seite="projekt"] .e186-fernes-stueck .ribbon__text { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
body[data-seite="projekt"] .e186-fernes-stueck .ribbon__actions { grid-column: 2; flex-wrap: wrap; gap: 8px; }
body[data-seite="projekt"] .e186-fernes-stueck .ribbon__actions .btn { max-width: 100%; white-space: normal; height: auto; min-height: 44px; }

/* Strom E 1.86 — E-E2b: Dialog nach dem freigegebenen Artboard. */
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog { border: 0; background: var(--surface); color: var(--ink-800); font-family: Inter, system-ui, sans-serif; line-height: normal; box-shadow: 0 24px 60px color-mix(in srgb, var(--navy-950) 35%, transparent); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__head { display: flex; flex-direction: column; align-items: stretch; gap: 6px; background: var(--surface); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__head h2 { margin: 0; font-family: Sora, Inter, sans-serif; font-size: 20px; font-weight: 600; line-height: normal; letter-spacing: normal; color: var(--navy-800); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__body { display: flex; flex-direction: column; background: var(--surface); }
.c7-untertitel { margin: 0; font-size: 14px; color: var(--ink-600); }
.c7-umfang { border: 0; padding: 0; margin: 0; min-width: 0; }
.c7-umfang legend { font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.c7-auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c7-auswahl label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; cursor: pointer; }
.c7-auswahl label:has(:checked) { border: 1.5px solid var(--navy-800); background: var(--navy-050); font-weight: 500; }
.c7-kontrolle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .f4-kosten { font-size: 13px; color: var(--ink-600); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot > .btn { padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--navy-800); font-weight: 600; box-shadow: none; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot > .btn--primary { background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__foot > [data-c4-schliessen] { padding: 0 14px; border: 0; background: transparent; color: var(--ink-700); font-weight: 400; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .e186-ki-konto { font-size: 14px; padding: 0 6px; color: var(--ink-600); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .notice--danger:not([hidden]) { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: normal; }
[data-c4-hinweis] > svg { flex: none; fill: none; stroke: var(--danger-600); stroke-width: 2; }
[data-c4-dialog].c7-abgelehnt .c7-kontrolle, [data-c4-dialog].c7-abgelehnt .f4-kosten, [data-c4-dialog].c7-abgelehnt [data-c4-modus="ki"] > svg { display: none; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-dialog .dialog__body > * { margin: 0; }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-abgelehnt .dialog__foot > [data-c4-modus="ki"] { order: 1; background: var(--surface); border-color: var(--line-strong); color: var(--navy-800); }
body[data-seite="projekt"] .editor-a1 dialog[data-c4-dialog].c7-abgelehnt .dialog__foot > [data-c4-modus="regeln"] { order: 2; background: var(--navy-800); border-color: var(--navy-800); color: var(--surface); }
/* Strom K 1.86 */
.k186-leer { min-height:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center; }
.k186-leer .btn { min-height:52px; }
.c185-saetze .c185-vorschauen { height:150px; min-height:150px; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; }
.c185-saetze .c185-vorschauen img { width:100%; height:150px; object-fit:contain; }
.k186-stichpunkte { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0; }
.k186-chip { color:var(--ink-700); background:var(--surface-3); border-radius:999px; padding:3px 9px; font-size:12px; }
.c185-saetze .c185-satzkarte { overflow:hidden; border-radius:14px; }
.c185-saetze .c185-detailkopf { align-items:flex-start; margin:24px 0; }
.c185-saetze .c185-detailkopf h1 { margin-bottom:8px; }
.c185-saetze .c185-detailkopf .row { gap:8px; }
.k186-menue { position:relative; }
.k186-menue > summary { list-style:none; cursor:pointer; }
.k186-menue[open] { z-index:2; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:8px; }
.k186-menue[open] > button { display:block; margin-top:6px; }
.k186-bildknopf { display:block; width:100%; border:0; padding:0; background:var(--bg); border-radius:8px; cursor:zoom-in; aspect-ratio:4/3; }
.c185-saetze .c185-bildkarte img { display:block; width:100%; height:100%; aspect-ratio:4/3; object-fit:contain; }
.c185-saetze .c185-bildplatz { aspect-ratio:4/3; height:auto; display:grid; place-items:center; background:var(--surface-3); }
.k186-boeden { border-top:1px solid var(--line); padding-top:20px; margin-top:24px; }
.k186-bodenraster { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:14px; margin-top:16px; }
.k186-bodenraster .k186-bildknopf,.k186-bodenraster img { aspect-ratio:1; }
.k186-bodenraster > .btn { min-height:150px; border-style:dashed; }
.k186-objektkarte { border:1px solid var(--line); border-radius:12px; padding:14px; display:grid; gap:10px; }
#satz-grossansicht { width:min(1000px,calc(100vw - 32px)); max-height:90vh; border:0; border-radius:16px; padding:20px; }
#satz-grossansicht::backdrop { background:color-mix(in srgb, var(--navy-800) 67%, transparent); }
#grossansicht-bilder { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
#grossansicht-bilder figure { margin:0; }
#grossansicht-bilder img { width:100%; height:55vh; object-fit:contain; }
#grossansicht-bilder .c185-bildplatz { height:55vh; }
.c185-saetze #moebel-hinweis { position:static; box-shadow:none; margin:12px 0; }
#satz-konto { white-space:nowrap; }
@media(max-width:600px) {
  .c185-saetze .c185-detailkopf { flex-direction:column; gap:16px; }
  .c185-saetze .c185-bildraster { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .c185-saetze .c185-bildkarte { min-width:0; }
  .c185-saetze .c185-bildkarte strong { overflow-wrap:anywhere; }
  #satz-dialog { max-width:calc(100vw - 24px); }
  #satz-dialog .c185-dialoginhalt { padding:16px; }
}
.k186-objektkarte { grid-template-columns:minmax(0,1fr) auto auto; align-items:center; }
.k186-objektkarte p { margin:4px 0 0; font-size:13px; }
.k186-objektkarte > select,.k186-objektkarte > label { grid-column:1/-1; }
#ergaenzen-fuss { display:flex; justify-content:space-between; gap:8px; border-top:1px solid var(--line); background:var(--surface-2); }
#ergaenzen-fuss .btn { white-space:nowrap; }
@media(max-width:600px) { .k186-objektkarte { grid-template-columns:1fr 1fr; } .k186-objektkarte > div { grid-column:1/-1; } }

/* Strom K 1.86 — Entwurfsabgleich K-E2c */
.c185-saetze { max-width:1280px; padding:32px 48px 96px; }
.c185-saetze .h1 { font-size:28px; margin:0; }
.c185-saetze .btn { height:44px; min-height:44px; border-radius:10px; font-size:14px; }
.k186-sofa { width:64px; height:64px; border-radius:18px; background:var(--navy-050); color:var(--navy-800); display:grid; place-items:center; }
.k186-leer p { margin:0; }
.c185-saetze .c185-detailkopf { margin:0 0 22px; gap:24px; }
.c185-detailkopf summary { font-size:13px; color:var(--ink-600); cursor:pointer; }
.c185-detailkopf details p { max-width:720px; font-size:14px; }
.c185-detailkopf .k186-stichpunkte { align-items:center; margin:8px 0; gap:6px; }
.c185-detailkopf .k186-chip { background:var(--surface); border:1px solid var(--line); padding:4px 10px; font-size:13px; }
.k186-zaehlung { padding:0 6px; color:var(--ink-600); font-size:13px; }
.k186-menue > summary { width:44px; display:grid; place-items:center; padding:0; font-size:20px; }
.k186-menue[open] { padding:0; border:0; background:transparent; }
.k186-menuliste { display:none; position:absolute; top:52px; right:0; width:220px; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 12px 32px color-mix(in srgb, var(--navy-950) 14%, transparent); z-index:3; }
.k186-menue[open] > .k186-menuliste { display:block; }
.k186-menuliste .btn { display:block; width:100%; text-align:left; border:0; background:transparent; height:40px; min-height:40px; }
.k186-menuliste .btn:hover { background:var(--navy-050); }
.k186-menuliste .k186-loeschen { color:var(--danger-600); border-top:1px solid var(--line); border-radius:0; margin-top:4px; }
.k186-fortschritt { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:14px 18px; background:var(--surface); border:1px solid var(--line); border-radius:12px; font-size:14px; margin:0 0 22px; }
.k186-fortschritt progress { flex:1; min-width:100px; height:6px; accent-color:var(--gold-500); }
.k186-fortschritt--fertig { padding:0; background:transparent; border:0; color:var(--ink-600); font-size:13px; }
.k186-fortschritt--fertig strong { font-weight:400; }
.k186-spinner { display:inline-block; width:16px; height:16px; border:2px solid currentColor; border-top-color:transparent; border-radius:50%; color:var(--gold-500); animation:k186-drehen 1s linear infinite; flex-shrink:0; }
@keyframes k186-drehen { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .k186-spinner { animation:none; } }
.c185-saetze #satz-detail > .c185-gruppen { margin:0 0 22px; }
.c185-saetze .c185-gruppen > .btn { height:36px; min-height:36px; border-radius:999px; font-size:13px; padding:0 14px; }
.c185-saetze .c185-bildraster { grid-template-columns:repeat(5,minmax(0,1fr)); }
.c185-saetze .c185-bildkarte { border-radius:12px; gap:6px; }
.c185-saetze .c185-bildkarte strong { font-size:13px; }
.c185-saetze .k186-bildknopf { height:auto; aspect-ratio:17/11; }
.c185-saetze .c185-bildplatz { height:100%; aspect-ratio:auto; display:flex; align-items:center; justify-content:center; gap:8px; border-radius:8px; font-size:12px; padding:8px; box-sizing:border-box; }
.c185-saetze .c185-bildkarte img { aspect-ratio:auto; }
.k186-boeden .h2 { font-size:18px; margin:0; }
.k186-bodenraster { display:flex; flex-wrap:wrap; align-items:flex-start; }
.k186-bodenraster > .c185-bildkarte { width:150px; box-sizing:border-box; padding:8px; }
.k186-bodenraster .k186-bildknopf { height:auto; aspect-ratio:1; border:0; background:var(--bg); }
.k186-bodenraster .k186-bildknopf img { object-fit:cover; border-radius:8px; }
.k186-bodenform { flex:1; min-width:min(100%,360px); max-width:550px; box-sizing:border-box; padding:14px; border:1px solid var(--navy-800); border-radius:12px; background:var(--surface); display:grid; gap:10px; font-size:13px; }
.k186-bodeneingabe { position:relative; }
.c185-saetze .k186-bodeneingabe input { width:100%; height:42px; padding:0 46px 0 12px; }
.k186-bodeneingabe > .btn { position:absolute; right:5px; top:5px; width:32px; height:32px; min-height:32px; border:0; border-radius:50%; background:var(--navy-050); padding:0; }
.k186-bodenvorschlag { display:grid; gap:4px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.k186-bodenfuss { display:flex; align-items:center; gap:10px; }
.k186-bodenfuss > span { margin-left:auto; white-space:nowrap; font-size:13px; }
.c185-saetze .k186-bodenfuss .btn { height:40px; min-height:40px; border:0; padding:0 12px; }
.k186-bodenfuss .btn:last-child { background:var(--navy-800); color:var(--surface); font-weight:600; }
.c185-saetze .c185-satzkarten { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.c185-karteninhalt { display:flex; flex-direction:column; gap:4px; }
.c185-karteninhalt strong { font-size:15px; }
.c185-karteninhalt .k186-stichpunkte { margin:0; gap:4px; }
.c185-karteninhalt p { margin:0; }
.c185-status:empty { display:none; }
.c185-saetze #satz-dialog.k186-ergaenzen { width:min(776px,calc(100vw - 24px)); }
.k186-ergaenzen .c185-dialoginhalt { display:flex; flex-direction:column; gap:16px; }
.k186-ergaenzen .c185-dialoginhalt > .c185-diktat { order:2; }
.k186-ergaenzen .c185-dialoginhalt > #satz-dialog-hinweis:empty { display:none; }
.k186-ergaenzen #ergaenzen-eingabe textarea { min-height:144px; }
.k186-ergaenzen .k186-objektkarte { padding:12px 14px; gap:8px; }
.k186-objektkarte .k186-iconbtn { padding:0; width:40px; min-height:40px; height:40px; background:transparent; border:0; color:var(--ink-700); }
@media(max-width:900px) { .c185-saetze .c185-bildraster { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) {
  .c185-saetze { padding:20px 16px 96px; }
  .c185-saetze .c185-bildraster { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .c185-saetze .c185-satzkarten { grid-template-columns:1fr; }
  .c185-saetze .c185-detailkopf .row { flex-wrap:nowrap; }
  .c185-saetze .c185-detailkopf { gap:16px; }
  .k186-fortschritt { gap:10px; padding:12px; }
  .k186-fortschritt--fertig { padding:0; }
  .k186-fortschritt progress { flex-basis:100%; }
  .k186-bodenraster > .c185-bildkarte { width:calc(50% - 7px); }
  .k186-bodenform { min-width:100%; }
  .k186-bodenfuss { flex-wrap:wrap; }
  .k186-bodenfuss > span { margin-left:0; }
  .k186-bodenfuss .btn:last-child { margin-left:auto; }
  .k186-objektkarte { grid-template-columns:minmax(0,1fr) 40px 40px; }
  .k186-objektkarte > div { grid-column:auto; }
  #ergaenzen-fuss .btn { white-space:normal; }
}

/* Strom K 1.86 — Ergänzen: Eingabe und Prüfkarten */
.c185-saetze #satz-dialog.k186-ergaenzen:not(.k186-karten) { width:min(368px,calc(100vw - 24px)); }
.k186-wunsch { position:relative; }
.k186-wunsch textarea { width:100%; padding-bottom:44px!important; }
.k186-wunsch > .btn { position:absolute; right:8px; bottom:8px; border:0; border-radius:50%; padding:0; width:36px; min-height:36px; height:36px; background:var(--navy-050); }
#ergaenzen-eingabe > .btn { justify-self:end; }
.k186-weitere { width:100%; border:1px dashed var(--line-strong); background:transparent; color:var(--ink-700); }

/* Strom K 1.86 — Neue Satzkarte */
.k186-neuer-satz { border:1.5px dashed var(--line-strong); border-radius:14px; background:transparent; min-height:214px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; font:600 14px Inter,sans-serif; color:var(--ink-700); cursor:pointer; }
/* Strom K 1.86 — Leerzustand wie Artboard */
.c185-saetze .h1 { color:var(--navy-800); }
.c185-saetze .k186-leer { margin-top:-32px; }
.c185-saetze .k186-leer .btn { height:52px; min-height:52px; padding:0 24px; font-size:16px; font-weight:600; border-radius:12px; }
.c185-saetze .k186-leer h1 { font-size:26px; }
@media(max-width:600px) { .c185-saetze .k186-leer { margin-top:-20px; } }

/* Strom K 1.86 — Eingabefuß im Ergänzen-Dialog */
#ergaenzen-eingabefuss { display:flex; justify-content:space-between; border-top:1px solid var(--line); background:var(--surface-2); }
/* Strom K 1.86 — Alte Breitenbegrenzung und intrinsische Bildhöhen ablösen */
#moebelsaetze.c185-saetze { max-width:1280px; }
.c185-saetze .k186-bildknopf { position:relative; overflow:hidden; min-height:0; }
.c185-saetze .k186-bildknopf > img,.c185-saetze .k186-bildknopf > .c185-bildplatz { position:absolute; inset:0; width:100%; height:100%; }
/* Strom K 1.86 — Detailpfad auch auf kleinen Bildschirmen */
@media(max-width:768px) {
  body:has(#satz-detail:not([hidden])) .appbar__actions > a[href="/moebelsaetze"] { display:none; }
  body:has(#satz-detail:not([hidden])) .appbar .crumbs { flex:1; max-width:none; }
  body:has(#satz-detail:not([hidden])) .appbar .crumbs > :nth-child(n+3) { display:inline; }
  body:has(#satz-detail:not([hidden])) .appbar__spacer { display:none; }
}
/* Strom K 1.86 — Abstände und Dialogtypografie aus dem Artboard */
.c185-saetze .pagehead { margin-bottom:10px; }
.c185-saetze .btn--primary,.k186-weitere { font-weight:600; }
.k186-neuer-satz > .ico { display:block; width:22px; height:22px; }
.k186-ergaenzen #moebelsatz-form > header { padding:24px 24px 0; border:0; }
.k186-ergaenzen #moebelsatz-form > header h2 { margin:0; font-size:20px; }
.k186-ergaenzen .c185-dialoginhalt { margin:0; padding:16px 24px 24px; }
.k186-ergaenzen .c185-dialoginhalt > * { margin-top:0; }
.k186-ergaenzen #ergaenzen-eingabe > .k186-wunsch { margin-top:8px; }
.k186-objektkarte .k186-iconbtn { box-shadow:none; }
/* Strom P 1.86 */
.p186-schritt { gap: 4px; }
.p186-tasten { display: inline-flex; }
.p186-tasten button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-700); cursor: pointer; }
.tauschkarte [data-testid="tausch-art"] { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0; background: transparent; border: 0; }
.tauschkarte [data-testid="tausch-art"] button { padding: 0; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
.p186-einheit { display: flex; align-items: center; gap: 6px; }
.tauschkarte .p186-einheit input { min-width: 0; width: 88px; }
.p186-einheit > span { position: static; }
.p186-anschlag { display: flex; gap: 4px; }
.tauschkarte .p186-anschlag .seg__i { flex: 0 0 40px; min-width: 40px; width: 40px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.tauschkarte .tausch-chips { gap: 6px; }
body:has([data-testid="plan-arbeitsflaeche"]) button:active { transform: translateY(1px); filter: brightness(.9); }
body:has([data-testid="plan-arbeitsflaeche"]) button[aria-busy="true"]::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: p186-drehen .8s linear infinite; margin-right: 6px; }
@keyframes p186-drehen { to { transform: rotate(360deg); } }
.opitem[data-status='bestaetigt'] [data-aktion='oeffnung-bestaetigen'][aria-busy='true'] { display: inline-flex; }
body:has([data-testid="plan-arbeitsflaeche"]) button[aria-busy="true"] > svg, .p186-anschlag button[aria-busy="true"] > span { display: none; }
.p186-anschlag button[aria-busy="true"]::before, .opitem__loeschen[aria-busy="true"]::before { margin-right: 0; flex-shrink: 0; }

[data-testid="pruefliste"] { width: 420px; background: var(--surface); }
[data-testid="pruefliste"] .side__head { padding: 20px 20px 16px; }
[data-testid="pruefliste"] .side__head .h3 { font-size: 18px; font-weight: 600; }
[data-testid="pruefliste"] .side__body { padding: 0 20px 20px; }
[data-testid="pruefliste"] .side__foot { padding: 20px; background: var(--surface); }
[data-testid="pruefliste"] .side__foot .btn { height: 48px; }
.opitem[data-pruefung] { width: 100%; border-radius: 14px; padding: 16px; }
.opitem[data-pruefung] .opitem__sym { display: none; }
.opitem[data-pruefung] .opitem__title { font-size: 14px; font-weight: 600; }
.opitem[data-pruefung] .opitem__head > button { flex: none; padding: 0; width: 28px; height: 28px; }
.p186-artkacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.p186-artkachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--ink-900); cursor: pointer; }
.p186-artkachel svg { width: 18px; height: 18px; }
.p186-artkachel[aria-checked="true"] { border-color: var(--navy-800); background: var(--navy-050); font-weight: 600; }
.opitem[data-pruefung] .opitem__actions [data-aktion="oeffnung-bestaetigen"] { height: 44px; font-size: 14px; width: 100%; }
.opitem:not(.is-edit) .opitem__actions .opitem__loeschen { display: none; }
.opitem.is-edit .p186-artkacheln, .opitem.is-edit .opitem__head { display: none; }
.opitem.is-edit [data-aktion="oeffnung-bestaetigen"] { display: inline-flex; }
.opitem.is-edit .tauschkarte { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; position: relative; }
.opitem.is-edit .tauschkarte > * { margin-top: 0; }
.tauschkarte .kv, .tauschkarte .kv:has([data-testid="tausch-aufschlag-feld"]:not([hidden])) { display: flex; gap: 8px; align-items: center; }
.tauschkarte .kv > label { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0; }
.tauschkarte .kv > label > .label { flex: none; width: 44px; margin: 0; }
.tauschkarte .p186-einheit { display: flex; width: 104px; height: 38px; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.tauschkarte .p186-einheit input { width: 100%; min-width: 0; padding: 0; border: 0; height: 34px; text-align: right; background: transparent; appearance: textfield; }
.tauschkarte .p186-einheit input::-webkit-inner-spin-button { appearance: none; }
.tauschkarte .p186-einheit > span { font-size: 13px; color: var(--ink-600); }
.tauschkarte .kv > [data-testid="tausch-aufschlag-feld"] { margin-left: auto; padding: 0; }
.tauschkarte .p186-anschlag .seg__i { width: 38px; min-width: 38px; flex-basis: 38px; height: 38px; }
.tauschkarte .tausch-chips { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 2px 0; margin-top: 10px; }
.tauschkarte .var { border-radius: 999px; height: 30px; padding: 0 6px; gap: 0; font-size: 12px; flex-shrink: 0; }
.p186-fensterfluegel { align-self: flex-end; }
.p186-fensterfluegel > summary { cursor: pointer; list-style: none; padding: 0 8px; }
.p186-fensterfluegel:not([open]) { position: absolute; right: 0; top: 54px; }
[data-testid="sicher-erkannt"] { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
[data-testid="sicher-erkannt"] > summary { list-style: none; }
[data-testid="sicher-erkannt"] > summary::before { content: '✓'; color: var(--ok-600); margin-right: 8px; }
@media (max-width: 700px) {
  [data-testid="pruefliste"] .side__head { padding: 16px 12px 12px; }
  [data-testid="pruefliste"] .side__body { padding: 0 12px 16px; }
  [data-testid="pruefliste"] .side__foot { position: sticky; bottom: 0; z-index: 3; padding: 12px; }
  .opitem[data-pruefung] { padding: 14px; }
  .tauschkarte .kv > label > .label { width: 40px; }
  .tauschkarte .p186-einheit { width: 104px; }
}


.p186-tasten button { position: relative; }
.p186-tasten button::after { content: ''; position: absolute; inset: 0; }

.opitem[data-pruefung] .opitem__title { display: block; border: 0; padding: 0; background: transparent; text-align: left; line-height: inherit; cursor: pointer; }

.tauschkarte .var::after { content: ''; position: absolute; inset: 0; width: auto; height: auto; transform: none; }
body[data-seite="projekt"]:has(.b-arbeitskopf) .work [data-testid="pruefliste"] .side__foot [data-aktion="weiter-stil"] { width: 100%; height: 48px; min-height: 48px; border-radius: 10px; font-size: 15px; align-self: stretch; }
body[data-seite="projekt"]:has(.b-arbeitskopf) .work [data-testid="pruefliste"] .opitem__actions [data-aktion="oeffnung-bestaetigen"] { height: 44px; min-height: 44px; font-size: 14px; }
body[data-seite="projekt"]:has(.b-arbeitskopf) .work [data-testid="pruefliste"] .opitem.is-edit .opitem__actions .btn { height: 40px; min-height: 40px; }

.opitem[data-pruefung] .opitem__title { position: relative; }
.opitem[data-pruefung] .opitem__title::after { content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
@media (max-width: 700px) {
  .pruefseite .work { overflow: visible; }
  .pruefseite .work > [data-testid="pruefliste"] { height: 100%; }
  [data-testid="pruefliste"] .side__body { overflow-y: auto; }
  [data-testid="pruefliste"] .side__foot { position: static; }
}
@media (min-width: 701px) {
  [data-testid="pruefliste"] .side__foot { padding-bottom: 56px; }
}
.tauschkarte .seg__i.is-on, .tauschkarte .var.is-on { background: var(--navy-050); }

/* Strom E 1.86 */
.e186-bodenliste { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-block:12px; }
.e186-bodenkachel { min-width:0; padding:6px; display:flex; flex-direction:column; white-space:normal; }
.e186-bodenkachel img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }
.e186-bodenkachel span { overflow-wrap:anywhere; }
.e186-bodendialog { width:min(520px,calc(100vw - 24px)); }
.e186-bodendialog h2:focus { outline:none; }
.e186-bodendialog .dialog__foot { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; }
.e186-bodendialog .dialog__body { background:var(--surface); }

.e186-bodendialog:not([open]), [data-e186-einpassen][hidden], [data-e186-zeile][hidden], [data-e186-boeden][hidden] { display:none; }
.e186-bodendialog { padding:0; border:1px solid var(--line); max-height:calc(100dvh - 32px); }
.e186-bodendialog::backdrop { background:var(--boden-dialog-overlay); }
.e186-bodendialog .dialog__body { min-height:0; overflow-y:auto; }
.e186-bodendialog { height:auto; border-radius:14px; }
.e186-bodendialog textarea { height:auto; min-height:84px; resize:vertical; }
.e186-bodendialog .dialog__head h2 { font-size:18px; }

body[data-seite="projekt"] .editor-a1 dialog.e186-bodendialog { height:fit-content; }
body[data-seite="projekt"] .editor-a1 dialog.e186-bodendialog textarea.input { height:96px; min-height:96px; padding:12px; }
body[data-seite="projekt"] .editor-a1 .e186-bodenkachel { height:auto; min-height:0; padding:6px; white-space:normal; }
body[data-seite="projekt"] .editor-a1 dialog.e186-bodendialog .btn { height:44px; min-height:44px; font-size:14px; white-space:nowrap; }
/* Strom V 1.86 */
.v186-kopf { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.v186-kopf .btn { white-space: nowrap; }
.v186-layout { display: grid; grid-template-columns: 150px minmax(280px, 340px) minmax(0, 1fr); align-items: start; gap: 20px; padding-top: 20px; }
.v186-gruppen { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 90px); }
.v186-gruppen .btn { justify-content: flex-start; border: 0; background: transparent; }
.v186-gruppen [aria-selected="true"] { background: var(--surface); color: var(--navy-800); box-shadow: inset 3px 0 var(--navy-800); }
.v186-form { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.v186-form label { display: grid; gap: 6px; margin-bottom: 12px; }
.v186-form h2 { margin-bottom: 16px; }
.v186-form input[type="color"] { width: 36px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.v186-farben { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v186-bildwahl { padding: 0; margin: 0 0 18px; border: 0; min-width: 0; }
.v186-bildwahl legend { margin-bottom: 8px; font-weight: 600; }
.v186-bildwahl > div { display: flex; gap: 6px; }
.v186-bildwahl label { position: relative; flex: 1; min-width: 0; margin: 0; }
.v186-bildwahl input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.v186-bildwahl span { display: grid; justify-items: center; align-content: center; gap: 6px; height: 96px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; text-align: center; }
.v186-bildwahl input:checked + span { border-color: var(--navy-800); background: var(--navy-050); box-shadow: inset 0 0 0 1px var(--navy-800); }
.v186-bildwahl input:focus-visible + span { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.v186-layout .b-vorlagen-live { position: sticky; top: calc(var(--header-h) + 90px); max-height: calc(100dvh - var(--header-h) - 160px); }
.v186-layout .b-vorlagen-live svg { max-height: calc(100dvh - var(--header-h) - 230px); }
[data-vorlagen-auswahl] .stylegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-inline: 0; padding-inline: 0; overflow: visible; }
[data-vorlagen-auswahl] .stylecard__preview { height: 170px; }
@media (max-width: 1000px) {
  .v186-layout { grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr); }
  .v186-gruppen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; position: static; }
  [data-vorlagen-auswahl] .stylegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .v186-kopf { top: var(--header-h); }
  .v186-kopf h1 { width: 100%; }
  .v186-layout { display: flex; flex-direction: column; gap: 12px; }
  .v186-layout > * { width: 100%; }
  .v186-layout .b-vorlagen-live { order: -1; z-index: 3; top: calc(var(--header-h) + 102px); background: var(--bg); max-height: 220px; padding: 8px 0; }
  .v186-layout .b-vorlagen-live svg { max-height: 150px; }
  .v186-layout .b-vorlagen-live .canvas__sheet { padding: 0; }
  .v186-gruppen .btn { flex: 1 0 30%; }
  [data-vorlagen-auswahl] .stylegrid { grid-template-columns: minmax(0, 1fr); }
}

[data-testid="vorlagen-seite"] [hidden] { display: none !important; }
[data-vorlagen-auswahl] .stylecard.is-selected { border-color: var(--navy-800); box-shadow: 0 0 0 3px var(--navy-100); }

.v186-farbwahl { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.v186-farbwahl > div { display: flex; gap: 6px; align-items: center; }
.v186-farbwahl button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.v186-farbwahl button[aria-pressed="true"] { outline: 2px solid var(--navy-800); outline-offset: 1px; }

.v186-farbwahl [data-farbtoken="--n1-rose-grau-fenster"] { background: var(--n1-rose-grau-fenster); }
.v186-farbwahl [data-farbtoken="--n1-schlicht-farbig-wand"] { background: var(--n1-schlicht-farbig-wand); }
.v186-farbwahl [data-farbtoken="--surface"] { background: var(--surface); }

/* Strom P 1.86 — CSP-konforme Spiegelung der Anschlagsymbole. */
.p186-anschlagsymbol { display: block; }
.p186-anschlagsymbol--rechts { transform: scaleX(-1); }
.p186-anschlagsymbol--aussen { transform: scaleY(-1); }
.p186-anschlagsymbol--rechts.p186-anschlagsymbol--aussen { transform: scale(-1, -1); }

/* Strom R 1.86 */
[data-r186="raumliste"] { display: grid; gap: 8px; margin-block: 12px; }
.editor-a1 [data-r186="raumliste"] label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
[data-r186="einbau"] { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.r186-wahl { flex-wrap: wrap; }
[data-r186="zusammenlegen"], [data-r186="trennen"], [data-r186-einbau], [data-r186-kamin] { white-space: nowrap; margin-block: 4px; }
[data-r186="raumliste"] { max-height: 180px; overflow: auto; }
.r186-einbau-panel { margin-top: 20px; }
.editor-a1 [data-r186="raumliste"] label { margin: 0; min-height: 28px; }
.editor-a1 [data-r186="raumliste"] input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 0; flex: none; }

/* Strom REP3 1.86 */
[data-testid="massstab-details"] > summary { min-height: 24px; }
body[data-seite="projekt"] [data-editor="beschriftung-freistellen"].btn { height: 32px; min-height: 32px; }

/* Strom G 1.86 */
button, .btn, [role="button"] { white-space: nowrap !important; }
.r186-bauweisen span, .bodenwahl span, .e186-bodenkachel span, .pitem__name { white-space: nowrap !important; overflow-wrap: normal; }
button:active, .btn:active { transform: translateY(1px); filter: brightness(.9); }
button[aria-busy="true"]::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: p186-drehen .8s linear infinite; margin-right: 6px; flex-shrink: 0; }
button[aria-busy="true"] > svg { display: none; }

/* Volle Möbelnamen brauchen neben dem Vorschaubild die Breite der Palette. */
.editor-a1 [data-testid="palette"] .palette__grid { grid-template-columns: minmax(0, 1fr); }
.editor-a1 [data-testid="palette"] .pitem { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; text-align: left; }
.editor-a1 [data-testid="palette"] .pitem__thumb { grid-row: span 2; }
.editor-a1 [data-testid="palette"] .pitem__name { min-height: 0; justify-content: start; text-align: left; }
@media (max-width: 600px) {
  #exportScrim [data-testid="export-branding"] .filerow { flex-wrap: wrap; }
  #exportScrim [data-testid="export-branding"] .filerow > .grow { flex-basis: calc(100% - 68px); }
  #exportScrim [data-testid="export-branding"] .filerow > .btn { flex-shrink: 0; margin-left: auto; }
}

/* Strom v186 1.86 Soll */
[data-vorlagen-auswahl] .pagehead .h1 { font-size: 24px; font-weight: 600; color: var(--navy-800); }
[data-vorlagen-auswahl] .stylecard { border-radius: 14px; }
[data-vorlagen-auswahl] .stylecard.is-selected { border-width: 1.5px; }
[data-vorlagen-auswahl] .stylecard__preview { position: relative; background: var(--surface-3); }
[data-vorlagen-auswahl] .stylecard__body .h3 { font-size: 15px; font-weight: 600; color: var(--navy-800); }
.v186-aktiv, .v186-eigene { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--navy-800); color: var(--surface); }
.v186-eigene { background: var(--surface); color: var(--navy-800); border: 1px solid var(--line-strong); }
.stylecard.is-selected .v186-eigene { top: 38px; }
.v186-neu { border: 1.5px dashed var(--line-strong); background: transparent; font-weight: 600; }
.v186-kopf { top: var(--header-h); min-height: 64px; padding: 10px 20px; flex-wrap: nowrap; background: var(--surface); }
.v186-name { min-width: 0; margin-right: auto; position: relative; }
.v186-name .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v186-name input { width: 220px; max-width: 100%; height: 38px; border-color: transparent; background: transparent; font-size: 18px; font-weight: 600; color: var(--navy-800); }
.v186-name .fielderr { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); z-index: 1; }
.v186-kopf .v186-zurueck { width: 36px; min-width: 36px; padding: 0; border: 0; }
.v186-layout { grid-template-columns: 210px 330px minmax(0, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; min-height: calc(100dvh - var(--header-h)); }
.v186-gruppen { top: calc(var(--header-h) + 84px); padding: 14px 10px; background: var(--surface); }
.v186-gruppen .btn { min-height: 44px; }
.v186-form { padding: 20px; border: 0; border-inline: 1px solid var(--line); border-radius: 0; background: var(--surface-2); }
.v186-form :is(input, select, section) { scroll-margin-top: calc(var(--header-h) + 84px); }
.v186-layout .b-vorlagen-live { top: calc(var(--header-h) + 84px); padding: 20px; max-height: calc(100dvh - 280px); }
.v186-layout .b-vorlagen-live svg { max-height: calc(100dvh - 360px); }
.v186-eigene-farbe { position: relative; width: 30px; height: 30px; margin: 0 !important; border: 1px dashed var(--line-strong); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.v186-eigene-farbe input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; }
.v186-eigene-farbe:focus-within { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.v186-bildwahl:has([name="fensterDesign"]) span { height: 76px; }
.v186-bildwahl:has([name="tuerDesign"]) span { height: 84px; }
.v186-linienwahl span { height: 36px; font-size: 13px; }
@media (max-width: 1100px) {
  .v186-layout { grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr); }
  .v186-gruppen { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .v186-kopf { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .v186-name { flex: 1; }
  .v186-kopf > .row { width: 100%; justify-content: flex-end; }
  .v186-layout { display: flex; }
  .v186-layout .b-vorlagen-live { top: calc(var(--header-h) + 112px); padding: 8px; max-height: 220px; background: var(--bg); }
  .v186-layout .b-vorlagen-live svg { max-height: 150px; }
  .v186-form :is(input, select, section) { scroll-margin-top: calc(var(--header-h) + 340px); }
}

[data-testid="vorlagen-seite"] [hidden] { display: none !important; }
.v186-farbwahl [data-farbtoken="--n1-rose-grau-tuer"] { background: var(--n1-rose-grau-tuer); }
.v186-gruppen .btn::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--n1-rose-grau-wand); }
.v186-gruppen [data-vorlagen-gruppe="raum"]::before { background: var(--n1-rose-grau-raum); }
.v186-gruppen [data-vorlagen-gruppe="aussen"]::before { background: var(--n1-rose-grau-aussen); }
.v186-gruppen [data-vorlagen-gruppe="boden"]::before { background: var(--n1-rose-grau-boden); }
.v186-gruppen [data-vorlagen-gruppe="fenster"]::before { background: var(--n1-rose-grau-fenster); }
.v186-gruppen [data-vorlagen-gruppe="schrift"]::before { background: var(--n1-rose-grau-schrift); }

/* Die Restseiten-Regel enthält fremde IDs in :is() und überstimmt sonst die Soll-Maße. */
[data-vorlagen-auswahl] .v186-neu { height: 40px !important; min-height: 40px !important; font-size: 14px !important; }
[data-vorlagen-auswahl] .v186-weiter { height: 44px !important; min-height: 44px !important; border-radius: 10px !important; }
[data-vorlagen-auswahl] .stylecard__foot .btn { height: 38px !important; min-height: 38px !important; border-radius: 8px !important; }
.v186-kopf .btn { height: 42px !important; min-height: 42px !important; border-radius: 10px !important; }
.v186-kopf .v186-zurueck { height: 36px !important; min-height: 36px !important; }
.v186-name input { height: 38px !important; font-size: 18px !important; }
.v186-gruppen .btn { height: 44px !important; min-height: 44px !important; }
.v186-gruppen [aria-selected="true"] { background: var(--navy-050); font-weight: 600; box-shadow: none; }
@media (min-width: 1101px) {
  [data-vorlagen-auswahl] .stylegrid { grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); overflow-x: auto; padding: 4px; margin-inline: -4px; }
}
/* Ein gemeinsamer Scrollbereich hält Kopf und Vorschau unter derselben App-Kopfzeile. */
.b-vorlagen-seite:has([data-vorlagen-bearbeitung]:not([hidden])) { overflow: visible; }
/* Strom e186 1.86 Soll */
body[data-seite="projekt"] dialog.e186-bodendialog { height: fit-content; }
body[data-seite="projekt"] dialog.e186-bodendialog textarea.input { height: 96px; min-height: 96px; padding: 12px; }
body[data-seite="projekt"] dialog.e186-bodendialog .btn { height: 44px; min-height: 44px; font-size: 14px; white-space: nowrap; }

body .editor-a1 #inspektor.a3-inspektor .e186-bodenliste > .e186-bodenkachel { height: 52px; min-height: 52px; padding: 0; border-radius: 8px; overflow: hidden; }
.a3-panel .e186-bodenliste > .e186-bodenkachel img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.a3-panel .e186-bodenkachel span { display: none; }
.a3-panel .e186-bodenkachel[aria-pressed="true"] { outline: 2px solid var(--navy-800); outline-offset: -2px; }

.a3-panel .e186-bodenliste { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.a3-panel .e186-bodenliste > .e186-raumboden { grid-column: 1 / -1; }
.a3-panel .e186-boeden { padding: 0; border: 0; }
.a3-panel .e186-boeden h3 { margin: 0 0 8px; font-family: Inter, sans-serif; font-size: 12px; color: var(--ink-600); }

body .editor-a1 #inspektor .r186-oeffnungsarten .btn { height: 40px; min-height: 40px; }
.a3-panel .r186-oeffnungsliste li { box-sizing: border-box; height: 44px; flex-wrap: nowrap; }
body button:active, body .btn:active { transform: scale(.97) !important; filter: none; }
body .btn.btn--primary:active, body button.btn--primary:active { background: var(--navy-950); }
body button[aria-busy="true"], body .btn[aria-busy="true"], body .btn[aria-busy="true"]:disabled { background: var(--navy-600) !important; color: var(--surface) !important; }
body button[aria-busy="true"]::before { border-color: var(--surface); border-right-color: transparent; }

.e186-zusammenkarte { position: fixed; z-index: 40; padding: 6px; border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px rgba(8,15,28,.18); }
[data-r186="einbau"] { position: fixed; z-index: 41; box-sizing: border-box; width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--sh-einbau-menu); }
[data-r186="einbau"] .r186-wahl { display: flex; flex-direction: column; gap: 0; }
[data-r186="einbau"] .r186-wahl .btn { height: 40px; margin: 0; padding: 0 12px; border-radius: 8px; text-align: left; font-size: 14px; justify-content: flex-start; box-shadow: none; border: 0; background: transparent; }
[data-r186="einbau"] .r186-wahl .btn[aria-pressed="true"] { background: var(--navy-050); font-weight: 600; }

.a3-panel [data-a3="felder"] { display: flex; flex-direction: column; gap: 16px; }
.a3-panel [data-a3="felder"] label, .a3-panel h4 { font-size: 12px; font-weight: 600; color: var(--ink-600); }
.a3-panel [data-a3="name"] { height: 42px; font-size: 15px; font-weight: 600; color: var(--navy-800); }
.a3-panel .e186-raummass { margin: -10px 0 0; font-size: 13px; color: var(--ink-600); }
.a3-panel [data-a3="leer"] { color: var(--ink-600); font-size: 14px; }
[data-r186="trennen"] { margin-inline-start: 8px; }
[data-a3="snap"] { accent-color: var(--navy-800); width: 18px; height: 18px; vertical-align: middle; margin-inline-end: 10px; }
.e186-raumboden { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.e186-raumboden button { height: 52px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--n1-rose-grau-raum); }
.e186-raumboden [aria-checked="true"] { border: 2px solid var(--navy-800); }
.e186-raumboden [data-e186-raumboden="dielen"] { background: repeating-linear-gradient(90deg, var(--boden-diele-hell) 0 12px, var(--boden-diele-fuge) 12px 13px); }
.e186-raumboden [data-e186-raumboden="terrazzo_hell"] { background: radial-gradient(var(--boden-terrazzo-korn) 1px, transparent 1.2px) 0 0 / 7px 7px var(--boden-terrazzo-grund); }
.e186-raumboden [data-e186-raumboden="fliese_hell"] { background: repeating-linear-gradient(0deg, var(--boden-fliese-hell) 0 12px, var(--boden-fliese-fuge) 12px 13px); }
.e186-raumboden [data-e186-raumboden-neu] { border-style: dashed; background: var(--surface); color: var(--ink-700); font-size: 24px; }
.a3-panel .r186-oeffnungsarten { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.a3-panel .r186-oeffnungsarten .btn { padding: 0; height: 40px; min-width: 0; border-radius: 8px; }
.a3-panel .r186-oeffnungsarten svg { width: 26px; height: 26px; }
.a3-panel .r186-oeffnungsliste { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.a3-panel .r186-oeffnungsliste li { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.a3-panel .r186-oeffnungsliste li span { flex: 1; }
.a3-panel .r186-oeffnungsliste .btn { width: 36px; height: 36px; min-width: 0; padding: 0; border: 0; }
.a3-panel .r186-oeffnungsliste .e186-oeffnung-bearbeiten { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.a3-panel [data-a3="entfernen"] { margin-top: auto; height: 40px; text-align: left; font-size: 14px; color: var(--aktion-gefahr); }
.editor-a1 .a3-panel:not(.a185-raumwerkzeuge) { padding: 24px 20px; }
.editor-a1 .a3-panel h3 { font-family: Sora, Inter, sans-serif; font-size: 18px; font-weight: 600; color: var(--navy-800); }
.editor-a1 .a3-panel h4 { margin: 0 0 8px; }
.editor-a1 .a3-panel .e186-raummass { margin: -10px 0 0; }
@media (min-width: 1000px) {
  .editor-a1.a185-raumeditor > #inspektor { width: 360px; flex: 0 0 360px; }
  .editor-a1.a185-raumeditor > [data-testid="palette"] { width: 320px; flex: 0 0 320px; }
}
.editor-a1 .a3-panel [data-a3="felder"] > label { margin: 0; }
.editor-a1 .a3-panel [data-a3="felder"] > label > input { margin-top: 6px; }
.a3-panel .r186-oeffnungsliste .btn svg { width: 16px; height: 16px; }
.editor-a1 .r186-bauweisen button[aria-pressed="true"] { background: var(--navy-050); }
/* Strom k186 1.86 Soll */
.c185-karteninhalt .k186-stichpunkte { flex-wrap:nowrap; height:24px; overflow:hidden; }
.c185-karteninhalt .k186-chip { flex-shrink:0; }
.c185-detailkopf details p { max-width:720px; font-size:14px; line-height:1.5; }
.k186-dialogstil { font-size:13px; color:var(--ink-600); margin-left:auto; }
.k186-ergaenzen #moebelsatz-form > header { flex-wrap:wrap; }
.k186-ergaenzen #ergaenzen-eingabe textarea { border:1.5px solid var(--navy-800); border-radius:12px; font-size:15px; line-height:1.5; }
.k186-ergaenzen .k186-objektkarte.k186-karte-bearbeiten { border:1.5px solid var(--navy-800); background:var(--navy-050); }
.k186-objektkarte .k186-kartenfelder { grid-column:1 / -1; display:grid; grid-template-columns:2fr 1fr 1fr; gap:8px; min-width:0; }
.k186-kartenfelder label { min-width:0; font-size:12px; }
.k186-kartenfelder label:first-child { grid-column:1 / -1; }
.k186-kartenfelder .input { width:100%; height:40px; min-width:0; font-size:14px; }
.k186-kartenfelder label:first-child .input { font-size:15px; font-weight:600; }
.k186-karte-bearbeiten > .btn:not(.k186-iconbtn) { grid-column:1 / 3; height:40px; min-height:40px; background:var(--navy-800); color:var(--surface); }
.c185-saetze .k186-loeschen { color:var(--aktion-gefahr); }
.c185-saetze #satz-grossansicht { width:min(880px,calc(100vw - 24px)); padding:22px; border-radius:16px; box-shadow:0 24px 60px rgba(8,15,28,.28); }
#satz-grossansicht #grossansicht-schliessen { position:absolute; top:22px; right:22px; width:36px; height:36px; min-height:36px; padding:0; border:0; background:transparent; }
.c185-saetze #grossansicht-bilder { clear:both; display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:22px; }
.k186-grossbild { height:300px; background:var(--satz-grossbild-grund); border-radius:12px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
#grossansicht-bilder .k186-grossbild img { width:100%; height:100%; object-fit:contain; }
.k186-grossinfos h2 { padding-right:40px; }
#grossansicht-bilder .k186-grossbild .c185-bildplatz { height:100%; width:100%; }
.k186-grossinfos { display:flex; flex-direction:column; gap:12px; min-width:0; }
.k186-varianten { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.k186-varianten .btn { min-width:0; height:64px; min-height:64px; padding:4px; border-radius:8px; }
#grossansicht-bilder .k186-varianten .btn img { width:100%; height:100%; object-fit:contain; }
.k186-varianten [aria-pressed=true] { border:1.5px solid var(--navy-800); }
.k186-varianten .k186-neue-variante { border:1.5px dashed var(--line-strong); font-size:11px; white-space:normal; }
.k186-grossaktionen { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.k186-bodenform { max-width:520px; border-width:1.5px; }
.k186-bodenvorschlag { grid-template-columns:minmax(0,1fr) auto; }
.k186-bodenvorschlag strong,.k186-bodenvorschlag > span { grid-column:1; overflow-wrap:anywhere; }
.c185-saetze .k186-bodenvorschlag .btn { grid-column:2; grid-row:1 / 3; height:36px; min-height:36px; padding:0 8px; }
.e186-bodenliste > .e186-bodenkachel { display:flex; flex-direction:column; height:auto; min-width:0; overflow:hidden; white-space:normal; }
.e186-bodenliste > .e186-bodenkachel img { display:block; flex:none; width:100%; max-width:100%; height:auto; aspect-ratio:1; object-fit:cover; }
.e186-bodenliste > .e186-bodenkachel span { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .c185-saetze #grossansicht-bilder { grid-template-columns:minmax(0,1fr); }
  .k186-kartenfelder label:nth-child(2) { grid-column:1 / -1; }
  .k186-objektkarte .k186-kartenfelder { grid-template-columns:1fr 1fr; }
  .k186-dialogstil { margin-left:0; }

/* Strom p186 1.86 Soll */
/* Die fremde mobile Regel endet hier; der p186-Block gilt für beide Breiten. */
}
.stepbar.b-arbeitskopf:has(.p186-schritt) > .container { flex-wrap: wrap; }
.stepbar.b-arbeitskopf .p186-schritt { flex: 0 1 220px; overflow: hidden; }
.p186-offene { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.p186-art-hinweis { color: var(--danger-700); font-size: 13px; margin-block: 8px; }
.tauschkarte .var .tnum { white-space: pre; }
.ka-massstab--warnung { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; padding: 20px; border: 1px solid var(--massstab-warn-rand); border-radius: 14px; background: var(--n1-realistisch-tuer); }
.p186-warnsymbol { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--satz-offen-grund); color: var(--gold-700); font-weight: 600; }
.ka-massstab--warnung > strong { font-size: 15px; color: var(--navy-800); }
.ka-massstab--warnung > p { font-size: 13px; color: var(--ink-600); margin: 0; }
.ka-massstab--warnung > :is(details,.p186-warnaktionen) { grid-column: 1 / -1; margin-top: 12px; }
.ka-massstab--warnung > details { font-size: 13px; color: var(--ink-700); }
.ka-massstab--warnung > details > summary { color: var(--ink-600); }
.p186-warnaktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p186-warnaktionen > form { display: flex; min-width: 0; }
body[data-seite="projekt"]:has(.b-arbeitskopf) .work .side .p186-warnaktionen .btn { width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0 6px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.15; white-space: normal !important; }
body:has([data-testid="plan-arbeitsflaeche"]) .p186-warnaktionen > .btn { border: 1px solid var(--line-strong); background: var(--n1-realistisch-tuer); color: var(--navy-800); }
body:has([data-testid="plan-arbeitsflaeche"]) .work > .canvas { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
body:has([data-testid="plan-arbeitsflaeche"]) .canvas > .b185-overlay-regler { position: relative; inset: auto; transform: none; grid-row: 1; grid-column: 1; justify-self: center; margin: 12px; max-width: calc(100% - 24px); }
body:has([data-testid="plan-arbeitsflaeche"]) .canvas > [data-testid="ergaenzen-hinweis"] { position: relative; inset: auto; transform: none; grid-row: 2; grid-column: 1; justify-self: center; margin: 0 12px 12px; max-width: calc(100% - 24px); pointer-events: none; }
body:has([data-testid="plan-arbeitsflaeche"]) [data-testid="ergaenzen-hinweis"] button { pointer-events: auto; }
body:has([data-testid="plan-arbeitsflaeche"]) .canvas > .canvas__sheet--plan { grid-row: 3; grid-column: 1; justify-self: center; min-height: 0; max-height: 100%; }
.ka-massstab.p186-massstab-wartet { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--plan-massstab-rand); border-radius: 14px; background: var(--plan-massstab-grund); padding: 20px; }
body[data-seite="projekt"]:has(.b-arbeitskopf) .work .side .ka-massstab [data-plan-bestaetigen] { width: 100%; min-height: 44px; height: 44px; }
.p186-massstab-wartet > form { width: 100%; }
body:has([data-testid="plan-arbeitsflaeche"]) [data-plan-bestaetigen][aria-busy="true"]::before { box-sizing: border-box; width: 18px; height: 18px; }
.p186-bestaetigen-fortschritt { appearance: none; display: block; width: 100%; height: 3px; border: 0; border-radius: 999px; background: var(--navy-100) linear-gradient(var(--gold-500), var(--gold-500)) no-repeat; background-size: 35% 100%; animation: p186-balken 1.2s ease-in-out infinite alternate; }
@keyframes p186-balken { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .p186-bestaetigen-fortschritt { animation: none; } }
.p186-bestaetigen-fortschritt[hidden] { display: none; }
.p186-bestaetigen-fortschritt::-webkit-progress-bar { background: transparent; border-radius: 999px; }
.p186-bestaetigen-fortschritt::-webkit-progress-value { background: var(--gold-500); }
.b-arbeitskopf .floorswitch__name:has(> .p186-stockwerkname) { display: inline-flex; align-items: center; gap: 4px; max-width: none; overflow: visible; }
.b-arbeitskopf .floorswitch__name > .p186-stockwerkname { box-sizing: border-box; flex: 0 0 110px; width: 110px; min-width: 0; max-width: none; height: 26px; min-height: 26px; padding: 0 6px; border: 1.5px solid var(--navy-800); border-radius: 6px; color: var(--navy-800); font-size: 13px; font-weight: 600; }
.b-arbeitskopf .p186-stockwerkname:focus { border-color: var(--navy-800); box-shadow: none; outline: none !important; }
.b-arbeitskopf .p186-stockwerk-speichern { box-sizing: border-box; flex: 0 0 26px; width: 26px; height: 26px; min-height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--navy-800); color: var(--surface); font-size: 13px; cursor: pointer; }
.b-arbeitskopf .p186-stockwerk-speichern:focus-visible { outline: 2px solid var(--surface) !important; outline-offset: -4px; }
[data-testid="pruefliste"] .side__body { scroll-padding-block: 16px 112px; }
.opitem[data-pruefung] { scroll-margin-block: 16px 112px; }
@media (max-width: 768px) {
  body:has([data-testid="plan-arbeitsflaeche"]) .work.is-list:not(.is-messen):not(.is-ergaenzen) > .canvas { display: none; }
}
@media (max-width: 700px) {
  [data-testid="pruefliste"] .side__body { padding-bottom: 112px; }
}

/* Strom REP1866 1.86 */
.p186-offene { min-height: 28px; min-width: 28px; }
@media (max-width: 600px) {
  body:has([data-testid="plan-arbeitsflaeche"]) .pruefseite .canvas { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  body:has([data-testid="plan-arbeitsflaeche"]) .pruefseite .canvas__tools { grid-row: 4; grid-column: 1; justify-self: center; }
}

/* SOLL-186h */
@media (max-width: 760px) {
  .v186-gruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .v186-gruppen .btn { flex: none; min-width: 0; white-space: nowrap; }
}

/* SOLL-186g */
@media (min-width: 769px) {
  body:has([data-testid="plan-arbeitsflaeche"][data-schritt="1"]) .work:has(.p186-warnaktionen) > .side { width: 380px; }
}
body[data-seite="projekt"]:has(.b-arbeitskopf) .work .side .p186-warnaktionen .btn { white-space: nowrap; }
@media (min-width: 1101px) {
  .stepbar.b-arbeitskopf:has(.p186-schritt) > .container { flex-wrap: nowrap; }
  .b-arbeitskopf .floorswitch { flex: 0 0 auto; }
  .b-arbeitskopf .b-stockwerk { flex-shrink: 0; }
  .b-arbeitskopf .b-stockwerk:has(.is-active) { flex-shrink: 0; }
  .b-arbeitskopf .floorswitch__item { min-width: 0; }
  .b-arbeitskopf .steps, .b-arbeitskopf > .container > form { flex-shrink: 0; }
  .stepbar.b-arbeitskopf .p186-schritt { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
}
.c185-saetze .c185-satzkarte { display: flex; flex-direction: column; }
.c185-saetze .c185-vorschauen { flex: 0 0 150px; }
.c185-saetze .c185-karteninhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 24px auto 6px; }
.c185-saetze .c185-karteninhalt > strong { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c185-saetze .c185-karteninhalt > .c185-status { grid-area: 1 / 2; align-self: center; justify-self: end; margin: 0; white-space: nowrap; }
.c185-saetze .c185-karteninhalt > .k186-stichpunkte { grid-area: 2 / 1 / 3 / -1; }
.c185-saetze .c185-kartenzahlen { grid-area: 3 / 1 / 4 / -1; }
.c185-saetze .c185-karteninhalt > progress { grid-area: 4 / 1 / 5 / -1; }
.c185-saetze .c185-karteninhalt > .muted { grid-column: 1 / -1; }

.soll186g-etagenmenue { display: none; }
@media (min-width: 1101px) and (max-width: 1400px) {
  .b-arbeitskopf .floorswitch:has([data-testid="n1-geschossdiagnose"]) > .b-stockwerk:not(:has(.is-active)) { display: none; }
  .b-arbeitskopf .floorswitch:has([data-testid="n1-geschossdiagnose"]) > .soll186g-etagenmenue { display: block; position: relative; flex: none; }
  .soll186g-etagenmenue > summary { display: grid; place-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; cursor: pointer; list-style: none; }
  .soll186g-etagenmenue > summary::-webkit-details-marker { display: none; }
  .soll186g-etagenmenue > .menu { position: absolute; top: 32px; left: 0; display: flex; flex-direction: column; min-width: 190px; padding: 4px; }
}

/* Strom S 1.87 */
.s187-schalter:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.s187-schalter[aria-busy="true"] { cursor: progress; opacity: .65; }
.s187-modul-bedienung { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.s187-modul-bedienung [data-modul-status] { min-width: var(--sp-8); color: var(--ink-600); }
.s187-nutzer td { overflow-wrap: anywhere; }
.s187-modul-label { display: none; }
.s187-fehler[hidden] { display: none; }
@media (max-width: 640px) {
  :is(.s187-nutzer, .s187-bueros) thead { display: none; }
  :is(.s187-nutzer, .s187-bueros) tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: var(--sp-3); gap: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); }
  :is(.s187-nutzer, .s187-bueros) tbody tr:last-child { border-bottom: 0; }
  :is(.s187-nutzer, .s187-bueros) td { padding: 0; border: 0; }
  :is(.s187-nutzer, .s187-bueros) td:nth-child(1) { grid-column: 1; grid-row: 1; }
  :is(.s187-nutzer, .s187-bueros) td:nth-child(2) { grid-column: 1; grid-row: 2; }
  :is(.s187-nutzer, .s187-bueros) td:nth-child(3) { grid-column: 1; grid-row: 3; }
  :is(.s187-nutzer, .s187-bueros) td:nth-child(4) { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .s187-modul-label { display: block; margin-bottom: var(--sp-2); color: var(--ink-600); font-size: var(--fs-12); }
  .s187-nutzer.tablewrap { border: 0; background: transparent; overflow: visible; }
  .s187-nutzer .table tbody { display: grid; gap: var(--sp-3); }
  .s187-nutzer .table tbody tr { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .s187-nutzer .table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .s187-nutzer .table tbody tr:hover td,
  .s187-nutzer .table tbody td { background: transparent; padding: 0; text-align: left; }
  .s187-nutzer .table tbody td::before { display: none; }
  .s187-bueros td:first-child { overflow-wrap: anywhere; }
}
/* Strom M 1.87 */
#satz-grossansicht .k186-neue-variante { white-space: normal; flex-direction: column; gap: 4px; }
#satz-grossansicht #m187-variantengrenze { font-size: 12px; }

/* Strom D 1.87 */
.d187-karte {
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.d187-karte .btn { align-self: flex-start; white-space: nowrap; max-width: 100%; }
.d187-vorschau { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: var(--r-md); }
.d187-karte .notice { overflow-wrap: anywhere; }
.d187-ki { white-space: nowrap; font-size: var(--fs-11); }
@media (max-width: 480px) {
  .d187-karte { padding: var(--sp-2); }
  .d187-karte [data-d187-start] { font-size: var(--fs-11); padding-inline: var(--sp-2); }
}

/* Strom O 1.88 */
.flaeche-seite { width: min(100%, 1280px); margin: 0 auto; padding: var(--sp-6); }
.flaeche-seite h1 { font-family: var(--font-sans); }
.flaeche-reiter { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-block: var(--sp-5); }
.flaeche-reiter a { padding: var(--sp-3); border-bottom: 2px solid transparent; }
.flaeche-reiter [aria-current] { border-color: var(--navy-600); font-weight: 600; }
.flaeche-summen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.flaeche-summen > div, .flaeche-raum { padding: var(--sp-4); background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-md); }
.flaeche-summen strong { display: block; font-size: var(--fs-24); }
.flaeche-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-5); align-items: start; }
.flaeche-raster figure { margin: 0; position: sticky; top: var(--sp-4); }
.flaeche-raster svg { width: 100%; height: auto; max-height: 65vh; }
.flaeche-liste { display: grid; gap: var(--sp-4); min-width: 0; }
.flaeche-raum h2 { font-size: var(--fs-18); }
.flaeche-raum ol { list-style: none; padding: 0; font-variant-numeric: tabular-nums; }
.flaeche-raum dl { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2); }
.flaeche-raum dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .flaeche-seite { padding: var(--sp-3); }
  .flaeche-summen, .flaeche-raster { grid-template-columns: minmax(0, 1fr); }
  .flaeche-raster figure { position: static; }
}
/* Strom S 1.88 */
.s188-einstellungen fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.s188-einstellungen input[type="number"] { max-width: 12rem; }
.s188-schalter { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.s188-schalter input { accent-color: var(--gold-500); }
.s188-einstellungen fieldset:disabled { opacity: .65; }
.s188-protokoll { list-style: none; margin: 0; padding: 0; }
.s188-protokoll li { padding-block: var(--sp-3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.s188-protokoll dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); margin: var(--sp-2) 0; }
.s188-protokoll dd { margin: 0; }

/* Strom O 1.88 */
.flaeche-bearbeiten { margin-block: var(--sp-4); }
.flaeche-bearbeiten details { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); margin-block: var(--sp-2); }
.flaeche-bearbeiten summary { cursor: pointer; font-weight: 600; }
.flaeche-form, .flaeche-werkzeuge { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-3); margin-block: var(--sp-3); }
.flaeche-form label, .flaeche-werkzeuge label { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; max-width: 100%; }
.flaeche-form input, .flaeche-form select, .flaeche-werkzeuge select { min-height: 44px; max-width: 100%; padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink-900); }
.flaeche-form input[type="checkbox"], [data-checkliste] input { min-height: 24px; width: 24px; }
.flaeche-bearbeiten button { min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink-900); cursor: pointer; }
.flaeche-bearbeiten button:disabled { opacity: .5; cursor: default; }
[data-checkliste] label { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; }
[data-vergleich-ergebnis][data-rot="true"] { color: var(--danger-700); font-weight: 600; }
[data-flaeche-status], [data-sperre] { overflow-wrap: anywhere; }
.flaeche-seite [hidden] { display: none !important; }
@media (max-width: 600px) { .flaeche-form > label, .flaeche-form > div, .flaeche-werkzeuge > label { width: 100%; } .flaeche-form input, .flaeche-form select { width: 100%; } }

/* Strom P 1.88 */
.gebaeude-seite { max-width: 1440px; margin: auto; padding: var(--sp-5); }
.gebaeude-raster { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.gebaeude-raster form, .gebaeude-raster fieldset { display: grid; gap: var(--sp-3); min-width: 0; }
.gebaeude-raster fieldset { margin: var(--sp-3) 0; border: 1px solid var(--line); padding: var(--sp-3); }
.gebaeude-raster label { display: grid; gap: var(--sp-1); }
.gebaeude-raster input, .gebaeude-raster select { width: 100%; min-width: 0; min-height: 44px; }
.gebaeude-folge { display: flex; gap: var(--sp-2); }
.gebaeude-folge button { min-height: 44px; }
.gebaeude-raster figure { margin: 0 0 var(--sp-4); border: 1px solid var(--line); background: var(--surface); }
.gebaeude-raster svg { display: block; width: 100%; height: auto; color: var(--ink-900); font-family: sans-serif; font-size: 14px; }
@media (max-width: 700px) { .gebaeude-raster { grid-template-columns: minmax(0, 1fr); } .gebaeude-seite { padding: var(--sp-3); } }
.gebaeude-raster input, .gebaeude-raster select { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink-900); font: inherit; }
.gebaeude-raster input:focus-visible, .gebaeude-raster select:focus-visible, .gebaeude-folge button:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.gebaeude-folge button { padding: var(--sp-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink-900); }
.gebaeude-raster figure { overflow-x: auto; }
@media (max-width: 700px) { .gebaeude-raster svg { min-width: 740px; } }

/* Strom P 1.88 */
.gebaeude-seite [data-dachfelder][hidden]{display:none}

/* Strom S 1.88 */
.s188-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--sp-5); }
.s188-bilder > div { min-width: 0; }
.s188-bilder input[type="file"] { max-width: 100%; }
.s188-bild { display: block; max-width: 100%; max-height: 10rem; object-fit: contain; object-position: left; }

/* Strom O 1.88 · Freigabe */
.o188-freigabe { width: min(38rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); color: var(--ink-800); background: var(--surface); }
.o188-freigabe::backdrop { background: var(--overlay); }
.o188-freigabe-bilder { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.o188-freigabe-bilder figure { flex: 1 1 10rem; margin: 0; }
.o188-freigabe-bilder img { width: 100%; max-height: 8rem; object-fit: contain; }
.o188-freigabe [data-freigabe-fehler] { list-style: disc; padding-left: var(--sp-5); }
.flaeche-bearbeiten details > summary { cursor: pointer; padding-block: var(--sp-3); }

.o188-freigabe > * + * { margin-top: var(--sp-4); }
.o188-freigabe button { min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }

/* Strom i188 1.88 */
body[data-seite="wohnflaeche-gesperrt"] > .versionline {
  position: fixed; left: 12px; bottom: 12px; margin: 0; padding: 3px 8px;
}
body[data-seite="wohnflaeche-gesperrt"] .appbtn[href="/manual"] { width: auto; padding-inline: var(--sp-2); }
body[data-seite="wohnflaeche-gesperrt"] .appbtn[href="/manual"] span { display: inline; }
@media (max-width: 480px) {
  body[data-seite="wohnflaeche-gesperrt"] .crumbs { display: none; }
}

/* Strom v191 Böden-Palette 1.91 */
/* Der Kartenkörper schneidet weiter ab, ist aber kein Scroll-Container: sonst greift sticky der Palette nie gegenüber dem Fenster. */
.b3-arbeitsplatz.card__body--tief { overflow: clip; }
[data-boeden-werkstatt] { scroll-margin-top: calc(var(--header-h) + 8px); }
/* Der Umschalter wechselt den Zustand sofort; die Überblendung von .btn zeigte nach dem Klick kurz Mischfarben. */
[data-vorlagen-auswahl] [data-boeden-modus] { height: 40px !important; min-height: 40px !important; font-size: 14px !important; margin-left: var(--sp-2); transition: none; }
[data-boeden-modus][aria-pressed="true"] { background: var(--navy-050); border-color: var(--navy-800); color: var(--navy-800); font-weight: var(--fw-semibold); box-shadow: inset 0 1px 2px rgba(20, 35, 63, .12); }
.b3-palette { width: 304px; flex: none; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-card); }
.b3-palette > fieldset { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; }
.b191-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.b191-kopf h2 { font-size: 15px; line-height: 20px; font-weight: var(--fw-semibold); color: var(--navy-800); }
.b191-verlauf { display: flex; gap: 2px; }
.b191-status { grid-column: 1 / -1; min-height: 16px; font-size: var(--fs-12); line-height: 16px; color: var(--ink-600); }
.b191-status[data-art="fehler"] { color: var(--danger-700); }
.b191-symbol { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-700); cursor: pointer; }
.b191-symbol:hover:not(:disabled) { background: var(--surface-3); color: var(--ink-900); }
.b191-symbol:disabled { color: var(--ink-300); cursor: not-allowed; }
.b191-auswahl { margin-top: 10px; padding: 8px 10px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.b191-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 22px; }
.b191-zeile + .b191-zeile { min-height: 28px; }
.b191-raum { flex: 1 1 auto; min-width: 0; font-size: var(--fs-13); line-height: 22px; font-weight: var(--fw-semibold); color: var(--ink-900); white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.b191-auswahl[data-leer] .b191-raum { font-weight: var(--fw-medium); color: var(--ink-600); }
.b191-mehrfach { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--ink-700); cursor: pointer; }
.b3-palette input.switch { appearance: none; -webkit-appearance: none; margin: 0; }
.b3-palette input.switch:checked { background: var(--navy-800); }
.b3-palette input.switch:checked::after { transform: translateX(16px); }
.b3-palette input.switch:disabled { opacity: .5; cursor: not-allowed; }
.b191-textknopf { height: 28px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: var(--fs-12); font-weight: var(--fw-semibold); color: var(--navy-700); cursor: pointer; }
.b191-textknopf:hover:not(:disabled) { background: var(--navy-050); }
.b191-textknopf:disabled { color: var(--ink-500); font-weight: var(--fw-medium); cursor: not-allowed; }
.b191-art { justify-self: start; margin-left: -8px; color: var(--ink-700); }
.b191-gesperrt { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--ink-600); }
.b191-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; margin: 9px -3px -3px; padding: 3px; }
.b191-gruppe h3 { margin: 0 0 4px; font-size: var(--fs-12); line-height: 16px; font-weight: var(--fw-semibold); color: var(--ink-600); }
.b3-palette .b3-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.b3-palette .bodenwahl { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 8px; height: 36px; padding: 0 8px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; overflow: hidden; }
.b3-palette .bodenwahl img { width: 34px; height: 34px; object-fit: cover; border-radius: 0; box-shadow: 1px 0 0 var(--line); }
.b3-palette .bodenwahl span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--fs-12); line-height: 14px; font-weight: var(--fw-medium); color: var(--ink-800); white-space: normal !important; overflow-wrap: anywhere; }
.b3-palette .bodenwahl:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-2); }
.b3-palette .bodenwahl[aria-pressed="true"] { outline: 2px solid var(--navy-800); outline-offset: -1px; background: var(--navy-050); }
.b3-palette .bodenwahl[aria-pressed="true"] span { font-weight: var(--fw-semibold); color: var(--navy-800); }
.b3-palette .bodenwahl:disabled { cursor: not-allowed; }
.b3-palette .bodenwahl:disabled img { opacity: .55; }
.b3-palette .bodenwahl:disabled span { color: var(--ink-600); }
.b191-fuss { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.b191-fuss .b191-textknopf { margin-left: -8px; color: var(--ink-600); font-weight: var(--fw-medium); }
@media (min-width: 701px) {
  .b3-palette { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 16px - var(--bug-clear)); overflow: hidden; margin-right: var(--sp-3); }
}
@media (min-width: 1280px) {
  /* Der Melde-Knopf liegt ab 1280 px rechts neben der Palette (≥ 13 px frei), nicht unter ihr. */
  .b3-palette { max-height: calc(100dvh - var(--header-h) - 32px); }
}
@media (max-width: 700px) {
  .b3-palette { width: 100%; }
  .b3-palette .bodenwahl { height: 44px; grid-template-columns: 42px minmax(0, 1fr); }
  .b3-palette .bodenwahl img { width: 42px; height: 42px; }
  .b191-textknopf, .b191-symbol { min-height: 36px; }
}
/* .badge setzt display und hebt sonst das hidden-Attribut auf. */
.b3-palette [data-boeden-kennzeichen][hidden] { display: none; }
/* Ohne sichtbares Kennzeichen bleibt „Zurück auf Vorlage“ rechts wie im Entwurf. */
.b191-zeile > [data-boeden-reset] { margin-left: auto; }

/* V192-A */
/* Fortschritt der KI-Analyse im Einrichtungsdialog: Balken wie beim Plan-Bestätigen, darunter die laufenden Sekunden. */
[data-c4-dialog] .v192a-fortschritt { display: grid; gap: 6px; }
[data-c4-dialog] .v192a-fortschritt[hidden] { display: none; }
[data-c4-dialog] .v192a-fortschritt p { margin: 0; font-size: 12px; }

/* V192-B */
.v192b-erkennen { margin-top: 16px; }
[data-testid="pruefliste"] .side__foot :is([data-aktion="alle-sicheren"], [data-aktion="alle-uebernehmen"]) { height: 32px; min-height: 32px; }
.v192b-sammeln { margin-bottom: var(--sp-2); }
[data-testid="weiter-grund"][hidden], [data-weiter-oder][hidden] { display: none; }
.v192b-textknopf { position: relative; padding: 0; border: 0; background: transparent; color: var(--navy-700); font: inherit; text-decoration: underline; cursor: pointer; }
.v192b-textknopf::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 28px; transform: translateY(-50%); }
.b185-overlay-regler output[data-original-wert] { display: inline-block; width: 5.5ch; text-align: right; white-space: nowrap; }
.v192b-fortschritt { display: flex; flex-direction: column; gap: 14px; padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--surface-2); }
.v192b-fortschritt [role="status"] { margin: 0; }
.v192b-schritte { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.v192b-schritt { display: flex; align-items: center; gap: 12px; font-size: var(--fs-14); }
.v192b-schritt[data-zustand="wartet"] { color: var(--ink-500); }
.v192b-schritt__b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink-500); }
.v192b-schritt[data-zustand="laeuft"] .v192b-schritt__b { border-color: var(--navy-700); }
.v192b-schritt[data-zustand="fertig"] .v192b-schritt__b { border-color: var(--ok-600); background: var(--ok-600); color: var(--surface); }
.v192b-schritt:not([data-zustand="wartet"]) .v192b-nr, .v192b-schritt:not([data-zustand="laeuft"]) .v192b-spin, .v192b-schritt:not([data-zustand="fertig"]) .ico { display: none; }
.v192b-spin { width: 16px; height: 16px; border: 2px solid var(--navy-100); border-top-color: var(--navy-700); border-radius: 50%; animation: p186-drehen .8s linear infinite; }
.v192b-fortschritt .p186-bestaetigen-fortschritt { height: 6px; }
@media (prefers-reduced-motion: reduce) { .v192b-spin { animation: none; } }

/* V192-D */
.b-arbeitskopf .v192d-module { flex: none; padding: 2px; }
.b-arbeitskopf .v192d-module .segmented__item { min-height: 26px; height: 26px; padding: 0 10px; font-size: 13px; }
/* Optisch so flach wie die Stockwerk-Chips; der Trefferbereich wächst wie dort senkrecht auf --touch. */
.b-arbeitskopf .v192d-module .segmented__item::after { content: ""; position: absolute; left: 0; right: 0;
  top: calc((var(--touch) - 100%) / -2); bottom: calc((var(--touch) - 100%) / -2); }
.v192d-ladebalken { position: fixed; inset: 0 0 auto; z-index: 1000; height: 3px; pointer-events: none;
  background: var(--navy-100) linear-gradient(var(--gold-500), var(--gold-500)) no-repeat; background-size: 35% 100%;
  animation: p186-balken 1.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .v192d-ladebalken { animation: none; background-size: 100% 100%; } }
/* Ein langer Raumname bekommt den Platz zuerst: „Mehrere Räume“ bricht dann zweizeilig um, statt den Namen
   auf drei Zeilen zu drücken. Der Hinweis ohne Auswahl war gekürzt nicht lesbar (V192R): er bleibt ganz auf einer
   Zeile, „Mehrere Räume“ bricht um — das kostet weniger Höhe als ein zweizeiliger Hinweis (Palettenhöhe V191). */
.b191-zeile > .b191-mehrfach { flex: 0 1 auto; line-height: 1.25; }
.b191-auswahl[data-leer] .b191-raum { flex-shrink: 0; }

/* V192R */
/* Die Prüfschritt-Liste hat keinen Bearbeitenknopf rechts: Flächenwerte enden so weit vom Rand wie der Kopf. */
[data-testid="raumliste"] .roomrow { padding-right: var(--sp-4); }
/* Der Stockwerkname im Schrittstatus steht ganz oder gar nicht da, nie gekürzt im Wort: passt er nicht, bricht er
   in die verdeckte zweite Zeile. „Schritt n von 2“ hat Vorrang; das Stockwerk zeigt der aktive Chip daneben. */
.p186-schritt { flex-flow: row-reverse wrap; justify-content: flex-end; align-content: flex-start; height: 30px; overflow: hidden; }
.p186-schritt > span { line-height: 30px; white-space: nowrap; }
.p186-schritt .p186-stand { order: -1; }
.p186-schritt .savechip__name { overflow: visible; text-overflow: clip; }

/* V192S */
/* Einzeilige Arbeitsleiste: der Speicherstand braucht nur seine Textbreite, schrumpft aber nie darunter — sonst
   liefe sein Text über „Weiter zu Export“. Mit Modul-Umschalter und ab zwei Stockwerken reicht die Breite unter
   1440 px nicht für alle Schrittnamen; die nicht gewählten Schritte zeigen dann nur Nummer bzw. Haken (Name im
   title und im Zugänglichkeitsnamen), der gewählte bleibt ausgeschrieben. */
@media (min-width: 1101px) {
  .b-arbeitskopf > .container { gap: 8px; }
  body:has(.editor-a1) .b-arbeitskopf .savechip { min-width: 0; flex-shrink: 0; }
}
@media (min-width: 1101px) and (max-width: 1439px) {
  .b-arbeitskopf:has(.v192d-module):has(.floorswitch > .b-stockwerk:nth-child(2)) .step:not(.is-active) {
    font-size: 0; gap: 0; min-width: 28px; padding-inline: 5px; justify-content: center;
  }
}

/* V193-K */
/* Messwerkzeug (#48): Schritt 1 steht als Leiste über dem Plan (Stil der Plan-Werkzeugleiste), Schritt 2 im Popover.
   Die Schrittnummer ist der Kreis des Steppers. Der Überlagerungsregler darunter behält seinen Platz, damit der Plan
   beim Start des Messmodus nicht springt. */
.v193k-messleiste { position: absolute; top: 12px; left: 50%; z-index: 7; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-md); color: var(--ink-800); font-size: 13px; }
/* Der Hinweis „zu kurz“ ersetzt den Auftragstext an derselben Stelle: die Leiste wächst nicht in den Plan hinein. */
.v193k-messtext, .v193k-messhinweis { flex: 1 1 160px; min-width: 0; margin: 0; }
.v193k-messhinweis { color: var(--danger-700); }
.v193k-messleiste:has(> .v193k-messhinweis:not(.hidden)) > .v193k-messtext { display: none; }
.step__num.v193k-nr { border-color: var(--navy-800); background: var(--navy-800); color: var(--surface); }
.v193k-messmodus [data-testid="plan-canvas"] { cursor: crosshair; touch-action: none; }
.v193k-messmodus [data-testid="plan-canvas"] * { cursor: inherit; }
.v193k-messmodus .b185-overlay-regler { visibility: hidden; }
.v193k-messlive { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); padding: 2px 8px; border-radius: 999px; background: var(--navy-800); color: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.v193k-messkopf { display: flex; align-items: flex-start; gap: 8px; }
.v193k-messkopf > .label { margin: 0; color: var(--navy-800); font-size: 13px; font-weight: 600; }
[data-testid="nachmessen-panel"] [data-testid="messung-planlaenge"] { margin: 0; }
.v193k-messfeld { display: flex; align-items: center; gap: 6px; }
.v193k-messfeld > .input { flex: 1 1 auto; min-width: 0; }
/* „Neu ziehen“ steht als Textknopf neben der Planlänge: das Popover bleibt so niedrig wie vorher und passt am
   Telefon neben den Loslasspunkt. */
.v193k-messzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v193k-messzeile > .linkbtn { flex: none; white-space: nowrap; }
.v193k-messknoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
/* Warnknöpfe der Maßstabskarte untereinander in voller Breite; der Text bricht um, statt abgeschnitten zu werden. */
.p186-warnaktionen { grid-template-columns: minmax(0, 1fr); }
/* Sperrseite (#36): der Hinweis steht mit Abstand unter dem Arbeitskopf, nicht über die ganze Breite. */
.v193k-sperrseite { max-width: 760px; padding-block: var(--sp-6); }
/* Kopfleiste (#32-Rest, gemessen 1101/1280/1440 × 3/4/5 Stockwerke × Schritt 1–5): ab 4 Stockwerken bleiben bis
   1679 px das aktive Stockwerk und seine Nachbarn als Chip stehen (bei 1440 px liefen 4 Chips 71 px über), unter 1280 px
   ab 3 Stockwerken nur das aktive. Alle übrigen erreicht man über das vorhandene „n weitere“-Menü, das dafür keine
   Importdiagnose mehr braucht. */
@media (min-width: 1101px) and (max-width: 1679px) {
  .b-arbeitskopf .soll186g-etagenmenue > summary { display: grid; place-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; cursor: pointer; list-style: none; }
  .b-arbeitskopf .soll186g-etagenmenue > summary::-webkit-details-marker { display: none; }
  .b-arbeitskopf .soll186g-etagenmenue > .menu { position: absolute; top: 32px; left: 0; display: flex; flex-direction: column; min-width: 190px; padding: 4px; }
  .b-arbeitskopf .floorswitch:has(> .b-stockwerk:nth-child(4)) > .soll186g-etagenmenue { display: block; position: relative; flex: none; }
  .b-arbeitskopf .floorswitch:has(> .b-stockwerk:nth-child(4)) > .b-stockwerk:not(:has(> [aria-current="page"])):not(:has(+ .b-stockwerk > [aria-current="page"])):not(.b-stockwerk:has(> [aria-current="page"]) + .b-stockwerk) { display: none; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .b-arbeitskopf .floorswitch:has(> .b-stockwerk:nth-child(3)) > .soll186g-etagenmenue { display: block; position: relative; flex: none; }
  .b-arbeitskopf .floorswitch:has(> .b-stockwerk:nth-child(3)) > .b-stockwerk:not(:has(> [aria-current="page"])) { display: none; }
}

/* V193-F */
/* Öffnungssymbole mit Namen darunter (F-10): vier gleich hohe Spalten, Name 11 px, höchstens zwei Zeilen, deutsch
   getrennt statt abgeschnitten. */
body .editor-a1 #inspektor .a3-panel .r186-oeffnungsarten { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 4px; }
body .editor-a1 #inspektor .a3-panel .r186-oeffnungsarten .btn { height: auto; min-height: 44px; padding: 4px 2px; flex-direction: column; justify-content: flex-start; gap: 2px; }
.r186-oeffnungsarten .v193f-name { display: block; max-width: 100%; font-size: 11px; line-height: 1.25; font-weight: 500; text-align: center; white-space: normal; hyphens: auto; }
.a3-panel .v193f-abstand { display: block; }
/* Die Wandebene nimmt keine Zeiger an; im Raumwerkzeug ist eine eigene Öffnung wählbar und ziehbar (F-06). */
.editor-a1 .a3-modus [data-a185-waende] [data-v193f-treffer] { pointer-events: all; cursor: grab; }
/* Live-Maße der gewählten Öffnung: dünn wie die Fanglinien, Text mit Freistellung. */
.v193f-masslinie { stroke: var(--gold-700); fill: none; }
.v193f-masstext { fill: var(--gold-700); stroke: var(--surface); paint-order: stroke; font-weight: 600; }
/* Speicherstand im Fehlerfall (Muster V192S/V192R, verdeckte zweite Zeile): passt „Speichern fehlgeschlagen“ nicht, rutscht
   der Volltext ganz in die verdeckte Zeile, und die erste Zeile zeigt nur Warnzeichen und Kurzform. */
body:has(.editor-a1) .b-arbeitskopf .savechip[data-zustand="fehler"] {
  flex-shrink: 1; min-width: 9.5em; height: 30px; overflow: hidden; flex-wrap: wrap; align-content: flex-start;
  line-height: 30px; white-space: normal; color: var(--danger-600);
}
.b-arbeitskopf .savechip[data-zustand="fehler"]::before {
  content: "\26A0\FE0E\00A0" attr(data-kurz); flex: 1 0 0; width: 0; min-width: 0; overflow: hidden; white-space: nowrap;
}

/* V193-A */
/* Ansicht im Möblieren. Regler und Sperrgrund liegen neben der Leiste und hängen unter ihrem Knopf (Lage setzt
   klient-ansicht.ts); so verschieben sie die Leiste nicht und werden schmal nicht von ihrem Überlauf abgeschnitten.
   Schmal rücken die Knöpfe enger, damit die Leiste bei 390 px ganz passt; reicht es nicht, scrollt sie waagerecht. */
.editor-a1 .v193a-ansicht { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.editor-a1 .canvas > .v193a-pop { position: absolute; top: 0; left: 0; z-index: 25; display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--sh-sm); white-space: nowrap; }
.editor-a1 .canvas > .v193a-pop[hidden] { display: none; }
.editor-a1 .v193a-pop input[type="range"] { width: 120px; margin: 0; }
.editor-a1 [data-testid="editor-original-wert"] { display: inline-block; width: 5ch; text-align: right; font-size: 12px; }
@media (max-width: 480px) {
  .editor-a1 .a185-toolbar { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .editor-a1 .a185-toolbar .tbtn:not(.a185-ki) { width: 26px; }
  body[data-seite="projekt"]:has(.b-arbeitskopf) .editor-a1 .a185-modi .btn { padding-inline: 4px; }
  .editor-a1 .v193a-ansicht { gap: 0; }
}
.editor-a1 .canvas__sheet--plan > .v193a-original { position: absolute; inset: 0; pointer-events: none; }
[data-raumtexte="aus"] [data-rolle="beschriftungen"] { display: none; }
/* V193-A: Auffüllen-Angebote nennen ihr Küchenende; beim Überfahren zeigt der Plan das künftige Passstück. */
.editor-a1 .v193a-angebot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.v193a-passvorschau { fill: var(--gold-200); fill-opacity: .7; stroke: var(--gold-600); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* V193-X */
/* Vorlagenkarten (#49): Karten mindestens 180 px, sonst scrollt das Raster in sich (Muster Stilvergleich schmal).
   Der Innenabstand hält Auswahlring und Schatten im scrollenden Raster sichtbar. */
[data-vorlagen-auswahl] .stylegrid { grid-template-columns: repeat(4, minmax(180px, 1fr)); overflow-x: auto; padding: 4px; }
@media (max-width: 1000px) { [data-vorlagen-auswahl] .stylegrid { grid-template-columns: repeat(2, minmax(180px, 1fr)); } }
@media (max-width: 600px) { [data-vorlagen-auswahl] .stylegrid { grid-template-columns: minmax(180px, 1fr); } }
/* Breit: eine scrollende Kartenreihe (Bestand), jede Karte aber mindestens 180 px und das Raster bündig im Container. */
@media (min-width: 1101px) {
  [data-vorlagen-auswahl] .stylegrid { grid-template-columns: none; grid-auto-columns: max(180px, calc((100% - 48px) / 4)); margin-inline: 0; }
}
[data-vorlagen-auswahl] .stylecard { container: v193x-karte / inline-size; }
[data-vorlagen-auswahl] .stylecard__body { padding: 12px; }
/* Der Name bricht um statt abzuschneiden; höchstens zwei Zeilen, der volle Name steht im title. */
[data-vorlagen-auswahl] .stylecard__body h2 { overflow-wrap: anywhere; max-height: 2lh; overflow: hidden; }
[data-vorlagen-auswahl] .stylecard__foot { flex-wrap: wrap; padding: 0 12px 12px; }
[data-testid="vorlagen-seite"] .stylecard__foot .btn { font-size: 12px; padding-inline: 7px; }
@container v193x-karte (max-width: 219.98px) {
  .stylecard__foot { flex-direction: column; align-items: stretch; }
  .stylecard__foot .btn { flex: none; width: 100%; }
}

/* V193-M */
/* Referenzfotos im Dialog „Neuer Möbelsatz“: kompakte Dropzone, Vorschaubilder als Kacheln; im Satzdetail kleine Kacheln unter dem Titel. */
#satz-dialog .v193m-dropzone { padding: var(--sp-4); gap: var(--sp-2); cursor: pointer; }
#satz-dialog .v193m-dropzone:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.v193m-vorschau, .v193m-referenzen { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.v193m-vorschau img, .v193m-referenzen img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.v193m-referenzen { margin-top: var(--sp-3); }
#satz-dialog .v193m-fotos > .btn { justify-self: start; }

/* V193-P */
@media (min-width: 701px) {
  .b3-palette { padding-block: var(--sp-2); }
  .b191-status:empty { min-height: 0; }
  .b191-auswahl { margin-top: var(--sp-1); padding-block: var(--sp-1); gap: var(--sp-1); }
  .b191-zeile + .b191-zeile { min-height: var(--sp-5); }
  .b191-textknopf { height: var(--sp-5); }
  .b191-liste { margin-top: var(--sp-1); gap: var(--sp-1); }
  .b191-gruppe h3 { margin-bottom: 0; line-height: var(--lh-tight); }
  .b191-fuss { margin-top: var(--sp-1); padding-top: var(--sp-1); }
}

/* V194 */
#bugPanel [hidden] { display: none; }
#bugFormular:not([hidden]) { display: flex; flex-direction: column; min-height: 0; }
#bugFormular > .dialog__body { background-image: none; }
#bugAndereAuswahl { align-self: start; }
.v194-auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.v194-karte {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; gap: var(--sp-3);
  padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--ink-900); text-align: left; cursor: pointer;
}
.v194-karte:hover { border-color: var(--navy-400); }
.v194-karte:focus-visible { outline: none; box-shadow: var(--focus-ring-navy); }
.v194-karte .ico { color: var(--navy-700); }
.v194-karte > span { white-space: normal; overflow-wrap: anywhere; }
.v194-karte .small { display: block; margin-top: var(--sp-1); color: var(--ink-700); }
.v194-ablage.dropzone { padding: var(--sp-3); gap: var(--sp-2); }
.v194-anhangaktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.v194-vorschau { display: grid; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.v194-vorschau:empty { display: none; }
.v194-anhang {
  display: grid; grid-template-columns: var(--sp-8) minmax(0, 1fr) auto; align-items: center;
  gap: var(--sp-3); padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.v194-anhang img {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface-2); border-radius: var(--r-sm);
}
.v194-anhang > .ico { justify-self: center; }
.v194-dateiname { overflow-wrap: anywhere; }
.v194-bestaetigung { align-items: start; }
#bugErgebnis { color: var(--ink-700); }
@media (max-width: 480px) {
  #bugScrim { padding-inline: 0; }
  #bugFormular:not([hidden]) { flex: 1 1 auto; }
  .v194-auswahl { grid-template-columns: 1fr; }
  .v194-karte { grid-template-columns: auto minmax(0, 1fr); }
}
