@charset "utf-8";
/* CSS Document */



/* Grundrahmen */
.main-nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #95B65A;           /* dein Grün */
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  color: #000;
}
.main-nav .nav-container{
  position: relative;             /* für absolut positioniertes Mobile-Menü */
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Optionaler Titel links */
.site-title,
.brand-title{
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Hauptlink-Leiste */
.nav-links{
  display: flex;                  /* Desktop sichtbar */
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li{ position: relative; }
.nav-links > li > a{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: .35rem .25rem;
  border-radius: 4px;
}
.nav-links > li > a:hover,
.nav-links > li > a:focus{ text-decoration: none; }

/* Klarer Tastatur-Fokus */
.nav-links a:focus-visible,
.hamburger:focus-visible,
#menu-toggle:focus-visible{
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dropdowns */
.nav-links .dropdown-menu{
  display: none;                 /* Standard: zu */
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: .5rem 0;
  list-style: none;
  margin: 0;
  z-index: 1300;                 /* sicher über anderem Content */
}
.nav-links .dropdown-menu li a{
  display: block;
  padding: .6rem 1rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
}
.nav-links .dropdown-menu li a:hover,
.nav-links .dropdown-menu li a:focus{ background: #f2f2f2; }

/* Anzeigen, wenn per JS geöffnet */
.nav-links .dropdown.open > .dropdown-menu{ display: block; }

/* Desktop-Fallback: Hover/Focus öffnet auch ohne JS.
   WICHTIG: überschreibt ggf. [hidden] vom Markup */
@media (min-width: 769px){
  .nav-links .dropdown:hover > .dropdown-menu,
  .nav-links .dropdown:focus-within > .dropdown-menu{
    display: block;
  }
  .nav-links .dropdown:hover > .dropdown-menu[hidden],
  .nav-links .dropdown:focus-within > .dropdown-menu[hidden]{
    display: block;
  }
}

/* Falls Pfeile im HTML stehen (▾), hier keine CSS-Pfeile hinzufügen */
.nav-links .dropdown > a::after{
  content: none !important;
  margin-left: 0 !important;
}

/* Hamburger (nur Mobile sichtbar) */
.menu-toggle{ display: none; }     /* Checkbox unsichtbar */

.hamburger{
  display: none;                   /* Desktop ausblenden */
  cursor: pointer;
  width: 2rem; height: 2rem;
  position: relative;
  -webkit-tap-highlight-color: transparent; /* bessere Tap-Haptik */
}
.hamburger span{
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.hamburger span:nth-child(1){ top: .4rem; }
.hamburger span:nth-child(2){ top: .95rem; }
.hamburger span:nth-child(3){ top: 1.5rem; }

/* animiertes X */
.menu-toggle:checked + .hamburger span:nth-child(1){
  top: .95rem; transform: rotate(45deg);
}
.menu-toggle:checked + .hamburger span:nth-child(2){
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3){
  top: .95rem; transform: rotate(-45deg);
}

/* Mobile Layout */
@media (max-width: 768px){
  .hamburger{ display: inline-block; }
  .main-nav .nav-container{ justify-content: space-between; }

  .nav-links{
    display: none;                 /* per Checkbox steuern */
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 0px);
    background: #fff;
    flex-direction: column;
    padding: .5rem 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 1200;
  }
  .menu-toggle:checked ~ .nav-links{ display: flex; }

  .nav-links > li{ width: 100%; }
  .nav-links > li > a{
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 0;
    color: #111;
  }

  /* Mobile Dropdowns: untereinander */
  .nav-links .dropdown-menu{
    position: static;
    display: none;
    box-shadow: none;
    background: #f9f9f9;
    margin-left: .5rem;
    border-radius: 0;
  }
  /* Sichtbarkeit wird über .open Klasse + [hidden] geregelt */
  .nav-links .dropdown.open > .dropdown-menu{
    display: block !important;
  }
  .nav-links .dropdown-menu[hidden]{
    display: none !important;
  }
}

/* Logo unter der Nav (optional) */
.logo-container{
  text-align: center;
  padding: .75rem 0 .25rem;
}
.logo-container img{
  max-width: 160px;
  height: auto;
}

/* Farben der Links nicht verändern (du nutzt Emojis) */
.main-nav a{ color: inherit; }
.main-nav a:hover{ color: inherit; }

/* Bewegungs-Reduktion respektieren */
@media (prefers-reduced-motion: reduce){
  .hamburger span{ transition: none; }
}

/* Desktop-Hover soll auch dann zeigen, wenn das Submenü das Attribut [hidden] trägt */
@media (min-width: 769px){
  .main-nav .nav-links > li.dropdown:hover > ul.dropdown-menu,
  .main-nav .nav-links > li.dropdown:focus-within > ul.dropdown-menu,
  .main-nav .nav-links > li.dropdown:hover > ul.dropdown-menu[hidden],
  .main-nav .nav-links > li.dropdown:focus-within > ul.dropdown-menu[hidden]{
    display: block !important;
  }
}
@media (max-width: 768px){
  .nav-links .dropdown.open > .dropdown-menu{
    display: block !important;
    visibility: visible !important;
  }
  .nav-links .dropdown-menu[hidden]{
    display: none !important;
  }
}

.nav-links > li.dropdown { position: relative; }
.nav-links > li.dropdown > .dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;      /* keine Lücke zwischen Trigger und Menü */
}


/************************************************************
 * SECTION B — ALLE ANDEREN REGELN AUS DEINEM SNIPPET
 * (nicht-Menü; bewusst getrennt, damit nichts verloren geht)
 ************************************************************/

/* Brand-Title mobil sichtbar (aus deinem ersten Block) */
@media (max-width: 768px){
  .brand-title{
    display: block;
    flex: 1;
    text-align: left;
    font-weight: bold;
    font-size: 1.2em;
    color: #2a2a2a;
    padding: 0.5em 0;
  }
}

/* Logo unterhalb des Menüs – alternative Variante aus erstem Block
   (größer am Desktop). Diese überschreibt NICHT Section A, 
   außer du willst sie bevorzugen: dann !important setzen. */
.logo-container{
  text-align: center;
  padding: 1em;
}
.logo-container img{
  max-width: 100%;
  width: 300px;      /* Desktop-Breite aus deinem ersten Block */
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Neuer Themen-Footer oberhalb vom bisherigen Footer */
.hintergundbild-footer{
	
  background-image: url('/images/hintergrund-footer.jpg');
    background-size: cover;

  background-repeat: no-repeat;
}
.info-footer {
  background-color:rgba(150, 214, 73, 0.80); 

  padding: 40px 20px 10px;
  border-top: 4px solid #2A6B3F;
  position: relative;
  z-index: 1;
}

.footer-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-column h4 {
  font-size: 1.3em;
  margin-bottom: 0.75em;
  font-weight:bold;
  color: #2a2a2a;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5em;
  
}

.footer-column a {
  text-decoration: none;
  color: black;
  transition: color 0.3s;
  font-size:1em;
}

.footer-column a:hover {
  color: #666;
}


/* Responsive Anpassung */
@media (max-width: 768px) {
  .footer-column a {

  font-size:1.2em;
}
.footer-column h4{
 
  font-size:1.3em;
}

  .footer-column {
    margin-bottom: 20px;
  }
  .hintergundbild-footer{
	
 
  background-position: center;
 
}
.info-footer{ background-color:#ffffffd0 !important;}
}

/* ========================================== */
/* ðŸ‘£ Footer-Stil (unten auf der Seite)       */
/* ========================================== */

.main-footer {
  background-color: #ffffffd0;
  color: #2a2a2a;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  padding-bottom: 0.8em;
  padding-right:0.8em;
  padding-left:0.8em;
  padding-top:0.1;
  border-top: 4px solid #2A6B3F;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ðŸ”— Footer-Navigationslinks */
.footer-links {
  margin: 1em 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
}

.footer-links a {
  color: #2a2a2a;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #666;
}

/* ðŸ“ Copyright-Text im Footer */
.footer-copy {
  margin-top: 1em;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
}

/*Desktop (ab 992px Breite) -> Titel unsichtbar */
@media (min-width: 992px) {
  .site-title {
    display: none;
  }
}

/*Auf kleineren Bildschirmen bleibt er sichtbar */
@media (max-width: 991px) {
  .site-title {
    display: block;
  }
}

