/*
 * Stile für die Landingpage und Videoseite.
 * Dunkle Grundfarbe mit dezenten goldenen Akzenten für ein hochwertiges Erscheinungsbild.
 */

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

body {
  font-family: 'Arial', sans-serif;
  background-color: #060a1c;
  /* goldene Lichteffekte als radialer Verlauf */
  background-image: radial-gradient(
      circle at 50% 20%,
      rgba(223, 178, 62, 0.25),
      rgba(6, 10, 28, 0) 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(223, 178, 62, 0.15),
      rgba(6, 10, 28, 0) 70%
    );
  color: #f5f5f5;
  min-height: 100vh;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Logo in Originalgröße auf Landingpage */
.logo img {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(223, 178, 62, 0.4));
}

/* Kleineres Logo auf der Videoseite */
.logo-small img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(223, 178, 62, 0.4));
}

h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #d4af37;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 640px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

input[type='password'] {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(223, 178, 62, 0.3);
  border-radius: 6px;
  background-color: #0b1030;
  color: #f5f5f5;
  font-size: 1rem;
  width: 240px;
  transition: border-color 0.3s ease;
}

input[type='password']:focus {
  outline: none;
  border-color: #d4af37;
}

button {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, #d4af37, #b7912a);
  color: #060a1c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.error {
  margin-top: 1rem;
  color: #ff7070;
  font-size: 0.9rem;
}

/* Videos-Seite */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-container {
  position: relative;
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(80%) brightness(70%);
  transition: opacity 0.5s ease, filter 0.5s ease;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-container.active {
  opacity: 1;
  pointer-events: all;
  filter: none;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 10px;
  background-color: #02040e;
}

/* Nachricht nach der letzten Video-Wiedergabe */
.after-message {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(6, 10, 28, 0.7);
  border-left: 4px solid #d4af37;
  border-radius: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #f5f5f5;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeIn 1s ease forwards;
}

/* Link zum nächsten Video in der Einzelseiten‑Navigation */
.next-link {
  color: #d4af37;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.next-link:hover {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }
  .logo img {
    width: 150px;
  }
  .logo-small img {
    width: 100px;
  }
  input[type='password'] {
    width: 180px;
  }
  .video-list {
    grid-template-columns: 1fr;
  }
}

/* Intro‑Video Styling */
/*
 * Der Rahmen für das Intro‑Video nimmt die volle Breite der Wrapper ein und
 * behält das 16:9‑Seitenverhältnis bei. Die Breite wurde auf 100 % erhöht,
 * damit das Video auf der Startseite präsenter wirkt. Die Höhe ergibt sich
 * aus dem Padding‑Top und sorgt für einen fließenden, responsiven Effekt.
 */
.intro-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Seitenverhältnis */
  margin: 0 auto 1.5rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.intro-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video‑Containers mit YouTube‑Player (iframe) */
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 10px;
  background-color: #02040e;
}

/* Wrapper für den YouTube‑Player, um das Seitenverhältnis zu wahren */
.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Seitenverhältnis */
}

/* Inneres IFrame des YouTube‑Players passt sich dem Wrapper an */
.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Beschriftung unterhalb jedes Videos */
.video-caption {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #f5f5f5;
  opacity: 0.9;
}

/* Bonus‑Bereich Layout */
.bonus-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
  align-items: flex-start;
}
.bonus-section .bonus-text {
  flex: 1 1 45%;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.6;
  background: rgba(6, 10, 28, 0.7);
  padding: 1.5rem;
  border-left: 4px solid #d4af37;
  border-radius: 8px;
}
.bonus-section .bonus-video-container {
  flex: 1 1 45%;
  width: auto; /* überschreibt die feste Breite der allgemeinen video-container */
  max-width: 480px;
  margin: 0;
}

@media (max-width: 800px) {
  .bonus-section {
    flex-direction: column;
    align-items: center;
  }
  .bonus-section .bonus-text,
  .bonus-section .bonus-video-container {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Verweislink zum internen Bereich */
.internal-link {
  margin-top: 1.5rem;
}
.internal-link a {
  color: #d4af37;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.internal-link a:hover {
  opacity: 1;
}