/* Ergänzungen zum Design aus Claude Design (stil.css) - nur, was die echte App zusätzlich braucht. */

html, body, #root { height: 100%; }
.pw-kopfzeile__marke { align-items: center; gap: 12px; }
.pw-kopfzeile__logo { height: 22px; width: auto; display: block; }
.pw-kopfzeile__app { padding-left: 12px; border-left: 1px solid var(--linie); }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100%; display: grid; place-items: center; padding: 24px; background: var(--grund); }
.anmeldung__karte { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 24px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-l); box-shadow: inset 0 3px 0 var(--karmin); }
.anmeldung__logo { height: 30px; width: auto; align-self: flex-start; }
.anmeldung__titel { margin: 0; }
.anmeldung__text { margin: -8px 0 0; color: var(--tinte-2); }
.anmeldung form { display: flex; flex-direction: column; gap: 12px; }
.anmeldung .pw-eingabe { width: 100%; }
.anmeldung__fehler { display: flex; gap: 6px; align-items: center; color: var(--karmin-dunkel); }
.anmeldung .pw-knopf--primaer { justify-content: center; }

/* ---------- Leisten für Engine-Zustand und Wartung ---------- */
.hinweisleiste { display: flex; align-items: center; gap: 10px; padding: 8px 24px; border-bottom: 1px solid var(--linie); }
.hinweisleiste--wartung { background: #fff6dc; }
.hinweisleiste--still { background: var(--karmin-hell); color: var(--karmin-dunkel); }
.hinweisleiste .text-stark { white-space: nowrap; }

/* ---------- Arbeitsvorrat ---------- */
.zeile__projekt { display: block; color: var(--tinte-2); font-weight: 400; font-size: 12px; line-height: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile__status { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.leer-hinweis { padding: 40px 24px; }
.filter select.pw-auswahl { height: 32px; }

/* ---------- Detail: Reiter der rechten Spalte ---------- */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); margin: -4px -16px 0; padding: 0 12px; flex: none; }
.reiter button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; background: none;
  color: var(--tinte-2); font: inherit; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter button:hover { color: var(--tinte); }
.reiter button[aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--karmin); }
.reiter__zahl { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--flaeche-grau); font-size: 11px; font-weight: 600; color: var(--tinte); }

.aufgabe-hinweis { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-m);
  background: var(--grund); color: var(--tinte-2); }
.aufgabe-hinweis .pw-icon { flex: none; margin-top: 2px; }

