/* ============================================================
   Schwammerltreff Waldhausen – Stylesheet
   Farbwelt: Waldgrün, Creme, Fliegenpilz-Rot
   ============================================================ */

:root {
  --green-900: #1e3a2a;
  --green-800: #26472f;
  --green-700: #2f5d3a;
  --green-600: #3d7a4a;
  --green-100: #e4efe0;
  --cream: #fdf9f0;
  --cream-dark: #f4ecdb;
  --red: #c0392b;
  --red-dark: #96281b;
  --amber: #c98a2d;
  --ink: #26302a;
  --ink-soft: #55645b;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(30, 58, 42, 0.10);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* Dezentes Pilzmuster als Kachel (grün auf hellem Grund, weiß auf dunklem) */
:root {
  --shroom-tile-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%232f5d3a' fill-opacity='0.035'%3E%3Cg transform='translate(28 36)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3Cg transform='translate(150 120) rotate(14) scale(0.75)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3Cg transform='translate(70 180) rotate(-12) scale(0.55)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --shroom-tile-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cg transform='translate(28 36)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3Cg transform='translate(150 120) rotate(14) scale(0.75)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3Cg transform='translate(70 180) rotate(-12) scale(0.55)'%3E%3Cpath d='M20 0C9 0 0 9 0 20h40C40 9 31 0 20 0z'/%3E%3Cpath d='M13 20h14l-2 14c-.3 3-2.5 5-5 5s-4.7-2-5-5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream) var(--shroom-tile-green);
  line-height: 1.65;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 249, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

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

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--green-900);
  font-weight: 700; font-size: 1.1rem; line-height: 1.15;
}
.brand small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-soft); }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }

.nav-links {
  display: flex; gap: 0.25rem; list-style: none;
}
.nav-links a {
  display: block; padding: 0.45rem 0.7rem;
  border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: 0.95rem;
}
.nav-links a:hover { background: var(--green-100); color: var(--green-900); }
.nav-links a.active { background: var(--green-700); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--green-900); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-700) 65%, var(--green-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: 900px; margin: 0 auto;
  padding: 5rem 1.25rem 5.5rem;
  position: relative; z-index: 1;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1; margin-bottom: 1.2rem;
}
.hero h1 span { color: #d8e8cf; font-size: 0.6em; letter-spacing: 0.02em; }
.hero-tagline { max-width: 34rem; font-size: 1.15rem; color: #e7f0e2; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.7rem 1.4rem;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff !important; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.7); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp {
  background: #25d366; color: #fff !important;
  margin-top: 0.5rem; box-shadow: 0 3px 10px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: #1faa52; }

.whatsapp-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.whatsapp-row > div { flex: 1 1 320px; }
.qr-box {
  flex-shrink: 0; text-align: center; margin: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem 0.5rem;
}
.qr-box img { display: block; }
.qr-box figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3rem; }

.hero-deco {
  position: absolute; right: 0; bottom: -6px;
  width: min(430px, 55vw); height: auto;
  user-select: none; pointer-events: none;
}
.hero { background-image: var(--shroom-tile-white), linear-gradient(150deg, var(--green-900) 0%, var(--green-700) 65%, var(--green-600) 100%); }

/* ---------- Sektionen ---------- */

.section { padding: 4rem 0; }
.section-alt { background: var(--cream-dark) var(--shroom-tile-green); }

.section h2 {
  font-family: var(--font-serif);
  font-size: 2rem; color: var(--green-900);
  margin-bottom: 1.5rem; position: relative; padding-bottom: 0.6rem;
}
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px; background: var(--red);
}
.section h3 { color: var(--green-800); margin: 2rem 0 1rem; font-size: 1.25rem; }
.section h4 { color: var(--green-800); margin: 1.4rem 0 0.4rem; }

.lead { font-size: 1.12rem; max-width: 46rem; }

/* Mini-Karten (geplante Aktivitäten) */
.card-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.8rem; }
.mini-card {
  flex: 1 1 200px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem; font-weight: 600; color: var(--green-900);
  display: flex; align-items: center; gap: 0.7rem;
}
.mini-icon { font-size: 1.6rem; }

/* ---------- News ---------- */

