/* =========================
   Standard (ALLE Unterseiten)
   ========================= */

body {
  margin: 0;
  font-family: "Comic Neue", cursive, sans-serif;
  background-color: #ffdd99;
  color: #2a2a2a;
}


/* =========================
   NUR Startseite mit Gras
   ========================= */

body.home {
  background: url("../assets/bilder/hintergrund.jpg") center/cover no-repeat fixed;
}


/* =========================
   Fixierter Titelbereich
   ========================= */

.main-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;

  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  color: #2a2a2a;
  text-shadow: 0 2px 10px rgba(255,255,255,0.8);

  z-index: 5000; /* höher als alles andere */
}

/* Hintergrund NUR für Unterseiten */
body:not(.home) .main-title {
  background-color: #ffdd99;
}

/* Gras-Overlay NUR auf Startseite */
body.home .main-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/bilder/hintergrund.jpg") center/cover no-repeat fixed;
}


/* =========================
   Sidebar
   ========================= */

.sidebar {
  position: fixed;
  left: 3rem;
  top: 150px;
  width: 230px;
  z-index: 1500;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-bottom: 0.8rem;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255,221,153,0.85);
  transition: opacity 0.2s ease;
  display: block;
}

.nav a:hover {
  opacity: 0.75;
}

.nav a.active {
  text-decoration: underline;
}


/* =========================
   Submenu
   ========================= */

.has-submenu .submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.4rem;
}

.has-submenu.open .submenu {
  display: block;
}

.submenu li {
  margin-bottom: 0.4rem;
}

.submenu a {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}

.submenu a:hover {
  opacity: 0.7;
}


/* =========================
   Scrollender Inhalt
   ========================= */

.hero-content {
  position: relative;
  z-index: 1;

  margin-left: 48vw;
  padding-top: 160px;   /* größer als Titelhöhe */
  padding-right: 5rem;
  max-width: 520px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 4px rgba(255,221,153,0.65);
}

.hero-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.hero-content h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}


/* =========================
   Disclaimer
   ========================= */

.disclaimer {
  margin-top: 5rem;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
}


/* =========================
   SEO-H1
   ========================= */

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.termine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.termin-card {
  background: linear-gradient(
    135deg,
    rgba(255, 236, 214, 0.9),
    rgba(255, 214, 170, 0.85)
  );

  padding: 1.6rem;
  border-radius: 16px;

  box-shadow: 
    0 8px 25px rgba(180, 120, 70, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.05);

  border: 1px solid rgba(255, 200, 150, 0.4);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.termin-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 30px rgba(180, 120, 70, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

.termin-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #5a3d2b;
}

.termin-card strong {
  color: #7a4f2d;
}
/* =========================
   Footer
   ========================= */

.site-footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-footer a {
  color: #5a3d2b;
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer a:hover {
  text-decoration: underline;
}
/* =========================
   Inhaltsbilder
   ========================= */

.content-image {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0 2rem 0;
  display: block;
}
/* =========================
   Über mich Bilder
   ========================= */

.profile-image-large {
  width: 60%;
  border-radius: 8px;
  margin: 1.5rem 0 2rem 0;
  display: block;
}

.profile-image-small {
  width: 85%;
  max-width: 600px;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
} 
/* =========================
   Mobile Navigation Buttons
   ========================= */

.menu-toggle {
  display: none;
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 6000;
}

.close-menu {
  display: none;
}


/* =========================
   Mobile Optimierung
   ========================= */

@media (max-width: 900px) {

  /* ☰ Button sichtbar */
  .menu-toggle {
    display: block;
  }

  /* Sidebar als Slide-In */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;

    background: rgba(255, 221, 153, 0.85);
    backdrop-filter: blur(6px);

    padding: 140px 1.5rem 2rem 1.5rem;

    box-shadow: 6px 0 20px rgba(0,0,0,0.15);

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    overflow-y: auto;
    z-index: 5500;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* ✕ Button in Sidebar */
  .close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Navigation untereinander */
  .nav {
    display: flex;
    flex-direction: column;
  }

  .nav li {
    margin-bottom: 0.8rem;
  }

  .nav a {
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }

  /* Untermenü eingerückt */
  .has-submenu .submenu {
    padding-left: 1rem;
    margin-top: 0.4rem;
  }

  /* Content volle Breite */
  .hero-content {
    margin-left: 0;
    padding: 160px 1.5rem 2rem 1.5rem;
    max-width: 100%;
  }

  /* Bilder */
  .profile-image-small,
  .profile-image-large {
    width: 85%;
  }

  .content-image {
    width: 100%;
  }
}