:root {
  --green: #1b5e20;
  --light-green: #4caf50;
  --text: #fff;
}

/* Header */
.main-header {
  background-color: var(--green);
  color: var(--text);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.site-title a {
  color: var(--text);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

/* Desktop */
/* ========== DESKTOP NAVIGATION ========== */

/* Container */
.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
}

/* Hauptlinks */
.desktop-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background-color: var(--light-green);
}

/* ===== Submenus (Dropdowns) ===== */

/* Eltern-LI für Submenu */
.has-submenu {
  position: relative; /* Wichtig! Orientierungspunkt für das Dropdown */
}

/* Dropdown selbst */
.submenu-desktop {
  display: none;
  position: absolute;
  top: 100%;              /* direkt unter dem Hauptlink */
  left: 0;                /* linksbündig unter dem Parent */
  margin-top: 0.3rem;
  background: var(--green);
  border-radius: 6px;
  min-width: 220px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

/* Sichtbar beim Hover */
.has-submenu:hover > .submenu-desktop {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Links im Dropdown */
.submenu-desktop a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.25s ease;
  border-radius: 4px;
}

.submenu-desktop a:hover {
  background-color: rgba(76, 175, 80, 0.85);
}

/* ===== Mehrstufige Submenus (optional) ===== */
.submenu-desktop .has-submenu {
  position: relative;
}

.submenu-desktop .submenu-desktop {
  top: 0;
  left: 100%;
  margin-left: 0.3rem;
  border-radius: 6px;
}

/* Desktop sichtbar, Mobile ausgeblendet */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
}
/* Hamburger */
.hamburger-wrapper {
  display: none;
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  z-index: 600;
}
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-btn .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Sidebar – FIXED VERSION */
.sidebar {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  transform: translateX(100%);
  width: fit-content;
  max-width: 90vw;
  min-width: 220px;
  background-color: rgba(27, 94, 32, 0.97);
  backdrop-filter: blur(6px);
  border-radius: 0 0 14px 14px;
  box-shadow: 4px 6px 14px rgba(0,0,0,0.25);
  padding: 0;
  opacity: 0;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 999;
}
.sidebar.open {
  transform: translateX(0);
  opacity: 1;
  padding: 1rem 1.2rem;
}

/* Menülinks */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li { margin-bottom: 0.4rem; }

.menu-list a,
.submenu-toggle {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background-color: rgba(0,0,0,0.25);
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  transition: background-color 0.25s ease;
  cursor: pointer;
  text-align: left;
}
.menu-list a:hover,
.submenu-toggle:hover {
  background-color: rgba(76,175,80,0.85);
}

.submenu {
  display: none;
  margin-top: 0.3rem;
  padding-left: 0.8rem;
  width: fit-content;
  white-space: nowrap;
}
.submenu.open { display: block; }

.arrow {
  float: right;
  transition: transform 0.3s ease;
}
.arrow.rotated { transform: rotate(90deg); }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .hamburger-wrapper { display: block; }
}
@media (min-width: 1025px) {
  .sidebar { display: none !important; }
}ansition: background-color 0.25s ease;
  cursor: pointer;
  text-align: left;
}

.menu-list a:hover,
.submenu-toggle:hover {
  background-color: rgba(76, 175, 80, 0.85);
}

/* Untermenüs (mobil) */
.submenu {
  display: none;
  margin-top: 0.3rem;
  padding-left: 0.8rem;
  width: fit-content;     /* Breite an Text anpassen */
  max-width: 95%;
  white-space: nowrap;
}

.submenu.open {
  display: block;
}

/* Pfeil-Drehung */
.arrow {
  float: right;
  transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(90deg);
}

/* ================================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger-wrapper {
    display: block;
  }
}

@media (min-width: 1025px) {
  .hamburger-wrapper {
    display: none !important;
  }
  .sidebar {
    display: none !important;
    max-height: 0 !important;
    padding: 0 !important;
  }
}h: 1025px) {
  .hamburger-wrapper {
    display: none !important;
  }
  .sidebar {
    display: none !important;
    max-height: 0 !important;
    padding: 0 !important;
  }
}
.arrow {
  float: right;
  transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(90deg);
}

/* ================================
   RESPONSIVE BREAKPOINTS
================================ */

/* Mobil (Standard) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger-wrapper {
    display: block;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .hamburger-wrapper {
    display: none !important;
  }
  .sidebar {
    display: none !important;
    max-height: 0 !important;
    padding: 0 !important;
  }
}
.h1-style {
    font-size: 2.5rem;       /* Größe wie dein bisheriges H1 */
    font-weight: 700;        /* Fett */
    line-height: 1.2;        /* Zeilenhöhe */
    color: var(--green-dark);/* Farbe */
    margin-bottom: 1rem;     /* Abstand nach unten */
    display: block;           /* wie Blockelement */
}