/* === Obststadt.at — Style === */
:root {
  --green-dark: #3d5a2a;
  --green: #4c653b;
  --green-light: #84D000;
  --green-pale: #e8f5e0;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #666;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --accent: #84D000;
  --orange: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --card-padding: 1.5rem;
  --max-width: 1200px;
  --font: 'Poppins', sans-serif;
}

[data-theme="dark"] {
  --white: #1a1e1a;
  --black: #e8e8e8;
  --gray: #aaa;
  --gray-light: #242824;
  --gray-border: #333;
  --green-pale: #1e2e1a;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
ul, ol { padding-left: 1.5rem; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-green { background: var(--green); color: var(--white); }
.section-green a { color: var(--green-light); }
.section-pale { background: var(--green-pale); }
.section-gray { background: var(--gray-light); }
.text-center { text-align: center; }

/* === Navigation === */
.nav-placeholder { height: 70px; }
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(76, 101, 59, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(76, 101, 59, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; color: #fff; font-weight: 700; font-size: 1.2rem; }
.nav-logo img { height: 45px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 0.25rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.15); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-transform: none;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Theme Toggle in Nav */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,90,42,0.7) 0%, rgba(61,90,42,0.5) 100%);
  z-index: -1;
}
.hero-content { position: relative; z-index: 1; padding: 2rem; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.15rem; max-width: 650px; margin: 0 auto; opacity: 0.95; }
.hero-logo { height: 120px; width: auto; margin: 0 auto 1.5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.75rem; color: var(--green); }
.card p { color: var(--gray); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-green { background: var(--green-light); color: var(--green-dark); }
.btn-green:hover { background: #6fb800; color: var(--green-dark); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-pale); color: var(--green); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* === Video Responsive === */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

/* === Förderer-Logos === */
.foerderer-bar {
  background: var(--green-light);
  padding: 1.5rem 0;
}
.foerderer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.foerderer-grid img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.foerderer-grid img:hover { filter: grayscale(0); }

/* === Standorte === */
.standorte-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-light);
}
.standorte-box h3 { color: var(--green); margin-bottom: 1rem; }
.standorte-box a { display: block; padding: 0.3rem 0; }

/* === Calendar Embed === */
.calendar-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calendar-embed iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* === Content Pages === */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}
.content-main h1 { margin-bottom: 1.5rem; color: var(--green-dark); }
.content-main h2 { margin: 2rem 0 1rem; color: var(--green); }
.content-main p { margin-bottom: 1rem; text-align: justify; }
.content-sidebar .card { margin-bottom: 1.5rem; }

/* === Spenden Box === */
.konto-box {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.konto-box h3 { color: #fff; margin-bottom: 1rem; }
.konto-box .iban {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.15);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
}

/* === Steps / Mitmachen === */
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  margin-bottom: 1rem;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step-list li strong { display: block; color: var(--green-dark); margin-bottom: 0.25rem; }

/* === Footer === */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.9); }
footer a:hover { color: var(--green-light); }
.footer-links { margin-top: 0.75rem; }
.footer-links a { margin: 0 0.5rem; }
.footer-powered {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* === Cookie Banner === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 9998;
  font-size: 0.85rem;
}
.cookie-banner.show { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner a { color: var(--green-light); }
.cookie-btn {
  background: var(--green-light);
  color: var(--green-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* === Chain / Flow === */
.flow-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 2rem 0;
}
.flow-chain .arrow { color: var(--green-light); }

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === Message Box === */
.msg-box {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.msg-box-red { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.msg-box-teal { background: #f0fdfa; border-left: 4px solid #14b8a6; color: #115e59; }
.msg-box-orange { background: #fff7ed; border-left: 4px solid var(--orange); color: #9a3412; }
[data-theme="dark"] .msg-box-red { background: #2a1a1a; color: #fca5a5; }
[data-theme="dark"] .msg-box-teal { background: #1a2a28; color: #5eead4; }
[data-theme="dark"] .msg-box-orange { background: #2a2010; color: #fbbf24; }

/* === Team / Portrait === */
.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 1.5rem 1rem 0;
  border: 3px solid var(--green-light);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--green);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { padding: 0.75rem 1rem; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 45vh; }
  .hero-logo { height: 80px; }
  .section { padding: 2.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .foerderer-grid img { height: 45px; }
}

@media (max-width: 480px) {
  .hero { min-height: 35vh; }
  .flow-chain { font-size: 1rem; }
}
