:root {
  --ground: #f6fafc;
  --ink: #14313f;
  --deep: #1e5878;
  --deep-lift: #2a6b8e;
  --pole-a: #c9750a;      /* Struktur — Balkenfüllung */
  --pole-a-text: #a85f05; /* dieselbe Farbe, dunkel genug für Text auf hellem Grund */
  /* hell genug für 4,5:1 auch an der hellsten Stelle des Hero-Verlaufs */
  --pole-a-dark: #ffd98f;
  --pole-b: #2e78a6;   /* Flexibilität — MPA-Blau */
  --pole-a-lite: #f3aa22;
  --pole-b-lite: #6bb4dd;
  --muted: #4e6a79;   /* dunkel genug für 4,5:1 auch auf #e8f0f5 */
  --rule: #dbe7ee;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 68rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Nur für Screenreader: sichtbar für Hilfsmittel, nicht auf dem Bildschirm */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--deep); color: #fff; padding: .75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7.5vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: .35rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pole-a-dark);
  margin: 0 0 1.25rem;
}
.eyebrow-dark { color: var(--pole-a-text); }

.prose { max-width: 44rem; color: #35505e; }

/* ---------- Hero ---------- */

.hero {
  /* Die beiden Motivpole als Licht: Bernstein von links unten, Blau von rechts
     oben - dieselbe Aufteilung wie die Achse am unteren Rand. Die Grundfläche
     bleibt oben links am dunkelsten, dort steht der Text. */
  background:
    radial-gradient(46rem 22rem at 20% 120%, rgba(243,170,34,.19), transparent 65%),
    radial-gradient(50rem 40rem at 88% 8%, rgba(107,180,221,.22), transparent 62%),
    linear-gradient(155deg, #1a4e6b 0%, var(--deep) 55%, #23648a 100%);
  color: #eaf4fa;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) 0;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero h1 { color: #fff; margin-bottom: 1.75rem; }

.lede { max-width: 34rem; color: #cfe3ee; font-size: 1.075em; }
.lede strong { color: #fff; font-weight: 600; }

/* Freigestellt, ohne Rahmen und ohne Maske - er steht direkt auf dem Blau. */
.hero-portrait img {
  display: block;
  width: 100%;
  max-width: 27rem;
  height: auto;
  margin-inline: auto;
}
@media (min-width: 46.0625rem) {
  .hero-portrait {
    align-self: end;
    /* endet knapp über der Motiv-Achse, statt sie zu durchschneiden */
    margin-bottom: calc(9px - clamp(3rem, 7vw, 5rem));
  }
}

/* Motiv-Achse: die beiden Pole als Signatur, direkt unter dem Hero */
.hero-axis {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 6px;
  transform: translateY(3px);
}
.axis-fill { height: 6px; border-radius: 3px; }
.axis-a {
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--pole-a-lite));
  transform-origin: right;
  animation: grow 1.1s cubic-bezier(.16,.84,.44,1) both;
}
.axis-b {
  flex: 1;
  background: linear-gradient(90deg, var(--pole-b-lite), transparent);
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(.16,.84,.44,1) .08s both;
}
.axis-tick { width: 2px; height: 16px; background: var(--ground); flex: none; }

@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.section + .section { padding-top: 0; }
.section-demo { padding-top: clamp(4rem, 9vw, 7rem); }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem; bottom: 2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--pole-a), var(--pole-b));
  opacity: .3;
}

.tl-item {
  position: relative;
  padding: 0 0 2.75rem 2rem;
}
/* Einblenden nur, wenn JS den Reveal übernimmt — ohne JS bleibt alles sichtbar. */
.reveal .tl-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.44,1);
}
.reveal .tl-item.is-in { opacity: 1; transform: none; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -5px; top: .55rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--pole-a);
}

.tl-year {
  display: block;
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--pole-b);
  margin-bottom: .5rem;
}

.tl-body p { max-width: 44rem; color: #35505e; }
.tl-body p:last-child { margin-bottom: 0; }

.tl-aside { font-style: italic; color: var(--muted) !important; }

.tl-question::before { background: var(--pole-a); border-color: var(--pole-a); }
.tl-question blockquote {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep);
  text-wrap: balance;
}

/* ---------- Demo: der Signature-Baustein ---------- */

.demo { margin-top: 2.5rem; }

