/* Vollbild-Player für Schaufenster-Bildschirme. Schriftgrößen in vmin, damit
   es auf jedem Bildschirm (Quer- und Hochformat) gleich wirkt. */
:root {
  --fade: 800ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade) ease-in-out;
  display: flex;
  overflow: hidden;
}

.slide.visible {
  opacity: 1;
}

.no-fade .slide {
  transition: none;
}

/* ---------- Folie mit Bild ---------- */
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6vmin 6vmin 5vmin;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55) 60%, transparent);
}

/* ---------- Folie nur mit Text ---------- */
.slide.text-only {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vmin;
}

.slide.text-only .overlay {
  position: static;
  background: none;
  padding: 0;
  max-width: 90vw;
}

/* ---------- Inhalte ---------- */
.label {
  display: inline-block;
  font-size: 3vmin;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  padding: 0.6vmin 2vmin;
  border-radius: 999px;
  margin-bottom: 2.5vmin;
}

.title {
  font-size: 8vmin;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.body {
  font-size: 4vmin;
  line-height: 1.35;
  margin-top: 2vmin;
  white-space: pre-line;
  opacity: 0.95;
  overflow-wrap: anywhere;
}

.price {
  display: inline-block;
  font-size: 10vmin;
  font-weight: 900;
  margin-top: 2.5vmin;
  padding: 0.5vmin 3vmin;
  border-radius: 2vmin;
  background: #ffd400;
  color: #000;
}

.text-only .title {
  font-size: 10vmin;
}

.text-only .body {
  font-size: 5vmin;
}

/* ---------- Uhr, Hinweise ---------- */
.clock {
  position: fixed;
  top: 3vmin;
  right: 4vmin;
  font-size: 4.5vmin;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.6vmin 2vmin;
  border-radius: 1.5vmin;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.offline {
  position: fixed;
  bottom: 1.5vmin;
  right: 2vmin;
  font-size: 1.8vmin;
  opacity: 0.5;
  z-index: 10;
}

.message {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 20;
  text-align: center;
  padding: 8vmin;
}

.message[hidden],
.clock[hidden],
.offline[hidden] {
  display: none;
}

.brand {
  font-size: 9vmin;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.message p {
  font-size: 3.5vmin;
  margin-top: 3vmin;
  opacity: 0.75;
  line-height: 1.4;
  white-space: pre-line;
}

/* Bildschirm hochkant: 16:9-Bild oben vollständig zeigen statt beschneiden */
@media (orientation: portrait) {
  .slide img {
    inset: 10vh 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .slide .overlay {
    background: none;
    padding-bottom: 8vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}
