/* Baustellen-Webcam – Ansicht im iFrame (passt zu jbharder.com/Webcam.html) */
@font-face{font-family:"IBM Plex Sans";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-weight:500;font-style:normal;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");}
@font-face{font-family:"Big Shoulders Display";font-weight:700;font-style:normal;font-display:swap;src:url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2");}

:root{
  --bg-deep:#121212; --bg-mid:#1c1c1c; --ink:#e6eaee; --ink-dim:#a2afbb;
  --line:#2c2c2c; --accent:#4f8fd6; --danger:#ff8a73;
}
html, body{ margin:0; height:100%; background:#121212; color:var(--ink); overflow:hidden; }
body{ font:14px/1.5 "Open Sans", Helvetica, Arial, sans-serif; }
*, *::before, *::after{ box-sizing:border-box; }

/* ---------- Passwortfeld ---------- */
.em-login{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center;
  width:min(420px, calc(100% - 32px)); margin:0 auto; gap:10px;
}
.em-login label{ color:var(--ink-dim); font-size:15px; font-weight:500; text-transform:uppercase; letter-spacing:.04em; }
.em-row{ display:flex; gap:8px; }
.em-row input{
  flex:1; min-width:0; padding:11px 12px; font:inherit; font-size:16px;
  color:var(--ink); background:#1c1c1c; border:1px solid #3a3a3a; border-radius:0;
}
.em-row input:focus{ outline:2px solid var(--ink-dim); outline-offset:1px; }
.em-row button{
  padding:0 18px; font:inherit; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  color:#121212; background:var(--ink-dim); border:0; border-radius:0; cursor:pointer;
}
.em-row button:hover{ background:#c3ccd4; }
.em-row button:disabled, .em-row input:disabled{ opacity:.5; cursor:not-allowed; }
.em-error{ margin:0; color:var(--danger); }
.em-hint{ margin:0; color:#7d8892; font-size:12px; }
@media (max-height:200px){ .em-hint{ display:none; } }

/* ---------- Livestream füllt den iFrame ---------- */
.embed .hpstream, .embed .hp-cam{ position:absolute; inset:0; }
.embed .hpstream__stage{ position:absolute; inset:0; aspect-ratio:auto; border:0; background:#000; }
.embed .hpstream__video{ background:#000; }

/* Ausfall: Foto füllt den iFrame, Hinweis als Leiste darüber */
.embed .hpstream[data-state="error"]{ inset:0 0 auto 0; z-index:5; }
.embed .hpstream[data-state="error"] .hpstream__stage{ position:static; background:rgba(18,18,18,.85); }
.embed .hpstream-fallback{ margin:0; }

.embed .hp-cam .baucam{
  --baucam-accent:var(--accent); --baucam-text:var(--ink); --baucam-muted:var(--ink-dim);
  --baucam-line:var(--line); --baucam-bg:#000; --baucam-ctrl:var(--bg-mid); --baucam-stage:#000;
  --baucam-radius:0; --baucam-font:"IBM Plex Sans", Helvetica, Arial, sans-serif;
  position:absolute; inset:0;
}
.embed .hp-cam .baucam__stage{ position:absolute; inset:0; aspect-ratio:auto; }
.embed .hp-cam .baucam > :not(.baucam__stage){ display:none; }
.embed .hp-cam .baucam__stamp strong{
  font-family:"Big Shoulders Display", sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(20px, 4vw, 40px);
}
.embed .hp-cam .baucam__stamp span, .embed .hp-cam .baucam__badge{ font-family:"IBM Plex Mono", monospace; letter-spacing:.04em; }
