html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 150vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  background-image: url("./assets/img/background.png");
  background-color: #000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

header,
main,
footer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

header {
  margin-top: 80px;
  text-align: center;
}

main {
  margin-top: 100px;
  text-align: center;
}

footer {
  margin-top: 100px;
  text-align: center;
  margin-bottom: 80px;
}

img {
  max-width: 100%;
  height: auto;
}

h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: #fff;
  font-size: 2rem;
  line-height: 1.5;
}

p,
a {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

/* --- VIDEO (neu / verbessert) --- */
.video-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}

/* Der Wrapper macht 16:9 + responsive Breite mit Rand */
.video-frame {
  width: min(1150px, calc(100vw - 2rem)); /* links/rechts ca. 1rem */
  aspect-ratio: 16 / 9;
  position: relative;

  /* optional: leicht "cinematic" */
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

/* Video größe */
#videoPlayer {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* --- Credits / Footer --- */
.credit-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.credit-box {
  text-align: center;
}

.credit-box a img {
  transition: transform 0.3s ease;
}

.credit-box a:hover img {
  transform: scale(1.2);
}

.linkText {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
}

.linkText:hover {
  text-decoration: underline;
  color: #fff;
}

.time {
  font-size: 3rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: white;
  margin: 1rem 0;
  text-align: center;
}

.smallText {
  width: 500px;
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  text-align: center;
}

.developer {
  margin-top: 50px;
}

#impressum {
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: transparent;
  color: #fff;
}

#home-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin: 2rem auto;
  text-align: center;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#home-button:hover {
  background-color: #444;
}

.center {
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  header {
    margin-top: 30px;
  }

  main {
    margin-top: 80px;
  }

  footer {
    margin-top: 80px;
  }

  .time {
    font-size: 2.5rem;
  }

  #impressum {
    max-width: 700px;
    margin: 10px auto;
    padding: 0px;
  }

  /* etwas weniger Rand auf kleineren Screens */
  .video-frame {
    width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 480px) {
  /* auf sehr kleinen Screens etwas kompakter */
  .video-frame {
    width: calc(100vw - 1rem);
    border-radius: 10px;
  }
}
