/*
 * Projekt-Check – Aussehen des Fragebogens.
 *
 * Ergänzt pf.css (Fundament) um das, was nur dieses Formular hat: Kacheln mit
 * Innenrahmen, Chips, Zähler, Schieber, Raumkarten, Pinnadel, Aufnahme und die
 * Zustände einer Übertragung.
 *
 * Werte aus dem Prototyp „Projekt-Check · v2" (11.09.2026). Der Seitengrund
 * bleibt bewusst der des Portals (--pf-bg) statt der #F7F9FC des Prototyps:
 * beide öffentlichen Formulare teilen sich das Fundament.
 */

:root {
    --pc-dunkel: #2C3A57;
    --pc-akzent: #0682C5;
    --pc-akzent-bg: #E6F2F9;
    --pc-rand: #E5E7EB;
    --pc-rand-hover: #D3D6E0;
    --pc-grau: #6B7280;
    --pc-gruen: #10B981;
    --pc-amber: #E6A53F;
    --pc-rot: #DC2626;
}

/* --- Kopf: „Später weitermachen" sitzt neben dem Titel --- */

.pc-kopf-zeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.pc-pause-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pc-akzent);
    cursor: pointer;
    white-space: nowrap;
}

.pc-schritt-nr {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pc-akzent);
}

/* --- Kacheln: der Rahmen liegt INNEN, damit nichts springt --- */

.pf-tile {
    position: relative;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    transition: border-color 0.15s ease;
}

.pf-tile:hover { border-color: var(--pc-rand-hover); }

.pf-tile[aria-pressed="true"] {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px var(--pc-akzent);
    background: var(--pc-akzent-bg);
}

.pf-tile small { margin-top: 3px; font-weight: 600; }

/* Chips: dieselbe Auswahl, nur rund (Raumnamen, Nutzung, Bauform). */
.pc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-chips .pf-tile { border-radius: 999px; padding: 10px 14px; min-height: 42px; text-align: center; }

.pc-frage { margin: 0 0 18px; }
.pc-frage:last-child { margin-bottom: 0; }

.pc-abschnitt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pc-grau);
    margin: 18px 0 8px;
}

.pc-callout {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pc-akzent);
    margin-bottom: 4px;
}

.pc-pflicht { font-size: 0.75rem; font-weight: 600; color: var(--pc-akzent); }
.pc-freitext { margin-top: 8px; }
.pc-feld { margin-bottom: 14px; }
.pc-feld:last-child { margin-bottom: 0; }

.pc-zeile {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--pc-rand);
}

.pc-zeile:first-child { border-top: 0; padding-top: 0; }
.pc-zeile-label { color: var(--pc-grau); font-size: 0.85rem; }

/* Bedingte Rückfragen bekommen den blauen Balken des Prototyps. */
.pc-rueckfrage { box-shadow: inset 3px 0 0 var(--pc-akzent); }

.pc-optional > summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.pc-optional > summary::-webkit-details-marker { display: none; }
.pc-optional > summary::after { content: ' · öffnen'; color: var(--pc-akzent); font-size: 0.85rem; }
.pc-optional[open] > summary::after { content: ' · schließen'; }

/* --- Zähler und Schieber --- */

.pc-zaehler-wert {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.pc-schieber-wrap { margin-top: 4px; }
.pc-schieber { width: 100%; accent-color: var(--pc-akzent); height: 44px; }

.pc-schieber-wert {
    display: block;
    font-size: 1.25rem;
    color: var(--pc-akzent);
    font-variant-numeric: tabular-nums;
}

.pc-schieber-enden {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--pc-grau);
}

/* --- Start --- */

.pc-logo { display: block; margin-bottom: 14px; max-width: 175px; height: auto; }

