/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child Theme für GeneratePress
 Author:       hansjensmartin
 Template:     generatepress
 Version:      1.3
*/

/* =========================================
   GLOBALE EINSTELLUNGEN
========================================= */
html {
  overflow-y: scroll; /* Scrollbar stabil halten */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* -----------------------------------------
   Wrapper & Basis
----------------------------------------- */
.gartenverein-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


/* =========================================
   STICKY HEADER (fixiert beim Scrollen)
========================================= */
.gv-header {
  /* Position */
  position: sticky;
  top: 0;
  z-index: 999;
  
  /* Styling */
  background-color: #2E4F3A;
  text-align: center;
  padding: 2rem 2rem 1rem;
  width: 100%;
  
  /* Schatten beim Scrollen */
  box-shadow: 0 2px 10px rgba(0,0,0,0);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

/* Schatten wenn gescrollt (wird per JS hinzugefügt) */
.gv-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 1rem 2rem 0.5rem; /* Kompakter beim Scrollen */
}

.gv-header h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  transition: font-size 0.3s ease;
}

.gv-header.scrolled h1 {
  font-size: 2rem; /* Kleiner beim Scrollen */
}

.gv-header h2 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: font-size 0.3s ease, opacity 0.3s ease;
}

.gv-header.scrolled h2 {
  font-size: 1rem;
  opacity: 0.9;
}

/* =========================================
   DESKTOP MENÜ (im Sticky Header)
========================================= */
.gv-menu-frame {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.05);
  transition: padding 0.3s ease;
}

.gv-header.scrolled .gv-menu-frame {
  padding: 0.3rem 0.8rem; /* Kompakter */
}

.gv-menu-frame nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gv-menu-frame nav ul li {
  margin: 0;
}

.gv-menu-frame nav a {
  color: #FFFFFF;
  font-weight: 600;
  margin: 0.3rem 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  position: relative;
}

.gv-menu-frame nav a:hover,
.gv-menu-frame nav li.current-menu-item a,
.gv-menu-frame nav li.current_page_item a {
  background-color: #FFFFFF;
  color: #1F6F54;
}

/* Underline-Effekt */
.gv-menu-frame nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C9A227;
  transition: width 0.3s ease;
}

.gv-menu-frame nav a:hover::after,
.gv-menu-frame nav li.current-menu-item a::after,
.gv-menu-frame nav li.current_page_item a::after {
  width: 100%;
}

