/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  background: #000;
  color: #fff;
  font-size: 12px;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.main-container {
  margin: 0 auto;
  width: 80%;
}

.frage {
  font-family: 'Poetsen One', system-ui;
  font-size: 1.55em;
  font-weight: 400;
  font-style: normal;
  margin: 0 1.0rem 0 1.0rem;
  opacity: 0.85;
  transition: opacity 0.3s ease-in-out;
}

.maintitel {

  margin: 3.0rem 0.0rem 1.0rem 0.5rem;


}

.word {
  padding: 0.35rem 0 0.35rem 0;
  font-family: 'Poetsen One', system-ui;
  font-size: 4.85rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 5.25px;
  /* transform: translateX(-150%); */
}

.frageNR {
  margin: 0;
  font-family: 'Poetsen One';
  font-style: normal;
  /* font-weight: 800; */
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.3s ease-in-out;
}

.basic-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Responsive columns */
  justify-content: center;
  /* Center the whole grid block */
  gap: 1.25rem;
  max-width: 1200px;
  /* Optional max width */
  margin: 2.5rem auto;
  /* Center container */
}

.card-text-container {
  min-height: 100px;
  margin: 2.5rem 0 0 0;
}

.video-tile {
  width: auto;
  height: auto;
  position: relative;
  overflow: hidden;
  background-color: #222;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.shadow {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5rem;
  transform: translate(-50%, -50%);
  fill: rgba(255, 255, 255, 0.548);
  transition: all 0.3s ease-in-out;
}

.play-button:hover {
  fill: rgba(255, 255, 255, 0.8);
}

.grid-info,
.grid-disclaimer {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ttLogo {
  border-radius: 50%;
  width: 4.5rem;
  height: auto;
  margin: 1.5em;
  transition: transform 0.3s ease;
}

.ttLogo:hover {

  animation: wiggle 0.6s ease-in-out;
}

.tile-content {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.tile-content-video {
  transition: transform 0.3s ease-in-out;
}

.translateY {
  transform: translateY(-4rem);
}

.tile-content-video:hover {
  transform: translateY(-1.0rem);
}

.tile-content-video:hover> :first-child {
  transform: scale(1.025);
  /* scale only the first child */
  transition: transform 0.3s ease-in-out;
}

.tile-content-video:hover .frage .frageNR {
  opacity: 1;
}

.tile-content h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.hidden {
  display: none;
}

.tile-header-img {

  aspect-ratio: 9 / 16;
  width: 66%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.5em;

  transition: transform 0.3s ease-in-out;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#video-overlay.hidden {
  display: none;
}

.overlay-content {
  position: relative;
  padding: 1em;
  /* max-width: 90%; */
  /* max-height: 85vh; */
  /* box-shadow: 0 0 20px rgba(0,0,0,0.5); */
}

#overlay-video {
  max-height: 90vh;
  /* max-width: 56.25vh; */
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

#overlay-close {
  border-radius: 50%;
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 1.5em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  z-index: 10;
}

#impressum-close {
  border-radius: 50%;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  font-size: 1.5em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  z-index: 10;
}

#impressum-link {
  cursor: pointer;
}

.overlay-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.overlayPTR {
  cursor: pointer;
}

a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sponsor-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  /* margin: 1em; */
  flex-wrap: wrap;
  max-height: 50%;
}

.sponsor-img {
  width: 50%;
  max-width: 10rem;
  height: auto;
  margin: 1em;
}


/* Tablet: shrink slightly */
@media (max-width: 1024px) {
  html {
    font-size: 93.75%;
    /* ~15px */
  }
}

/* Mobile: shrink more */
@media (max-width: 768px) {
  html {
    font-size: 87.5%;
    /* ~14px */
  }
}

/* Small mobile (e.g. iPhone SE) */
@media (max-width: 480px) {
  html {
    font-size: 81.25%;
    /* ~13px */
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-3deg);
  }

  30% {
    transform: rotate(3deg);
  }

  45% {
    transform: rotate(-2deg);
  }

  60% {
    transform: rotate(2deg);
  }

  75% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}