.pc-berater {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.pc-berater-foto { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

.pc-termin {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pc-akzent);
    margin: 10px 0;
}

.pc-privacy { margin: 8px 0 0; padding-left: 18px; color: var(--pf-text-soft); font-size: 0.88rem; }
.pc-privacy li { margin-bottom: 6px; }

/* --- Räume --- */

.pc-raum {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--pc-rand);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.pc-raum:hover { border-color: var(--pc-rand-hover); }
.pc-raum-inhalt { flex: 1; min-width: 0; }
.pc-raum-name { font-size: 0.95rem; font-weight: 700; }
.pc-raum-meta { margin-top: 3px; font-size: 0.78rem; color: var(--pc-grau); }
.pc-raum-status { margin-top: 5px; font-size: 0.75rem; font-weight: 700; }
.pc-raum-status.is-ok { color: var(--pc-gruen); }
.pc-raum-status.is-offen { color: var(--pc-amber); }

.pc-raum-bild {
    width: 70px;
    height: 56px;
    border-radius: 10px;
    flex: none;
    overflow: hidden;
    background: var(--pc-akzent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-akzent);
    font-size: 1.2rem;
}

.pc-raum-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pc-raum-summe {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pc-grau);
    margin: 4px 0 12px;
}

/* --- Medien --- */

.pc-slot { margin-top: 10px; }
.pc-datei { margin-bottom: 10px; }
.pc-datei-eingabe { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.pc-mini {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--pc-akzent-bg);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-fertig-haken {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pc-gruen);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 0.95rem;
}

.pc-beispiel {
    display: flex;
    gap: 8px;
    flex-direction: column;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
    font-size: 0.82rem;
}

.pc-beispiel strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-beispiel-ok { background: #ECFDF3; color: #166534; }
.pc-beispiel-weg { background: #FEF6E7; color: #92400E; }

.pc-zustand { border-radius: 16px; border: 1px solid var(--pc-rand); background: #fff; padding: 12px; margin-bottom: 10px; }
.pc-zustand-fehler { box-shadow: inset 3px 0 0 var(--pc-rot); }
.pc-zustand-offline { box-shadow: inset 3px 0 0 var(--pc-amber); }
.pc-zustand-kopf { display: flex; gap: 12px; align-items: center; }
.pc-zustand-titel { font-size: 0.88rem; font-weight: 700; }
.pc-zustand-meta { margin-top: 3px; font-size: 0.78rem; color: var(--pc-grau); font-variant-numeric: tabular-nums; }
.pc-zustand-prozent { font-size: 0.88rem; font-weight: 700; color: var(--pc-akzent); font-variant-numeric: tabular-nums; }

.pc-knopfreihe { display: flex; gap: 8px; margin-top: 10px; }
.pc-knopfreihe .pf-btn { margin: 0; }

/* --- Pinnadel --- */

.pc-pinflaeche {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--pc-dunkel);
    cursor: crosshair;
    margin-top: 8px;
}

.pc-pinflaeche img { width: 100%; display: block; pointer-events: none; }

.pc-pin-punkt {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.pc-pin-kreis {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pc-akzent);
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.pc-pin-punkt.is-alt .pc-pin-kreis {
    background: #fff;
    border-color: var(--pc-akzent);
    color: var(--pc-akzent);
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}

.pc-pin-label {
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pc-dunkel);
    white-space: nowrap;
}

.pc-pin-hinweis {
    position: absolute;
    inset: 0;
    background: rgba(44, 58, 87, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
}

.pc-pin-hinweis small { display: block; margin-top: 8px; font-weight: 400; color: #E6F2F9; }

/* --- Rundgang --- */

.pc-szene { border-top: 1px solid #EEF1F6; padding-top: 14px; margin-top: 14px; }
.pc-szene:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.pc-aufnahme {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 44, 0.92);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pc-aufnahme-innen { width: 100%; max-width: 480px; color: #fff; text-align: center; }
.pc-aufnahme-video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3 / 4; object-fit: cover; }

.pc-aufnahme-zeit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--pc-rot);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pc-aufnahme-zeit::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.pc-aufnahme .pf-hint { color: #E6F2F9; }

/* --- Zusammenfassung --- */

.pc-punkt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--pc-rand);
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 8px;
    background: #fff;
    font: inherit;
    color: inherit;
}

.pc-punkt small { color: var(--pc-grau); font-size: 0.75rem; }
.pc-punkt.is-ok { border-color: #D1FADF; background: #F6FEF9; }
.pc-punkt.is-pflicht { border-left: 3px solid var(--pc-amber); cursor: pointer; }
.pc-punkt.is-optional { border-left: 3px solid var(--pc-rand-hover); cursor: pointer; }

.pc-schritt-liste { font-size: 0.9rem; }
.pc-schritt-liste li { margin-bottom: 8px; }
