/* ============================================
   Tag der offenen Gartentür - Maria Anzbach 2026
   Saubere CSS-Datei zum manuellen Editieren
   ============================================ */

:root {
  --bg: #faf8f3;
  --fg: #2d2a24;
  --muted: #6b6359;
  --card: #ffffff;
  --border: #e8e2d5;
  --primary: #5a7a3e;            /* Gartengrün */
  --primary-fg: #ffffff;
  --secondary: #f0ead8;
  --secondary-fg: #4a4338;
  --leaf: #2d4a1e;               /* Dunkelgrün (Hero) */
  --leaf-fg: #f5f1e6;
  --moss: #3a5028;               /* Footer */
  --sun: #e8b842;                /* Akzentgelb */
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--leaf-fg);
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,15,0.55), rgba(20,40,15,0.75));
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--sun); }
.hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
  opacity: 0.95;
}
.hero-meta {
  display: flex; flex-wrap: nowrap; justify-content: center;
  gap: 0.5rem; margin-bottom: 0.6rem;
  opacity: 0.95;
  white-space: norwrap;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.9rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
/*Smartphoen oder kleinere Auflösungen mit Zeielnumbruch*/
@media (max-width: 768px) {
  .hero-meta {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* Streicht alles dezent durch außer das Badge und den Titel */
.hero-meta.past-event span:not(.badge-past):not(.event-title) {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.45); /* Dezente, halbtransparente Linie */
  text-decoration-thickness: 1px;                    /* Feiner Strich */
}

/* Erst der letzte Event-Block bekommt den großen Abstand nach unten zu den Buttons */
.hero-meta:last-of-type {
  margin-bottom: 2.5rem;
}

CSS
/* Container dezent ausgrauen */
.hero-meta.past-event {
  opacity: 0.45;
  filter: grayscale(100%);
}

/* Auffälliges Status-Badge */
.badge-past {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.2); /* Halbtransparenter Hintergrund passend zum Hero */
  color: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Titel visuell hervorheben, damit der Status getrennt bleibt */
.event-title {
  font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: #4a6a30; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--leaf-fg);
  border-color: rgba(245,241,230,0.5);
}
.btn-outline:hover { background: rgba(245,241,230,0.15); }

/* ============ SECTIONS ============ */
section { padding: 5rem 0; }
.section-nature { background: linear-gradient(180deg, var(--bg), #f0ead8); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ INTRO ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
}
.intro-grid h2 { font-size: clamp(1.85rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.intro-grid p { color: var(--muted); margin-bottom: 1.25rem; font-size: 1.05rem; }
.intro-grid strong { color: var(--fg); }
.intro-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-image img { width: 100%; height: auto; object-fit: contain; }
.intro-image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
  color: var(--leaf-fg);
  padding: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}



/* ============ THEMES ============ */
.themes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .themes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .themes-grid { grid-template-columns: repeat(5, 1fr); } }
.theme-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.theme-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.theme-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.theme-card p { color: var(--muted); font-size: 0.9rem; }

/* ============ GARDENS ============ */
.gardens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .gardens-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gardens-grid { grid-template-columns: repeat(3, 1fr); } }

.garden-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.garden-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.garden-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}
.garden-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.garden-card:hover .garden-image img { transform: scale(1.05); }
.garden-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent 60%);
}
.garden-label {
  position: absolute; bottom: 0.75rem; left: 1rem; right: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 1;
}
.garden-number {
  background: var(--primary);
  color: var(--primary-fg);
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.garden-address {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.garden-body { padding: 1.25rem; }
.garden-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.garden-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.garden-tag {
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ============ EVENTS ============ */
.events-list {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex; gap: 1.25rem;
  box-shadow: var(--shadow);
}
.event-icon { font-size: 2rem; flex-shrink: 0; }
.event-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 0.5rem;
}
.event-date {
  background: rgba(90,122,62,0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
}
.event-time { color: var(--muted); font-size: 0.85rem; }
.event-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.event-location { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.event-description { color: var(--muted); font-size: 0.9rem; }

/* ============ INFO ============ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.info-card h3 .icon { font-size: 1.5rem; }
.info-card p { color: var(--muted); margin-bottom: 1rem; }
.info-card a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.contact-block { margin-bottom: 1.25rem; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block .name { font-weight: 600; color: var(--fg); font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-block p { font-size: 0.9rem; margin-bottom: 0.25rem; }

/* ============ FOOTER ============ */
footer {
  background: var(--moss);
  color: var(--leaf-fg);
  padding: 3rem 1.5rem;
  text-align: center;
}
footer .footer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}
footer .footer-text {
  opacity: 0.7;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
footer .footer-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  opacity: 0.55;
}
footer .footer-copyright {
  margin-top: 2rem;
  font-size: 0.75rem;
  opacity: 0.4;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-logo {
  height: 80px;
  width: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 4px 8px;
}
/* ============ DONUT / HAMBURGER MENU ============ */
.menu-toggle {
  display: none;
}

.menu-button {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.menu-button:hover {
  transform: scale(1.05);
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X Animation */
.menu-toggle:checked ~ .menu-button {
  background: var(--leaf);
}
.menu-toggle:checked ~ .menu-button span {
  background: var(--leaf-fg);
}
.menu-toggle:checked ~ .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle:checked ~ .menu-button span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked ~ .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menü-Panel */
.donut-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: var(--card);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  padding: 6rem 2rem 2rem;
}

.menu-toggle:checked ~ .donut-menu {
  transform: translateX(0);
}

.donut-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donut-menu a {
  display: block;
  padding: 1rem 1.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem 1.25rem;
  color: var(--fg);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.donut-menu a:hover {
  background: var(--secondary);
  border-left-color: var(--primary);
  color: var(--primary);
  padding-left: 1.5rem;
}
/* ============ PAGE HEADER ============ */
.page-header {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, var(--secondary), var(--card));
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--leaf);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground, #666);
  max-width: 600px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

/* ============ GALERIE ============ */
.gallery-section {
  padding: 4rem 0 6rem;
}

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

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============ LIGHTBOX (CSS-only) ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
  padding: 2rem;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 32px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }

/* Mobile */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}
/* ============ DETAILPROGRAMM ============ */
.programm-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--card), var(--secondary));
}

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

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--leaf);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground, #666);
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline */
.programm-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--leaf);
}

