/* ================================================================
   Das Grüne V – Main Stylesheet
   Primary colour: #a1ab77
   ================================================================ */

/* ── CSS Variables ── */
:root {
  --primary:      #a1ab77;
  --primary-dark: #8a9464;
  --primary-light:#c5cc9f;
  --text-dark:    #2c2c2c;
  --text-mid:     #555;
  --text-light:   #f5f5f0;
  --bg-light:     #fafaf6;
  --bg-section:   #f2f3ec;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --nav-height:   72px;
  --transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: 100%; object-fit: cover; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* Solid navbar (used on sub-pages & after scroll) */
.navbar--solid,
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.navbar--solid .nav-links a,
.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.navbar--solid .nav-burger span,
.navbar.scrolled .nav-burger span {
  background: var(--text-dark);
}

/* Logo */
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

.navbar--solid .nav-links a:hover,
.navbar--solid .nav-links a.active,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background: url('../media/Scharfgarbe.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Half-height variant (termine page) */
.hero--half {
  height: 50vh;
  min-height: 320px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.5)  100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 1.5rem;
  color: #fff;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  margin-bottom: 2.4rem;
}

/* ── Hero Buttons ── */
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ================================================================
   SPLIT SECTIONS
   ================================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.split-image {
  overflow: hidden;
}

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

.split-image:hover img {
  transform: scale(1.03);
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4.5rem;
  background: var(--bg-section);
}

/* Section with image on right */
.split-right .split-text {
  background: #fff;
  order: -1;
}

.split-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.9rem;
}

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

/* Feature list (section 2) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.feature-dot {
  flex-shrink: 0;
  margin-top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-list strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Contact section */
.contact-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 2;
}

.contact-body a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-body a:hover {
  border-bottom-color: var(--primary);
}

/* ================================================================
   TERMINE PAGE
   ================================================================ */
.termine-section {
  padding: 5rem 1.5rem 6rem;
  background: var(--bg-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  padding-bottom: 0.9rem;
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.termine-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}

.termine-table thead {
  background: var(--primary);
  color: #fff;
}

.termine-table th {
  padding: 1rem 1.4rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.termine-table td {
  padding: 0.95rem 1.4rem;
  color: var(--text-mid);
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.termine-table tbody tr:last-child td {
  border-bottom: none;
}

.termine-table tbody tr:hover td {
  background: var(--bg-section);
}

/* Availability badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge--free {
  background: #eaf4e8;
  color: #3a7d3a;
}

.badge--few {
  background: #fff8e1;
  color: #b07d00;
}

.badge--full {
  background: #fdecea;
  color: #c0392b;
}

/* Anmelden button in table */
.btn-anmelden {
  padding: 0.5rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-anmelden:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-anmelden:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* Note below table */
.termine-note {
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  border-radius: 0 4px 4px 0;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #2c2c2c;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-image {
    height: 380px;
  }

  .split-right .split-text {
    order: 0;
  }

  .split-text {
    padding: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  :root { --nav-height: 60px; }

  .navbar { padding: 0 1.2rem; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark) !important;
    border-bottom: 1px solid #eee;
    border-left: none !important;
    font-size: 0.95rem;
  }

  .nav-burger { display: flex; }
  .nav-burger span { background: #fff; }
  .navbar--solid .nav-burger span,
  .navbar.scrolled .nav-burger span { background: var(--text-dark); }

  .hero-title { font-size: 1.8rem; }

  .split-image { height: 280px; }

  .split-text { padding: 2.5rem 1.5rem; }

  .termine-section { padding: 3rem 1rem 4rem; }

  .termine-table th,
  .termine-table td { padding: 0.75rem 0.9rem; }
}