.news-list { list-style: none; display: grid; gap: 1rem; }
.news-item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
  display: flex; gap: 1.2rem; align-items: baseline;
  border-left: 5px solid var(--green-600);
}
.news-item.highlight { border-left-color: var(--red); background: #fff8f0; }
.news-date {
  flex-shrink: 0; min-width: 6.5rem;
  font-weight: 700; color: var(--red-dark); font-variant-numeric: tabular-nums;
}
.section-alt .news-item, .section-alt .mini-card { box-shadow: 0 2px 10px rgba(30,58,42,0.13); }

/* ---------- Termine ---------- */

.venue-box {
  background: var(--green-100); border-radius: var(--radius);
  padding: 1rem 1.3rem; margin-bottom: 1rem;
  display: grid; gap: 0.3rem;
}

.event-list { list-style: none; display: grid; gap: 0.8rem; }
.event {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.event-badge {
  flex-shrink: 0; text-align: center;
  background: var(--green-800); color: #fff;
  border-radius: 10px; padding: 0.45rem 0.65rem; min-width: 4.6rem;
  line-height: 1.2;
}
.event-badge .d { display: block; font-size: 1.25rem; font-weight: 800; }
.event-badge .m { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-badge .y { display: block; font-size: 0.7rem; opacity: 0.8; }
.event-body strong { color: var(--green-900); }
.event-time { color: var(--ink-soft); font-size: 0.9rem; }
.event-note { color: var(--red-dark); font-size: 0.88rem; font-weight: 600; }
.event-body ul { margin: 0.35rem 0 0 1.2rem; }
.event-list.past .event { opacity: 0.85; }
.event-list.past .event-badge { background: var(--ink-soft); }
.event .pdf-link { font-size: 0.92rem; }

.pdf-link {
  display: inline-block; margin-top: 0.25rem;
  color: var(--red-dark); font-weight: 600;
}

/* ---------- Ressourcen-Listen (Bücher, Links, Lustiges) ---------- */

.resource-list { list-style: none; display: grid; gap: 0.7rem; }
.resource-list li {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.9rem 1.2rem;
}

/* ---------- Rezepte ---------- */

.recipe-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem; margin-top: 1.2rem;
}
.recipe-card h4 { color: var(--green-900); font-size: 1.2rem; margin: 0 0 0.2rem; }
.recipe-card h5 { color: var(--green-800); margin: 0.9rem 0 0.3rem; font-size: 1rem; }
.recipe-card ul, .recipe-card ol { margin: 0.3rem 0 0.6rem 1.4rem; }
.recipe-yield { color: var(--ink-soft); font-size: 0.9rem; }
.recipe-note {
  background: var(--green-100); border-radius: 8px;
  padding: 0.6rem 0.9rem; font-size: 0.92rem; margin-top: 0.8rem;
}

/* ---------- Fotogalerie ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem; margin: 0.8rem 0 0.4rem;
}
.gallery a { display: block; }
.gallery img {
  width: 100%; height: 110px; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.gallery img:hover { transform: scale(1.04); }
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-wide img { height: 140px; }

/* ---------- Videos ---------- */

.video-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem; margin: 0.8rem 0 0.4rem;
}
.video-row video {
  width: 100%; border-radius: 10px; box-shadow: var(--shadow);
  background: #000;
}

/* ---------- Rechtliches ---------- */

.section-legal { background: var(--green-900) var(--shroom-tile-white); color: #d9e4d4; }
.section-legal h2 { color: #fff; }
.section-legal a { color: #a8cf9b; }
.section-legal address { font-style: normal; margin: 0.6rem 0; }
.section-legal h4 { color: #cfe3c4; }
.section-legal ul { margin: 0.4rem 0 0.8rem 1.4rem; }

.legal-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin-bottom: 1rem;
}
.legal-block summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; color: #fff;
  padding: 0.2rem 0;
}
.legal-block[open] summary { margin-bottom: 0.6rem; }
.legal-block p { margin-bottom: 0.7rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-900); color: #b9c9b2;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.4rem 0; font-size: 0.92rem;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.site-footer a { color: #cfe3c4; }

/* ---------- Nach-oben-Button ---------- */

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--red); color: #fff; font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 10px 20px rgba(30,58,42,0.15);
    display: none; padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1.5rem; border-radius: 0; }
  .hero-inner { padding: 3.5rem 1.25rem 4rem; }
  .news-item { flex-direction: column; gap: 0.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
