/* LocalEye v9: große Live-Ansicht im App-Rahmen (src/partials/live.html, js/live.js) */

.live { position: relative; margin: 0; }
.live__win {
  overflow: hidden; border-radius: 18px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}

/* Fensterleiste */
.live__bar {
  display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px;
  background: #F1F4F8; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.live__dots { display: inline-flex; gap: 6px; }
.live__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE5; }
.live__title { display: inline-flex; align-items: center; gap: 8px; margin-inline: auto; font-weight: 500; color: var(--ink-2); }
.live__rec { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #B42318; }
.live__pulse { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); }
@media (prefers-reduced-motion: no-preference) {
  .live__pulse { animation: livePuls 1.8s ease-out infinite; }
  .cam__live { animation: livePuls 1.8s ease-out infinite; }
}
@keyframes livePuls { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* App: Seitenleiste und Hauptbereich wie in der echten Oberfläche */
.live__body { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.live__nav {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 12px;
  border-right: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--ink-2);
}
.live__brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; }
.live__brand b, .live__user b { display: block; font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.live__brand small, .live__user small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.live__arm { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13px; }
.live__armdot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.live__auto { display: block; margin: 6px 4px 10px; font-size: 11px; color: var(--muted); }
.live__grp { margin: 14px 8px 4px; font-size: 12px; color: var(--muted); }
.live__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.live__item svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.live__item.is-on { background: #EEF2F7; color: var(--ink); font-weight: 500; }
.live__item.is-on svg { color: var(--blue); }
.live__user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.live__ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 12px; }

.live__main { min-width: 0; padding: 18px clamp(14px, 1.6vw, 22px) 22px; background: #F7F9FC; }
.live__tool { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.live__h { display: block; font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.25; }
.live__status { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.live__seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.live__seg i { font-style: normal; padding: 4px 10px; border-radius: 6px; }
.live__seg i.is-on { background: var(--blue); color: #fff; font-weight: 600; }

/* Kacheln */
.live__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); }
.cam { overflow: hidden; min-width: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.cam__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #DDE3EA center / cover no-repeat; }
.cam__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam__boxes { position: absolute; inset: 0; pointer-events: none; }
.cam__hud, .cam__count {
  position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px; border-radius: 7px; background: rgba(15, 23, 42, .62);
  color: #fff; font: 500 11.5px/1.2 var(--mono); letter-spacing: .01em;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.cam__hud { left: 10px; }
.cam__count { right: 10px; font-family: var(--sans); }
.cam__count:empty { display: none; }
.cam__live { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; }
.cam__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 11px; }
.cam__foot b { display: block; font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.25; }
.cam__foot small { display: block; margin-top: 1px; font: 400 11.5px/1.3 var(--mono); color: var(--muted); }
.cam__icons { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.cam__icons svg { width: 16px; height: 16px; }
.cam__dot { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid currentColor; box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 6px currentColor; }

/* Erkennungsrahmen */
.lbox {
  --c: #22C55E;
  position: absolute; box-sizing: border-box;
  border: 2px solid var(--c); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), inset 0 0 0 1px rgba(255, 255, 255, .25);
  background: color-mix(in srgb, var(--c) 7%, transparent);
  will-change: left, top, width, height, opacity;
}
.lbox--o { --c: #3B82F6; }
.lbox__t {
  position: absolute; left: -2px; bottom: 100%; margin-bottom: 2px;
  padding: 3px 6px; border-radius: 4px; background: var(--c);
  color: #fff; font: 600 11px/1.15 var(--sans); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .25);
}
.lbox--o .lbox__t { color: #fff; }
.lbox--unten .lbox__t { bottom: auto; top: 100%; margin: 2px 0 0; }

.live__label { margin-top: 12px; padding-inline: 4px; }
.live__ctl { position: absolute; right: 10px; top: 6px; z-index: 3; width: 28px; height: 28px; border-radius: 8px; }
.live__rec { margin-right: 34px; }

@media (max-width: 1100px) {
  .live__body { grid-template-columns: minmax(0, 1fr); }
  .live__nav { display: none; }
}
@media (max-width: 640px) {
  .live__grid { grid-template-columns: minmax(0, 1fr); }
  .live__seg, .live__title { display: none; }
  .live__bar { justify-content: space-between; }
  .cam__count { display: none; }
}
.lbox--leise .lbox__t { display: none; }

/* ---------- v9: einheitliche Markierungen auf allen Beispielgrafiken ----------
   Person grün · Gegenstand blau · genommene Ware gelb · Ware in der Tasche und verdächtige Person rot */
:root {
  --mk-person: #22C55E; --mk-person-t: #15803D;
  --mk-obj: #3B82F6;    --mk-obj-t: #1D4ED8;
  --mk-ware: #FACC15;   --mk-ware-t: #FACC15; --mk-ware-ink: #3F2D00;
  --mk-alarm: #EF4444;  --mk-alarm-t: #DC2626;
  --mk-rand: 2px; --mk-radius: 4px;
}
.lbox { --c: var(--mk-person); --ct: var(--mk-person-t); border-width: var(--mk-rand); border-radius: var(--mk-radius); }
.lbox__t { background: var(--ct); }
.lbox--o { --c: var(--mk-obj); --ct: var(--mk-obj-t); }
.lbox--w { --c: var(--mk-ware); --ct: var(--mk-ware-t); }
.lbox--w .lbox__t { color: var(--mk-ware-ink); }
.lbox--rot { --c: var(--mk-alarm); --ct: var(--mk-alarm-t); box-shadow: 0 0 0 3px rgba(239, 68, 68, .28); }
.lbox--rot .lbox__t { color: #fff; }

/* Kachel mit Prüfhinweis */
.cam { transition: border-color .25s ease, box-shadow .25s ease; }
.cam.is-alarm { border-color: var(--mk-alarm); box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); }
.cam.is-alarm .cam__foot b::after { content: "Prüfhinweis"; margin-left: 8px; padding: 2px 7px; border-radius: 5px; background: var(--mk-alarm-t); color: #fff; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }

/* „Neuer Prüfhinweis“ unten in der Live-Ansicht */
.live { --toast-h: 0px; }
.live__toast { position: absolute; left: 50%; bottom: 46px; z-index: 4; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.live__toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.live__toast-in { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45); color: var(--ink); text-decoration: none; white-space: nowrap; }
.live__toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mk-alarm); }
@media (prefers-reduced-motion: no-preference) { .live__toast.is-on .live__toast-dot { animation: livePuls 1.6s ease-out infinite; } }
.live__toast-txt b { display: block; font-size: 15px; font-weight: 650; }
.live__toast-txt small { display: block; font-size: 13px; color: var(--muted); }
.live__toast-go { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 8px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.live__toast-go svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .live__toast { left: 12px; right: 12px; transform: translateY(12px); bottom: 40px; }
  .live__toast.is-on { transform: none; }
  .live__toast-in { white-space: normal; }
  .live__toast-txt small { display: none; }
}
/* Meldung oben in der Live-Ansicht, damit sie ohne Scrollen sichtbar ist */
.live__toast { top: 50px; bottom: auto; transform: translate(-50%, -10px); }
.live__toast.is-on { transform: translate(-50%, 0); }
@media (max-width: 640px) { .live__toast { top: 46px; transform: translateY(-10px); } .live__toast.is-on { transform: none; } }

/* ---------- localeye.shop, 29.11.2026: Markierungen wie in LocalEye ----------
   Person: durchgezogener roter Rahmen. Gegenstände: gelb gestrichelt mit dunkler Schrift. Die Live-Ansicht färbt keine
   Person als verdächtig und markiert keine Kachel; ein Prüfhinweis erscheint als Hinweis „Neuer Prüfhinweis“. Zähler je
   Kachel gibt es in LocalEye nicht. Jede Demo-Szene trägt sichtbar „KI-generiert“. */
:root { --mk-person: #EF4444; --mk-person-t: #DC2626; --mk-obj: #FFB020; --mk-obj-t: #FFB020; }
.lbox--o { border-style: dashed; background: transparent; }
.lbox--o .lbox__t { color: #1A1A1A; }
.cam__count { display: none !important; }
.cam.is-alarm { border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.cam.is-alarm .cam__foot b::after { content: none; }
.cam__media { position: relative; }
.cam__media::after { content: "KI-generiert"; 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); pointer-events: none; }
/* Rahmen „Gegenstand“ der Griff-Wache (Skelett an, nur Admins): durchgezogen gelb, ohne Namen */
:root { --mk-ware: #FFB020; --mk-ware-t: #FFB020; --mk-ware-ink: #1A1A1A; }

/* Englische Fassung (index.en.html): Kennzeichnung der Demo-Szenen auf Englisch */
html[lang="en"] .cam__media::after { content: "AI-generated"; }
