/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

:root {
  --hintergrund-hell-rgb: 253, 246, 239;
}
	
@import url("fonts/fonts.css");

/* Globale Schriftarten-Zuweisung */
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  line-height: 1.6;
  color: #2e2b28; /* Fallback, falls Customizer-Farbe nicht greift */
}

h1, h2, h3, h4, h5, h6,
.text-h1, .text-h2, .text-h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  color: #2e2b28; /* Fallback */
}

/* Optional: Überschrift-Größen */
h1, .text-h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  font-weight: 500;
}

h2, .text-h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 500;
}

h3, .text-h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}


/* WordPress Header Styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background-color 1s ease;
  background-color: #ded8ced6; /* Transparent */
  padding: 1rem 0;
}

.site-header.is-sticky {
  background-color: rgba(var(--hintergrund-hell-rgb), 0.95);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.inside-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.site-branding-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-header.is-sticky .site-logo img {
  transition: max-height 0.3s ease;
}

.main-title a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--mystic-sienna);
  transition: color 0.2s ease;
}
.main-title a:hover {
  color: var(--rostrot);
  transition: color 0.2s ease;
}

.header-widget .menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-widget .menu li {
  margin: 0;
  padding: 0;
}

.header-widget .menu a {
  margin-left: 2rem;
  font-weight: 500;
  color: var(--mystic-sienna);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-widget .menu a:hover {
  color: var(--rostrot);
}


/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--rosewood-ash);
  margin: 5px 0;
  transition: 0.3s;
  transform-origin: center;
}

.site-header.is-sticky .mobile-menu-toggle span {
  background: var(--rosewood-ash);
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(var(--hintergrund-hell-rgb), 0.98);
  z-index: 1000;
  padding-top: 120px;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-overlay .menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  list-style: none;
  margin: 0;
}

.mobile-menu-overlay .menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--rosewood-ash);
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0;
}

.mobile-menu-overlay .menu a:hover {
  color: var(--mystic-sienna);
}

/* Body padding to compensate for fixed header */
body {
  padding-top: 0; /* Kein Padding, da Header transparent */
}

#kurs, #module, #stimmen, #faq, #kontakt {
  scroll-margin-top: 100px;
}


/* Accordeon Styling */
.accordeon {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.accordion-title {
  cursor: pointer;
  background: var(--mystic-sienna);
  padding: 20px 20px 0px 60px; /* Mehr Platz links für das Symbol */
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  transition: all 0.3s ease;
  color: var(--celestial-creme);
  z-index: 2; /* Sicherstellen, dass der Title über dem Content liegt */
}

.accordion-title:hover {
  background: #f8f8f8;
  color: var(--rosewood-ash);
}

.accordion-title:last-child {
  border-bottom: none;
}

.accordion-title.active {
  background: #f8f8f8;
  color: var(--rosewood-ash);
  border-bottom: 1px solid #e5e5e5; /* Grenze auch bei aktivem Zustand */
}

/* Plus/Minus Symbol - links positioniert, oben ausgerichtet */
.accordion-title::before {
  content: '+';
  position: absolute;
  left: 20px;
  top: 20px; /* Fest oben positioniert, nicht zentriert */
  font-size: 28px;
  font-weight: 300; /* Dünner für eleganteres Aussehen */
  color: var(--celestial-creme);
  transition: all 0.3s ease;
  z-index: 3; /* Über allem anderen */
  line-height: 1;
  width: 28px;
  text-align: center;
}

.accordion-title:hover::before {
  color: var(--mystic-sienna);
}

.accordion-title.active::before {
  content: '−';
  color: var(--mystic-sienna);
  /* Bleibt an der gleichen Position oben */
}

.accordion-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin: 0;
  color: var(--celestial-creme);
  line-height: 1.4;
  font-weight: 500;
}

.accordion-title:hover h2 {
  color: var(--rosewood-ash);
}

.accordion-title.active h2 {
  color: var(--rosewood-ash);
}

.accordion-content {
  margin-top: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out;
  position: relative;
  z-index: 1; /* Unter dem Title */
  opacity: 0;
  padding: 0 20px 0 20px; /* Kein vertikales Padding im geschlossenen Zustand */
}

.accordion-content p {
  margin: 20px 0; /* Margin für bessere Abstände */
  color: var(--rosewood-ash);
  line-height: 1.6;
  font-size: 1.2rem;
}

/* Wenn aktiv - smooth transition */
.accordion-title.active .accordion-content {
  opacity: 1;
  padding: 10px 20px 20px 60px; /* Content bündig mit Titel - 60px links wie Titel */
  border: none; /* Keine doppelte Grenze */
  background: #f8f8f8; /* Hintergrund wie beim Hovern */
}


.footer-menu{
  color: #5f5b56 !important;
  font-size: 0.9rem;
}

.footer-menu a{
  color: #6d523d !important;
}

.footer-menu a:hover{
  color: #6d523d !important;
}

.site-footer{
  background-color: var(--footer-bg);
}

/* Amelia designs */
.el-dialog,
.am-ec{
  background-color: var(--celestial-creme) !important;
}


/* 5. RESPONSIVE ANPASSUNG FÜR MOBILE */
@media (max-width: 768px) {
  .gb-element-be784fd6 {
    padding-top: 7rem !important;
  }

  /* Alle Header Widgets auf Mobile verstecken */
  .header-widget .widget {
    display: none;
  }
  
  /* Desktop Menu verstecken */
  .header-widget .menu {
    display: none;
  }

  /* Mobile Menu Button zeigen */
  .mobile-menu-toggle {
    display: block;
  }

  /* Header komplett neu layouten auf Mobile */
  .inside-header {
    padding: 0 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: unset !important;
    justify-content: flex-start !important;
    position: relative;
  }

  /* Site Branding Container - nur Logo */
  .site-branding-container {
    display: flex !important;
    flex: none !important;
  }

  /* Header Widget - absolute positioning für Hamburger */
  .header-widget {
    margin-top:0px !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
  }

  /* Logo kleiner auf Mobile */
  .site-logo img {
    max-height: 50px;
  }

  /* Site Branding (Titel) auf Mobile verstecken */
  .site-branding {
    display: none;
  }

  /* Mobile Menu Button Positioning */
  .mobile-menu-toggle {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    z-index: 1002 !important;
  }

  /* Mobile Menu Body Scroll Lock */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Accordeon Mobile Anpassungen */
  .accordion-title {
    padding: 15px 10px 0px 40px !important; /* Weniger Padding auf Mobile */
  }

  .accordion-title::before {
    left: 10px !important; /* Symbol näher am Rand */
    font-size: 24px !important; /* Etwas kleineres Symbol */
  }

  .accordion-title.active .accordion-content {
    padding: 0px 0px 0px 0px !important;
  }

  .accordion-content p {
    font-size: 1.1rem !important; /* Etwas kleinerer Text auf Mobile */
  }
}

/* Footer Links Styling */
.copyright-bar a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.copyright-bar a:hover {
  opacity: 0.7;
}
