/* Reiter „Protokoll". Nutzt die Farben aus stil.css (:root). Blau = Auswahl/Aktion, Grün = fertig,
   Orange = Hinweis; die Pfeile im Rot des Glocken-Punkts sind Philips Wunsch. */

/* Fünf Reiter passen auf schmalen Handys nicht mit dem normalen Abstand (die Seite schob sich
   seitlich). Greift nur, solange der Reiter „Protokoll" zu sehen ist. */
@media (max-width: 430px) {
  .reiter:has(#reiter-protokoll:not([hidden])) { display: flex; max-width: 100%; }
  .reiter:has(#reiter-protokoll:not([hidden])) button { flex: 1 1 auto; padding: .45rem .5rem; font-size: .9rem; }
}

/* ── Seite ─────────────────────────────────────────────────────────────── */
.pr-kopf .kopf-mitte { padding-top: 1rem; }
.pr-kopf-symbol svg { width: 30px; height: 30px; color: var(--akzent); margin-top: .5rem; }
.pr-kopf .kopf-mitte { border: 0; }
.raster .pr-abschnitt { background: none; border: 0; box-shadow: none; padding: .6rem .3rem 0; margin: 0; text-align: left; color: var(--leise); font-size: .85rem; }

.pr-karte.erledigt { border-color: var(--gut); }
.pr-marke { font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.pr-marke.gut { background: var(--gut-grund); color: var(--gut-text); }
.pr-marke.warn { background: var(--warn-grund); color: var(--warn-text); }
.pr-marke.blau { background: #e5f0ff; color: var(--akzent); }
.pr-karte .leiste button[aria-pressed="true"] { background: #eef5ff; }
/* Knopf „Wartung": Schraubenschlüssel rot wie in der Pille (Philip, 06.11.2026), Text bleibt blau. */
.pr-karte .leiste button[data-pr-start] svg { color: #e5484d; }
/* „Abschließen" unten im Standort-Menü: grüne Pille (Philip, 06.11.2026); danach hell „Abgeschlossen". */
.pr-abschliessen { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%;
  margin: 1.3rem 0 .5rem; padding: .95rem 1rem; border: 0; border-radius: 99px; background: var(--gut);
  color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.pr-abschliessen.fertig { background: var(--gut-grund); color: var(--gut-text); }
.pr-abschliessen:disabled { opacity: .4; cursor: default; }
/* HV: großer Zähler und großes Ortsfeld (Frage für Frage) */
.pr-gross-feld { font-size: 1.1rem; padding: .85rem 1rem; border-radius: 14px; }
.pr-grosszahl { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 1.5rem 0 .6rem; }
.pr-grosszahl button { width: 56px; height: 56px; padding: 0; font-size: 1.8rem; font-weight: 500; background: var(--flaeche); line-height: 1; }
.pr-zahlfeld { width: 110px; text-align: center; font-size: 2.6rem; font-weight: 700; background: none; padding: .2rem; letter-spacing: -1px; }
.pr-ungesichert { color: var(--warn-text); }
.pr-stufen { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: .55rem 1.1rem 0; }
.pr-stufen span { height: 4px; border-radius: 2px; background: var(--rand); }
.pr-stufen span.an { background: var(--akzent); }
.pr-stufen.voll span.an { background: var(--gut); }
.pr-ring { width: 22px; height: 22px; flex: none; }

/* ── Ansicht eines Protokolls ─────────────────────────────────────────── */
dialog.pr-dialog { width: min(640px, calc(100vw - 2rem)); height: min(900px, calc(100vh - 2rem)); padding: 0; background: var(--grund); overflow: hidden; }
/* fixed statt relative (06.11.2026): „relative" riss das Fenster aus der Bildschirmmitte — weiter unten
   auf der Seite öffnete es oben außer Sicht, man sah nur den grauen Schleier. fixed hält es im Bild und
   bleibt Bezugsrahmen für das Fenster von unten. */
dialog.pr-dialog[open] { position: fixed; }
/* Handy (Philip, 15.11.2026): Wischen im offenen Fenster schob die Standort-Liste dahinter mit. Seite
   dahinter festhalten, solange ein Protokoll-Fenster offen ist; Rollen bleibt im Fenster. */
html:has(dialog.pr-dialog[open]), html:has(dialog.pr-dialog[open]) body { overflow: hidden; overscroll-behavior: none; }
dialog.pr-dialog, .pr-inhalt, .pr-sinhalt, .pr-pop, .pr-pop-blatt { overscroll-behavior: contain; }
.pr-dkopf { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem .7rem; background: var(--flaeche); }
.pr-dtitel { flex: 1; min-width: 0; }
.pr-dtitel h2 { margin: 0; white-space: nowrap; }
.pr-dtitel p { margin: .1rem 0 0; }
.pr-fortschritt { height: 3px; background: var(--rand); }
.pr-fortschritt span { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .3s; }
.pr-fortschritt span.voll { background: var(--gut); }
.pr-inhalt { flex: 1; min-height: 0; overflow: auto; padding: .4rem 1rem 2rem; font-size: 15px; }

/* Gruppierte Liste (wie iOS-Einstellungen) — in der Ansicht UND im Fenster */
.pr-gtitel { font-size: .8rem; color: var(--leise); margin: 1rem .9rem .35rem; }
.pr-gliste { background: var(--flaeche); border-radius: 14px; overflow: hidden; margin-top: .9rem; }
.pr-gtitel + .pr-gliste { margin-top: 0; }
/* Überall im Protokoll: Rand wie die Standort-Kacheln (Philip, 01.11.2026) — nur hier, die
   anderen Reiter bleiben, wie sie sind. */
#pr-dialog .pr-gliste, #pr-dialog .pr-weitere, #pr-dialog .pr-feld { border: 1px solid var(--kachelrand); }
/* Beim Tippen: blauer Rahmen INNEN im Feld — außen schnitt ihn der Rollbereich oben ab. */
#pr-dialog .pr-feld:focus, #pr-dialog .pr-feld:focus-visible { outline: none; border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.pr-reihe {
  width: 100%; display: flex; align-items: center; gap: .55rem; background: none; color: var(--text);
  border-radius: 0; padding: .78rem .95rem; min-height: 48px; text-align: left; font-weight: 400;
}
.pr-reihe + .pr-reihe, .pr-detail + .pr-reihe, .pr-reihe + .pr-detail { border-top: 0.5px solid var(--rand); }
.pr-reihe:hover:not(:disabled):not(.statisch) { background: var(--flaeche2); }
.pr-reihe:active:not(:disabled):not(.statisch) { background: var(--rand); }
.pr-reihe:disabled { opacity: 1; cursor: default; }
.pr-reihe svg { color: var(--rand2); flex: none; }
.pr-rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-rtext small { color: var(--leise); font-size: .8rem; }
.pr-rtext.blau, .pr-wertr.blau { color: var(--akzent); font-weight: 500; }
.pr-wertr { color: var(--leise); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pr-reihe.leer .pr-wertr { color: var(--rand2); }
.pr-reihe.an .pr-rtext { color: var(--akzent); font-weight: 500; }
.pr-haken { color: var(--akzent); display: inline-flex; }
.pr-haken svg { color: inherit; width: 15px; height: 15px; }
.pr-haken.gruen { color: var(--gut); }
.pr-haken.gruen svg { width: 13px; height: 13px; }
.pr-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); flex: none; }
.pr-reihe.jetzt .pr-rtext { font-weight: 600; }
.pr-reihe.spaeter .pr-rtext { color: var(--rand2); }

/* Erledigt-Schalter */
.pr-schalter { cursor: pointer; }
.pr-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.pr-knebel { width: 46px; height: 28px; border-radius: 14px; background: var(--rand); position: relative; flex: none; transition: background .2s; }
.pr-knebel::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pr-schalter input:checked + .pr-knebel { background: var(--gut); }
.pr-schalter input:checked + .pr-knebel::after { transform: translateX(18px); }
.pr-schalter input:focus-visible + .pr-knebel { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ── Fenster von unten ────────────────────────────────────────────────── */
.pr-schleier { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); animation: pr-blende .2s; }
.pr-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column;
  background: var(--grund); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
  animation: pr-hoch .25s ease-out;
}
.pr-sheet[hidden], .pr-schleier[hidden] { display: none; }
@keyframes pr-hoch { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pr-blende { from { opacity: 0; } }
.pr-griff { width: 36px; height: 5px; border-radius: 3px; background: var(--rand2); margin: .5rem auto .2rem; }
.pr-skopf { display: flex; align-items: center; gap: .4rem; padding: .3rem .8rem .5rem 1rem; }
.pr-skopf h3 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.2px; }
.pr-szaehler { color: var(--leise); font-size: .82rem; white-space: nowrap; }
.pr-szurueck { background: none; padding: .3rem .4rem .3rem 0; color: var(--akzent); display: inline-flex; align-items: center; gap: .1rem; }
.pr-szurueck svg { width: 18px; height: 18px; color: var(--akzent); transform: scaleX(-1); }
.pr-szurueck[hidden] { display: none; }
.pr-sbalken { display: none; }
.pr-szu { background: var(--rand); color: var(--leise); width: 30px; height: 30px; padding: 0; font-size: 1.2rem; line-height: 1; }
.pr-sinhalt { overflow-y: auto; overflow-x: hidden; padding: 0 1rem 1rem; min-height: 120px; }   /* x: sonst Rollbalken während des Schiebens */
.pr-sinhalt .pr-gliste:first-child { margin-top: .2rem; }
.pr-sinhalt.vor { animation: pr-vor .22s ease-out; }
.pr-sinhalt.zurueck { animation: pr-zurueck .22s ease-out; }
@keyframes pr-vor { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pr-zurueck { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.pr-sfuss { padding: .6rem 1rem 1rem; }
.pr-sfuss[hidden] { display: none; }
.pr-sfuss button, .pr-breit { width: 100%; margin-top: 1rem; }
.pr-sfuss button { margin-top: 0; }
.pr-mitte { display: block; text-align: center; margin: .6rem auto 0; }
.pr-mitte:empty { display: none; }
.pr-pflichtpunkt { color: var(--akzent); margin-left: .25rem; }

/* Unter einer abgehakten Zeile: was das Teil noch braucht */
.pr-detail { background: var(--flaeche2); padding: .35rem .95rem .6rem 1.6rem; }
.pr-unterzeile { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; font-size: .88rem; color: var(--leise); background: none; border-radius: 0; text-align: left; font-weight: 400; }
.pr-eigzeile span:last-child { display: inline-flex; align-items: center; gap: .25rem; color: var(--text); }
.pr-eigzeile.abweichend span:last-child { color: var(--warn-text); font-weight: 600; }
.pr-segment { display: flex; background: var(--rand); border-radius: 10px; padding: 2px; margin: .3rem 0; }
.pr-segment button { flex: 1; background: none; color: var(--text); border-radius: 8px; padding: .4rem .3rem; font-size: .85rem; font-weight: 500; }
.pr-segment button[aria-pressed="true"] { background: var(--flaeche); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* Filter je Stück: Name oben, darunter die drei Möglichkeiten; gewählt in der Farbe der Aktion */
.pr-fstueck { padding: .65rem .95rem .7rem; }
.pr-fstueck + .pr-fstueck { border-top: 0.5px solid var(--rand); }
.pr-fstueck .pr-rtext { flex-direction: row; align-items: baseline; gap: .5rem; font-weight: 500; }
.pr-fstueck .pr-segment { margin: .45rem 0 0; }
.pr-fstueck .pr-segment button { font-size: .84rem; padding: .5rem .2rem; }
.pr-fstueck .pr-segment button[aria-pressed="true"][data-wert="gesaeubert"] { color: var(--gut-text); font-weight: 600; }
.pr-fstueck .pr-segment button[aria-pressed="true"][data-wert="getauscht"] { color: var(--akzent); font-weight: 600; }
.pr-fstueck .pr-segment button[aria-pressed="true"][data-wert="muss_getauscht"] { color: var(--warn-text); font-weight: 600; }

.pr-zahl { display: inline-flex; align-items: center; gap: .35rem; flex: none; }
.pr-zahl button { width: 32px; height: 32px; padding: 0; font-size: 1.15rem; font-weight: 600; line-height: 1; background: var(--grund); }
.pr-zahl b { min-width: 1.4em; text-align: center; color: var(--text); font-weight: 600; }
.pr-reihe.statisch.an .pr-rtext { color: var(--text); font-weight: 500; }

.pr-feld { width: 100%; display: block; background: var(--flaeche); }
.pr-detail .pr-feld { margin-top: .35rem; }
textarea.pr-feld { font-family: inherit; resize: vertical; }
.pr-feld.pflicht { box-shadow: inset 0 0 0 1.5px #e0a800; }
.pr-hinweis { font-size: .8rem; color: var(--leise); margin: .5rem .9rem 0; }

/* Übersicht = Lesefassung */
.pr-zeile { display: flex; gap: .8rem; padding: .62rem .95rem; align-items: baseline; }
.pr-zeile + .pr-zeile { border-top: 0.5px solid var(--rand); }
/* Übersicht „Aufklappen": Pfeil im Rot des Glocken-Punkts (#e5484d, Philips ausdrücklicher Wunsch,
   Ausnahme von „Rot nur für Störungen"). Zu = nach unten, offen = nach oben. */
.pr-reihe.pr-ueb .pr-ueb-pfeil { display: inline-flex; flex: none; transform: rotate(90deg); transition: transform .2s; }
.pr-reihe.pr-ueb.auf .pr-ueb-pfeil { transform: rotate(-90deg); }
.pr-reihe.pr-ueb .pr-ueb-pfeil svg { color: #e5484d; width: 16px; height: 16px; }
.pr-reihe.pr-ueb.auf .pr-rtext { font-weight: 600; }
#pr-dialog svg.pr-pfeil { color: #e5484d; }   /* alle Pfeile im Protokoll (Philip, 01.11.2026) */
.pr-ueb-detail { background: var(--flaeche2); border-top: 0.5px solid var(--rand); animation: pr-blende .15s; }
.pr-ueb-detail + .pr-reihe { border-top: 0.5px solid var(--rand); }
.pr-ueb-aendern { display: block; width: 100%; background: none; color: var(--akzent); border-radius: 0; text-align: left; font-weight: 600; padding: .7rem .95rem; border-top: 0.5px solid var(--rand); }
.pr-ueb-aendern:hover { background: var(--rand); }
.pr-was { color: var(--leise); flex: 0 0 38%; }
.pr-wert { flex: 1; text-align: right; font-weight: 500; }
.pr-zeile.was .pr-was { color: var(--text); font-weight: 500; flex: 1; }
.pr-zeile.was .pr-wert { color: var(--leise); font-weight: 400; flex: 0 1 auto; }
.pr-neben { display: inline-block; font-size: .76rem; color: var(--leise); background: var(--grund); border-radius: 999px; padding: 1px 8px; margin-left: .3rem; font-weight: 500; white-space: nowrap; }

/* ── B · Frage für Frage (Philips Wahl): das Fenster füllt die ganze Ansicht ─────────── */
.modus-frage .pr-sheet { top: 0; max-height: none; border-radius: 0; box-shadow: none; animation: none; }
.modus-frage .pr-schleier, .modus-frage .pr-griff, .modus-frage .pr-skopf h3 { display: none; }
.modus-frage .pr-sbalken { display: block; height: 3px; background: var(--rand); }
.modus-frage .pr-sbalken span { display: block; height: 100%; background: var(--akzent); transition: width .3s; }
.modus-frage .pr-sbalken span.voll { background: var(--gut); }
.modus-frage .pr-skopf { position: relative; padding: .8rem 1rem .5rem; min-height: 64px; }
.modus-frage .pr-szaehler { flex: 1; text-align: center; display: flex; flex-direction: column; line-height: 1.25; }
.modus-frage .pr-szaehler b { color: var(--text); font-size: 1.1rem; font-weight: 600; letter-spacing: -.2px; }
.modus-frage .pr-szaehler span { font-size: .85rem; }
.modus-frage .pr-szurueck { position: absolute; left: .8rem; font-size: 1.08rem; font-weight: 500; }
.modus-frage .pr-szurueck svg { width: 20px; height: 20px; }
.modus-frage .pr-szu { position: absolute; right: 1rem; background: var(--akzent); color: var(--akzent-text); width: auto; height: auto; font-size: 1.05rem; font-weight: 600; padding: .55rem 1.25rem; }
/* Die Überschrift bleibt stehen: gleiche Spalte wie der Inhalt, gerollt wird erst darunter. */
.modus-frage .pr-sgross { flex: none; width: 100%; max-width: 560px; margin: .7rem auto .9rem; padding: 0 1.2rem; }
.modus-frage .pr-sgross.vor { animation: pr-vor-gross .3s ease-out; }
.modus-frage .pr-sgross.zurueck { animation: pr-zurueck-gross .3s ease-out; }
.modus-frage .pr-sinhalt, .modus-frage .pr-sfuss { width: 100%; max-width: 560px; margin: 0 auto; }
.modus-frage .pr-sinhalt { flex: 1; padding-bottom: 1.5rem; }
.modus-frage .pr-sfuss { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.modus-frage .pr-sfuss button { padding: .85rem 1.2rem; font-size: 1.02rem; }
.modus-frage .pr-reihe { min-height: 56px; font-size: 1.04rem; }
.modus-frage .pr-sinhalt.vor { animation: pr-vor-gross .3s ease-out; }
.modus-frage .pr-sinhalt.zurueck { animation: pr-zurueck-gross .3s ease-out; }
@keyframes pr-vor-gross { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pr-zurueck-gross { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
/* „Weitere Stelle": eigener Knopf, blaues Plus im Kreis */
.pr-weitere {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .9rem;
  min-height: 60px; padding: .8rem 1rem; border-radius: 14px; background: var(--flaeche); color: var(--akzent);
  font-size: 1.04rem; font-weight: 600; transition: transform .08s, background .15s;
}
.pr-weitere:hover { background: var(--flaeche2); }
.pr-weitere:active { transform: scale(.98); }
.pr-weitere-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); position: relative; flex: none; }
.pr-weitere-plus::before, .pr-weitere-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; transform: translate(-50%, -50%); }
.pr-weitere-plus::before { width: 14px; height: 2.4px; }
.pr-weitere-plus::after { width: 2.4px; height: 14px; }
.pr-gross { font-size: 1.75rem; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; margin: 1.4rem .2rem 1.3rem; }
.pr-ende { text-align: center; padding: 2.5rem 0 .5rem; }
.pr-ende .pr-gross { margin: 1rem 0 .4rem; }
.pr-ende-haken { width: 76px; height: 76px; border-radius: 50%; background: var(--gut); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: pr-plopp .4s ease-out; }
.pr-ende-haken svg { width: 36px; height: 36px; }
@keyframes pr-plopp { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }

@media (max-width: 640px) {
  dialog.pr-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .pr-dkopf { padding: .75rem .9rem .6rem; }
  .pr-dkopf h2 { font-size: 1.05rem; }
  .pr-inhalt { padding: .2rem .75rem 2rem; }
  .pr-sheet { max-height: 90%; }
  .pr-sinhalt { padding: 0 .75rem 1rem; }
  .modus-frage .pr-sgross { padding: 0 .95rem; }
  .modus-frage .pr-szaehler b { font-size: 1.02rem; }
  .modus-frage .pr-szu { padding: .5rem 1.05rem; font-size: 1rem; }
  .modus-frage .pr-szurueck { font-size: 1rem; }
}

/* Übersicht „Ampel-Liste" (Philip, 09.11.2026, Entwurf 1 mit Eigentümer): Punkt je Block,
   Wert rechts, Eigentümer/Hinweis klein darunter; gelbe Zeile = bitte prüfen. */
.pr-ueb-kopf { margin: .2rem 0 .1rem; }
.pr-ueb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .45rem; }
.pr-ueb-chip { font-size: .8rem; padding: .18rem .6rem; border-radius: 99px; background: var(--rand); color: #48484a; }
.pr-ueb-chip.ok { background: var(--gut-grund); color: var(--gut-text); }
.pr-ueb-chip.pruefen { background: var(--warn-grund); color: var(--warn-text); }
.pr-ueb-balken { height: 5px; border-radius: 3px; background: var(--rand); display: flex; overflow: hidden; }
.pr-ueb-balken i.ok { background: var(--gut); }
.pr-ueb-balken i.pruefen { background: #ff9500; }
.pr-st { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gut); }
.pr-st.pruefen { background: #ff9500; }
.pr-st.fehlt { background: none; box-shadow: inset 0 0 0 1.5px var(--rand2); }
.pr-st.info { background: var(--akzent); }
.pr-ueb-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; max-width: 62%; }
.pr-ueb-w { color: var(--leise); font-size: .92rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-ueb-r small { font-size: .74rem; color: var(--leise); line-height: 1.25; margin-top: 1px; }
.pr-reihe.pr-ueb.st-fehlt .pr-ueb-w { color: var(--rand2); }
.pr-reihe.pr-ueb.st-pruefen { background: #fff8ec; }
.pr-reihe.pr-ueb.st-pruefen .pr-ueb-w, .pr-reihe.pr-ueb.st-pruefen .pr-ueb-r small { color: #a35c00; }
.pr-reihe.pr-ueb.statisch { cursor: default; }

/* Licht: Eigentümer als Pille in der Zeile + Pop-up (Philip, 12.11.2026, Entwurf 1). */
div.pr-reihe[data-a] { cursor: pointer; user-select: none; }
.pr-eigpille { flex: none; font-size: .8rem; font-weight: 500; background: var(--grund); color: #636366; border-radius: 99px; padding: .3rem .75rem; min-height: 0; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-std { color: var(--akzent); }
.pr-eigpille.abweichend { background: var(--warn-grund); color: #a35c00; }
.pr-pop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.pr-pop[hidden] { display: none; }
.pr-pop-blatt { width: 100%; max-width: 520px; max-height: 70vh; overflow-y: auto; background: var(--flaeche); border-radius: 14px; }
.pr-pop-titel { padding: .85rem .95rem .45rem; font-weight: 600; }
.pr-pop-blatt .pr-reihe { border-top: 0.5px solid var(--rand); }
.pr-pop-name { padding: .6rem .95rem .9rem; border-top: 0.5px solid var(--rand); }
.pr-pop-zu { width: 100%; max-width: 520px; margin-top: 8px; background: var(--flaeche); color: var(--akzent); font-weight: 600; border-radius: 14px; padding: .85rem; }

/* ── Standort-Menü im neuen Aussehen (Philip, 13.11.2026: Entwurf „3 Kacheln" + Übersicht aus „4";
   Session „Design", abgesprochen mit „Protokoll"). Nur dieser Block gehört „Design". ── */
.pm-ueb { display: flex; align-items: center; gap: .8rem; width: 100%; margin-top: .9rem; padding: 1rem 1.05rem;
  border: 0; border-radius: 18px; background: linear-gradient(135deg, #007aff, #34c759); color: #fff;
  text-align: left; font: inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 122, 255, .18); }
.pm-ueb:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pm-ueb > svg:first-child { width: 26px; height: 26px; flex: none; }
.pm-ueb .pm-t b { font-size: 1.05rem; }
.pm-ueb .pm-t small { color: rgba(255, 255, 255, .92); }
#pr-dialog .pm-ueb svg.pr-pfeil { color: #fff; }
.pm-gitter { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.pm-k { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; padding: .85rem .9rem;
  border: 1px solid var(--kachelrand); border-radius: 16px; background: var(--flaeche); color: var(--text);
  text-align: left; font: inherit; cursor: pointer; }
.pm-k.breit { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .75rem; }
.pm-k:hover:not(:disabled) { background: var(--flaeche2); }
.pm-k:active:not(:disabled) { background: var(--rand); }
.pm-k:disabled { cursor: default; opacity: 1; }   /* grau über Schloss + Text, nicht durchscheinend */
.pm-k.zu b { color: var(--leise); }
.pm-ic { width: 34px; height: 34px; border-radius: 10px; background: #e8f1ff; color: var(--akzent);
  display: flex; align-items: center; justify-content: center; flex: none; }
.pm-ic svg { width: 20px; height: 20px; }
.pr-reihe .pm-ic { width: 30px; height: 30px; border-radius: 9px; }
.pr-reihe .pm-ic svg { width: 18px; height: 18px; color: inherit; }
.pm-ic.ok { background: var(--gut-grund); color: var(--gut-text); }
.pm-ic.zu { background: var(--grund); color: var(--rand2); }
.pm-t { display: flex; flex-direction: column; gap: .12rem; min-width: 0; width: 100%; }
.pm-t b { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.pm-t small { font-size: .8rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-t small.ok { color: var(--gut-text); font-weight: 500; }
.pm-t small.blau { color: var(--akzent); font-weight: 500; }
.pm-balken { display: block; height: 5px; border-radius: 9px; background: var(--rand); overflow: hidden; margin: .3rem 0 .1rem; }
.pm-balken i { display: block; height: 100%; background: var(--akzent); }
.pm-balken.voll i { background: var(--gut); }

/* Standort-Kachel „2 · Zeichen zeigt die Art, Farbe den Zustand" (Philip, 14.11.2026; Entwurf Chat
   „Design"): Kreis + drei Textzeilen, Drei-Punkte-Knopf oben rechts (noch ohne Funktion). */
.pr-karte.pr-k2 { position: relative; }
.pr-k2-koerper { position: relative; display: flex; align-items: center; gap: 9px; padding: .7rem .85rem; padding-right: 2.4rem; }
.pr-k2-kreis { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pr-k2-kreis svg { width: 19px; height: 19px; }
.pr-k2-kreis.fertig { background: var(--gut); color: #fff; }
.pr-k2-kreis.arbeit { background: #e8f1ff; color: var(--akzent); }
.pr-k2-kreis.offen { box-shadow: inset 0 0 0 2px var(--rand); }
.pr-k2-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pr-k2-text small { font-size: .8rem; font-weight: 600; color: #636366; }
.pr-k2-text b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.4px; }
.pr-k2-text b.fertig { color: var(--gut-text); }
.pr-k2-text b.arbeit { color: var(--akzent); }
.pr-k2-text b.offen { color: #aeaeb2; }
.pr-k2-text > span { font-size: .77rem; color: #636366; min-height: 1em; }
.pr-k2-mehr { position: absolute; top: 7px; right: 8px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%;
  background: var(--grund); color: var(--leise); display: inline-flex; align-items: center; justify-content: center; }
.pr-k2-mehr svg { width: 16px; height: 16px; }
/* Laufende Nummer vorn (Philip, 06.12.2026, Variante „A" vom Chat „Design"): Kopf wie Alarme/Bilder, das Kästchen
   .lfd-nr kommt aus stil.css (grün = fertig); hier nur „In Arbeit" in Blau. Zustandswort in der Zeile darunter. */
.pr-k3-kopf .punkte { margin-left: auto; }
.lfd-nr.pr-k3-nr.arbeit { background: #e8f1ff; border-color: var(--akzent); color: var(--akzent); }
.pr-k3-lage b { font-weight: 600; }
.pr-k3-lage b.fertig { color: var(--gut-text); }
.pr-k3-lage b.arbeit { color: var(--akzent); }
.pr-k3-lage b.offen { color: var(--leise); font-weight: 500; }

/* Navigation der Protokoll-Fenster (Philip, 15.11.2026; Session „Design", für alle seit 15.11.2026 abends — Kopie aus
   philip/protokoll.css, ohne den Drei-Punkte-Knopf): oben kein Kopf, die Nummer steht groß in der Übersicht-Karte;
   unten eine feste Leiste mit dem Hauptknopf links und rechts einem grauen Kreis mit rotem Kreuz (Standort-Menü)
   bzw. rotem Zurück-Pfeil (Übersicht, Tickets & Auffälligkeiten, HV, Zusatzinfos, Anfahrt). */
#pr-dialog #pr-schliessen { display: none; }
#pr-dialog .pr-dkopf, #pr-dialog .pr-fortschritt { display: none; }
#pr-dialog .pr-inhalt:has(.pm-fuss) { padding-bottom: 0; display: flex; flex-direction: column; }   /* Leiste ganz unten */
.pm-ueb-box { position: relative; margin-top: .75rem; }
/* „Gleiche Endung wie …" über der Nummer im Standort-Menü (Philip, 29.11.2026); Grundstil in stil.css */
.pr-inhalt > .endung-hinweis { margin-top: .5rem; padding-inline: .9rem; border: 0; border-radius: 10px; }
.pm-ueb-box .pm-ueb { margin-top: 0; padding: .8rem 3.6rem .8rem 1.05rem; }
.pr-dmehr { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0;
  padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .26); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pr-dmehr:active { background: rgba(255, 255, 255, .4); }
.pr-dmehr svg { width: 20px; height: 20px; }
.pr-pop-blatt .pr-opt-rot { color: #e5484d; font-weight: 600; }   /* Drei-Punkte-Menü: „Wartung zurücksetzen" (Protokoll, 15.11.2026) */
.pm-ueb-sto:disabled { opacity: 1; }       /* die Nummer nie blass — eine falsche Nummer wäre der teuerste Fehler */
.pm-ueb .pm-sto { font-size: 1.45rem; font-weight: 700; letter-spacing: .3px; line-height: 1.15; }
.pm-ueb-sto .pm-t small { white-space: normal; }
#pr-dialog .pm-gitter { gap: .5rem; margin-top: .5rem; }
#pr-dialog .pm-k { padding: .7rem .85rem; gap: .45rem; }
#pr-dialog .pr-inhalt:has(.pm-fuss) .pr-gliste { margin-top: .5rem; }
.pm-fuss { position: sticky; bottom: 0; display: flex;   /* KEIN z-index: sonst liegt die Leiste über den Fragen-Fenstern (15.11.) */ align-items: center; gap: .7rem;
  margin: auto -1rem 0; padding: .65rem 1rem .8rem; background: var(--flaeche); border-top: .5px solid var(--rand2); }
#pr-dialog .pr-inhalt:has(.pm-fuss) > :nth-last-child(2) { margin-bottom: .7rem; }   /* Luft über der Leiste */
#pr-dialog .pr-inhalt:has(.pm-fuss) > * { flex-shrink: 0; }   /* kleine Handys: rollen statt quetschen */
@media (max-width: 640px) { .pm-fuss { margin-inline: -.75rem; padding-inline: .75rem; } }
.pm-fuss .pr-abschliessen { flex: 1; width: auto; min-width: 0; margin: 0; padding: .85rem 1rem; }
.pm-zu { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--rand); color: #e5484d; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pm-zu:active { background: var(--rand2); }
#pr-dialog .pr-sheet.pr-ueb-seite .pr-skopf, #pr-dialog .pr-sheet.pr-ueb-seite .pr-sbalken { display: none; }
#pr-dialog .pr-sheet.pr-ueb-seite .pr-sinhalt { padding-top: .8rem; }
.pr-ufuss { flex: none; display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem .8rem;
  background: var(--flaeche); border-top: .5px solid var(--rand2); }
.pr-ufuss[hidden] { display: none; }
.pr-ufuss-ab { flex: 1; min-width: 0; display: flex; }
.pr-ufuss-ab .pr-abschliessen { width: 100%; margin: 0; padding: .85rem 1rem; }
#pr-dialog .pr-sheet.pr-tt-seite .pr-skopf, #pr-dialog .pr-sheet.pr-tt-seite .pr-sbalken,
#pr-dialog .pr-sheet.pr-tt-seite #pr-sfuss, #pr-dialog .pr-sheet.pr-tt-seite .pr-sinhalt [data-a="ticketfertig"] { display: none; }
.pr-ufuss-ab > button.haupt { width: 100%; margin: 0; padding: .85rem 1rem; border-radius: 99px; font-size: 17px; font-weight: 600; }
.pr-uzurueck { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--rand); color: #e5484d; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pr-uzurueck:active { background: var(--rand2); }
.pr-uzurueck svg, .pm-zu svg { width: 24px; height: 24px; }
.pr-uzurueck svg path, .pm-zu svg path { stroke-width: 2.2; }
/* Hauptprotokoll „Frage für Frage" (Philip, 05.12.2026, Variante „B"; Design): oben kein Zurück und kein „Menü"
   mehr, nur noch klein „STO … · 1 von 10" (die Nummer bleibt — ein Protokoll am falschen Standort wäre der teuerste
   Fehler); unten links „Menü" als Kreis, „Weiter" groß (nur wo nötig), rechts Zurück (grauer Kreis, roter Pfeil). */
#pr-dialog .pr-sheet.pr-ff-seite .pr-szurueck, #pr-dialog .pr-sheet.pr-ff-seite .pr-szu,
#pr-dialog .pr-sheet.pr-ff-seite #pr-sfuss { display: none; }
#pr-dialog .pr-sheet.pr-ff-seite .pr-skopf { min-height: 0; padding: .75rem 1rem 0; }
#pr-dialog .pr-sheet.pr-ff-seite .pr-szaehler { flex-direction: row; justify-content: center; gap: .35rem; font-size: .88rem; color: var(--leise); }
#pr-dialog .pr-sheet.pr-ff-seite .pr-szaehler b { font-size: .88rem; font-weight: 600; color: var(--leise); letter-spacing: 0; }
#pr-dialog .pr-sheet.pr-ff-seite .pr-szaehler span { font-size: .88rem; }
#pr-dialog .pr-sheet.pr-ff-seite .pr-szaehler span::before { content: "· "; }
.pr-umenue { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--rand); color: var(--akzent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pr-umenue:active { background: var(--rand2); }
.pr-umenue svg { width: 24px; height: 24px; }
.pr-umenue svg path { stroke-width: 2.2; }
#pr-dialog .pr-sheet:not(.pr-ff-seite) .pr-umenue { display: none; }
