/* ==========================================================================
   Dasein e.V. — Design System
   Fünf Satzungszweck-Farben ziehen sich als Farbcode durch die ganze Seite:
   --c-natur      Naturschutz, Landschaftspflege, Umweltschutz (Türkis)
   --c-bildung    Volks- und Berufsbildung (Lila)
   --c-weisheit   Völkerverständigung / Weisheitstransfer alter Kulturen (Buddhist-Orange)
   --c-gesundheit Gesundheitswesen, Meditation, Yoga, Tai-Chi (Indigo/Magenta)
   --c-mildtaetig Mildtätigkeit, Unterstützung Bedürftiger (Rose/Gold)
   ========================================================================== */

:root {
  /* Satzungszweck-Farben */
  --c-natur: #14b8a6;
  --c-natur-dark: #0d7d70;
  --c-bildung: #9163e8;
  --c-bildung-dark: #6a3fc4;
  --c-weisheit: #ef8b2c;
  --c-weisheit-dark: #c96a13;
  --c-gesundheit: #5b5fe0;
  --c-gesundheit-dark: #4038b5;
  --c-mildtaetig: #e35b83;
  --c-mildtaetig-dark: #c23a63;

  /* Neutrale Basis — warm, hell, zugänglich */
  --bg: #faf6f0;
  --bg-alt: #f3ede3;
  --ink: #241f2e;
  --ink-soft: #55506a;
  --ink-faint: #85809c;
  --white: #ffffff;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(70, 50, 90, 0.12);
  --glass-blur: blur(18px) saturate(160%);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Ambient background blobs (bridge modern/glassy + organic) ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.ambient .b1 { width: 480px; height: 480px; background: var(--c-natur); top: -120px; left: -100px; }
.ambient .b2 { width: 420px; height: 420px; background: var(--c-bildung); top: 20%; right: -140px; }
.ambient .b3 { width: 460px; height: 460px; background: var(--c-weisheit); bottom: 5%; left: -120px; }
.ambient .b4 { width: 380px; height: 380px; background: var(--c-gesundheit); bottom: -140px; right: 10%; }
.ambient .b5 { width: 320px; height: 320px; background: var(--c-mildtaetig); top: 55%; left: 40%; opacity: 0.22; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---- Glass components ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.glass-strong { background: var(--glass-bg-strong); }

.card {
  padding: 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(70, 50, 90, 0.16); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-weisheit), var(--c-mildtaetig));
  color: #fff;
  box-shadow: 0 10px 28px rgba(239, 139, 44, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(239, 139, 44, 0.42); }
.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(36, 31, 46, 0.12);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--glass-bg-strong); transform: translateY(-2px); }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(36, 31, 46, 0.06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(from 90deg, var(--c-natur), var(--c-bildung), var(--c-weisheit), var(--c-gesundheit), var(--c-mildtaetig), var(--c-natur));
  flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(36, 31, 46, 0.06); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(36,31,46,0.12);
  background: var(--glass-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--glass-shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
}

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(91,95,224,0.25), rgba(239,139,44,0.18) 60%, transparent);
}
.hero-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  padding: 16px 20px;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- Focus areas (5 Satzungszweck colors) ---- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.focus-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.focus-card .icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.focus-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.focus-card p { color: rgba(255,255,255,0.92); font-size: 0.92rem; margin-bottom: 0; }
.focus-card.c-natur { background: linear-gradient(150deg, var(--c-natur), var(--c-natur-dark)); }
.focus-card.c-bildung { background: linear-gradient(150deg, var(--c-bildung), var(--c-bildung-dark)); }
.focus-card.c-weisheit { background: linear-gradient(150deg, var(--c-weisheit), var(--c-weisheit-dark)); }
.focus-card.c-gesundheit { background: linear-gradient(150deg, var(--c-gesundheit), var(--c-gesundheit-dark)); }
.focus-card.c-mildtaetig { background: linear-gradient(150deg, var(--c-mildtaetig), var(--c-mildtaetig-dark)); }

/* Text-only tag pills for the 5 categories, used across pages */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-natur { color: var(--c-natur-dark); background: rgba(20,184,166,0.14); }
.tag-bildung { color: var(--c-bildung-dark); background: rgba(145,99,232,0.14); }
.tag-weisheit { color: var(--c-weisheit-dark); background: rgba(239,139,44,0.16); }
.tag-gesundheit { color: var(--c-gesundheit-dark); background: rgba(91,95,224,0.14); }
.tag-mildtaetig { color: var(--c-mildtaetig-dark); background: rgba(227,91,131,0.14); }

.border-natur { border-top: 4px solid var(--c-natur); }
.border-bildung { border-top: 4px solid var(--c-bildung); }
.border-weisheit { border-top: 4px solid var(--c-weisheit); }
.border-gesundheit { border-top: 4px solid var(--c-gesundheit); }
.border-mildtaetig { border-top: 4px solid var(--c-mildtaetig); }

/* ---- Generic grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Section header ---- */
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Photo strip ---- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.photo-strip a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-strip a:hover img { transform: scale(1.08); }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 56px 0 20px; }
.page-hero .eyebrow { margin-bottom: 10px; }

/* ---- Footer ---- */
footer {
  margin-top: 60px;
  padding: 56px 0 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.75);
}
footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { footer .container { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer a { display: block; padding: 5px 0; color: rgba(255,255,255,0.72); font-size: 0.92rem; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; }
footer .foot-bottom { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---- Timeline ---- */
.timeline { position: relative; margin-top: 50px; padding-left: 32px; border-left: 3px solid rgba(36,31,46,0.1); }
.timeline-item { position: relative; padding-bottom: 52px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -41px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--dot, var(--c-natur));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--dot, var(--c-natur));
}
.timeline-date { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 6px; text-transform: uppercase; }
.timeline-card { padding: 26px; display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.timeline-card img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 720px) { .timeline-card { grid-template-columns: 1fr; } }

/* ---- Events / Blog cards ---- */
.event-card, .post-card { overflow: hidden; }
.event-card .thumb, .post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.event-card .thumb img, .post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body, .post-card .body { padding: 24px; }
.event-meta { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 10px; }

.example-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius-sm);
  background: rgba(239,139,44,0.1); border: 1px dashed rgba(239,139,44,0.4);
  font-size: 0.9rem; color: var(--ink-soft); margin: 28px 0 8px;
}

/* ---- Gallery ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 10px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid rgba(36,31,46,0.14); background: var(--glass-bg); cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1/1; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-grid figure:hover img { transform: scale(1.1); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20, 16, 26, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; backdrop-filter: blur(6px);
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: 0.88rem; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Satzung page ---- */
.zweck-block { padding: 30px; margin-bottom: 20px; }
.zweck-block h3 { display: flex; align-items: center; gap: 12px; }
.zweck-block .num {
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.doc-card { display: flex; align-items: center; gap: 18px; padding: 24px; }
.doc-card .file-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* ---- Contact / newsletter ---- */
.cta-panel { padding: 56px; text-align: center; }
.cta-panel h2 { margin-bottom: 12px; }

/* ---- Misc ---- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
hr.soft { border: none; border-top: 1px solid rgba(36,31,46,0.08); margin: 40px 0; }

::selection { background: var(--c-weisheit); color: #fff; }
