@import url("../fonts/fonts.css");

/* ==========================================================================
   Innside Statistics — Design-System
   Farben stammen direkt aus dem Logo: #091D2B (Navy), #276FB6 (Blau)
   ========================================================================== */

:root {
  /* --- Marke --- */
  --navy: #091d2b;
  --navy-soft: #16334a;
  --blue: #276fb6;
  --blue-dark: #1d5a96;
  --blue-tint: #dde9f6;
  /* Aufgehelltes Markenblau für Text und Marken auf dunklem Grund.
     Das Original erreicht auf Navy nur 3,3:1, dieser Ton 7,8:1. */
  --blue-light: #7db4e8;

  /* --- Neutrale Töne, leicht blaustichig, damit sie zur Marke passen --- */
  --ink: #14232f;
  --body: #3d4f5d;
  /* Muss auf drei Untergründen bestehen: Weiß 5,73:1, --surface 4,95:1,
     --blue-tint 4,66:1. Der frühere Wert fiel mit dem dunkleren Flächenton
     unter die geforderten 4,5:1. */
  --muted: #5b6871;
  --line: #d5dfe8;
  --line-soft: #e6ecf2;
  /* Der Flächenton lag bei #f6f9fb und hob sich mit einer Stufe von 1,06
     kaum von Weiß ab — die Abschnitte verschwammen ineinander. Dieser Ton
     liegt bei 1,16 und macht den Wechsel tatsächlich sichtbar. */
  --surface: #e9eff5;
  --white: #ffffff;

  /* --- Typografie --- */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* --- Layout --- */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 4px;

  /* --- Vertikaler Rhythmus --- */
  --space-section: clamp(4rem, 9vw, 7.5rem);
}

/* ==========================================================================
   Reset und Grundlagen
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typografie
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1.4em;
  max-width: 68ch;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* Sichtbarer Fokusring für Tastaturbedienung (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nur für Screenreader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Layout-Bausteine
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--surface {
  background: var(--surface);
}

/* Dunkle Bahn. Bricht den durchgehend hellen Seitenfluss auf und gibt der
   Marke Präsenz, ohne dass eine weitere Farbe nötig wäre. */
.section--navy {
  background: var(--navy);
  color: #c3d2dd;
}

.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy strong {
  color: var(--white);
}

/* Die erste Auswahl ist nötig, weil `.section--navy .section-intro p` sonst
   spezifischer wäre und die Marke grau statt blau einfärben würde. */
.section--navy .section-intro .eyebrow,
.section--navy .eyebrow {
  color: var(--blue-light);
}

.section--navy .eyebrow::before {
  background: var(--blue-light);
}

.section--navy .section-intro p {
  color: #c3d2dd;
}

/* Karten auf dunklem Grund: leicht aufgehellte Fläche statt Weiß — sonst
   entstünden harte weiße Blöcke, die die ruhige Anmutung stören. */
.section--navy .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--blue-light);
}

.section--navy .card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: var(--white);
  box-shadow: none;
}

.section--navy .card p {
  color: #c3d2dd;
}

.section--navy .card ul li::before {
  background: var(--blue-light);
}

.section--navy .arrow-link,
.section--navy a {
  color: var(--blue-light);
}

.section--navy .arrow-link:hover,
.section--navy a:hover {
  color: var(--white);
}

.section--navy .card__num {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blue-light);
}

/* Kleine Sektionsmarke oberhalb der Überschrift.
   Der vorangestellte Strich wiederholt sich über die ganze Seite und bindet
   die Abschnitte optisch zusammen. */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* --blue erreicht auf dem Flächenton nur 4,49:1. Der dunklere Ton liegt
     bei 6,14:1 und gibt der Marke zugleich mehr Gewicht. */
  color: var(--blue-dark);
  margin: 0 0 1rem;
}

/* An der ersten Zeile ausrichten, nicht am gesamten Textblock — sonst rutscht
   der Strich bei zweizeiligen Marken zwischen die Zeilen. */
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  margin-top: 0.7em;
  background: var(--blue-dark);
}

.section-intro {
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-intro p {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Muss nach der Regel oben stehen und spezifischer sein, sonst färbt
   `.section-intro p` die Sektionsmarke grau statt blau. */
.section-intro .eyebrow {
  color: var(--blue-dark);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

/* Der Einleitungstext stand vorher in --muted (4,97:1) und wirkte dadurch
   blass. --body erreicht 8,49:1 und gibt dem Seitenanfang Gewicht. */
.lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: var(--body);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-tint);
}

/* Auf dunklem Grund. Der Hauptbutton wird hell statt blau: Markenblau hebt
   sich vom Navy nur mit 3,30:1 ab und wirkte dadurch schwächer als der
   sekundäre Button mit hellem Rahmen — die Gewichtung stand auf dem Kopf. */
.section--navy .btn--primary,
.cta-band .btn--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.section--navy .btn--primary:hover,
.cta-band .btn--primary:hover {
  background: var(--blue-tint);
  border-color: var(--blue-tint);
  color: var(--navy);
}

.section--navy .btn--ghost,
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.section--navy .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--blue-dark);
}

