/* ===========================================================
   DrDoRo® Swiss Gesundheitsverein — Design tokens v2
   Concept: precise, geometric, forward-looking — a Swiss
   engineering sensibility applied to digital health. The
   Netzknoten (network node) mark carries the Verein's actual
   purpose: Vernetzung von Fachpersonen.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --mist:      #F7F9F8;   /* page background — bright, not stark white */
  --paper:     #FFFFFF;   /* card surfaces */
  --spruce:    #16302A;   /* deep ink — dark panels, primary text */
  --stone:     #5B6B6B;   /* secondary text */
  --glacier:   #3E7CB1;   /* primary accent — links, nodes */
  --teal:      #1FAE8E;   /* bright accent — CTAs, highlights */
  --line:      #E1E7E4;   /* hairlines */

  /* Type */
  --display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --body:    'IBM Plex Sans', -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  /* Scale */
  --step-1: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-4: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
}

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--spruce);
  font-family: var(--body);
  font-size: var(--step-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--glacier); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap {
  max-width: 64rem;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand .word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--spruce);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand .word small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.68rem; color: var(--stone); letter-spacing: 0.02em; }
nav.site-nav { display: flex; gap: 1.75rem; }
nav.site-nav a { color: var(--stone); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
nav.site-nav a:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-inner {
  position: relative;
  max-width: 64rem; margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: var(--step-4);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1.25rem; color: var(--spruce);
}
.hero p.lede { font-size: var(--step-2); color: var(--stone); max-width: 38ch; margin: 0 0 1.75rem; font-weight: 400; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.network-graphic { width: 100%; aspect-ratio: 1; }
.network-graphic circle.pulse {
  animation: pulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
.network-graphic circle.pulse.d1 { animation-delay: 0s; }
.network-graphic circle.pulse.d2 { animation-delay: 0.5s; }
.network-graphic circle.pulse.d3 { animation-delay: 1s; }
.network-graphic circle.pulse.d4 { animation-delay: 1.5s; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .network-graphic circle.pulse { animation: none; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .network-graphic { max-width: 220px; margin: 0 auto; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 3px; white-space: nowrap; font-family: var(--body);
}
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: #178F73; }
.button.ghost { background: transparent; color: var(--spruce); border: 1.5px solid var(--line); }
.button.ghost:hover { border-color: var(--spruce); }

/* ---------- Sections ---------- */
main { background: var(--mist); }
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section .wrap { max-width: 46rem; }
.section-label {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin: 0 0 0.75rem;
}
.section h2 { font-family: var(--display); font-weight: 700; font-size: var(--step-3); letter-spacing: -0.01em; margin: 0 0 1.25rem; color: var(--spruce); }
.section p { color: var(--stone); margin: 0 0 1.1rem; }
.section p:last-child { margin-bottom: 0; }
.section p.lead { font-size: var(--step-2); color: var(--spruce); font-family: var(--display); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2rem; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem 1.4rem; }
.pillar .num { font-family: var(--mono); color: var(--teal); font-size: 0.85rem; display: block; margin-bottom: 0.6rem; }
.pillar h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--spruce); }
.pillar p { font-size: 0.92rem; margin: 0; color: var(--stone); }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--spruce); color: var(--mist); }
.cta-band .wrap {
  max-width: 64rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; padding: 3.25rem 1.5rem;
}
.cta-band h2 { font-family: var(--display); font-weight: 700; font-size: var(--step-3); margin: 0; max-width: 26ch; color: #fff; letter-spacing: -0.01em; }
.cta-band p { color: #B9C9C3; margin: 0.5rem 0 0; }

/* ---------- Legal pages ---------- */
.legal main .wrap { max-width: 42rem; padding-top: 3.5rem; padding-bottom: 4rem; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: var(--step-3); letter-spacing: -0.01em; margin: 0 0 2rem; }
.legal h2 {
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--teal); margin: 2.25rem 0 0.75rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--stone); }
.legal address { font-style: normal; color: var(--spruce); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal strong { color: var(--spruce); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--paper); }
footer.site .wrap {
  max-width: 64rem; padding: 2.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer.site p { margin: 0; color: var(--stone); font-size: 0.88rem; }
footer.site nav { display: flex; gap: 1.5rem; }
footer.site nav a { color: var(--stone); font-size: 0.88rem; text-decoration: none; }
footer.site nav a:hover { color: var(--teal); }