.demo-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }

.demo-btn {
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .55rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.demo-btn:hover { border-color: var(--deep); color: var(--deep); }
.demo-btn.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.panel {
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}
.panel-new { border-color: rgba(30,88,120,.3); box-shadow: 0 14px 34px -22px rgba(30,88,120,.5); }

.panel figcaption { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.75rem; }
.panel-kicker {
  font-family: var(--display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 4px;
  background: #e8f0f5;
  color: var(--muted);
}
.panel-new .panel-kicker { background: var(--deep); color: #fff; }
.panel-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }

.motive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  row-gap: .5rem;
}
.motive-label {
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.motive-label-a { color: var(--pole-a-text); }
.motive-label-b { color: var(--pole-b); text-align: right; }

.bar {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  height: 34px;
  background: #eef4f8;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  width: 50%;
  display: flex;
}
.bar-a { justify-content: flex-end; }
.bar-a::after, .bar-b::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--v, 0%);
  transition: width .55s cubic-bezier(.16,.84,.44,1);
}
.bar-a::after { background: var(--pole-a); border-radius: 4px 0 0 4px; }
.bar-b::after { background: var(--pole-b); border-radius: 0 4px 4px 0; }
.bar-center {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(20,49,63,.35);
}
/* Skalenstriche alle 25 Punkte, damit die Intensität ablesbar bleibt */
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(12.5% - 1px), rgba(20,49,63,.13) calc(12.5% - 1px) 12.5%);
}

/* MPA-Panel: zwei Balken untereinander, jeder von links nach rechts auf 0–100.
   Genau so liest sich der MPA-Bericht — und es zeigt, dass hier zwei getrennte
   Intensitäten gemessen werden statt einer Waage. */
.motive-stack { display: block; }
.mrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: .35rem;
  margin-bottom: 1rem;
}
.motive-stack .motive-label-a,
.motive-stack .motive-label-b { text-align: left; }
.motive-stack .motive-val { text-align: right; }
.mrow .bar { grid-column: 1 / -1; height: 26px; }
/* Skalenstriche hier alle 25 Punkte = 25 % der Breite (bei der Waage sind es 12,5 %) */
.bar-lr::before {
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(25% - 1px), rgba(20,49,63,.13) calc(25% - 1px) 25%);
}
.bar-lr-fill {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: 0 4px 4px 0;
  transition: width .55s cubic-bezier(.16,.84,.44,1);
}
.bar-lr-a { background: var(--pole-a); }
.bar-lr-b { background: var(--pole-b); }

.scale {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: -.15rem;
}

.motive-val {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.motive-val-a { color: var(--pole-a-text); }
.motive-val-b { color: var(--pole-b); text-align: right; }

.panel-note {
  margin: 1.25rem 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
  min-height: 3em;
}

.callout {
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--pole-a);
  background: #e9f2f7;
  border-radius: 0 10px 10px 0;
  max-width: 46rem;
}

/* ---------- Links ---------- */

.links { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); }
.links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.25rem .25rem;
  text-decoration: none;
  transition: padding-left .25s ease, color .2s;
}
.links a:hover { padding-left: 1rem; color: var(--deep); }
.link-kicker { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.link-url { font-size: .9375rem; color: var(--muted); }
.links a:hover .link-url { color: var(--pole-b); }

.signoff {
  margin: 2.5rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--deep);
  color: #c3dae6;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad);
  font-size: .9375rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer p { margin: 0 0 .6rem; }
.footer a { color: #e2f0f8; text-decoration-color: rgba(226,240,248,.4); text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-meta { margin-top: 1.5rem; color: #b9d5e4; font-size: .875rem; }
.footer-meta a { color: #b9d5e4; }
.footer-meta a:hover { color: #fff; }

/* ---------- Impressum ---------- */

.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 3rem 0 .75rem; }
.legal h3 { font-size: 1.0625rem; margin: 1.75rem 0 .35rem; color: var(--deep); }
.legal p, .legal li { color: #35505e; }
.legal ul { padding-left: 1.2rem; }
.legal .back {
  display: inline-block;
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pole-b);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.legal .back:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 46rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-width: 15rem; }
  .motive-val { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .tl-item { opacity: 1; transform: none; }
}

@media print {
  .hero, .footer { background: #fff; color: #000; }
  .demo-switch { display: none; }
}
