/* ============================================
   Bürgerverein Wildensorg Website Styles
   Modernes, traditionell-warmes Design
   ============================================ */

/* CSS Variables - Wildensorg Farbpalette */
:root {
  --primary-green: #2d5016;
  --primary-green-light: #3d6b1e;
  --accent-red: #8b2635;
  --accent-red-light: #a53040;
  --cream: #f5f1e8;
  --sand: #e8e0d0;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #666666;
  --light-gray: #f0f0f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo span {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, #1a3009 100%);
  color: var(--white);
  padding: 8rem 1.5rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 100px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-location {
  font-size: 1rem;
  opacity: 0.8;
}

/* Sections */
section {
  padding: 4rem 0;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.event-card h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
}

.project-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-progress {
  background: #fff3cd;
  color: #856404;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.highlight-box {
  background: var(--primary-green);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  margin-bottom: 0.5rem;
}

.highlight-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--accent-red) 0%, #6b1e29 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta h2 {
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

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

.footer-section a {
  color: var(--white);
  opacity: 0.8;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-green-light);
  color: var(--white);
}

.btn-secondary {
  background: var(--accent-red);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent-red-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-green);
}

.required {
  color: var(--accent-red);
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sand);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  display: none;
}

.form-success.show {
  display: block;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--primary-green);
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent-red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .about-image {
    order: -1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   IMAGE PLACEHOLDER STYLES
   ============================================ */

.image-placeholder {
  display: none; /* Standardmäßig ausgeblendet */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  border: 2px dashed var(--primary-green-light);
  border-radius: 10px;
  color: var(--gray);
  text-align: center;
  padding: 2rem;
}

.image-placeholder.show {
  display: flex;
}

.image-placeholder span {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.image-placeholder p {
  margin: 0;
  font-weight: 500;
}

.image-placeholder small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* Project Image Container */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Hero with background image support */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Slideshow enhancements */
.slideshow {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.slideshow-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  padding: 3rem;
  text-align: center;
  border: 2px dashed var(--primary-green-light);
  border-radius: 10px;
}

/* ============================================
   GALLERY STYLES
   ============================================ */

.gallery-section {
  margin-top: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center; /* Wesentliches im Zentrum */
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item p {
  text-align: center;
  margin: 0;
  padding: 0.75rem;
  font-weight: 500;
  color: var(--primary-green);
  background: var(--cream);
}

/* Vorstand Beschriftung */
.vorstand-caption {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--dark);
}

.vorstand-caption strong {
  color: var(--primary-green);
  display: block;
  margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
