/* 1. Geschwungene Schriftart laden (MUSS GANZ OBEN STEHEN) */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

/* 2. Seitenhintergrund (Hauchzartes Lavendel-Weiß) */
body.site {
  background-color: #EEF2FF !important;
}

/* 3. Der weiße "Textkasten" (Inhaltsbereich) in der Mitte */
.site-grid {
  max-width: 900px;
  margin: 2rem auto;
  background: #ffffff !important; 
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* 4. Haupt-Header in Tiefem Indigo */
.container-header {
  background: #1E1B4B !important; 
  padding: 1.5rem 0;
  border-bottom: 3px solid #FBBF24; /* Sternengelb */
}

/* 5. Navigations-Container transparent machen */
.container-nav {
  background: transparent !important;
}

/* 6. Flexbox, um Logo und den neuen Text nebeneinander zu setzen */
.navbar-brand,
.header-brand {
  display: flex !important;
  align-items: center;
  gap: 1.5rem; /* Abstand zwischen Bild und Text */
  text-decoration: none;
}

/* 7. Logo-Bild stylen (Desktop-Größe) */
.navbar-brand img,
.header-brand img {
  max-height: 140px; 
  width: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
}

/* 8. Den Text per CSS erzwingen (Desktop-Darstellung) */
.header-brand::after,
.navbar-brand::after {
  content: "Sternenkind SH"; 
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem; 
  color: #ffffff; /* Weiß für Lesbarkeit auf dem Indigo */
  line-height: 1;
  white-space: nowrap; 
}

/* 9. Menü-Container: Abstände verringern */
.container-header .mod-menu,
.container-nav .mod-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 10px; 
  padding: 0;
  margin: 1.5rem 0 0 0; 
  list-style: none !important;
  align-items: center;
}

/* 10. Link-Styling für das Menü: Schriftgröße anpassen */
.container-header .mod-menu a,
.container-nav .mod-menu a {
  color: #ffffff !important; 
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0 !important;
  background: transparent !important; 
  border-radius: 0;
  text-decoration: none;
  position: relative;
  white-space: nowrap; 
}

/* 11. Die animierte Unterstreichung im Menü */
.container-header .mod-menu a::after,
.container-nav .mod-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #FBBF24; /* Sternengelb für die Unterstreichung */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* 12. Hover & Aktiv-Status im Menü */
.container-header .mod-menu a:hover::after,
.container-nav .mod-menu a:hover::after,
.container-header .mod-menu .active > a::after,
.container-nav .mod-menu .active > a::after {
  width: 100%;
}

.container-header .mod-menu a:hover,
.container-nav .mod-menu a:hover,
.container-header .mod-menu .active > a,
.container-nav .mod-menu .active > a {
  color: #FBBF24 !important; /* Sternengelb als Hover-Farbe */
}

/* 13. Breadcrumbs (Brotkrumenleiste) */
.container-breadcrumbs {
  background: transparent !important;
  max-width: 900px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem;
}

/* 14. MOBIL-ANSICHT (Smartphones) */
@media (max-width: 768px) {
  
  /* Logo und Text untereinander stapeln und zentrieren */
  .navbar-brand,
  .header-brand {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 0.5rem;
  }

  /* Logo-Größe für das Smartphone anpassen */
  .navbar-brand img,
  .header-brand img {
    max-height: 100px; 
    display: block !important;
  }

  /* Text auf dem Handy: Zweizeilig und perfekt zentriert */
  .header-brand::after,
  .navbar-brand::after {
    content: "Sternenkinder\A Elterntreff"; 
    white-space: pre-wrap; 
    font-size: 2.3rem; 
    line-height: 1.1;
    text-align: center;
  }
}