/* ---------- Prüfungen (alle Prüfschritte, auch bestandene) ---------- */
.pruefungen { display: flex; flex-direction: column; }
.pruefungen__zeile { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.pruefungen__zeile:last-child { border-bottom: 0; }
.pruefungen__symbol { padding-top: 2px; color: var(--tinte-2); }
.pruefungen__zeile.is-ok .pruefungen__symbol { color: var(--gruen, #2e7d4f); }
.pruefungen__name { font-weight: 500; }
.pruefungen__detail { color: var(--tinte-2); }
.pruefungen__zeile.is-nicht_geprueft .pruefungen__detail { color: var(--karmin-dunkel); }
.pruefungen__zeile.is-entfaellt .pruefungen__name { color: var(--tinte-2); font-weight: 400; }
.pruefungen__kopf { display: flex; gap: 12px; flex-wrap: wrap; color: var(--tinte-2); padding-bottom: 6px; }
.pruefungen__legende { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Planansicht (pdf.js) ---------- */
.plan-blatt { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; box-shadow: 0 1px 6px #0000002e; }
.plan-blatt canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan-marke { position: absolute; border: 1.5px solid var(--karmin); background: #bd15490f; border-radius: 2px; cursor: pointer; }
.plan-marke.is-gelb { border-color: #b7791f; background: #e6a8171a; }
.plan-marke.is-aktiv { border-width: 2.5px; background: #bd15491f; box-shadow: 0 0 0 4px #bd154926; }
.plan-marke.is-gelb.is-aktiv { background: #e6a81733; box-shadow: 0 0 0 4px #e6a81740; }
.plan-marke__nr { position: absolute; left: -2px; top: -20px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #fff; border: 1.5px solid var(--karmin); color: var(--karmin); font: 500 11px/15px var(--font-mono); text-align: center; }
.plan-marke.is-gelb .plan-marke__nr { border-color: #b7791f; color: #8a5a12; }
.plan-marke.is-aktiv .plan-marke__nr { background: var(--karmin); color: #fff; }
.plan-marke.is-gelb.is-aktiv .plan-marke__nr { background: #b7791f; }
.plan-fehler { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }

/* ---------- XML-Ausschnitt ---------- */
.xml-umschalter { margin-left: 8px; }

/* ---------- Rückmeldungen ---------- */
.rueckmeldung-zeile { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr) 140px 150px; gap: 16px; align-items: start;
  padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.rueckmeldung-zeile__text { display: block; margin-top: 2px; }
.rueckmeldung-zeile__antwort { display: block; margin-top: 6px; padding: 6px 8px; border-radius: var(--radius-s); background: var(--grund); }
.rueckmeldung-stand { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: var(--flaeche-grau); color: var(--tinte-2); }
.rueckmeldung-stand.is-umgesetzt { background: #e3f1e8; color: #1f6b3d; }
.rueckmeldung-stand.is-in_arbeit { background: #fff1d6; color: #8a5a12; }
.rueckmeldung-stand.is-abgelehnt { background: var(--karmin-hell); color: var(--karmin-dunkel); }

/* ---------- Prüfprotokoll (Druck) ---------- */
.druck { max-width: 900px; margin: 0 auto; padding: 24px; background: #fff; min-height: 100%; }
.druck__leiste { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.druck__kopf { display: flex; gap: 20px; align-items: center; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 3px solid var(--karmin); }
.druck__logo { height: 34px; }
.druck__kopf h1 { margin: 0; }
.druck__kopf p { margin: 4px 0 0; color: var(--tinte-2); }
.druck h2 { margin: 22px 0 8px; }
.druck__tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.druck__tabelle th, .druck__tabelle td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.druck__tabelle tbody th { width: 30%; font-weight: 500; }
.druck__fuss { margin-top: 24px; color: var(--tinte-2); }
@media print {
  html, body, #root { height: auto; overflow: visible; background: #fff; }
  .druck__leiste { display: none; }
  .druck { padding: 0; max-width: none; }
  .druck__tabelle tr { break-inside: avoid; }
}

/* ---------- Funktionen & Updates ---------- */
.fx { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); }
.fx-liste { overflow: auto; padding: 20px 16px 24px 24px; border-right: 1px solid var(--linie); background: var(--flaeche); }
.fx-liste h1 { margin: 0; }
.fx-gruppe { margin-top: 14px; }
.fx-gruppe__titel { color: var(--tinte-2); margin: 0 0 4px 8px; text-transform: uppercase; letter-spacing: .04em; }
.fx-eintrag { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--radius-s);
  background: none; text-align: left; font: inherit; color: var(--tinte); cursor: pointer; }
.fx-eintrag:hover { background: var(--flaeche-hover); }
.fx-eintrag.is-aktiv { background: var(--karmin-hell); }
.fx-eintrag.is-luecke, .fx-eintrag.is-luecke:hover { cursor: default; background: none; color: var(--tinte-2); }
.fx-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.fx-punkt.is-ok { background: #2e8b57; }
.fx-punkt.is-warn { background: #e6a817; }
.fx-punkt.is-luecke { background: transparent; border: 2px solid #9ca3af; }
.fx-punkt.is-ki { background: #56564f; border-radius: 2px; }
.fx-neu { margin-left: auto; padding: 0 6px; border-radius: 8px; background: var(--karmin); color: #fff; font-weight: 600; }
.fx-detail { overflow: auto; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.fx-kopf h2 { margin: 0 0 6px; }
.fx-kopf p { margin: 8px 0 0; max-width: 820px; }
.fx-stand { display: inline-block; padding: 2px 10px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--flaeche-grau); color: var(--tinte-2); }
.fx-stand.is-ok { background: #e3f1e8; color: #1f6b3d; }
.fx-stand.is-warn { background: #fff1d6; color: #8a5a12; }
.fx-beispiel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-l); padding: 18px 20px; }
.fx-beispiel h3 { margin: 0 0 6px; }
.fx-beispiel > p { margin: 0 0 14px; }
.fx-beispiel__raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fx-bild { margin: 0; }
.fx-bild img { width: 100%; height: auto; display: block; border: 1px solid var(--linie); border-radius: var(--radius-m); background: #fff; }
.fx-bild figcaption { margin-top: 6px; color: var(--tinte-2); }
.fx-befund .pw-befund { cursor: default; }
.fx-xml-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.fx-xml__titel { color: var(--tinte-2); margin-bottom: 4px; }
.fx-xml__code { margin: 0; padding: 8px 0; background: var(--grund); border-radius: var(--radius-m); overflow: auto;
  font: 12px/18px var(--font-mono); }
.fx-xml__zeile { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 0 10px 0 0; white-space: pre; }
.fx-xml__zeile.is-markiert { background: #bd15491f; box-shadow: inset 3px 0 0 var(--karmin); }
.fx-xml__nr { color: var(--tinte-2); text-align: right; padding-right: 12px; user-select: none; }
.fx-grenzen ul { margin: 6px 0 0; padding-left: 20px; }
.fx-update { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.fx-updates h3, .fx-grenzen h3 { margin: 0 0 6px; }
