/* ==============================
   HUB-Layout - Elegantes & Modernes Design
   ============================== */
/* ALLES ZURÜCKSETZEN - GeneratePress rausschmeißen */
.hub,
body .hub,
.site .hub,
.site-content .hub,
.content-area .hub,
.site-main .hub,
.inside-article .hub,
.entry-content .hub {
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  position: relative !important;
  background: #fff !important;
  clear: both !important;
  margin-bottom: 50px !important;
}
/* Container für den gesamten Hub-Bereich */
.hub {
  padding: 2.5rem 1.5rem !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
  position: relative !important; /* Wichtig für die Positionierung */
}
/* LAYOUT: Sidebar + Content */
.hub-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
/* SIDEBAR - Table of Contents */
.hub-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
  background: #f8fffe;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(64, 166, 138, 0.15);
  z-index: 10; /* Stellt sicher, dass Sidebar über anderen Elementen liegt */
}
.hub-sidebar h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #2c5530 !important;
  margin: 0 0 1.2rem 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #40a68a;
  padding-bottom: 0.5rem;
}
.hub-toc {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hub-toc li {
  margin-bottom: 0.5rem !important;
}
.hub-toc a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #444 !important;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.85rem;
  border-left: 2px solid transparent;
}
.hub-toc a:hover,
.hub-toc a.active {
  background: #40a68a !important;
  color: white !important;
  transform: translateX(2px);
  border-left: 2px solid #2f7e66;
  box-shadow: 0 2px 8px rgba(64, 166, 138, 0.2);
}
/* MAIN CONTENT */
.hub-content {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  z-index: 5; /* Stellt sicher, dass Content über anderen Elementen liegt */
}
/* === Design-Token === */
:root{
  --brand-green: #2e7d57;
  --hero-bg:     #eaf9f5;        /* Pastellgrün */
  --hero-fade-h: 90px;           /* Fade-Höhe top/bottom */
  --hero-fade-a: 0.28;           /* Fade-Intensität 0–1 */
}

/* === Gemeinsamer Hero-Look für Startseite & Hubs === */
.home .hero,
.hub .hero{
  /* 2 Fades + Grundfarbe als Background-Layer (keine Overlays, nichts blockiert Klicks) */
  background:
    linear-gradient(to bottom, rgba(255,255,255,var(--hero-fade-a)), rgba(255,255,255,0) 60%) top    / 100% var(--hero-fade-h) no-repeat,
    linear-gradient(to   top, rgba(255,255,255,var(--hero-fade-a)), rgba(255,255,255,0) 60%) bottom / 100% var(--hero-fade-h) no-repeat,
    var(--hero-bg);
  color:#222;
  text-align:center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  margin: 0;                     /* volle Breite wie auf der Startseite */
  border-radius: 0;
  box-shadow: none;
}

/* Grüner Strich unter der H1 (ohne HTML-Änderung) */
.home .hero .hero__title::after,
.hub  .hero h1::after,
.hub  .hero .hero__title::after{
  content:"";
  display:block;
  width: 140px;
  height: 6px;
  margin: 18px auto 0;
  background: var(--brand-green);
  border-radius: 8px;
}

/* Optional: Hubs minimal enger, damit’s kompakter wirkt */
.hub .hero{
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Wenn du auf Mobile noch softer willst, Fade etwas kürzen */
@media (max-width: 640px){
  :root{ --hero-fade-h: 64px; --hero-fade-a: 0.22; }
}


.hero__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Primärer Button */
.btn--primary {
  background: #2d7d46;
  color: #fff;
}
.btn--primary:hover {
  background: #256a3b;
}

/* Sekundärer Button */
.btn--secondary {
  background: #fff;
  color: #2d7d46;
  border: 2px solid #2d7d46;
}
.btn--secondary:hover {
  background: #e8f5e8;
}


/* SECTION HEADERS - Elegant */
.hub h2 {
  font-size: 1.9rem !important;
  font-weight: 600 !important;
  color: #2c5530 !important;
  margin: 3rem 0 1.8rem 0 !important;
  padding-bottom: 0.8rem !important;
  border-bottom: 2px solid #40a68a !important;
  position: relative;
}
.hub h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #2f7e66;
}
.hub h3 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 2.5rem 0 1.3rem 0 !important;
    padding-left: 0.8rem !important;
    border-left: 3px solid #40a68a !important;
    background: rgba(64, 166, 138, 0.05);
    padding: 0.8rem 0.8rem 0.8rem 1.2rem !important;
    border-radius: 0 6px 6px 0;
    text-align: center;
}
/* LISTEN ZENTRAL, ABER INHALT LESBAR */
.hub ul {
  display: table;                  /* Block auf Inhaltshöhe schrumpfen */
  margin: 1.8rem auto !important;  /* auto => zentriert */
  padding-left: 0 !important;
  list-style: none !important;
  text-align: left;                /* Text selbst bleibt linksbündig */
}

