/* ======================================
   GRUNDLAGEN – Schrift, Farben, Layout
   ====================================== */
body {
  font-family: 'Georgia', serif;
  margin: 0;
  background-color: #f5f9f8;
  color: #333;
}

/* ======================================
   HEADERBILD UND MENÜLEISTE
   ====================================== */
.site-header {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #f3e6c7;
}

/* Desktop: kompakte Kopfbild-Höhe, Schrift bleibt in der Bildmitte sichtbar. */
.header-image {
  display: block;
  width: 100%;
  height: clamp(210px, 25vw, 320px);
  object-fit: cover;
  object-position: center center;
}

/* Burger-Schaltfläche auf Desktop unsichtbar */
.menu-toggle {
  display: none;
}

/* Die Navigation liegt direkt unter dem Bild und bleibt beim Scrollen erreichbar. */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  box-sizing: border-box;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: center;
  background-color: #f3e6c7;
  box-shadow: 0 3px 10px rgba(76, 57, 32, 0.12);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #204949;
  font-weight: bold;
  font-size: 1.50rem;
}

nav ul li a:hover,
nav ul li a:focus-visible {
  text-decoration: underline;
}

.nav-star {
  font-size: 1.3rem;
  line-height: 1;
}

/* ======================================
   PORTRAIT-BILD (z. B. auf "Ich bin da")
   ====================================== */
.portrait-image {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ======================================
   ABSCHNITTE – Einladungen, Impressum etc.
   ====================================== */
section.invitation,
section.impressum {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2e2e2e;
  margin-bottom: 4rem;
}

section.invitation h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #5a3e36;
  text-align: center;
}

section p {
  margin-bottom: 1.5rem;
}

/* ======================================
   KONTAKT-LINKS
   ====================================== */
.contact a {
  display: block;
  color: #204949;
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.contact a:hover {
  text-decoration: underline;
}

/* ======================================
   RAINBOW-TEXT – animierter Regenbogen-Verlauf
   (verwendet für CH'AN*KA*RII)
   ====================================== */
.rainbow-text {
  font-size: 1em;
  font-family: sans-serif;
  background: linear-gradient(90deg,
    red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-move 60s linear infinite;
}

@keyframes rainbow-move {
  0%   { background-position: 0% }
  100% { background-position: 400% }
}

/* ======================================
   LICHTPUNKTE – farbige Punkte erscheinen
   zufällig und verblassen wieder (per JS erzeugt)
   ====================================== */
.light-point {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  animation: fadeInOut 4s ease-in-out forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fadeInOut {
  0%   { opacity: 0; transform: scale(0.5); }
  25%  { opacity: 1; transform: scale(1.2); }
  75%  { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* ======================================
   HELFERKLASSEN & LAYOUT
   ====================================== */

/* Bildbereich – zentriert mit abgerundeten Ecken */
.hero {
  text-align: center;
  padding: 2rem;
}

.hero img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Textinhalt – zentriert, begrenzte Breite */
.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
}

/* ======================================
   FUSSZEILE
   ====================================== */
footer {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background-color: #f0f4f3;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid #ddd;
}
/* Gemeinsames goldenes Abschlussbild */
.footer-label {
  max-width: 1200px;
  margin: 0 auto 0.8rem;
}

.footer-label img {
  display: block;
  width: 100%;
 /* max-width: 100%;*/
  height: auto;
  margin: 0 auto;
}

/* ======================================
   MOBILDARSTELLUNG – Burger über dem Headerbild
   ====================================== */
@media (max-width: 768px) {
  /* Mobil das ganze Kopfbild zeigen, ohne Schrift abzuschneiden. */
  .header-image {
    height: auto;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border: 1px solid rgba(102, 75, 35, 0.35);
    border-radius: 0.6rem;
    background: rgba(255, 248, 228, 0.90);
    color: #204949;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  /* Auf dem Handy erscheint kein leerer Navigationsbalken. */
  nav {
    display: none;
    position: relative;
    padding: 0.6rem 1rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li:not(.nav-star) {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(102, 75, 35, 0.15);
  }

  .nav-star {
    padding: 0.3rem;
  }

  .hero {
    padding: 1rem;
  }
}
