/* ════════════════════════════════════════════
   Lisa Wolfgarten — Shared Design System
   Wird von: index.html, about.html, angebote.html,
             impressum.html, datenschutz.html, warteliste-social-impact.html genutzt
   ════════════════════════════════════════════ */

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

/* ── FONTS ──
   Gambarino: nur Regular lizenziert/vorhanden — Fett- und Kursivschnitte
   werden vom Browser synthetisiert, bis echte Schnitte nachgeliefert werden. */
@font-face {
  font-family: 'Gambarino';
  src: url('fonts/Gambarino-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ── */
:root {
  --off-white: #f1f4f0;
  --warm-mid:  #c2d4bb;
  --stone:     #6e9678;
  --ink:       #14201a;
  --accent:    #2d6a4f;
  --serif:     'Gambarino', Georgia, serif;
  --sans:      'Switzer', sans-serif;
  --mono:      'Andale Mono', 'Courier New', monospace;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025; mix-blend-mode: multiply;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 3rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 400; letter-spacing: 0.03em;
  color: var(--off-white); text-decoration: none;
}

.nav-links { display: flex; gap: 2.4rem; align-items: center; }

.nav-link {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,235,0.65); text-decoration: none;
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active { color: var(--off-white); }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { cursor: pointer; }
.nav-dropdown.active > .nav-link { color: var(--off-white); }
.nav-dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 1rem;
  background: var(--ink); min-width: 230px;
  padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,235,0.65); text-decoration: none;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover {
  color: var(--off-white); background: rgba(255,255,255,0.06);
}

/* ── SHARED COMPONENTS ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); display: block; margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.6rem;
  transition: background 0.3s, transform 0.2s;
}
.cta-btn:hover { background: #1e4d38; transform: translateY(-2px); }

.cta-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}
.cta-btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.55);
  color: #fff; transform: translateY(-2px);
}

.cta-btn--dark {
  background: var(--ink); color: var(--off-white);
}
.cta-btn--dark:hover { background: #0a1210; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--ink); padding: 2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
footer > span {
  font-family: var(--serif); font-size: 1rem;
  color: rgba(245,240,235,0.45);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; list-style: none; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,235,0.35); text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--off-white); }

/* ── RELATED ARTICLES ── */
.related-articles {
  margin: 3.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(110,150,120,0.2);
}
.related-articles .related-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1rem;
}
.related-articles ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.related-articles a {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--accent);
  text-decoration: none; line-height: 1.4;
  transition: color 0.2s;
}
.related-articles a:hover { color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDown { from { top: -100%; } to { top: 100%; } }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  nav { padding: 1.2rem 1.5rem; flex-wrap: wrap; row-gap: 0.6rem; }
  .nav-links { gap: 1.4rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .cta-btn { width: 100%; text-align: center; }
  .logo { font-size: 0.92rem; }
  .nav-links { gap: 0.9rem; }
  .nav-link { font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav-dropdown-menu { right: auto; left: 50%; transform: translate(-50%, -6px); min-width: 200px; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    transform: translate(-50%, 0);
  }
}
