/* BauCam Player – modern + mobile safe */

/* Wrapper */
.baucam-player{
  max-width: 1200px;
  margin: 0 auto;
}

/* iOS/Safari: keine blauen Tap-Highlights / Link-Look */
.baucam-player,
.baucam-player *{
  -webkit-tap-highlight-color: transparent;
}

.baucam-player button,
.baucam-player input,
.baucam-player select{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Entfernt iOS Default Button Look */
.baucam-player button{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  -webkit-touch-callout: none;
}

/* Fokus nur wenn Tastatur */
.baucam-player button:focus{ outline: none; }
.baucam-player button:focus-visible{
  outline: 2px solid rgba(37,99,235,.35);
  outline-offset: 2px;
}

.baucam-player a{
  color: inherit;
  text-decoration: none;
}

/* Layout */
.bc-wrap{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bc-stage{
  position: relative;
  background:#0b0f14;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);

  /* WICHTIG: Stage muss Höhe haben (Crossfade Layer sind absolut) */
  aspect-ratio: 16 / 9;
}

/* wenn du lieber höher willst (z.B. Baustellenkamera): 4/3 */
/* .bc-stage{ aspect-ratio: 4 / 3; } */

/* beide Layer */
.bc-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain; /* contain = kein Abschneiden */
  /* alternativ: cover (mehr "vollflächig", aber schneidet ab) */
  /* object-fit: cover; */

  opacity:0;
  transition: opacity 260ms ease;
  will-change: opacity;
}

/* aktives Bild */
.bc-img.is-active{
  opacity:1;
  z-index:1;
}

/* Timestamp */
.bc-stamp{
  position:absolute;
  left:10px; top:10px;
  z-index: 3;
  background: rgba(0,0,0,.55);
  color:#fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}

/* Controls */
.bc-controls{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px 6px 10px;
  flex-wrap: wrap;
}

/* Buttons */
.bc-btn{
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background:#111827;
  color:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  transition: transform .06s ease, filter .12s ease, background .12s ease;
  user-select:none;
}

.bc-btn:hover{ filter: brightness(1.08); }
.bc-btn:active{ transform: scale(.98); }

.bc-btn.is-on{ background:#b91c1c; }

.bc-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:none;
  box-shadow:none;
}

/* Range */
.bc-range{
  flex: 1;
  min-width: 240px;
  height: 34px;
  accent-color: #2563eb;
}

/* Selects */
.bc-select{
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.14);
  background:#fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.bc-select:focus{ outline: none; }
.bc-select:focus-visible{
  outline: 2px solid rgba(37,99,235,.30);
  outline-offset: 2px;
}

/* Message */
.bc-msg{
  margin-top: 8px;
  color:#b91c1c;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 720px){
  .bc-controls{ gap: 10px; }
  .bc-range{
    min-width: 100%;
    flex-basis: 100%;
  }
  .bc-select{
    flex: 1;
    min-width: 160px;
  }
}