html { font-size: 15px; }
body { background: #f4f6f8; }

.pg-nav { background: #0f5e6e; }
.pg-nav .nav-link { color: rgba(255,255,255,.85); }
.pg-nav .nav-link:hover { color: #fff; }

.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpi .wert { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi .titel { color: #6c757d; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

.table td, .table th { vertical-align: middle; }
.zeile-erledigt td { color: #6c757d; text-decoration: line-through; }
.zeile-erledigt td.kein-strich { text-decoration: none; }

/* Mobile Ansicht für Reinigungskräfte */
.aufgabe { border-left: 6px solid #0f5e6e; }
.aufgabe.sonder { border-left-color: #dc3545; }
.aufgabe.erledigt { opacity: .55; border-left-color: #198754; }
.aufgabe .btn-erledigt { min-width: 7.5rem; min-height: 3rem; font-size: 1.05rem; }

.sterne { display: flex; gap: .4rem; flex-wrap: wrap; }
.sterne input { display: none; }
.sterne label { font-size: 2.4rem; cursor: pointer; padding: .2rem .5rem; border-radius: .5rem; background: #fff; border: 1px solid #dee2e6; }
.sterne input:checked + label { background: #0f5e6e; color: #fff; }

.qr-etikett { width: 62mm; display: inline-block; text-align: center; border: 1px dashed #aaa; padding: 4mm; margin: 2mm; page-break-inside: avoid; background: #fff; }
.qr-etikett img { width: 45mm; height: 45mm; }
@media print {
    .pg-nav, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ── Grundriss ─────────────────────────────────────────── */
.gr-plan { position: relative; user-select: none; }
.gr-plan img { width: 100%; display: block; }
.gr-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gr-raum { stroke: #333; stroke-width: 1.5; fill-opacity: .45; cursor: pointer; transition: fill-opacity .15s; }
.gr-raum:hover, .gr-raum.gewaehlt { fill-opacity: .75; stroke-width: 3; }
.st-sonder { fill: #dc3545; background: #dc3545; }
.st-offen { fill: #fd7e14; background: #fd7e14; }
.st-erledigt { fill: #198754; background: #198754; }
.st-frei { fill: #adb5bd; background: #adb5bd; }
.nur-meine .gr-raum:not(.meins) { fill-opacity: .12; stroke-opacity: .3; }
.nur-meine .gr-label:not(.meins) { opacity: .35; }
.gr-label { position: absolute; transform: translate(-50%, -50%); font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.8);
            padding: 0 .3rem; border-radius: .25rem; white-space: nowrap; cursor: pointer; pointer-events: auto; }
.gr-legende { display: inline-block; width: .9rem; height: .9rem; border-radius: .2rem; vertical-align: -2px; opacity: .8; }

/* Editor */
.gr-editor svg { cursor: crosshair; }
.gr-editor .gr-raum { cursor: crosshair; fill: #0f5e6e; }
.gr-editor .gr-raum.aktiv { fill: #fd7e14; fill-opacity: .6; stroke-width: 3; }
.gr-editor .gr-vorschau { fill: #fd7e14; fill-opacity: .3; stroke: #fd7e14; stroke-width: 2; stroke-dasharray: 4 3; }
.gr-editor .gr-label { pointer-events: none; }
.raum-liste { max-height: 70vh; overflow-y: auto; }
.raum-liste .list-group-item { cursor: pointer; }

/* ── Fotos ─────────────────────────────────────────────── */
.foto-mini img, .foto-mini-bild { width: 64px; height: 64px; object-fit: cover; border-radius: .35rem; border: 1px solid #dee2e6; }
.foto-mini:hover img { outline: 2px solid #0f5e6e; }

/* ── Chat ──────────────────────────────────────────────── */
.chat-liste { max-height: calc(100vh - 200px); overflow-y: auto; }
.chat-fenster { height: calc(100vh - 140px); min-height: 380px; display: flex; flex-direction: column; }
.chat-verlauf { flex: 1; overflow-y: auto; background: #eef2f4; }
.chat-zeile { display: flex; margin: .25rem 0; }
.chat-zeile.eigene { justify-content: flex-end; }
.chat-blase { max-width: 75%; background: #fff; border-radius: .75rem; padding: .35rem .65rem; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.chat-zeile.eigene .chat-blase { background: #d4ede6; }
.chat-von { font-size: .75rem; font-weight: 600; color: #0f5e6e; }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-zeit { font-size: .7rem; color: #6c757d; text-align: end; }
.chat textarea { resize: none; }
