/* =========================================================
   Stottern · Schule · Inklusion – Landingpage
   CI angelehnt an stottern-lv-ost.de:
   Blau #085394 · Lindgrün #bbcd4a · PT Sans / Open Sans
   ========================================================= */

:root {
  /* Rohwerte */
  --blue-700: #085394;
  --blue-900: #042a4a;
  --blue-300: #8fc1ec;
  --green-400: #bbcd4a;
  --green-500: #a8b951;
  --sand-50: #fbf8f1;
  --sand-100: #f3eee2;
  --ink: #1c2630;

  /* Tokens (hell) */
  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-tint: var(--sand-100);
  --text: var(--ink);
  --text-muted: #4a5662;
  --heading: var(--blue-700);
  --link: var(--blue-700);
  --border: #e2dccd;
  --accent: var(--green-400);
  --on-accent: var(--blue-900);
  --band-bg: var(--blue-700);
  --band-text: #ffffff;
  --focus: var(--blue-700);

  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "PT Sans", "Trebuchet MS", system-ui, sans-serif;
  --radius: 4px;
  --space: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  color-scheme: light dark;
  accent-color: var(--blue-700);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a27;
    --surface: #12263a;
    --surface-tint: #0f2132;
    --text: #e6edf3;
    --text-muted: #b3c0cc;
    --heading: var(--blue-300);
    --link: var(--blue-300);
    --border: #24405a;
    --band-bg: #0a3a66;
    --focus: var(--green-400);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 6rem; }

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, 48rem); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  inline-size: 0.6rem;
  block-size: 2.4rem;
  background: var(--accent);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--heading);
}
.brand-text small { font-size: 0.8rem; color: var(--text-muted); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button-meta { font-size: 0.8rem; font-weight: 400; }

.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--green-500); }

.button-secondary { border-color: var(--heading); color: var(--heading); }
.button-secondary:hover { background: var(--heading); color: var(--bg); }

.button-ghost { border-color: currentColor; color: inherit; }
.button-ghost:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.4fr 1fr; }
}
.hero-text { max-width: 38rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.lead { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

.hero-art { width: min(100%, 22rem); justify-self: center; }
.hero-art .bubble-a { fill: var(--accent); }
.hero-art .bubble-b { fill: var(--heading); opacity: 0.9; }
.hero-art .dots { fill: var(--on-accent); }
.hero-art .wave { stroke: var(--bg); stroke-width: 7; stroke-linecap: round; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--space); }
.section-tinted { background: var(--surface-tint); }
.section-intro { max-width: 60ch; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; }

/* Fakten */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
}
.fact-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.fact-label { color: var(--text-muted); }

/* Tipps */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tip;
}
.tip {
  counter-increment: tip;
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem 4.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tip::before {
  content: counter(tip);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  display: grid;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
}
.tip h3 { margin-bottom: 0.4em; }
.tip p { margin: 0; }

/* Fortbildung */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1.2fr 1fr; }
}
.split p { max-width: 60ch; }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  inline-size: 1.1rem;
  block-size: 0.6rem;
  border-left: 3px solid var(--green-500);
  border-bottom: 3px solid var(--green-500);
  rotate: -45deg;
}

.card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-accent { border-top: 5px solid var(--accent); }
.fine-print { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--text-muted); }

/* Stimmen */
.placeholder-note {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px dashed var(--text-muted);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.quote {
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border-left: 5px solid var(--heading);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.quote blockquote { margin: 0; font-size: 1.1rem; font-style: italic; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.team-card {
  container-type: inline-size;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
}
.team-card .avatar {
  display: grid;
  place-items: center;
  inline-size: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--heading) 14%, var(--surface));
  color: var(--heading);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}
.team-card img { inline-size: 5rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.team-card hgroup h3 { margin: 0; }
.team-card hgroup p { margin: 0.2rem 0 0; font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
.team-card > p { margin: 0; }
/* Spalten liegen immer an; schmal spannen alle Regionen über beide Spalten (gestapelt) */
.team-card:has(> .avatar, > img) { grid-template-columns: auto 1fr; column-gap: 1.25rem; }
.team-card > * { grid-column: 1 / -1; }
@container (min-width: 26rem) {
  .team-card > :is(.avatar, img) { grid-column: 1; grid-row: span 2; }
  .team-card:has(> .avatar, > img) > :not(.avatar, img) { grid-column: 2; }
}

/* Region */
.region { align-items: center; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.chips li {
  padding: 0.35rem 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 999px;
}
.region-map { width: min(100%, 24rem); justify-self: center; overflow: visible; }
.region-map .state {
  fill: var(--surface-tint);
  stroke: var(--border);
  stroke-width: 1;
  stroke-linejoin: round;
  fill-rule: evenodd;
}
.region-map .state.is-region { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.region-map .state.is-city { fill: var(--heading); }
.region-map text {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  fill: var(--on-accent);
  text-anchor: middle;
}
.region-map .city-label { text-anchor: start; fill: var(--heading); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }

/* Förderer */
.funders { padding-block: 3rem; background: var(--surface); border-top: 1px solid var(--border); }
.funders-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.funders h2 { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
.funder-logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.funder-logos img { display: block; max-block-size: 3.75rem; inline-size: auto; }
.logo-placeholder {
  display: grid;
  place-items: center;
  inline-size: 11rem;
  min-block-size: 3.75rem;
  border: 1.5px dashed var(--text-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ – Accordion mit nativen <details> */
.accordion { display: grid; gap: 0.75rem; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.accordion summary {
  list-style: none; /* entfernt das Standard-Dreieck */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "";
  flex-shrink: 0;
  inline-size: 0.6em;
  block-size: 0.6em;
  border-right: 3px solid var(--heading);
  border-bottom: 3px solid var(--heading);
  rotate: -45deg; /* geschlossen: zeigt nach rechts */
  translate: 0 -0.05em;
}
.accordion details[open] > summary::before { rotate: 45deg; }
.accordion summary:hover { color: var(--link); }
.accordion .answer { padding: 0 1.25rem 1.1rem 2.6rem; }
.accordion .answer p { margin: 0; max-width: 65ch; }

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.accordion details:not([open])::details-content { block-size: 0; }

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate 0.2s; }
  .accordion details::details-content {
    transition: block-size, content-visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* Kontakt-Band */
.contact-band { background: var(--band-bg); color: var(--band-text); }
.contact-band h2 { color: var(--band-text); }
.contact-band a:focus-visible { outline-color: var(--accent); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.contact-inner p { margin: 0; font-size: 1.1rem; }

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  background: var(--blue-900);
  color: #d5e0ea;
  font-size: 0.95rem;
}
.site-footer a { color: #ffffff; }
.site-footer a:focus-visible { outline-color: var(--accent); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.copyright { flex-basis: 100%; font-size: 0.85rem; opacity: 0.8; }

/* Windows-Kontrastmodus */
@media (forced-colors: active) {
  .button { border-color: ButtonText; }
  .brand-mark, .tip::before { forced-color-adjust: none; }
}
