/* ==========================================================
   LAYOUT: Header / Hero
   Headerbild, Hero-Inhalt und Lade-Stabilität
   ========================================================== */

/* Lade-Stabilität / CLS Fix */
.header-placeholder {
  min-height: clamp(500px, 32vw, 680px);
}

@media (max-width: 768px) and (orientation: portrait) {
  .header-placeholder {
    min-height: 190px;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .header-placeholder {
    min-height: 155px;
  }
}

/* Hero Desktop */
.hero {
  position: relative;
  width: 100%;
  height: clamp(500px, 32vw, 680px);
  min-height: 500px;
  padding: 1rem;
  overflow: hidden;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  color: white;
  text-align: center;
  isolation: isolate;
}

body.unterseite:not(.flugplatz-seite) .hero {
  background: transparent;
}

body.unterseite:not(.flugplatz-seite) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background-image: url("/bilder/tommy_87.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-align: center;
  display: inline-block;
  animation: rainbow-curve 20s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes rainbow-curve {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.2, 0.8);
  }

  100% {
    transform: scale(1, 1);
  }
}

.hero-content p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.6rem;
  margin-top: -15px;
}

/* Handy Hochformat */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    height: 185px;
    min-height: 185px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  body.unterseite:not(.flugplatz-seite) .hero::before {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 8px;
  }

  .hero-content h1 {
    font-size: 0.95rem;
    white-space: normal;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.58rem;
    margin-top: -2px;
    text-align: center;
  }
}

/* Handy Querformat */
@media (max-width: 932px) and (orientation: landscape) {
  .hero {
    height: 155px;
    min-height: 155px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  body.unterseite:not(.flugplatz-seite) .hero::before {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 6px;
  }

  .hero-content h1 {
    font-size: 0.9rem;
    white-space: normal;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.55rem;
    margin-top: -2px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 210px;
    min-height: 210px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 190px;
    min-height: 190px;
  }

  .hero-content h1 {
    font-size: 0.95rem;
  }

  .hero-content p {
    font-size: 0.58rem;
  }
}

/* Tablet Hochformat */
@media (min-width: 769px) and (max-width: 1180px) and (orientation: portrait) {
  .hero {
    height: 360px;
    min-height: 360px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
  }

  body.unterseite:not(.flugplatz-seite) .hero::before {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 12px;
  }

  .hero-content h1 {
    font-size: 1.25rem;
    white-space: normal;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.75rem;
    margin-top: -4px;
    text-align: center;
  }
}

/* Tablet Hochformat / iPad */
@media (min-width: 700px) and (max-width: 900px) and (min-height: 900px) and (orientation: portrait) {
  .hero {
    height: 360px;
    min-height: 360px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
  }

  body.unterseite:not(.flugplatz-seite) .hero::before {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 12px;
  }

  .hero-content h1 {
    font-size: 1.25rem;
    white-space: normal;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.75rem;
    margin-top: -4px;
    text-align: center;
  }
}

/* Tablet Querformat */
@media (min-width: 933px) and (max-width: 1366px) and (orientation: landscape) {
  .hero {
    height: 180px;
    min-height: 180px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  body.unterseite:not(.flugplatz-seite) .hero::before {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 8px;
  }

  .hero-content h1 {
    font-size: 1.15rem;
    white-space: normal;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.72rem;
    margin-top: -3px;
    text-align: center;
  }
}