/* ==========================================================================
   KIP-GOV Projektwebsite — Stylesheet
   Farbwelt, Typografie & Bausteine gemäß Designschema
   ========================================================================== */

/* --------------------------------------------------------------- Fonts (lokal eingebettet, kein Google-Fonts-Zugriff) */
/* Beide Dateien sind Variable Fonts – eine Datei deckt mehrere Schriftschnitte ab. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Grundtöne */
  --paper: #FDFCF9;   /* Papierweiß · Hintergrund */
  --cream: #F7F1E8;   /* Creme · Flächen & Karten */
  --ink:   #1E2A33;   /* Tinte · Text, Rahmen, Schatten */
  --body:  #3D3831;   /* Fließtext */
  --grey:  #8A8073;   /* Grau · Labels, sekundär */

  /* Akzente */
  --orange:    #E8501A;
  --linkrot:   #C6430F;
  --koralle:   #F0806D;
  --bernstein: #F9BD5E;
  --tuerkis:   #6EBFB7;
  --salbei:    #C1CBA9;

  --footer-muted: #A79E93;
}

/* --------------------------------------------------------------- Reset/Base */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Der Prototyp wurde mit 12 % Vergrößerung abgestimmt. */
body { zoom: 1.12; }

img { max-width: 100%; }

a {
  color: var(--linkrot);
  text-decoration: underline;
  text-decoration-color: rgba(198, 67, 15, 0.45);
  text-underline-offset: 3px;
}
a:hover {
  color: #8F2F09;
  text-decoration-color: #8F2F09;
}
::selection { background: #F8D9C8; }

/* Deutlich sichtbarer Tastatur-Fokus. Bewusst in Tintenblau statt Orange: der aktive
   Navigationspunkt hat orangen Grund, ein oranger Rahmen wäre dort unsichtbar.
   `:focus-visible` zeigt ihn nur bei Tastaturbedienung, nicht bei Mausklick. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* Sprungmarke: für Tastatur- und Screenreader-Nutzung. Liegt außerhalb des Sichtfelds
   und fährt erst beim Fokussieren ein — so lässt sich die Navigation überspringen,
   die auf jeder Unterseite identisch ist. */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: #FFFFFF; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 18px;
  border: 2px solid var(--ink); border-radius: 10px;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* Lange deutsche Komposita („Kindertagespflege", „Zukunftsstrategien") sind auf schmalen
   Handys breiter als die Zeile und würden sonst rechts abgeschnitten.
   `overflow-wrap` ist die Notbremse (bricht notfalls hart um), `hyphens: auto` liefert
   dank lang="de" die saubere Silbentrennung – bewusst nur auf schmalen Geräten, damit
   die Desktop-Typografie unverändert bleibt. */
h1, h2, h3 { text-wrap: balance; }

@media (max-width: 480px) {
  /* Beides zusammen, in dieser Rangfolge vom Browser abgearbeitet:
     `hyphens: auto` trennt dank lang="de" sauber nach Silben, wo das Trennwörterbuch
     vorhanden ist; `overflow-wrap` greift nur, wenn das nicht möglich ist, und bricht
     dann notfalls hart um. Ohne die zweite Regel wird „Kindertagespflege“ auf Geräten
     ohne Wörterbuch rechts abgeschnitten. */
  h1, h2, h3, p, li { hyphens: auto; overflow-wrap: break-word; }
}

/* --------------------------------------------------------------- Layout */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.wrap        { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-1080   { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-960    { max-width: 960px;  margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-860    { max-width: 860px;  margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.dotted {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(30, 42, 51, 0.09) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.rule-top    { border-top: 2px solid var(--ink); }
.rule-bottom { border-bottom: 2px solid var(--ink); }

/* --------------------------------------------------------------- Typo helpers */
.eyebrow {
  color: var(--orange);
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1;
}
.eyebrow-lg { font-size: 35px; }
.eyebrow-md { font-size: 27px; }

/* Neutrale Variante: klein, groß geschrieben, mit Laufweite */
.eyebrow-plain {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hand { color: var(--orange); font-weight: 700; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 720px;
  margin: 0;
}
.prose p {
  margin: 0 0 18px;
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--body);
}
.prose p:last-child { margin-bottom: 0; }

.section-title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; }

/* Handgezeichneter „Doppelschatten"-Akzent auf großen Überschriften (Rotation je Instanz inline) */
.hero h1,
.page-head h1,
.section-title,
.legal h1 {
  text-shadow: 2px 2px 0 rgba(30, 42, 51, 0.14);
}

/* --------------------------------------------------------------- Buttons */
.btn {
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary   { background: var(--orange); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-secondary:hover { color: var(--ink); }

/* Textlink-Button (z. B. „← Ergebnisse") */
.btn-back {
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--linkrot); background: none; border: none;
  padding: 0; margin: 0 0 12px; cursor: pointer;
  display: inline-block; text-decoration: none;
}
.btn-back:hover { color: #8F2F09; text-decoration: underline; }

/* --------------------------------------------------------------- Chips / Badges */
.chip {
  display: inline-block;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 3px 12px;
}
.chip-cream { background: var(--cream); }
.badge {
  display: inline-block;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--orange); color: #FFFFFF; border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 4px 14px;
}
.badge-cream { background: var(--cream); color: var(--ink); }

/* --------------------------------------------------------------- Cards */
.card {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 26px 24px;
}
.card-cream { background: var(--cream); box-shadow: none; }
/* Karte ohne Kasten: nur Inhalt (Team-Seite — der Rahmen sitzt dort am Bild selbst) */
.card-plain { background: none; border: none; box-shadow: none; border-radius: 0; padding: 0; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p  { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--body); }

/* `min(… , 100%)` statt einer nackten Mindestbreite: Ohne das erzwingt `minmax()`
   die Spaltenbreite auch dann, wenn das Raster selbst schmaler ist – auf kleinen
   Handys (320 px) läuft die Seite dadurch seitlich über. Betrifft alle auto-fit-Raster. */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}
.grid-auto-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* --------------------------------------------------------------- Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { height: 74px; width: auto; max-width: 70vw; display: block; transition: height 0.28s ease; }
.site-header.scrolled .logo { height: 46px; }

/* gap sorgt dafür, dass sich die Hover-Flächen benachbarter Punkte nicht berühren */
.main-nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
/* Die Navigationspunkte sind echte <a href="…html">-Links (jede Seite ist ein eigenes
   Dokument, Suchmaschinen müssen ihnen folgen können). `text-decoration`/`color` setzen
   die globale a-Regel zurück; die Farbe muss zusätzlich in :hover stehen, sonst gewinnt
   dort `a:hover` per höherer Spezifität und färbt die Punkte rötlich. */
.nav-btn {
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; background: transparent; color: var(--ink);
  display: inline-block; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active:hover { color: #FFFFFF; }
/* Dezenter Hover: Fläche blendet ein, Punkt hebt sich 1 px an und wirft einen
   feinen Versatzschatten — greift nicht beim aktiven Punkt und beim Blog-Platzhalter. */
.nav-btn:not(.active):not(.is-blog):hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.nav-btn.active {
  background: var(--orange); color: #FFFFFF;
  border: 2.5px solid var(--ink);
  border-radius: 2px 13px 4px 15px / 11px 3px 14px 2px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-btn.is-blog { color: var(--footer-muted); cursor: default; }
.nav-btn.is-blog:hover { background: transparent; }

/* Burger */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; flex: 0 0 auto;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink); cursor: pointer; padding: 0;
}
.burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); }

.mobile-nav {
  border-top: 2px solid var(--ink); background: var(--paper);
  padding: 12px 16px 18px; display: none; flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
/* wie .nav-btn: echte Links, daher Link-Reset inkl. :hover-Farbe */
.mobile-btn {
  font-family: inherit; font-size: 17px; font-weight: 700; text-align: left;
  padding: 13px 16px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; background: var(--cream); color: var(--ink); width: 100%;
  display: block; text-decoration: none;
}
.mobile-btn:hover { color: var(--ink); }
.mobile-btn.active { background: var(--orange); color: #FFFFFF; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.mobile-btn.active:hover { color: #FFFFFF; }
.mobile-btn.is-blog { color: var(--footer-muted); cursor: default; }

/* --------------------------------------------------------------- Pages */
/* Hinweis: Bis 07/2026 war die Website eine einzige Datei mit Hash-Routing; die Seiten
   lagen als .screen-Container übereinander. Seit der Aufteilung in echte Einzelseiten
   (SEO) ist jede Seite ein eigenes Dokument — .screen wird nicht mehr gebraucht. */

/* Hero */
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 72px 24px 64px;
  display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
  /* Die Bleistiftskizze ragt bewusst über den linken Textrand hinaus (Dekoration).
     `clip` schneidet diesen Überstand am Seitenrand sauber ab, ohne – anders als
     `hidden` – eine Scrollbox zu erzeugen (der sticky Header bliebe sonst hängen). */
  overflow-x: clip;
}
/* `min(…, 100%)` bei allen Flex-Mindestbreiten: die feste Mindestbreite steuert weiterhin,
   ab wann umbrochen wird, kann aber auf sehr schmalen Geräten (320 px, dazu body-zoom 1.12)
   nicht mehr breiter werden als der verfügbare Platz – sonst läuft die Seite seitlich über. */
.hero-text { flex: 1 1 480px; min-width: min(300px, 100%); position: relative; isolation: isolate; }

/* Nur angedeutete Skizzen-Illustration im Hintergrund (Haus-Motiv, mehrfach nachgezogene
   Bleistift-Linien – die Deckkraft je Pfad im SVG selbst gibt die Schraffur-Dichte vor). */
.hero-bg-sketch {
  position: absolute;
  z-index: -1;
  top: -36px; left: -64px;
  /* Auf dem Desktop greift stets die 420 px; auf schmalen Geräten schrumpft die Skizze
     mit dem Textblock mit, statt ihn in fester Größe zu überdecken. */
  width: min(420px, 118%); height: auto; aspect-ratio: 1;
  opacity: 0.3;
  pointer-events: none;
}
.hero-art  { flex: 0 1 440px; min-width: min(280px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Kreisdiagramm „Kindertagespflege im Spannungsfeld" */
/* Der Schlagschatten sitzt bewusst auf `.diagram-wheel` und nicht auf `.ring`:
   `.ring` steckt im drehenden `.spin`, sein Schatten würde also beim Hover mitkreisen.
   `.diagram-wheel` dreht sich nie – der Versatz bleibt dadurch fest unten rechts.
   Deckungsgleich mit dem Ring, weil `.spin`/`.ring` per `inset:0` exakt dieselbe Box haben. */
.diagram-wheel {
  position: relative; width: min(320px, 100%); aspect-ratio: 1;
  border-radius: 50%; box-shadow: 5px 5px 0 var(--ink);
}
.diagram-wheel .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid var(--ink); overflow: hidden;
  background: conic-gradient(var(--tuerkis) 0deg 90deg, var(--bernstein) 90deg 180deg, var(--koralle) 180deg 270deg, var(--salbei) 270deg 360deg);
}
.diagram-wheel .label {
  /* Zentrierung bewusst über die Einzel-Eigenschaft `translate`, nicht über `transform`:
     CSS wendet translate → rotate → scale → transform an. Stünde die Zentrierung in
     `transform`, würde sie von der Gegendrehung (rotate) mitgedreht und das Label
     wanderte von seinem Ankerpunkt weg. */
  position: absolute; translate: -50% -50%; width: 34%; text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; color: var(--ink);
  /* „Zivilgesellschaft“ ist breiter als die 34 % des Rades, sobald das Diagramm auf
     kleinen Handys schrumpft – ohne Umbruchregel ragt das Wort über den Kreis hinaus. */
  hyphens: auto; overflow-wrap: break-word;
}
.diagram-wheel .label.staat   { left: 75%; top: 25%; }
.diagram-wheel .label.markt   { left: 75%; top: 75%; }
.diagram-wheel .label.familie { left: 25%; top: 75%; }
.diagram-wheel .label.zivil   { left: 25%; top: 25%; }
.diagram-wheel .center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--paper);
  border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6px;
}
.diagram-wheel .center span { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }

/* Hover: Rad hebt ab, wird größer und dreht sich langsam im Uhrzeigersinn.
   Gedreht wird nur `.spin` (Farbring + Beschriftungen) – der Kern `.center` liegt
   im Markup daneben und bleibt dadurch komplett unbewegt und gestochen scharf.
   Die Animation läuft dauerhaft, ist aber pausiert – beim Verlassen bleibt das Rad
   also stehen, wo es ist, statt in die Ausgangslage zurückzuspringen. */
@keyframes wheel-spin     { to { rotate:  360deg; } }
@keyframes wheel-spin-rev { to { rotate: -360deg; } }

.diagram-wheel { transition: scale 0.45s ease; }
.diagram-wheel .spin {
  position: absolute; inset: 0;
  animation: wheel-spin 26s linear infinite paused;
}
/* Die Beschriftungen kreisen mit ihrem Farbfeld mit (über .spin), drehen sich aber
   um exakt denselben Betrag zurück – dadurch bleiben sie immer waagerecht lesbar
   und behalten trotzdem die Zuordnung zu ihrem Viertel. Gleiche Dauer wie .spin,
   damit beide synchron bleiben. */
.diagram-wheel .label { animation: wheel-spin-rev 26s linear infinite paused; }

.diagram-wheel:hover { scale: 1.08; }
.diagram-wheel:hover .spin,
.diagram-wheel:hover .label { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .diagram-wheel .spin,
  .diagram-wheel .label { animation: none; }
  .diagram-wheel:hover { scale: 1.03; }
}
.diagram-caption {
  margin: 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px;
  line-height: 1.5; color: var(--grey); text-align: center; max-width: 340px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 2px 9px 3px 10px / 8px 2px 9px 3px;
  padding: 6px 18px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 26px;
}
.hero-badge .kip { font-size: 30px; font-weight: 700; color: var(--orange); }

/* Startseite: längerer Titeltext statt kurzer Marke — Kasten bleibt, Text darf umbrechen.
   Halbtransparente Fläche, damit die Bleistiftskizze dahinter durchscheint; die etwas
   größere Schrift gleicht den unruhigeren Untergrund wieder aus. */
.hero-badge.hero-intro-box {
  display: block;
  max-width: 480px;
  padding: 16px 20px;
  background: rgba(253, 252, 249, 0.72);
}
.hero-intro-box .kip {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  white-space: normal;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.015em; }
.hero-lead { margin: 0 0 30px; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page-Header (Unterseiten) */
.page-head { max-width: 1160px; margin: 0 auto; padding: 56px 24px 44px; position: relative; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.015em; }
.page-head .lead { margin-top: 12px; }

/* Fakten-Strip */
.facts { border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.facts-grid {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; align-items: center;
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); }
.fact .v { font-size: 17px; font-weight: 700; }

/* Aktuell-Karten */
.news-card { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.news-card p { margin: 0; font-size: 17px; line-height: 1.55; }

/* Team */
.team-lead { display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.team-photo { flex: 0 1 320px; min-width: min(260px, 100%); position: relative; }
/* overflow:hidden lässt den Rahmen das Bild in seiner eigenen (unregelmäßigen) Kontur
   beschneiden — das Bild bekommt daher bewusst keinen eigenen border-radius. */
.team-photo .frame { border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); background: #FFFFFF; overflow: hidden; line-height: 0; }
.team-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Der Rahmen der Projektleitung wird auf dieselbe Fläche wie `.photo-slot` (268 px)
   gebracht — das Bild darin behält aber seinen Maßstab und wird stattdessen
   beschnitten: 320 / 268 = 119,4 %. Prozentwerte statt fester Pixel, damit der
   Zuschnitt beim Mitschrumpfen auf schmalen Geräten gleich bleibt. */
.team-photo .frame {
  width: 268px; max-width: 100%; aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
}
.team-photo .frame img {
  width: 119.4%; max-width: none; flex: none; height: auto;
}
.team-bio { flex: 1 1 440px; min-width: min(300px, 100%); }
/* Alle Team-Namen einheitlich in derselben Größe (vorher war die Projektleitung
   deutlich größer gesetzt). Werte zentral hier statt inline je Person. */
.team-bio h2 { margin: 12px 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.team-bio p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--body); }

.photo-slot {
  position: relative; width: 268px; max-width: 100%; border: 2px solid var(--ink);
  border-radius: 14px; overflow: hidden; background: var(--cream); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--grey); font-size: 14px; padding: 16px;
}
.photo-slot.ratio-4-5 { aspect-ratio: 4 / 5; }
.photo-slot.ratio-3-2 { aspect-ratio: 3 / 2; background: #FFFFFF; }

/* Slot mit echtem Foto statt Platzhaltertext — Rahmen wie beim Porträt der Projektleitung */
.photo-slot.filled { padding: 0; border-width: 2.5px; box-shadow: 5px 5px 0 var(--ink); line-height: 0; }
.photo-slot.filled img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }

/* Faint decorative background image */
.section-rel { position: relative; isolation: isolate; }
.faint {
  position: absolute; height: auto; opacity: 0.08; z-index: -1; pointer-events: none;
}

/* Events */
.event-list { max-width: 960px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.event {
  background: #FFFFFF; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  padding: 24px 26px; display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap;
}
/* .event-date ist ein <time datetime="…">-Element (maschinenlesbares Datum für
   Suchmaschinen). Die beiden Zeilen darin sind <span> und brauchen deshalb
   display:block — sonst stünden Tag und Jahr nebeneinander und margin-top griffe nicht. */
.event-date { flex: 0 0 104px; text-align: center; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); padding: 10px 8px; }
.event-date .d { display: block; font-size: 40px; line-height: 1; font-weight: 700; color: var(--orange); }
.event-date .y { display: block; font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.event-body { flex: 1 1 300px; }
.event-city { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
/* h2, weil die Veranstaltungen direkt unter der Seiten-h1 stehen (kein h3-Sprung).
   Größe bewusst unverändert – die Ebene ist Semantik, nicht Optik. */
.event-body h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; text-shadow: none; }
.event-body p { margin: 0; font-size: 16px; color: var(--body); }

/* Einzige verlinkte Veranstaltungs-Kachel: Link-Reset (sonst unterstrichen/linkrot),
   plus ein sehr dezenter „gedrückt"-Effekt beim Hover — bewusst nur 1 px Versatz und
   nur 1 px weniger Schatten (die Buttons/Ergebniskarten der Seite bewegen sich beim
   Hover um 2 px; hier sollte es spürbar zurückhaltender wirken). */
.event-link { text-decoration: none; color: inherit; transition: transform 0.12s ease, box-shadow 0.12s ease; }
/* :hover erneut `color: inherit`, sonst gewinnt die globale a:hover-Regel (höhere
   Spezifität durch Element+Pseudoklasse) und färbt die schwarze Überschrift rötlich —
   hier soll sich beim Hover nur die Position ändern, nicht die Farbe. */
.event-link:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); color: inherit; }

/* Ergebnisse-Seite: drei Grafiken nebeneinander, gleichmäßig verteilt, als Platzhalter
   für den noch fehlenden Detailbereich. Bewusst ein starres 3-Spalten-Grid statt eines
   auto-fit-Rasters (wie sonst auf der Seite): dort würden die Bilder schon ab ~800px
   Breite auf eine Spalte umbrechen (min-Breite 260px × 3 passt nicht in die 960px-Spalte
   minus Innenabstand) — hier sollen sie auf normaler Desktop-Breite immer nebeneinander
   bleiben und dafür kleiner werden. Erst unter 600px (zu schmal für 3 lesbare Spalten)
   stapeln sie sich. */
.ergebnisse-preview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ergebnisse-preview img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  opacity: 0.75; border-radius: 12px;
}
@media (max-width: 600px) {
  .ergebnisse-preview { grid-template-columns: 1fr; }
}

/* Diagramme (Platzhalter) */
.chart-card { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); padding: 24px 26px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.chart-head h2 { margin: 0; font-size: 19px; text-shadow: none; }
.chart-tag { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--grey); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; border-bottom: 2px solid var(--ink); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-col .num { font-size: 13px; font-weight: 700; }
.bar { width: 100%; border: 2px solid var(--ink); border-bottom: none; border-radius: 7px 7px 0 0; }
.bar-labels { display: flex; gap: 14px; padding-top: 10px; }
/* `min-width: 0` hebt die Flex-Vorgabe auf, nicht schmaler als das längste Wort zu werden –
   sonst sprengen Labels wie „Mittelstadt" auf 320-px-Handys die Diagrammbreite.
   `hyphens`/`overflow-wrap` lassen den Text dann sauber umbrechen statt überzulaufen. */
.bar-labels span {
  flex: 1; min-width: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--grey);
  hyphens: auto; overflow-wrap: break-word;
}

.info-box { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; padding: 22px 26px; }
.info-box p { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; }

/* Legal-Seiten */
.legal h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.015em; }
.legal h2 { margin: 26px 0 10px; font-size: 22px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p  { margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: var(--body); }

/* --------------------------------------------------------------- Förder-Strip */
.funding { border-top: 2px solid var(--ink); background: #FFFFFF; }
.funding-inner { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.funding-inner .bmbf { height: 104px; width: auto; display: block; }
.funding-inner .ksh  { height: 64px;  width: auto; display: block; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: #F5F0E8; position: relative; overflow: hidden; }
.footer-stripe { display: flex; height: 11px; }
.footer-stripe div { flex: 1; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 36px 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 460px; }
.footer-brand .kip { font-size: 30px; font-weight: 700; color: var(--koralle); margin-bottom: 4px; }
.footer-brand p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #CFC7BA; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #F5F0E8; text-decoration: none; cursor: pointer; font-size: 15.5px; display: inline-flex; align-items: center; gap: 11px; }
.footer-links a:hover { color: #FFFFFF; }
.footer-links .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.footer-copy { border-top: 1px solid rgba(110, 191, 183, 0.4); padding-top: 16px; font-size: 14px; color: var(--footer-muted); }

/* Scroll-to-top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; display: none; align-items: center; justify-content: center;
  background: var(--orange); color: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; padding: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.to-top.show { display: inline-flex; }
.to-top:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .logo { height: 52px; }
  .site-header.scrolled .logo { height: 42px; }
  .hero-inner { padding: 48px 24px 40px; gap: 32px; }
}

/* Nutzer:innen mit Systemeinstellung „Bewegung reduzieren" sehen die Zustände
   ohne Übergang — Farben und Formen bleiben unverändert. */
@media (prefers-reduced-motion: reduce) {
  .nav-btn, .btn, .event-link, .to-top, .logo { transition: none; }
  .nav-btn:not(.active):not(.is-blog):hover { transform: none; }
}
