/* SV-8th Wall – Startscreen (Landing/CI), Rechtliches-Menü, AR-Hinweis, Kalibrierung.
   Nutzt ausschließlich die --sv-* CI-Variablen. Sprache: nur Deutsch. */
@import url("../assets/brand/brand.css");

/* ---------- Startscreen (Landing mit CI, bleibt sichtbar bis die Kamera läuft) ---------------- */
#sv-start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--sv-bg, #fff); z-index: 10000; padding: 24px; color: var(--sv-ink, #0f172a); }
#sv-start.hidden { display: none; }
#sv-start .overlay-card { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; width: 100%; max-width: 640px; text-align: center; }
#sv-start .overlay-logo { height: 96px; width: auto; max-width: 82%; display: block; }
#sv-start .overlay-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#sv-start .overlay-motif { max-width: 62%; max-height: 30vh; width: auto; height: auto; display: block;
  border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
#sv-start .hint { color: var(--sv-muted, #64748b); line-height: 1.5; max-width: 360px; margin: 4px auto 0;
  font-family: var(--sv-font-sans, Arial, sans-serif); font-size: .95rem; }
#sv-start .overlay-title { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--sv-ink, #0f172a);
  font-family: var(--sv-font-sans, Arial, sans-serif); }
#sv-start .desktop-url { color: var(--sv-primary-dark, #1e40af); font-weight: 700; word-break: break-all; }
#sv-start .btn { background: var(--sv-primary, #2563eb); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 60px; font-size: 1.15rem; font-weight: 800; cursor: pointer;
  font-family: var(--sv-font-sans, Arial, sans-serif); -webkit-tap-highlight-color: transparent; }

/* ---------- Intro-Video (vor dem Startscreen; endet -> Startscreen) --------------------------- */
#sv-intro { position: fixed; inset: 0; z-index: 10050; background: #fff;
  display: flex; align-items: center; justify-content: center; }
#sv-intro.hide { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.sv-intro-video { max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; background: #fff; }

/* ---------- Rechtliches-Menü (Burger, oben rechts, auch während AR erreichbar) ---------------- */
.legal-menu { position: fixed; top: 12px; right: 12px; z-index: 10001; }
/* Weißes Icon auf dezentem dunklem Chip -> sichtbar auf hellem Startscreen UND über der Kamera. */
.legal-toggle { width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(0,0,0,.28); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.legal-panel { position: absolute; top: 52px; right: 0; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); min-width: 180px; overflow: hidden; }
.legal-panel[hidden] { display: none; }
.legal-panel a { display: block; padding: 13px 18px; color: var(--sv-ink, #0f172a); text-decoration: none;
  font-family: var(--sv-font-sans, Arial, sans-serif); font-size: .96rem; }
.legal-panel a + a { border-top: 1px solid var(--sv-border, #e5e7eb); }

/* ---------- Target-Vorschau (mittig, bis das Target das erste Mal erkannt wurde) -------------- */
#sv-search { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center;
  justify-content: center; padding: 24px; pointer-events: none; }
#sv-search[hidden] { display: none; }
#sv-search .sv-search-card { width: 86%; max-width: 340px; text-align: center;
  background: rgba(255,255,255,0.92); border-radius: 18px; padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.28); }
#sv-search .sv-search-img { display: block; width: 100%; height: auto; border-radius: 10px; }
#sv-search .sv-search-text { margin: 12px 4px 2px; color: var(--sv-ink, #222);
  font-family: var(--sv-font-sans, Arial, sans-serif); font-weight: 600; font-size: 1rem; line-height: 1.35; }

/* 8th-Wall-Lade-/Kamera-Screen NICHT anzeigen: der SV-Startscreen bleibt als Hintergrund stehen,
   bis die Kamera läuft (der Kamera-Dialog erscheint darüber). Kein dunkler Screen, kein "powered by". */
#loadBackground, #requestingCameraPermissions, .poweredby-img { display: none !important; }

/* ---------- Kalibrier-Modus (?cal=1): Live-Einstellen von Größe/Rotation ---------------------- */
.sv-cal { position: fixed; left: 8px; right: 8px; bottom: 14px; z-index: 9500; display: none;
  background: rgba(15,23,42,.92); color: #fff; border-radius: 14px; padding: 10px 12px;
  font-family: var(--sv-font-sans, Arial, sans-serif); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.sv-cal.visible { display: block; }
.sv-cal .row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 5px 0; }
.sv-cal .lbl { opacity: .85; font-size: .85rem; }
.sv-cal .val { font-weight: 700; min-width: 56px; text-align: center; }
.sv-cal button { background: var(--sv-primary, #2563eb); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 15px; font-weight: 700; font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sv-cal .readout { text-align: center; font-size: .8rem; opacity: .95; margin-top: 6px; word-break: break-all;
  user-select: all; -webkit-user-select: all; }
