/* =========================================
   VIDEOBANNER & OVERLAY (DESKTOP)
   ========================================= */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 920; /* Följer filmens exakta proportioner så inget kapas */
  max-height: 920px; /* Tillåter full höjd på datorn */
  overflow: hidden;
  background-color: #000; /* Svart bakgrund innan videon hunnit ladda */
}

.video-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Prioriterar överkanten så huvuden inte huggs av */
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  pointer-events: none; /* Gör att overlayen inte blockerar klick */
  z-index: 1;
}

/* =========================================
   TEXT & KNAPP OVANPÅ VIDEO
   ========================================= */
.video-text {
  font-family: 'Poppins', sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 0 1rem;
  max-width: 90%;
  pointer-events: auto;
}

.video-text.visible,
#text1.visible, 
#text2.visible {
  opacity: 1;
}

#text1, #text2 {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.video-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: white;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

.video-text p {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: white;
}

.cta-button {
  display: inline-block;
  background-color: #7d9984;
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  pointer-events: auto;
  position: relative;
  z-index: 11;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d071bf;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* =========================================
   MOBILANPASSNING (MAX 768PX)
   ========================================= */
@media (max-width: 768px) {
  .video-container {
    aspect-ratio: unset; /* Återställer desktop-proportionerna på mobil */
    height: auto;
    max-height: unset;
    min-height: 50vh; /* Behåller din nuvarande mobilhöjd */
  }

  .video-banner {
    object-fit: cover;
    object-position: center center;
  }

  .video-text {
    max-width: 85%;
    padding: 1rem;
  }

  .video-text h1 {
    font-size: 2rem;
  }

  .video-text p {
    font-size: 1.4rem;
  }

  .cta-button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
