/* ============================================
   KGV Frintroper Wasserturm - Hauptstylesheet
   ============================================ */

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

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: #f9fbf9;
  color: #1a3a1a;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
  background: white;
  padding: 16px 32px;
  border-bottom: 3px solid #4CAF50;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #2E7D32;
}

.logo-icon {
  font-size: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #2c3e2c;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #4CAF50;
}

.nav-link.active {
  color: #4CAF50;
  font-weight: 600;
}

.nav-btn {
  border: 1px solid #4CAF50;
  padding: 6px 18px;
  border-radius: 30px;
  color: #4CAF50;
  font-weight: 600;
}

.nav-btn:hover {
  background: #4CAF50;
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,30,0,0.55)), url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 35%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  padding: 0 20px;
}

.hero-title {
  font-size: 46px;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 14px 34px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.btn-large {
  margin-top: 28px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #4CAF50;
  color: #2E7D32;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #4CAF50;
  color: white;
}

/* ========== FEATURES ========== */
.features {
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 0 20px;
}

.feature-card {
  background: white;
  padding: 30px 24px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.2s;
  border-bottom: 3px solid #c8e6c9;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  color: #2E7D32;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.feature-text {
  color: #3e5a3a;
  margin-bottom: 8px;
}

.feature-text-small {
  font-size: 0.85rem;
  color: #6b7c66;
}

.status-badge {
  background: #e8f5e9;
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: bold;
  color: #2b7a2b;
  display: inline-block;
}

.feature-link {
  display: inline-block;
  margin-top: 16px;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
}

/* ========== SECTIONS ========== */
.section-title {
  font-size: 2rem;
  color: #2E7D32;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #5a6e55;
  margin-bottom: 32px;
}

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

/* ========== PREVIEW ========== */
.preview-section {
  padding: 60px 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.preview-content p {
  margin-bottom: 16px;
  color: #3a523a;
}

.image-placeholder {
  background: linear-gradient(145deg, #d9e3cf, #c2d0b5);
  border-radius: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.placeholder-icon {
  font-size: 64px;
}

.placeholder-text {
  font-weight: 500;
  color: #2c5e2c;
}

/* ========== STATS ========== */
.stats-section {
  background: #eef5ea;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-card {
  background: white;
  padding: 32px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: bold;
  color: #2E7D32;
}

.stat-label {
  color: #5a6e55;
  margin-top: 8px;
}

/* ========== SUBPAGE HERO ========== */
.subpage-hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: white;
}

.subpage-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.subpage-subtitle {
  font-size: 1.2rem;
}

/* ========== VEREIN ========== */
.history-section, .board-section, .values-section, .docs-section {
  padding: 60px 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.board-card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.board-card:hover {
  transform: translateY(-5px);
}

.board-avatar {
  font-size: 56px;
  margin-bottom: 16px;
}

.board-name {
  font-size: 1.3rem;
  color: #2E7D32;
  margin-bottom: 8px;
}

.board-role {
  color: #5a6e55;
  margin-bottom: 8px;
  font-weight: 500;
}

.board-contact {
  font-size: 0.85rem;
  color: #4CAF50;
  word-break: break-all;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.value-card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.value-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.value-card h3 {
  color: #2E7D32;
  margin-bottom: 12px;
}

.docs-card {
  background: #eef5ea;
  padding: 48px;
  border-radius: 32px;
  text-align: center;
}

.docs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.doc-link {
  background: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  color: #2E7D32;
  font-weight: 500;
  transition: all 0.2s;
}

.doc-link:hover {
  background: #4CAF50;
  color: white;
}

/* ========== GÄRTEN ========== */
.parzellen-info, .gartenarten, .pacht-section, .lageplan-section {
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.stat-box {
  background: #eef5ea;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.stat-big {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2E7D32;
}

.gartenarten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.gartenart-card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gartenart-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.gartenart-card h3 {
  color: #2E7D32;
  margin-bottom: 12px;
}

.pacht-card {
  background: #eef5ea;
  padding: 48px;
  border-radius: 32px;
  text-align: center;
}

.pacht-details {
  margin: 24px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.pacht-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #c8e6c9;
}

.pacht-label {
  font-weight: 600;
}

.pacht-value {
  color: #2E7D32;
}

.map-placeholder {
  background: linear-gradient(145deg, #d9e3cf, #c2d0b5);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  margin: 30px 0;
}

.lageplan-text {
  text-align: center;
  color: #5a6e55;
  margin-top: 20px;
}

/* ========== AKTUELLES ========== */
.news-section, .regular-dates, .newsletter-section {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  background: white;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
}

.news-card.featured {
  border-left: 5px solid #4CAF50;
}

.news-date {
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.featured-date {
  font-size: 1rem;
}

.news-title {
  font-size: 1.6rem;
  color: #2E7D32;
  margin-bottom: 12px;
}

.news-title-small {
  font-size: 1.3rem;
  color: #2E7D32;
  margin-bottom: 12px;
}

.news-summary {
  color: #5a6e55;
  margin-bottom: 16px;
}

.news-link {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
}

.regular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.regular-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.regular-day {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2E7D32;
  margin-bottom: 8px;
}

.newsletter-card {
  background: #eef5ea;
  padding: 48px;
  border-radius: 32px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 20px;
  border-radius: 40px;
  border: 1px solid #c8e6c9;
  width: 280px;
  font-size: 16px;
}

/* ========== GALERIE ========== */
.gallery-section {
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.gallery-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  background: linear-gradient(145deg, #d9e3cf, #c2d0b5);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.gallery-info {
  padding: 20px;
}

.gallery-info h3 {
  color: #2E7D32;
  margin-bottom: 8px;
}

.gallery-info p {
  color: #6b7c66;
  font-size: 0.9rem;
}

/* ========== KONTAKT ========== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  font-size: 28px;
}

.info-text h4 {
  color: #2E7D32;
  margin-bottom: 4px;
}

.info-text p {
  color: #5a6e55;
}

.contact-form {
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
}

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

/* ========== MODAL ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.modal-content {
  background: white;
  border-radius: 32px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  cursor: default;
}

.modal-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.footer {
  background: #1f3b1d;
  color: #e0f0da;
  padding: 48px 0 24px;
  margin-top: 60px;
}

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

.footer-col h4 {
  color: #c8e6b5;
  margin-bottom: 16px;
}

.footer-col p {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cfe6c1;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #4e7546;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2E7D32;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  z-index: 1000;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== LOADING ========== */
.loading {
  text-align: center;
  padding: 40px;
  color: #5a6e55;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .preview-grid,
  .history-grid,
  .info-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .features {
    margin-top: 30px;
  }
  
  .subpage-title {
    font-size: 2rem;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
}