/* =====================================================================
   Grundeinstellungen
===================================================================== */
:root {
  --himmel-oben: #005387;
  --himmel-mitte: #A4DBFF;
  --horizont: #1f3d14;
  --boden: #3e2a18;

  /* Maximale Höhe von Überschrift/Logo im Einladungsbereich */
  --einladung-max-hoehe: 25vh; /* PC: ca. 1/4 Bildschirmhöhe */
}

@media (max-width: 800px) {
  :root {
    --einladung-max-hoehe: 40vh; /* Handy: ca. 1/2 Bildschirmhöhe */
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: #000;
  position: relative;
}


/* =====================================================================
   Hintergrund und Szenerie-Ebenen
===================================================================== */
.hintergrund {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: linear-gradient(
    180deg,
    var(--himmel-oben) 0%,
    var(--himmel-mitte) 70%,
    var(--horizont) 90%,
    var(--boden) 100%
  );
}

/* Jede Ebene ist bildschirmfüllend und fest positioniert; die
   Bewegung beim Scrollen kommt per JS (transform: translateY)
   aus den Werten in ebenenKonfiguration, siehe script.js */
.ebene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  will-change: transform;
}

.ebene img {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
}


/* =====================================================================
   Seiteninhalt: Grundgerüst
===================================================================== */
.inhalt {
  position: relative;
  z-index: 10; /* über allen .ebene-Elementen (z-index bis 6) */
  color: #fdf8ec;
  text-align: center;
}

.inhalt section {
  min-height: 100vh;
  padding: 3rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}


/* =====================================================================
   Typografie
===================================================================== */
h1, h2, h3, p {
  font-family: "Inika", serif;
  margin: 0.4em 0;
  color: #ffffff;
  -webkit-text-stroke: 1.5px #b5482a;
  text-shadow:
    -1px -1px 0 #b5482a,
     1px -1px 0 #b5482a,
    -1px  1px 0 #b5482a,
     1px  1px 0 #b5482a;
}

p {
  -webkit-text-stroke: 1px #b5482a;
}

h3 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h1 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
p  { font-size: clamp(1.4rem, 4vw, 2.0rem); }

a {
  color: #ffffff;
  text-decoration: underline;
  -webkit-text-stroke: 0.6px #b5482a;
}

a:visited {
  color: #ffffff;
}


/* =====================================================================
   Sprungnavigation (oben links, fest positioniert)
===================================================================== */
.sprungnav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: "Space Grotesk", Arial, sans-serif;
}

.sprungnav a {
  color: #ffffff;
  text-decoration: none;
  -webkit-text-stroke: 0;
  font-size: 0.95rem;
}

.sprungnav a:hover,
.sprungnav a:visited {
  color: #ffffff;
  text-decoration: underline;
}


/* =====================================================================
   Einladungsbereich: Logo, Video, Hinweistext
===================================================================== */
.einladung-bereich {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.logo {
  width: clamp(100px, 30vw, 280px);
  height: auto;
}

.video-wrapper {
  position: relative;
  width: min(85vw, 500px);
  aspect-ratio: 720 / 406;
}

@media (max-width: 800px) {
  .video-wrapper {
    width: min(75vw, 340px);
  }
}

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

#vollbild-btn {
  margin-top: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-family: "Inika", serif;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #b5482a;
  color: #fff;
  cursor: pointer;
}

.hinweis {
  margin-top: 2.5rem;
  width: 30%;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  -webkit-text-stroke: 0.5px #b5482a;
  text-shadow: none;
}

@media (max-width: 800px) {
  .hinweis {
    width: 75%;
  }
}


/* =====================================================================
   Anmeldeformular
===================================================================== */
form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(90vw, 380px);
}

form label {
  font-family: "Inika", serif;
  font-size: 1rem;
  color: #fdf8ec;
  -webkit-text-stroke: 0.4px #b5482a;
  margin-top: 0.6rem;
}

form input,
form select {
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 2px solid #b5482a;
  font-family: "Space Grotesk", "Inika", serif;
  font-size: 1rem;
}

form button {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  background: #b5482a;
  color: #fff;
  font-family: "Inika", serif;
  font-size: 1.1rem;
  cursor: pointer;
}

form button:disabled {
  opacity: 0.6;
}

.admin-link {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.6;
  color: #ffffff;
  -webkit-text-stroke: 0;
}

.admin-link:hover {
  opacity: 1;
}


/* =====================================================================
   Popups: Impressum / Datenschutz
===================================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.popup-overlay:target .popup-box {
  transform: scale(1);
}

@media (max-width: 800px) {
  .popup-box {
    padding: 24px;
    max-height: 90vh;
  }
}

/* Innerhalb der Popups bewusst ohne roten Textrand -- die dunkle
   Box hat eigenen Kontrast, der rote Umriss war fuer Fliesstext hier
   zu unruhig */
.popup-box h3,
.popup-box p {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.popup-box h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.popup-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d5db;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 1.8rem;
  transition: color 0.3s ease;
  line-height: 1;
}

.popup-close:hover {
  color: #ffffff;
}