/* =========================================
   MOBILE ANPASSUNGEN
========================================= */
@media(max-width: 768px) {
  /* Sticky Header auf Mobile */
  .gv-header {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .gv-header h1 {
    font-size: 1.8rem;
  }
  
  .gv-header h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  /* Custom-Menü verstecken */
  .gv-menu-frame {
    display: none !important;
  }
  
  /* GP-Menü wird per JS in Header verschoben */
  .gv-header .main-navigation {
    display: block !important;
    width: 100%;
    background-color: transparent;
    margin-top: 0;
  }
  
  .main-navigation:not(.menu-moved) {
    display: none !important;
  }
  
  /* GP Hamburger-Button */
  .main-navigation .menu-toggle {
    background: rgba(255, 255, 255, 0.95) !important; /* Weißer Hintergrund */
    color: #1F6F54 !important; /* Grüner Text */
    border: none; /* Kein Rand */
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto 0.5rem;
    display: block;
    width: 90%;
    max-width: 280px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Leichter Schatten */
  }
  
  .main-navigation .menu-toggle:hover,
  .main-navigation .menu-toggle:focus {
    background: #C9A227 !important; /* Gelb beim Hover */
    color: #FFFFFF !important; /* Weiß beim Hover */
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* GP-Menü Icon */
  .main-navigation .menu-toggle svg,
  .main-navigation .menu-toggle .gp-icon {
    fill: #1F6F54 !important; /* Icon grün */
  }
  
  .main-navigation .menu-toggle:hover svg,
  .main-navigation .menu-toggle:hover .gp-icon {
    fill: #FFFFFF !important; /* Icon weiß beim Hover */
  }
  
  /* GP-Menü geöffnet */
  .main-navigation.toggled .main-nav {
    display: block !important;
  }
  
  .main-navigation .main-nav ul {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95); /* Weiß statt Grün */
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Schatten für bessere Sichtbarkeit */
  }
  
  .main-navigation .main-nav ul li {
    margin: 0;
  }
  
  .main-navigation .main-nav ul li a {
    color: #1F6F54; /* Grüner Text auf weißem Hintergrund */
    padding: 0.75rem 1rem;
    display: block;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
  }
  
  .main-navigation .main-nav ul li a:hover,
  .main-navigation .main-nav ul li.current-menu-item a {
    background-color: #C9A227; /* Gelber Hintergrund beim Hover */
    color: #FFFFFF; /* Weißer Text beim Hover */
  }
}

/* Desktop: GP-Menü ausblenden */
@media(min-width: 769px) {
  .main-navigation {
    display: none !important;
  }
}

/* =========================================
   HERO SECTION - FULLSCREEN
========================================= */
.gartenverein-wrapper .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  text-align: left;
  
  /* Fullscreen */
  min-height: 100vh;
  padding: 0 2rem 6rem 2rem;
  
  /* Hintergrundbild */
  background-image: url('https://gartenverein.kassasecure.com/wp-content/uploads/2025/12/hintergrund.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #6FAE6A; /* Fallback */
  
  position: relative;
  overflow: hidden;
}

.gartenverein-wrapper .hero .overlay {
  background-color: rgba(255,255,255,0.92);
  padding: 3rem 4rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  
  max-width: 600px;
  width: 90%;
  margin-left: 5%;
  margin-top: 10vh;
}
.gartenverein-wrapper .hero h2 {
  color: #1F6F54;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.gartenverein-wrapper .hero p {
  color: #242424;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.gartenverein-wrapper .hero button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  max-width: 300px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  background-color: #C9A227;
  border: none;
  border-radius: 4px;
  color: #242424;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.gartenverein-wrapper .hero button:hover {
  background-color: #7A5A3A;
  color: #F7F7F4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Hero Mobile */
@media(max-width: 768px) {
  .gartenverein-wrapper .hero {
    min-height: 80vh;
    padding: 2rem 1rem 4rem;
    background-attachment: scroll;
    align-items: center;
    text-align: center;
  }
  
  .gartenverein-wrapper .hero .overlay {
    max-width: 100%;
    width: 95%;
    padding: 2rem 1.5rem;
    margin-left: 2.5%;
    margin-top: 5vh;
  }
  .gartenverein-wrapper .hero h2 {
    font-size: 1.6rem;
  }
  
  .gartenverein-wrapper .hero p {
    font-size: 1rem;
  }
}

/* =========================================
   SECTIONS
========================================= */
.gartenverein-wrapper section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 4rem;
  background-color: #F7F7F4;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gartenverein-wrapper section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gartenverein-wrapper section.alt {
  background-color: #EFEFEA;
}

.gartenverein-wrapper section h3 {
  color: #1F6F54;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gartenverein-wrapper section h3::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background-color: #C9A227;
  margin-top: 6px;
  border-radius: 2px;
  animation: slide-in 0.6s ease-out 0.3s backwards;
}

.gartenverein-wrapper section p {
  color: #242424;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.gartenverein-wrapper .page-content {
  width: 100%;
}

/* Sections Mobile */
@media(max-width: 768px) {
  .gartenverein-wrapper section {
    width: 90%;
    padding: 2rem 1rem;
  }
  
  .gartenverein-wrapper section h3 {
    font-size: 1.5rem;
  }
}

/* =========================================
   BUTTONS
========================================= */
.gartenverein-wrapper button,
.gartenverein-wrapper .btn {
  display: block;
  margin: 2rem auto;
  max-width: 300px;
  min-width: 250px;
  padding: 1rem 2rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gartenverein-wrapper button:hover,
.gartenverein-wrapper .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gartenverein-wrapper .btn-green {
  background-color: #1F6F54;
  color: #F7F7F4;
}

.gartenverein-wrapper .btn-green:hover {
  background-color: #7A5A3A;
}

.gartenverein-wrapper .btn-yellow {
  background-color: #C9A227;
  color: #242424;
}

.gartenverein-wrapper .btn-yellow:hover {
  background-color: #7A5A3A;
  color: #F7F7F4;
}

/* =========================================
   FOOTER
========================================= */
.gartenverein-wrapper footer {
  background-color: #2E4F3A;
  color: #F7F7F4;
  padding: 3rem;
  text-align: center;
  width: 100%;
}

.gartenverein-wrapper footer p {
  color: #FFFFFF; /* Weiß */
}

.gartenverein-wrapper footer a {
  color: #FFFFFF; /* Links auch weiß */
  text-decoration: none;
  transition: color 0.3s;
}

.gartenverein-wrapper footer a:hover {
  color: #C9A227; /* Hover: Gelb */
}

/* =========================================
   ANIMATIONEN
========================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

.gartenverein-wrapper img {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.gartenverein-wrapper img.loaded {
  opacity: 1;
}

/* =========================================
   ACCESSIBILITY
========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
/* =========================================
   Section mit Bild rechts (CSS Background)
========================================= */

.section-split {
  display: flex;
  align-items: center;
  min-height: 400px;
  background-repeat: no-repeat;

  background-size: 40%;
  background-position: calc(100% + 4rem) center;
  padding-right: 0;
}

/* Text links */
.section-split .section-content {
  width: 40%;
  padding-right: 10rem;
}

/* Hintergrundbild */
.bg-verein {
  background-image: url("https://gartenverein.kassasecure.com/wp-content/uploads/2025/12/verein.png");
}

/* -----------------------------------------
   Mobile: Bild oben, Text unten
----------------------------------------- */
@media (max-width: 768px) {

  /* Desktop-Hintergrund komplett aus */
  .section-split {
    display: block !important;
    background: none !important;
    padding: 0 !important;
  }

  /* Mobile Bild – ERZWUNGEN sichtbar */
  .section-image-mobile {
    display: block !important;
    width: 100%;
    height: 240px; /* wichtig */
    background-image: url("https://gartenverein.kassasecure.com/wp-content/uploads/2025/12/verein.png");
    background-size: cover;
    background-position: center;
  }

  /* Text darunter, volle Breite */
  .section-split .section-content {
    width: 100% !important;
    padding: 2rem !important;
  }
}

