/* Startseite gemeinwohl-foerderung.de – Leitprogramm-Bühne im bestehenden Reutinger-Stil. */

@font-face {
  font-family: "Source Sans 3";
  src: url("/landing/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1e3a8a;
  --blue-soft: #e8edf8;
  --blue-soft-hover: #dde5f5;
  --on-blue: #ffffff;
  --on-blue-muted: #c9d4f2;
  --ink: #172b3f;
  --muted: #4a5d70;
  --paper: #f2f5f8;
  --surface: #ffffff;
  --line: #d5dee6;
  --line-on-blue: rgba(255, 255, 255, 0.18);

  --font: "Source Sans 3", Arial, Helvetica, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.75rem, 1.25rem + 1.8vw, 2.625rem);
  --step-3: clamp(2.375rem, 1.35rem + 3.7vw, 4.25rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--blue) var(--paper); accent-color: var(--blue); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: var(--on-blue); }

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--surface); color: var(--blue); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  font: 700 var(--step-0) / 1.25 var(--font); text-align: center;
  text-decoration: none; border-radius: 4px;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn--light { background: var(--surface); color: var(--blue); box-shadow: 0 1px 2px rgba(10, 22, 60, 0.18); }
.btn--light:hover { background: var(--blue-soft); box-shadow: 0 6px 18px -6px rgba(10, 22, 60, 0.45); }
.btn--light:active { transform: translateY(1px); box-shadow: none; }
.btn--compact { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--light:focus-visible { outline-color: var(--on-blue); }

/* Kopf und Bühne teilen sich das blaue Feld */
.masthead { background: var(--blue); color: var(--on-blue); border-bottom: 1px solid var(--line-on-blue); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; }
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__by { font-size: 0.875rem; color: var(--on-blue-muted); }
.masthead__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.masthead__nav a:not(.btn) { color: var(--on-blue); text-decoration: none; font-weight: 600; }
.masthead__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.masthead__nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--on-blue-muted); }
.masthead :focus-visible, .stage :focus-visible, .closer :focus-visible { outline-color: var(--on-blue); }

.stage { background: var(--blue); color: var(--on-blue); padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px); }
.stage__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.stage h1 { font-size: var(--step-3); max-width: 15ch; }
.stage__title-turn { display: block; color: var(--on-blue-muted); }
.stage__lead { margin-top: clamp(20px, 2.4vw, 28px); font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); max-width: 34em; }
.stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.link-quiet { color: var(--on-blue); font-weight: 600; text-decoration-color: var(--on-blue-muted); }
.stage__fine { margin-top: 28px; max-width: 40em; font-size: 0.9375rem; color: var(--on-blue-muted); }

/* Programmprofil als Steckbrief */
.sheet {
  background: var(--surface); color: var(--ink);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 28px 56px -22px rgba(0, 0, 0, 0.45);
  animation: sheet-rise 900ms var(--ease-out) both;
}
.sheet__head { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sheet__code { font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.sheet__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.sheet__sub { color: var(--muted); line-height: 1.35; }
.sheet__rows { margin: 0; }
.sheet__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.sheet__row dt { font-weight: 700; color: var(--muted); font-size: 0.9375rem; }
.sheet__row dd { margin: 0; font-weight: 600; }
.sheet__more { display: inline-block; margin-top: 20px; font-weight: 700; }

@keyframes sheet-rise {
  from { transform: translateY(18px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 8px 18px -12px rgba(0, 0, 0, 0.3); }
  to { transform: none; }
}

/* Abschnitte */
.section-head { display: grid; gap: 14px; max-width: 46rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

.programmes { padding-block: var(--section); }
.register { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.register__item { border-bottom: 1px solid var(--line); }
.register summary {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; grid-template-areas: "code name chev" "code who chev";
  column-gap: 20px; row-gap: 2px; align-items: baseline;
  padding: 22px 16px; cursor: pointer; list-style: none;
  transition: background-color 160ms var(--ease-out);
}
.register summary::-webkit-details-marker { display: none; }
.register summary:hover { background: var(--surface); }
.register__item--lead summary { background: var(--blue-soft); }
.register__item--lead summary:hover { background: var(--blue-soft-hover); }
.register__item--lead .register__who { color: var(--ink); }
.register__code { grid-area: code; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue); }
.register__name { grid-area: name; font-size: var(--step-1); font-weight: 700; }
.register__who { grid-area: who; color: var(--muted); }
.register__status { display: block; font-weight: 600; color: var(--ink); }
.register__chev { grid-area: chev; align-self: center; width: 22px; height: 22px; color: var(--blue); transition: transform 260ms var(--ease-out); }
.register details[open] .register__chev { transform: rotate(180deg); }
.register__body { margin: 4px 16px 26px calc(4.25rem + 36px); max-width: 52rem; }
.register__body > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.register__body dt { font-weight: 700; font-size: 0.9375rem; color: var(--muted); }
.register__body dd { margin: 0; max-width: 62ch; }
.register__link { margin: 0 16px 26px calc(4.25rem + 36px); font-weight: 700; }
.register__more { margin-top: 24px; color: var(--muted); max-width: 62ch; }

.feature { background: var(--surface); padding-block: var(--section); border-block: 1px solid var(--line); }
.feature__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.feature__intro { display: grid; gap: 16px; align-content: start; }
.feature__intro p { font-size: var(--step-1); color: var(--muted); max-width: 32em; }
.feature__list { list-style: none; margin: 0; padding: 0; }
.feature__list li { display: grid; gap: 4px; padding-block: 22px; border-top: 1px solid var(--line); }
.feature__list li:last-child { border-bottom: 1px solid var(--line); }
.feature__list p { color: var(--muted); }
.feature__note { color: var(--muted); max-width: 62ch; }

.steps { padding-block: var(--section); }
.steps__list { list-style: none; counter-reset: step; display: grid; gap: clamp(28px, 3vw, 40px); margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; }
.steps__list li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps__list li::before {
  content: counter(step); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); font-weight: 700; line-height: 1;
  color: var(--blue); font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.steps__list p { color: var(--muted); max-width: 34em; }
.steps__boundary { margin-top: clamp(36px, 4vw, 52px); font-weight: 700; font-size: var(--step-1); max-width: 40em; }

.faq { background: var(--surface); padding-block: var(--section); border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.125rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12M10 4v12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12M10 4v12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); max-width: 65ch; }

.closer { background: var(--blue); color: var(--on-blue); padding-block: clamp(56px, 7vw, 96px); }
.closer__inner { display: grid; gap: 18px; justify-items: start; }
.closer p { color: var(--on-blue-muted); font-size: var(--step-1); max-width: 34em; }
.closer .btn { margin-top: 10px; }

.colophon { padding-block: 32px 48px; font-size: 0.9375rem; color: var(--muted); }
.colophon__inner { display: grid; gap: 14px; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.colophon a { color: var(--ink); }

/* Breiten */
@media (min-width: 960px) {
  .stage__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature__note { grid-column: 2; }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .faq__grid h2 { position: sticky; top: 32px; }
  .colophon__inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 640px) {
  .masthead__nav a:not(.btn) { display: none; }
  .brand__by { display: none; }
  .register summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code chev" "name chev" "who chev"; }
  .register__body { margin-left: 16px; }
  .register__link { margin-left: 16px; }
  .register__body > div { grid-template-columns: 1fr; gap: 2px; }
  .btn { padding-inline: 18px; }
  .sheet__row { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
  .masthead .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
