/* Grundlegende Styles & Apple-Ästhetik */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Apple-ähnliche Schriftarten */
  background-color: #f8f9fa; /* Heller, sauberer Hintergrund */
  color: #1d1d1f; /* Dunkler Text für guten Kontrast (Apple Schwarz) */
  -webkit-font-smoothing: antialiased; /* Sanftere Schriftart-Darstellung */
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Container */
.container-max {
  max-width: 1100px; /* Etwas breiter für modernes Layout */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600; /* Etwas fetter für Überschriften */
  margin-bottom: 1rem;
  color: #1d1d1f;
}

h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1.2rem; }
h3 { font-size: 1.6rem; line-height: 1.4; margin-bottom: 1rem; }
p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #515154; /* Apple Grau für Text */
}

a {
  color: #b91c1c; /* Feuerwehrrot als Linkfarbe */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #991b1b; /* Dunkleres Rot beim Hover */
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background-color: rgba(185, 28, 28, 0.9); /* Feuerwehrrot mit leichter Transparenz */
  backdrop-filter: blur(10px); /* Hintergrund-Blur für Apple-Effekt */
  -webkit-backdrop-filter: blur(10px);
  position: sticky; /* Header bleibt oben beim Scrollen */
  top: 0;
  z-index: 100; /* Header über anderen Elementen */
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .container-max {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.3s ease;
}
.brand-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Desktop Navigation */
nav.desktop-nav {
  display: none; /* Standardmäßig versteckt */
}
@media (min-width: 768px) { /* md Breakpoint */
  nav.desktop-nav {
    display: flex;
    gap: 0.5rem; /* Abstand zwischen Links */
  }
}

.nav-link {
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px; /* Leicht abgerundete Ecken */
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

/* Mobile Menu Button */
#menu-toggle {
  color: #fff;
  font-size: 1.5rem; /* Größeres Icon */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease; /* Animation für Icon-Wechsel */
}

#menu-toggle i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menü Styles */
#mobile-menu {
  position: absolute;
  top: 100%; /* Direkt unter dem Header */
  left: 0;
  width: 100%;
  background-color: rgba(185, 28, 28, 0.95); /* Fast opak für Lesbarkeit */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 90; /* Unter dem Header, aber über dem Inhalt */
  max-height: 0; /* Startet geschlossen */
  overflow: hidden;
  transition: max-height 0.5s ease-out; /* Sanfte Slide-Down-Animation */
}

#mobile-menu.open {
  max-height: 500px; /* Genug Höhe für Links (anpassen bei Bedarf) */
}

#mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

#mobile-menu a:last-child {
  border-bottom: none;
}

#mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1rem; /* Mehr vertikaler Platz */
  text-align: center;
  background-color: #ffffff; /* Heller Hintergrund für Hero */
  /* Optional: Hintergrundbild mit Overlay
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  color: #fff; /* Textfarbe anpassen, wenn Bild verwendet wird */
  */
}

.hero-section h2 {
  font-size: 3rem; /* Größere Überschrift */
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f; /* Oder #fff bei dunklem Hintergrund */
}

.hero-section p {
  font-size: 1.2rem; /* Größerer Text */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #515154; /* Oder #eee bei dunklem Hintergrund */
}

/* Content Sections */
.content-section {
  padding: 3rem 1rem;
}

/* Card Style (Beispiel für "Aktuelles") */
.card {
  background-color: #fff;
  border-radius: 12px; /* Deutlichere Rundung */
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Weicherer Schatten */
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px); /* Leichter Anhebe-Effekt */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Footer */
footer {
  background-color: #444; /* Dunkleres Grau für Footer */
  color: #f5f5f7; /* Helles Grau für Text (Apple Silber) */
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

footer .container-max {
  max-width: 1100px;
  margin: 0 auto;
}

footer p {
  color: #d2d2d7; /* Helleres Grau */
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Mehr Abstand */
  flex-wrap: wrap;
}

.footer-link {
  color: #f5f5f7;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  border-color: #fff; /* Klare Linie beim Hover */
  text-decoration: none;
}

/* Instagram Section im Footer */
.instagram-section {
  margin-bottom: 2rem;
}

.instagram-section img {
  width: 3rem; /* Etwas kleiner */
  height: 3rem;
  margin: 0 auto 0.8rem auto;
  transition: transform 0.3s ease;
}

.instagram-section img:hover {
  transform: scale(1.15); /* Stärkerer Zoom-Effekt */
}

.instagram-section p {
  font-size: 1rem;
  color: #f5f5f7;
}

/* Spezifische Seiteninhalte (z.B. Datenschutz, Impressum) */
.legal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.legal-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  margin-bottom: 1rem;
}

/* Event Logo Banner (Startseite) */
.event-logo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 249, 250, 0.9); /* Heller Overlay */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  opacity: 1; /* Start sichtbar */
  visibility: visible; /* Start sichtbar */
  transition: opacity 1s ease-out 1s, visibility 1s ease-out 1s; 
}

.event-logo-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.event-logo {
  max-width: 80%; /* Verhindert, dass es zu breit wird */
  width: 300px; /* Feste Breite als Basis */
  height: auto;
  display: block;
  margin-bottom: 1rem;
  /* Start-Animation (optional, Skalierung kann hier bleiben oder entfernt werden) */
  transform: scale(1.1);
  animation: pulseLogo 2s infinite ease-in-out alternate; /* Sanftes Pulsieren */
}

@keyframes pulseLogo {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.event-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1d1d1f;
  max-width: 90%;
}

/* Animations für Elemente beim Scrollen (Beispiel) */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}