.arrow-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.arrow-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Hinweisleiste der Testumgebung
   Steht bewusst im Fluss statt fixiert, damit sie den klebenden Kopfbereich
   nicht überlagert und die Gestaltung unverfälscht beurteilt werden kann.
   ========================================================================== */

.test-banner {
  margin: 0;
  max-width: none;
  background: #7a2e12;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.6rem 1rem;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo img {
  height: 34px;
  width: auto;
}

@media (min-width: 600px) {
  .site-logo img {
    height: 40px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap; /* Beschriftungen nie mitten im Wort umbrechen */
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  background: var(--blue-tint);
}

.site-nav .nav-cta a {
  background: var(--navy);
  color: var(--white);
  padding-inline: 1.15rem;
  margin-left: 0.5rem;
}

.site-nav .nav-cta a:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Umschaltgrenze bei 980px: Die Leiste braucht mit sechs Punkten rund 905px
   Fensterbreite, um einzeilig zu bleiben; die Differenz ist bewusster Spielraum
   für längere Beschriftungen. Wird die Navigation erweitert, muss dieser Wert
   mitwachsen — und die matchMedia-Abfrage in partials/footer.php dazu. */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(9, 29, 43, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav .nav-cta a {
    margin-left: 0;
    margin-top: 0.75rem;
    text-align: center;
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Sehr weicher Farbverlauf aus dem Markenblau — gibt dem Hero Tiefe,
   ohne die ruhige Anmutung aufzugeben. */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 88% 10%, rgba(39, 111, 182, 0.1) 0%, rgba(39, 111, 182, 0) 62%),
    linear-gradient(180deg, #f7fafd 0%, var(--white) 65%);
}

/* Eigener Block innerhalb von .wrap — sonst würde die max-width von .wrap
   überschrieben und der Text stünde mittig statt an der Inhaltskante. */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero .lead {
  max-width: 40rem;
}

/* Kurve im Hintergrund — greift das Motiv aus dem Logo auf.
   Zwei versetzte Linien in Navy und Blau geben etwas mehr Präsenz als eine
   einzelne, bleiben durch die geringe Deckkraft aber im Hintergrund. */
.hero__curve {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(58%, 620px);
  pointer-events: none;
  z-index: 0;
}

.hero__curve .curve-back {
  color: var(--navy);
  opacity: 0.06;
}

.hero__curve .curve-front {
  color: var(--blue);
  opacity: 0.16;
}

@media (max-width: 780px) {
  .hero__curve {
    display: none;
  }
}

/* Kennzahlenleiste unter dem Hero — Linien laufen durch, die Inhalte
   bleiben aber bündig zur Inhaltsspalte der übrigen Sektionen. */
.hero-facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.hero-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.hero-facts__grid > div {
  padding: 1.75rem clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

.hero-facts__grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

@media (max-width: 660px) {
  .hero-facts__grid > div {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-inline: 0;
  }

  .hero-facts__grid > div:first-child {
    border-top: 0;
  }
}

.hero-facts dt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Kleiner Punkt in Markenblau vor jeder Kennzahl. An der ersten Zeile
   ausgerichtet, nicht am gesamten Textblock — längere Beschriftungen
   brechen auf schmalen Fenstern um, und der Punkt säße sonst dazwischen. */
.hero-facts dt::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.52em;
  border-radius: 50%;
  background: var(--blue);
}

.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ==========================================================================
   Karten
   ========================================================================== */

.card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Die Oberkante trägt den Markenakzent — dauerhaft sichtbar in einem hellen
   Blau, beim Überfahren in voller Farbe. Bewusst als Rahmen statt als
   Pseudoelement: so liegt der Akzent exakt auf der Kante, ohne dass der
   graue Rahmen darüber durchscheint. */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid #b6cee6;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.card:hover {
  border-color: #c8d5e0;
  border-top-color: var(--blue);
  box-shadow: 0 10px 30px rgba(9, 29, 43, 0.08);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

/* Nummer als Marke in getöntem Feld statt als bloße Ziffer */
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: 0.6rem;
  border-radius: var(--radius);
  background: var(--blue-tint);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}

.card h3 {
  margin-bottom: 0.55em;
}

.card p:last-of-type {
  margin-bottom: 0;
}


.card ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9688rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.card .arrow-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ==========================================================================
   Aktuelles
   ========================================================================== */

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-top: 0.35rem;
}

.news-item h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5em;
}

.news-item p {
  margin-bottom: 0.9rem;
  font-size: 0.9688rem;
}

