/* mjOS · Bridge — Prüfen am Handy (H3, pruefen.js), nach Handy-Pruefen.dc.html, hell (desk-tokens.css).
   Farbe heisst Zustand: Schwarz die Hauptaktion, Blau „läuft“, Grün „von dir bestätigt“, Bernstein „braucht deinen Blick“. */

.pruefen { padding: 0 0 24px;                 /* der Seitenrand kommt von .screen (vorher doppelt: 36 px) */
   color: var(--ink); font-family: var(--font-sans); }
.pruefen h1 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
.pr-overview, .pr-ask, .pr-finish { display: flex; flex-direction: column; gap: 14px; min-height: calc(100dvh - var(--head-h, 64px) - 140px); }

.pr-title { padding: 4px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.pr-title h1 { font-size: 28px; }
.pr-sub { color: var(--ink-2); }
.pr-away { margin: 0; padding: 0 4px; font-size: var(--text-small); color: var(--ink-3); }
.pr-line { margin: 0; padding: 0 4px; color: var(--ink-2); }

/* Wirkung der letzten Antwort: grün, mit dem ehrlichen Hinweis zum Zurücknehmen */
.pr-effect { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; align-items: start; padding: 8px 12px;
             border-radius: var(--radius-control); background: var(--green-soft); color: var(--green); font-size: var(--text-small); }
.pr-effect-icon { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.pr-effect-text { line-height: 1.4; }
.pr-effect-hint { grid-column: 2; font-size: var(--text-hint); opacity: .85; }

/* Kacheln der drei Bereiche */
.pr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pr-tile { min-height: 132px; padding: 14px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--line);
           background: var(--surface); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.pr-tile.is-done { background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); border-color: var(--green-line); }
.pr-tile b { font-weight: 600; font-size: 16px; }
.pr-tile-top { display: flex; justify-content: space-between; align-items: center; }
.pr-tile-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; }
.pr-tile-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-tile.is-done .pr-tile-icon { background: var(--green-soft); }
.pr-tile.is-done .pr-tile-icon svg { stroke: var(--green); }
.pr-tile-check { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.pr-count { min-width: 26px; height: 26px; padding: 0 8px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--ink);
            color: var(--surface); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pr-tile-sub { font-size: var(--text-hint); color: var(--ink-2); line-height: 1.35; }

.pr-problems { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-card); border: 1px solid var(--amber-line);
               background: color-mix(in srgb, var(--amber-soft) 60%, var(--surface)); color: var(--amber-text); font-size: var(--text-small); text-decoration: none; }
.pr-problems > span:nth-child(2) { flex: 1; }
.pr-problems-mark { width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: var(--surface); font-size: 11px; font-weight: 600;
                    display: inline-flex; align-items: center; justify-content: center; flex: none; }

.pr-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.pr-primary { font: inherit; font-weight: 600; font-size: 16px; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 0;
              background: var(--ink); color: var(--surface); }
.pr-other { font: inherit; min-height: 48px; padding: 0 6px; border-radius: var(--radius-card); border: 1px solid var(--line-strong);
            background: var(--surface); color: var(--ink); line-height: 1.2; }
.pr-done { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pr-primary:disabled, .pr-other:disabled { opacity: .5; }

/* Eine Frage pro Bildschirm */
.pr-bar { display: flex; align-items: center; }
.pr-back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--touch); color: var(--ink-2); text-decoration: none; }
.pr-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pr-progress { display: flex; flex-direction: column; gap: 8px; }
.pr-segments { display: flex; gap: 4px; }
.pr-segments span { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--line-soft); }
.pr-segments .is-done { background: var(--blue); }
.pr-segments .is-now { background: var(--ink-5); }
.pr-progress-label { font-size: var(--text-hint); color: var(--ink-3); }
.pr-body { display: flex; flex-direction: column; gap: 14px; padding: 0 4px; }
.pr-q { display: flex; flex-direction: column; gap: 6px; }
.pr-eyebrow { font-size: var(--text-hint); font-weight: 600; color: var(--blue-strong); text-transform: uppercase; letter-spacing: .05em; }
.pr-q h1 { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.pr-facts { font-size: var(--text-small); color: var(--ink-3); }

.pr-quote { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.pr-quote-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pr-quote-meta { font-family: var(--font-mono); font-size: var(--text-hint); color: var(--ink-3); }
.pr-quote-open { font-size: var(--text-small); color: var(--blue); text-decoration: none; min-height: var(--touch); display: inline-flex; align-items: center; }
.pr-quote p { margin: 0; font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.pr-quote .pr-quote-empty { color: var(--ink-4); }
.pr-voices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-voices-label { font-size: var(--text-hint); color: var(--ink-3); }
.pr-voice { font-size: var(--text-hint); font-weight: 600; padding: 3px 8px; border-radius: var(--radius-tag); background: var(--ground); }
.pr-more { font-size: var(--text-hint); color: var(--ink-3); }

.pr-place { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.pr-sketch { display: block; width: 100%; height: auto; }
.pr-sk-ground { fill: var(--ground); }
.pr-sk-ring { fill: color-mix(in srgb, var(--blue) 12%, transparent); stroke: color-mix(in srgb, var(--blue) 55%, var(--surface)); }
.pr-sk-centre { fill: var(--blue); }
.pr-sk-point { fill: color-mix(in srgb, var(--blue) 55%, var(--surface)); }
.pr-sk-known { fill: var(--ink); }
.pr-sk-known-ring { fill: none; stroke: var(--ink-5); stroke-dasharray: 3 3; }
.pr-sk-label { font: 11px var(--font-sans); fill: var(--ink-2); }
.pr-place-caption { margin: 0; padding: 8px 12px; font-size: var(--text-hint); color: var(--ink-3); line-height: 1.45; }

.pr-problem { margin: 0; padding: 8px 12px; border-radius: var(--radius-control); background: var(--ground); color: var(--ink-2); font-size: var(--text-small); }
.pr-answers { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.pr-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Blatt für einen neuen Namen */
.pr-sheet-wrap { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.pr-sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; box-sizing: border-box; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-pop);
            padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.pr-sheet-title { font-size: var(--text-head); font-weight: 600; }
.pr-sheet-label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-hint); color: var(--ink-2); }
.pr-sheet input { font: inherit; font-size: 16px; height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.pr-sheet input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.pr-sheet-hint { font-size: var(--text-hint); color: var(--ink-3); }
.pr-sheet-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

/* Abschluss: ohne Baum und Punkte */
.pr-finish-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 24px; }
.pr-finish-check { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.pr-finish-head h1 { font-size: 28px; }
.pr-finish-head .pr-sub { margin: 0; }
.pr-finish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-small); color: var(--ink-2); }
.pr-finish-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
/* Link zum Statusboard unter den Bereichen (Besitzer 28.10.) */
.pr-statusboard { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: none; }
