/* LocalEye v9: Nachbildungen der echten Produktoberfläche als HTML (scharf in jeder Größe).
   Vorlage sind die retuschierten Screenshots der Version 2026.10.22 (assets/ui). Partials: src/partials/ui-*.html */

.appv { margin: 0; width: 100%; min-width: 0; }
.appv__win {
  overflow: hidden; border-radius: 16px; background: #F7F9FC;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  font-family: var(--sans); color: var(--ink); text-align: left;
}
.appv__bar { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px; background: #F1F4F8; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.appv__bar .live__dots i { width: 9px; height: 9px; }
.appv__page { padding: clamp(16px, 1.8vw, 26px); }
.appv .label-echt { margin-top: 12px; padding-inline: 4px; }

/* Seitenkopf wie in der App */
.au-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.au-h { display: flex; align-items: center; gap: 8px; font-size: clamp(18px, .5vw + 14px, 21px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.au-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.au-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.au-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.au-btn svg { width: 14px; height: 14px; }
.au-btn--pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.au-btn--rot { color: #C4320A; border-color: #F3B8A8; }
.au-btn--sm { padding: 4px 10px; font-size: 12.5px; }
.au-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.au-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.au-chip--blau { background: #E0EAFF; color: #1D4ED8; }
.au-chip--gruen { background: #DCFCE7; color: #15803D; }
.au-chip--grau { background: #EEF2F7; color: var(--ink-2); }
.au-mono { font-family: var(--mono); }
.au-q { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 600; color: var(--muted); }

/* Meldungsverlauf */
.au-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 16px; margin-bottom: 14px; }
.au-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.au-select { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 7px; background: #F1F4F8; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.au-select::after { content: ""; width: 7px; height: 7px; margin-left: 12px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.au-list { overflow: hidden; padding: 0; margin: 0; list-style: none; }
.au-msg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.au-msg:last-child { border-bottom: 0; }
.au-msg__k { margin-top: 2px; }
.au-msg__t { font-size: 15px; font-weight: 500; line-height: 1.35; }
.au-msg__d { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.au-msg__z { margin-top: 3px; font-size: 13px; color: #15803D; }
.au-msg .au-btn::after { content: ""; width: 5px; height: 5px; margin-left: 4px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.au-msg--neu { background: #F3FBF6; }

/* Aufnahmen */
.au-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.au-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); }
.au-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.au-table tr:last-child td { border-bottom: 0; }
.au-table td.au-mono { font-size: 12.5px; color: var(--ink-2); }
.au-akt { display: flex; gap: 6px; }

/* Benachrichtigungen */
.au-kanal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; }
.au-kanal + .au-kanal { margin-top: 12px; }
.au-kanal__n { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.au-kanal__typ { margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.au-kanal__a { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* Netzwerk-Scan */
.au-scan { margin-bottom: 14px; }
.au-scan__h { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.au-scan__b { padding: 14px 16px 18px; }
.au-input { margin: 6px 0 12px; padding: 9px 12px; border-radius: 7px; background: #F1F4F8; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.au-prog { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.au-prog__bar { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--blue); transform-origin: left center; }
.au-log { margin: 0 0 12px; padding: 0 2px; font: 400 12.5px/1.65 var(--mono); color: var(--text-2); white-space: pre-wrap; }
.au-funde { margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2); }
.au-geraet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; }
.au-geraet + .au-geraet { margin-top: 8px; }
.au-geraet__n { font-size: 14.5px; font-weight: 500; }
.au-geraet__d { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.au-geraet__w { margin-top: 4px; font-size: 12.5px; color: #A15C07; }
.au-geraet__r { display: flex; align-items: center; gap: 6px; }

/* Leitstand */
.au-anlagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.au-anlage { padding: 16px; }
.au-anlage__n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.au-anlage__dot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 3px #DCFCE7; }
.au-anlage__m { display: flex; gap: 14px; margin: 8px 0 12px; font-size: 13px; color: var(--ink-2); }
.au-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.au-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; background: #DDE3EA center / cover no-repeat; }
.au-thumb span { position: absolute; inset: auto 0 0 0; padding: 3px 6px; background: rgba(15, 23, 42, .55); color: #fff; font-size: 11.5px; }

@media (max-width: 900px) {
  .au-anlagen { grid-template-columns: minmax(0, 1fr); }
  .au-filter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .au-hide-s { display: none; }
  .au-msg { grid-template-columns: auto minmax(0, 1fr); }
  .au-msg > .au-btn { display: none; }
  .au-head .au-btns { display: none; }
}
.au-table th, .au-table td { padding-inline: 12px; }
.au-table td:last-child { width: 1%; }
/* Leitstand in schmaler Spalte (Sicherheitsdienste): Anlagen untereinander, Vorschaubilder groß */
.aud__leit .au-head .au-btns .au-btn:not(.au-btn--pri) { display: none; }
/* Tabellen auf schmalen Bildschirmen: weniger Spalten, notfalls seitlich scrollbar */
.au-card:has(> .au-table) { overflow-x: auto; }
@media (max-width: 760px) {
  .au-table td.au-mono { font-size: 11px; white-space: normal; word-break: break-all; }
  .appv__page { padding: 12px; }
}
/* Speicher, Protokoll, Pilotfunktion, Branding */
.au-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.au-wert { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.au-wert .au-input { margin: 0; }
.au-felder .au-input { margin: 0; }
.au-ringe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.au-ring { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); font-size: 13.5px; }
.au-ring small { font: 400 12px/1.35 var(--mono); color: #15803D; }
.au-ok { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.au-schalter { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.au-toggle { flex: none; width: 40px; height: 22px; margin-top: 2px; border-radius: 99px; background: #CBD5E1; position: relative; }
.au-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); }
.au-farbe { width: 34px; height: 34px; border-radius: 7px; background: var(--blue); }
.au-breit { flex: 1; }
.au-abstand { margin-top: 14px; }
.au-scan__h .au-chip { margin-left: 8px; vertical-align: 1px; }
@media (max-width: 760px) { .au-felder, .au-ringe { grid-template-columns: minmax(0, 1fr); } }
.lokal__shots .au-felder, .lokal__shots .au-ringe { grid-template-columns: minmax(0, 1fr); }
.lokal__shots .au-head .au-btns { display: none; }
.lokal__shots .appv__page { padding: 16px; }

/* =====================================================================
   30.11.2026: Nachbau an die echte LocalEye-Oberfläche angeglichen (allinone/extracted/localeye/frontend).
   Das Design der Website bleibt: hell, Geist, Website-Logo und -Blau. Angeglichen sind Inhalte, Begriffe, Icons und
   Verhalten: Kachel mit Erkennung rot mit „● PERSON“ und „REC“, Knöpfe der Kachel, „Neuer Prüfhinweis“ unten rechts mit
   Amber-Rand, Prüfhinweis als Bildbogen in vier Bildern mit „✓ Bestätigt“ / „✗ Fehlalarm“.
   ===================================================================== */

/* Seitenleiste */
.live__brand small.live__ver { font: 400 11px/1.3 var(--mono); color: var(--muted); }
.live__armrow { display: flex; gap: 6px; }
.live__armrow .live__arm { flex: 1; }
.live__zp { display: grid; place-items: center; width: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.live__zp svg { width: 15px; height: 15px; }
.live__item--fuss { margin-top: auto; }
.live__item--fuss + .live__user { margin-top: 6px; }

/* Kopf der Live-Ansicht */
.live__tools { display: inline-flex; align-items: center; gap: 8px; }
.live__btn { padding: 5px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) { .live__btn { display: none; } }

/* Kachel: oben LIVE, REC, Protect und die Erkennung */
.cam__ov { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 5px; }
.cam__b { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; color: #fff; font: 600 10.5px/1.2 var(--mono); letter-spacing: .03em; }
.cam__b[hidden] { display: none; }
.cam__b--live { background: #16A34A; }
.cam__b--rec { background: rgba(239, 68, 68, .9); }
.cam__b--protect { background: var(--blue); }
.cam__b--det { background: rgba(239, 68, 68, .92); text-transform: uppercase; }
.cam__b i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cam__boxes { z-index: 2; }
/* Kachel mit Erkennung: roter Rahmen mit Puls, wie .cam-card.detecting in der App */
.cam.is-det { border-color: #EF4444; box-shadow: 0 0 0 2px #EF4444, 0 0 16px 2px rgba(239, 68, 68, .4); }
.cam.is-det .cam__media::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 3px solid #EF4444; pointer-events: none;
  box-shadow: inset 0 0 14px 2px rgba(239, 68, 68, .45); }
@media (prefers-reduced-motion: no-preference) {
  .cam__b i { animation: camBlink 1s ease-in-out infinite; }
  .cam.is-det .cam__media::before { animation: camPuls 1.1s ease-in-out infinite; }
}
@keyframes camBlink { 50% { opacity: .25; } }
@keyframes camPuls {
  0%, 100% { border-color: #EF4444; box-shadow: inset 0 0 12px 1px rgba(239, 68, 68, .4); }
  50% { border-color: rgba(239, 68, 68, .45); box-shadow: inset 0 0 20px 4px rgba(239, 68, 68, .8); }
}
/* Kachel: unten die Knöpfe der App (Modus, Skelett, Gegenstände, Ton, Gegensprechen, Snapshot, Aufnahme, Bearbeiten) */
.cam__acts { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); flex: none; }
.cam__acts svg { width: 15px; height: 15px; }
.cam__acts .is-an { color: var(--blue); }
.cam__acts .is-blass { opacity: .45; }
.cam__mode { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); font-size: 10.5px; line-height: 1.5; }
.cam__foot > span:first-child { min-width: 0; }
.cam__foot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1360px) { .cam__acts { gap: 6px; } .cam__acts svg { width: 13px; height: 13px; } }

/* „Neuer Prüfhinweis“ unten rechts wie in der App: Amber-Rand, Kamera und Zeit, „Ereignis prüfen“, ✕ */
.live__win { position: relative; }
.live .live__toast { top: auto; left: auto; right: 16px; bottom: 16px; max-width: 340px; transform: translateY(8px); }
.live .live__toast.is-on { transform: none; }
.live__toast-in { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 14px 16px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line-2); border-left: 3px solid #F59E0B; box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45); white-space: normal; }
.live__toast-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.live__toast-txt b { font-size: 14.5px; font-weight: 650; }
.live .live__toast-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.live__toast-go { margin: 10px 0 0; padding: 7px 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.live__toast-go:hover { background: var(--blue-ink); color: #fff; }
.live__toast-zu { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer; }
.live__toast-zu:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 640px) {
  .live .live__toast { left: 10px; right: 10px; top: auto; bottom: 10px; max-width: none; transform: translateY(8px); }
  .live .live__toast.is-on { transform: none; }
}

/* Ereigniskarte im Ablauf und im Kontakt: so, wie die App den Hinweis meldet */
.evt--toast { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px 18px 18px; border-left: 3px solid #F59E0B; }
.evt--toast .evt__body { gap: 2px; }
.evt--toast .evt__go { margin-top: 10px; padding: 8px 14px; border-radius: 9px; background: var(--blue); color: #fff; }
.evt--toast:hover .evt__go { background: var(--blue-ink); }
.evt__zu { margin-left: auto; padding: 2px 6px; color: var(--muted); font-size: 14px; }

/* Prüfhinweis: Bildbogen der Griff-Wache (2 × 2, Zeitangabe oben links, Rahmen nur im Griff-Bild, ohne Namen) */
.review__ts { margin-left: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.review__bogen { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: 12px;
  background: #0F172A; outline: 2px solid #F59E0B; outline-offset: -2px; }
.review__zelle { position: relative; display: block; aspect-ratio: 16 / 9; }
.review__zelle img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review__zeit { position: absolute; left: 0; top: 0; padding: 1px 7px; background: #000; color: #fff; font: 500 11px/1.5 var(--mono); }
.review__griff { position: absolute; border: 2px solid #FFB020; }
.review__ki { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: rgba(15, 23, 42, .62);
  color: #fff; font: 500 10.5px/1.3 var(--sans); }
.review__text { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.review__actions[hidden], .review__ack[hidden] { display: none; }
.review__ack { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.review__badge { padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.review__badge[data-art="bestaetigt"] { background: #FEE2E2; color: #B91C1C; }
.review__badge[data-art="verworfen"] { background: #DCFCE7; color: #15803D; }
.review__wer { font-size: 13px; color: var(--muted); }

/* Leitstand und Kameras */
.au-anlage__m { flex-wrap: wrap; gap: 6px 12px; }
.au-anlage__warn { padding: 0 7px; border-radius: 5px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.au-anlage__m .au-chip { font-size: 11px; font-weight: 500; padding: 0 7px; }
.au-anlage__akt { display: inline-flex; gap: 4px; margin-left: auto; }
.au-anlage__akt .au-btn { font-weight: 500; }
.au-thumbs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.au-id { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--muted); }
.au-blau { color: var(--blue) !important; }
.au-pfeile { display: flex; gap: 4px; }
/* Aufnahmen in der Funktionsspalte: etwas enger, damit „▶ Abspielen“ ganz sichtbar bleibt */
.mods .au-table th, .mods .au-table td { padding-inline: 9px; }
.mods .au-table td.au-mono { font-size: 11.5px; }
.mods .au-table td:not(.au-mono):not(:last-child) { white-space: normal; }
.mods .au-table .au-chip { white-space: nowrap; }
/* Kontakt: Profilbilder wie auf „Über uns“ statt Initialen (30.11.2026) */
.person__ini--foto { width: 56px; height: 56px; overflow: hidden; padding: 0; background: var(--surface); }
.person__ini--foto img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* DE/EN-Umschalter in der Kopfleiste (30.11.2026, englische Fassung index.en.html) */
.hdr__lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-ctl); overflow: hidden; }
.hdr__lang a { display: grid; place-items: center; min-width: 40px; height: 38px; padding: 0 10px; font-size: 14px; font-weight: 560;
  color: var(--text-2); text-decoration: none; }
.hdr__lang a + a { border-left: 1px solid var(--line-2); }
.hdr__lang a[aria-current] { background: var(--blue-wash); color: var(--blue-ink); }
@media (max-width: 560px) { .hdr__lang a { min-width: 34px; height: 34px; padding: 0 8px; } }