.programm-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0 1.5rem 2rem;
  align-items: start;
}

/* Punkt auf der Timeline */
.programm-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf);
  border: 4px solid var(--card);
  box-shadow: 0 0 0 2px var(--leaf);
}

.programm-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--card);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.programm-content {
  background: var(--card);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 3px solid var(--leaf);
}

.programm-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--leaf);
  margin: 0 0 0.5rem;
}

.programm-location {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.programm-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--fg);
}

.programm-note {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1rem 1.5rem;
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--fg);
}

/* Mobile */
@media (max-width: 640px) {
  .programm-timeline {
    padding-left: 1rem;
  }
  .programm-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 1rem;
  }
  .programm-item::before {
    left: -1.6rem;
    top: 1.5rem;
  }
  .programm-time {
    display: inline-block;
    width: auto;
  }
}
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: nowrap;        /* nicht umbrechen */
  margin-bottom: 1rem;
}

.hero-title-row h1 {
  margin: 0;                /* H1-Standardabstand entfernen */
  text-align: center;
}

/* Logo-Anpassung */
.hero-logo {
  /* Bildhöhe dynamisch anpassen: mobil ab ca. 80px, auf großen Displays bis 220px */
  height: clamp(360px, 8vw, 720px);
  width: auto;
  max-width: 100%;       /* Verhindert ein Überlaufen über den Bildschirmrand */
  object-fit: contain;   /* Verhindert jegliche Verzerrung */
  flex-shrink: 1;        /* Erlaubt dem Logo zu schrumpfen, falls der Text Platz braucht */
}

/* Falls noch nicht vorhanden: Flex-Layout für die Zeile mobil umbrechen
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
} */

/* Auf mobilen Geräten: Logo und Überschrift untereinander anordnen */
@media (max-width: 640px) {
  .hero-title-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero-logo {
    height: clamp(70px, 20vw, 120px); /* Optimale kompakte Größe auf Smartphones */
  }
}


/*.hero-logo {
  height: clamp(360px, 8vw, 720px);
  width: auto;
  flex-shrink: 0;
}*/

/* Auf sehr schmalen Bildschirmen doch untereinander */
@media (max-width: 640px) {
  .hero-title-row {
    flex-wrap: wrap;
    flex-direction: column;
  }
}