.hub li {
  position: relative !important;
  padding: 0.8rem 1.2rem 0.8rem 2rem !important; /* mehr links für Icon */
  margin-bottom: 0.8rem !important;
  background: rgba(64, 166, 138, 0.05) !important;
  transition: all 0.2s ease !important;
  min-width: 280px;                /* optional: Mindestbreite für Balance */
}

.hub li:hover {
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(64, 166, 138, 0.1) !important;
}

.hub li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0.6rem !important;
  top: 50% !important;
  transform: translateY(-50%);     /* vertikal sauber mittig */
  color: #40a68a !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

/* CARDS & GRIDS - Elegant und modern */
.hub .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  margin: 2.5rem 0 !important;
}
.hub .card {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(64, 166, 138, 0.1) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}
.hub .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #40a68a;
}
.hub .card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 24px rgba(64, 166, 138, 0.15) !important;
}
/* FAQ - Dezentere Gestaltung */
.hub .faq {
  margin: 3rem 0 !important;
}
.hub .faq__item {
  background: #fff !important;
  border-radius: 12px !important;
  margin-bottom: 1.2rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
  overflow: hidden !important;
  border: 1px solid rgba(64, 166, 138, 0.1) !important;
}
.hub .faq__question {
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  background: #f8fffe !important;
  color: #2c5530 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  font-size: 1.1rem !important;
}
.hub .faq__question:hover {
  background: #eef9f6 !important;
}
.hub .faq__question::after {
  content: '+' !important;
  position: absolute !important;
  right: 1.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.5rem !important;
  color: #40a68a !important;
  font-weight: 300 !important;
  transition: all 0.2s ease !important;
}
.hub .faq__item.active .faq__question::after {
  transform: translateY(-50%) rotate(45deg) !important;
}
.hub .faq__answer {
  display: none !important;
  padding: 1.5rem !important;
  color: #555 !important;
  line-height: 1.7 !important;
  font-size: 1rem !important;
}
.hub .faq__item.active .faq__answer {
  display: block !important;
}
/* CTA BOX - Elegant statt übertrieben */
.hub .cta-box {
  background: #40a68a !important;
  color: white !important;
  padding: 3rem 2.5rem !important;
  text-align: center !important;
  margin: 4rem 0 !important;
  border-radius: 18px !important;
  position: relative !important;
  box-shadow: 0 8px 32px rgba(64, 166, 138, 0.25) !important;
  z-index: 1; /* Stellt sicher, dass CTA unter anderen Elementen liegt */
}
.hub .cta-box h3 {
  font-size: 2rem !important;
  margin: 0 0 1.2rem 0 !important;
  color: white !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 2 !important;
}
.hub .cta-box p {
  font-size: 1.2rem !important;
  margin: 0 0 2rem 0 !important;
  color: rgba(255,255,255,0.95) !important;
  position: relative !important;
  z-index: 2 !important;
}
.hub .cta-box a {
  display: inline-block !important;
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  padding: 1rem 2.5rem !important;
  border-radius: 40px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  position: relative !important;
  z-index: 2 !important;
}
.hub .cta-box a:hover {
  background: white !important;
  color: #2c5530 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2) !important;
}
/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 968px) {
  .hub-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .hub-sidebar {
    position: static !important;
    order: 2 !important;
  }
  
  .hub {
    padding: 2rem 1rem !important;
  }
  
  .hub .hero {
    padding: 2.5rem 2rem 2rem !important;
    margin-top: 1.5rem !important; /* Weniger Abstand auf mobilen Geräten */
  }
  
  .hub .hero h1 {
    font-size: 2rem !important;
  }
  
  .hub h2 {
    font-size: 1.7rem !important;
  }
  
  .hub .grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .hub-content {
    padding: 2rem 1.5rem !important;
  }
  
  .hub .hero {
    padding: 2rem 1.5rem 1.5rem !important;
    margin-top: 1rem !important; /* Minimaler Abstand auf kleinen Geräten */
  }
  
  .hub .hero h1 {
    font-size: 1.7rem !important;
  }
  
  .hub .cta-box {
    padding: 2.5rem 2rem !important;
  }
}

.site-header {
    background-color: #f78f9 !important;
}