/* =========================================================
   RausPlan
   Datei: /public/css/index.css
   Zweck:
   - Startseite Styling
   - Premium Video Hero in 16:9 (fixe Höhe)
   - Custom Controls rechts (VERTIKAL)
   - Netflix-Style UI: Mousemove -> show, nach 2s hide (JS)
   - Center Play Button (Premium) -> verschwindet beim Abspielen
========================================================= */

.site-main{
  padding: 0 0 48px;
}

/* =========================================================
   HERO VIDEO (16:9, fixe Premium-Höhe)
========================================================= */
.hero-video--fullscreen{
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/*
  Premium 16:9 Höhe, die auf allen Geräten gut aussieht:
  - min: 380px
  - ideal: 56.25vw (16:9)
  - max: 760px
*/
.hero-video__stage{
  position: relative;
  width: 100vw;
  height: clamp(380px, 56.25vw, 760px);

  overflow: hidden;
  background: #000;
}

/* Video füllt Stage */
.rausplan-player{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

/* Lesbarkeit über Video */
.hero-video__fade{
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.78),
    rgba(0,0,0,0.20) 55%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 2;

  opacity: 0;
  transition: opacity 180ms ease;
}

/* Overlay Text */
.hero-video__overlay{
  position: absolute;
  left: 38px;
  bottom: 32px;
  z-index: 3;
  max-width: 880px;
  pointer-events: none;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-video__title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 12px 34px rgba(0,0,0,0.65);
}

.hero-video__sub{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
  text-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

.muted{
  color: rgba(255,255,255,0.56);
  font-size: 12px;
}

/* =========================================================
   CENTER PLAY BUTTON (Premium)
========================================================= */
.rp-center-play{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;

  width: 86px;
  height: 86px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;

  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(87,240,197,0.10) inset;

  transition:
    transform 180ms ease,
    opacity 200ms ease,
    filter 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

.rp-center-play:hover{
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(255,255,255,0.20);
  filter: brightness(1.04);
}

.rp-center-play:active{
  transform: translate(-50%, -50%) scale(0.99);
}

/* Glow Ring */
.rp-center-play__ring{
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  pointer-events: none;

  background:
    radial-gradient(circle, rgba(87,240,197,0.18), transparent 62%),
    radial-gradient(circle, rgba(122,211,255,0.12), transparent 66%);
  filter: blur(12px);
  opacity: 0.95;
}

/* Play Icon */
.rp-center-play__icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55));
}

/* Hidden when playing */
.rp-center-play.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

/* Dim when UI is hidden (premium subtle) */
.rp-center-play.is-dim{
  opacity: 0.55;
}

/* =========================================================
   CUSTOM CONTROLS (rechts, VERTIKAL)
========================================================= */
.rp-controls{
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 4;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 12px 10px;
  border-radius: 24px;

  background: rgba(7, 8, 12, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);

  opacity: 0;
  transform: translateY(-50%) translateX(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Buttons */
.rp-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;

  font-weight: 900;
  font-size: 14px;

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.rp-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
  filter: brightness(1.03);
}

.rp-btn:active{
  transform: translateY(0px);
}

/* Range base */
.rp-range{
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  outline: none;
  cursor: pointer;
}

.rp-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(87,240,197,0.98), rgba(122,211,255,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.rp-range::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(87,240,197,0.98), rgba(122,211,255,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.rp-range::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

/* Vertical slider wrappers */
.rp-volume,
.rp-progress{
  width: 42px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-volume .rp-range,
.rp-progress .rp-range{
  width: 150px;
  transform: rotate(-90deg);
}

.rp-progress{
  height: 170px;
}

/* =========================================================
   CONTENT GRID (unter dem Video)
========================================================= */
.home-grid{
  padding: 22px 0 0;
}

.grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.card{
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.40);
}

.card__inner{
  padding: 18px;
}

.card__title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
}

.card__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

.list{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.list__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.list__item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.08);
}

.badge{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.86);
  background: linear-gradient(135deg, rgba(87,240,197,0.92), rgba(122,211,255,0.88));
  box-shadow: 0 10px 24px rgba(87,240,197,0.16);
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .grid{
    grid-template-columns: 1fr;
  }

  .hero-video__overlay{
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

@media (max-width: 640px){
  .hero-video__stage{
    height: clamp(260px, 56.25vw, 420px);
  }

  /* Mobile: Overlay immer sichtbar */
  .hero-video__overlay{
    left: 16px;
    bottom: 16px;
    opacity: 1;
    transform: none;
  }

  .hero-video__fade{
    opacity: 1;
  }

  .hero-video__title{
    font-size: 17px;
  }

  /* Mobile: Controls unten horizontal & immer sichtbar */
  .rp-controls{
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 14px;

    transform: none;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 999px;

    opacity: 1;
  }

  .rp-volume,
  .rp-progress{
    width: auto;
    height: auto;
  }

  .rp-volume .rp-range{
    width: 70px;
    transform: none;
  }

  .rp-progress .rp-range{
    width: 120px;
    transform: none;
  }

  .rp-btn{
    width: 38px;
    height: 38px;
  }

  /* Center Play etwas kleiner */
  .rp-center-play{
    width: 74px;
    height: 74px;
  }
}
