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

/* ======================================
   KOPFZEILE – Fixiert am oberen Rand,
   bleibt beim Scrollen sichtbar
   ====================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  text-align: center;
  background-color: rgba(220, 238, 238, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #2e5f5f;
}

/* ======================================
   NAVIGATION – Fixiert unterhalb des Headers,
   auf Desktop horizontal zentriert
   ====================================== */
nav {
  position: fixed;
  top: 6.5rem;
  left: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: rgba(181, 214, 214, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
}

/* Desktop: Links horizontal zentriert als Flexbox-Reihe */
nav ul {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* ======================================
   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
   ====================================== */

/* Abstandshalter unter dem fixierten Header */
.spacer {
  height: 9rem;
}

/* 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: 4rem;
  padding: 2rem;
  background-color: #f0f4f3;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid #ddd;
}

/* ======================================
   MOBILDARSTELLUNG – Burger-Menü
   Gilt für Bildschirme bis 768px Breite
   ====================================== */
@media (max-width: 768px) {

  /* Burger-Symbol einblenden */
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #224b4b;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }

  /* Seitentitel verkleinern, Platz für Burger lassen */
  header h1 {
    text-align: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: #224b4b;
    padding: 0 3rem;
  }

  /* Navigationsmenü standardmäßig ausblenden */
  nav ul {
    display: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Einzelne Menüpunkte als volle Zeilen */
  nav ul li a {
    /*display: block; zentriert?*/
    display: left;
    /*von 0.8 auf 0.4 reduziert Burger-Menü-Zeilenabstand*/
    padding: 0.4rem 1.5rem;
    color: #204949;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
  }

  /* Menü einblenden, wenn per JS die Klasse .active gesetzt wird */
  nav ul.active {
    display: flex;
  }

  /* Balken vom PC-Menü ausblenden */
  nav {
    display: none;
  }
  nav.active {
    display: block;
  }
}
/* Ende MOBILDARSTELLUNG */

/* ======================================
   DESKTOP – Burger-Symbol ausblenden
   Gilt für Bildschirme ab 769px Breite
   ====================================== */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