.news-item p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .news-item time {
    padding-top: 0;
  }
}

/* ==========================================================================
   Profil (Ansprechpartner)
   ========================================================================== */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Versetzte Fläche in Markenblau hinter dem Porträt — ein klassischer
   redaktioneller Akzent, der ohne zusätzliches Markup auskommt. */
.profile__photo img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0.85rem 0.85rem 0 var(--blue-tint);
  margin-bottom: 0.85rem;
}

@media (max-width: 760px) {
  .profile__photo img {
    box-shadow: 0.6rem 0.6rem 0 var(--blue-tint);
  }
}

@media (max-width: 760px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile__photo {
    max-width: 260px;
  }
}

/* ==========================================================================
   Kontaktangaben
   ========================================================================== */

.contact-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list dfn,
.contact-list .label {
  flex: 0 0 6.5rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.contact-list .value {
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   Kurstabelle / Merkmale
   ========================================================================== */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Fließtext-Bereiche (Impressum, Datenschutz, Forschung)
   ========================================================================== */

/* Nur direkte Kinder erhalten den Fließtext-Rhythmus — sonst würden auch
   Überschriften in eingebetteten Karten einen großen Vorabstand bekommen. */
.prose > h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-top: 2.5em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  font-size: 1.1875rem;
  margin-top: 2em;
}

.prose ul,
.prose ol {
  max-width: 68ch;
  padding-left: 1.25rem;
  margin-bottom: 1.4em;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Lange URLs im Fließtext — etwa der Anbieterlink in der Datenschutzerklärung —
   passen auf schmalen Displays nicht in eine Zeile und schoben sonst die ganze
   Seite seitlich heraus. "break-word" bricht nur, wenn das Wort allein nicht
   in die Zeile passt, lässt normale Wörter also unangetastet. */
.prose a {
  overflow-wrap: break-word;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-weight: 600;
  color: var(--ink);
}

/* Breite Inhalte dürfen nie die Seite horizontal scrollen lassen */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5em;
}

/* Publikationsliste */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9688rem;
  max-width: 72ch;
}

.pub-list li:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   Kontaktband
   ========================================================================== */

.cta-band {
  background: var(--navy);
  color: #c3d2dd;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.4em;
}

.cta-band p {
  margin-bottom: 0;
  max-width: 46ch;
}

.cta-band__text {
  flex: 1 1 26rem;
}

/* ==========================================================================
   Fußbereich
   ========================================================================== */

.site-footer {
  background: #061520;
  color: #90a4b3;
  font-size: 0.9375rem;
}

/* Feste Spaltenzahl statt auto-fit. Zuvor stand hier
   `minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr))`; sobald die drei
   Linkspalten ihre Mindestbreite beanspruchten, fiel die erste Spalte auf
   Breite 0 zusammen und die Wortmarke quetschte sich hinein (gemessen bei
   640px Fensterbreite). Explizite Stufen sind hier vorhersagbarer. */
.site-footer__grid {
  display: grid;
  /* Die Kontaktspalte ist breiter gewichtet: Die E-Mail-Adresse braucht 198px
     und bräche sonst mitten im Wort um. */
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

/* Unter 1000px reicht die Breite für vier Spalten nicht mehr, ohne dass die
   E-Mail-Adresse umbricht. Zwei Spalten geben ihr wieder genug Platz. */
@media (max-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Einspaltig auf Telefonen: Zwei Spalten wären dort nur rund 143px breit —
   zu wenig für die Wortmarke (braucht 180px) und für die E-Mail-Adresse,
   die sonst mitten im Wort umbricht. */
@media (max-width: 620px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #90a4b3;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer p {
  margin-bottom: 0.5rem;
  max-width: 34ch;
}

/* Wortmarke im Fuß als Typografie statt als Bild: Die Logodatei hat
   dunkelblaue Schrift und wäre auf dem dunklen Grund nicht lesbar.
   Sobald eine helle Logovariante vorliegt, kann hier wieder ein Bild stehen. */
.site-footer__wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.site-footer__wordmark span {
  color: var(--blue);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
  max-width: none;
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__bottom li {
  margin: 0;
}

/* ==========================================================================
   Seitenkopf für Unterseiten
   ========================================================================== */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-head h1 {
  margin-bottom: 0.35em;
}

.page-head .lead {
  margin-bottom: 0;
  max-width: 52ch;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.breadcrumb span {
  padding-inline: 0.4rem;
}

/* Nach einem Seitenkopf reicht ein kleinerer Vorabstand — sonst entsteht
   zwischen Kopf und Inhalt eine auffällige Lücke. */
.page-head + .section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

/* ==========================================================================
   Hinweisbox
   ========================================================================== */

.note {
  background: var(--blue-tint);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 2rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.note strong {
  color: var(--navy);
}
