/* ===================================
   URBAN GARDENING & HOCHBEETE WEBSITE
   ================================== */

/* DESIGN TOKENS - Spécifizierte Farbpalette */
:root {
  --tannengruen: #2E5D4A;
  --moosgruen: #497A5D;
  --sand: #E7D8B1;
  --graphit: #1A2230;
  --hellgrau: #A7B0BD;
  
  /* Typografie */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3.1rem;    /* 49.6px */
  
  /* Spacing */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Schatten */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.24);
  
  /* Transitions */
  --transition-fast: 160ms ease;
  --transition-normal: 220ms ease;
  --transition-slow: 320ms ease;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--graphit);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* LEAF GRID DESIGN - Hintergrundmuster */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(231, 216, 177, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(46, 93, 74, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(73, 122, 93, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(231, 216, 177, 0.02) 0%, transparent 50%);
  background-size: 200px 200px, 300px 300px, 250px 250px, 350px 350px;
  background-position: 0 0, 100px 100px, 50px 150px, 150px 50px;
  z-index: -1;
  pointer-events: none;
}

/* LAYOUT SYSTEM */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

/* TYPOGRAFIE */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-5xl); color: var(--tannengruen); }
h2 { font-size: var(--text-4xl); color: var(--tannengruen); }
h3 { font-size: var(--text-3xl); color: var(--graphit); }
h4 { font-size: var(--text-2xl); color: var(--graphit); }
h5 { font-size: var(--text-xl); color: var(--graphit); }
h6 { font-size: var(--text-lg); color: var(--graphit); }

p {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-md);
  color: var(--graphit);
}

.text-secondary {
  color: var(--hellgrau);
}

.text-center {
  text-align: center;
}

/* HEADER & NAVIGATION */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 93, 74, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--tannengruen);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-menu a {
  color: var(--graphit);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--tannengruen);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tannengruen);
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--tannengruen);
  transition: all var(--transition-fast);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--tannengruen);
  color: white;
}

.btn-primary:hover {
  background: var(--moosgruen);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--tannengruen);
  border: 2px solid var(--tannengruen);
}

.btn-secondary:hover {
  background: var(--tannengruen);
  color: white;
}

/* KARTEN-DESIGN */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(46, 93, 74, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--graphit);
  margin-bottom: var(--spacing-sm);
}

.card-excerpt {
  color: var(--hellgrau);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.badges {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.badge {
  background: var(--sand);
  color: var(--graphit);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* HERO SEKTION */
.hero {
  background: linear-gradient(135deg, var(--tannengruen) 0%, var(--moosgruen) 100%);
  color: white;
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaves" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 5c3 0 5 2 5 5s-2 5-5 5-5-2-5-5 2-5 5-5z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
}

/* STATISTIKEN SEKTION */
.stats {
  padding: var(--spacing-3xl) 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--sand);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--tannengruen);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--tannengruen);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  color: var(--graphit);
  font-weight: 500;
}

/* ARTIKEL & CONTENT SEKTIONEN */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background: rgba(231, 216, 177, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title p {
  color: var(--hellgrau);
  max-width: 600px;
  margin: 0 auto;
}

/* FILTER SYSTEM */
.filters {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--hellgrau);
  color: var(--hellgrau);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--tannengruen);
  border-color: var(--tannengruen);
  color: white;
}

/* SCROLL REVEAL ANIMATIONEN */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all var(--transition-slow);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--transition-slow);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* TESTIMONIALS */
.testimonial {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--sand);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--graphit);
}

.testimonial-author {
  font-weight: 600;
  color: var(--tannengruen);
}

.testimonial-stars {
  color: #ffd700;
  margin-bottom: var(--spacing-sm);
}

/* NEWSLETTER */
.newsletter {
  background: var(--tannengruen);
  color: white;
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-md);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
}

.newsletter-input::placeholder {
  color: var(--hellgrau);
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xl);
}

/* FOOTER */
.footer {
  background: var(--graphit);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--sand);
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--tannengruen);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--moosgruen);
  transform: translateY(-2px);
}

/* LOADING ANIMATION */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.leaf-loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--sand);
  border-top: 3px solid var(--tannengruen);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-sm);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .burger {
    display: flex;
  }
  
  .hero {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .hero p {
    font-size: var(--text-lg);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .stat-item {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    gap: var(--spacing-xs);
  }
  
  .filter-btn {
    font-size: var(--text-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* UTILITY CLASSES */
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}