/* 
  ===========================================
  Demokratie wächst - Stylesheet
  ===========================================
*/

:root {
  --primary: #15b964;       /* Vibrant green */
  --primary-dark: #0f8f4a;
  --bg-dark: #ffffff;       /* Now white */
  --bg-darker: #f5f8f6;     /* Alternate background */
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-main: #2a332f;     /* Dark text */
  --text-muted: #5c6b63;
  --white: #0a110d;         /* Invert for headings/titles to keep names intact mostly */
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark); /* which is #ffffff now */
  color: var(--text-main);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white); /* which is #0a110d */
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 6rem 0;
}

.max-width-md {
  max-width: 800px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}
.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85); /* Light header */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  height: 50px;
  width: auto;
  /* Remove drop shadow for light theme or change to dark */
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-main);
  font-weight: 400;
  font-size: 1rem;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white); /* #0a110d */
  transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  position: relative;
  padding: 100px 0 48px;
  background: radial-gradient(circle at center top, rgba(21, 185, 100, 0.15) 0%, #ffffff 70%);
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Decorative Orbs */
.hero-section::before, .hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.hero-section::before {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(21, 185, 100, 0.2);
}

.hero-section::after {
  bottom: -50px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: rgba(9, 143, 74, 0.15);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: none; /* remove for white theme */
}

.hero-title .highlight {
  display: block;
  font-size: 2rem;
  color: var(--primary-dark);
  font-family: var(--font-main);
  font-weight: 300;
  font-style: italic;
  margin-top: 10px;
}

.hero-lead {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-boxes .glass-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transform: translateY(0);
  transition: var(--transition);
}

.hero-boxes .glass-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(21, 185, 100, 0.1);
}

.glass-box p {
  margin-bottom: 1rem;
}

.glass-box p:last-child {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

/* =========================================
   Layout Patterns
   ========================================= */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.alternate-bg {
  background-color: var(--bg-darker);
}

.card {
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.01) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  transition: var(--transition);
}

.card:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.01) 100%);
  border-color: rgba(21, 185, 100, 0.3);
}

/* =========================================
   Interactive Tree Section
   ========================================= */
.interactive-tree-area {
  margin-top: 3rem;
  padding: 2rem 0;
}

.tree-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tree-graphic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.svg-baum {
  width: 100%;
  max-width: 500px;
  height: auto;
  /* drop shadow removed or lighter for white theme */
}

.tree-interact-container {
  display: flex;
  flex-direction: column;
}

.interact-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.interact-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.tree-elements-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.elements-column {
  flex: 1;
}

.elements-column h4 {
  color: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.element-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hover-trigger {
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.hover-trigger::before {
  content: '→';
  color: var(--primary);
  margin-right: 10px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.hover-trigger:hover, .hover-trigger.active {
  background: rgba(21, 185, 100, 0.1);
  border-color: rgba(21, 185, 100, 0.4);
  color: var(--white);
  transform: translateX(5px);
}

.hover-trigger:hover::before, .hover-trigger.active::before {
  opacity: 1;
  transform: translateX(0);
}

/* Detail Card */
.detail-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(21, 185, 100, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), inset 0 0 20px rgba(21, 185, 100, 0.05);
  margin-top: 1rem;
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  min-height: 120px;
}

.detail-card.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.card-icon {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 2.5rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 5px;
  border: 1px solid rgba(21, 185, 100, 0.3);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#detail-title {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

#detail-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* =========================================
   Termine Section
   ========================================= */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.1);
}

.timeline li {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(21,185,100,0.5);
}

.event-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.event-card-link {
  color: inherit;
  text-decoration: none;
}

.event-card:hover {
  background: #ffffff;
  border-color: rgba(21, 185, 100, 0.3);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.event-date {
  background: rgba(0,0,0,0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.event-date .month-year {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 5px 0;
}

.event-date .time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-date.planned {
  background: rgba(21, 185, 100, 0.1);
}

.event-date.planned .icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.event-details {
  padding: 1.5rem;
}

.event-details h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.event-details .location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-cards-more {
  margin-top: 1rem;
}

.all-posts-link {
  display: inline-block;
  font-weight: 600;
}

.all-posts-section {
  padding-top: 9rem;
}

.all-posts-header h1 {
  font-size: 3rem;
}

.all-posts-empty {
  margin-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--bg-darker);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-mach-mit p {
  margin-bottom: 1rem;
}

.footer-logo {
  margin: 1.5rem 0;
}

.footer-logo img {
  height: 60px;
  filter: grayscale(100%) opacity(0.8);
  transition: var(--transition);
}

.footer-logo img:hover {
  filter: grayscale(0%) opacity(1);
}

.footer-legal ul {
  list-style: none;
}

.footer-legal ul li {
  margin-bottom: 0.5rem;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--primary);
}

.copyright {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .tree-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 86px 0 32px;
  }

  .all-posts-section {
    padding-top: 7rem;
  }

  .all-posts-header h1 {
    font-size: 2.2rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tree-elements-grid {
    flex-direction: column;
  }
  
  .hero-title .highlight {
    font-size: 1.5rem;
  }
  
  .hero-boxes .glass-box {
    padding: 1.5rem;
  }
}
