/* Design für michael-fries.de
   Farben wie im BA-Poster (Blau 2f4090, Orange d9730d) und Erdtöne wie im Bodenprofil.
   Nur Systemschriften, keine externen Dateien: es gehen keine Besucherdaten an Dritte. */

:root {
  --blau: #2f4090;
  --blau-dunkel: #1f2b66;
  --orange: #d9730d;
  --text: #24272e;
  --grau: #5d6370;
  --linie: #e6dfd1;
  --hintergrund: #fbf9f4;
  --karte: #ffffff;
  /* Bodenschichten von oben nach unten */
  --sand: #f0ddb2;
  --ocker: #df8d3c;
  --erde: #9c6a43;
  --erde-dunkel: #6e4a2f;
  --schatten: 0 1px 2px rgb(31 43 102 / 6%), 0 10px 30px -12px rgb(31 43 102 / 18%);
  --breite-text: 46rem;
  --breite: 74rem;
  --rund: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
}

/* Schmaler Streifen ganz oben: Bodenschichten */
body::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(to bottom,
    var(--sand) 0 25%, var(--ocker) 25% 50%, var(--erde) 50% 75%, var(--blau) 75% 100%);
}

a { color: var(--blau); text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }

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

img, video { max-width: 100%; }

/* ---------- Kopfzeile ---------- */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--blau-dunkel);
  text-decoration: none;
}
.marke img { width: 34px; height: 34px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.nav a:hover { background: #f1ebdf; color: var(--blau); }
.nav a[aria-current="page"] { background: #ece9f6; }

/* ---------- Textspalten ---------- */
.inhalt {
  max-width: var(--breite-text);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.breit {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dachzeile {
  margin: 2.5rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--blau-dunkel);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Langer Titel der Arbeit: kleiner als die Überschrift der Startseite */
h1.titel { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.05rem); line-height: 1.22; }

h2 {
  margin: 3rem 0 0.9rem;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--blau-dunkel);
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

.einleitung { font-size: 1.15rem; color: #3a3f4a; }

/* Kleine Schilder unter dem Titel */
.schilder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.schilder li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--karte);
  font-size: 0.9rem;
  color: var(--grau);
}

/* Kernaussage wie auf dem Poster */
.kernaussage {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--karte);
  border-left: 6px solid var(--orange);
  border-radius: 0 var(--rund) var(--rund) 0;
  box-shadow: var(--schatten);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.5;
  color: var(--blau-dunkel);
}
@media (max-width: 560px) {
  .kernaussage { font-size: 1.05rem; padding: 0.9rem 1rem; }
}

/* ---------- Video ---------- */
.video {
  margin: 0 auto;
  max-width: var(--breite);
  padding: 0 1.25rem;
}
.video .rahmen {
  padding: 0.6rem;
  background: var(--karte);
  border-radius: calc(var(--rund) + 4px);
  box-shadow: var(--schatten);
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2520 / 900;
  background: #f9f9f9;
  border-radius: 10px;
}
.video figcaption {
  max-width: var(--breite-text);
  margin: 0.9rem auto 0;
  font-size: 0.95rem;
  color: var(--grau);
  text-align: center;
  text-wrap: balance;
}

/* Hinweis nur auf dem Handy im Hochformat */
.quer-tipp {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #fff3e6;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--blau-dunkel);
}
.quer-tipp svg { flex: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .quer-tipp { display: flex; }
}

/* ---------- Kennzahlen ---------- */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.kennzahlen li {
  padding: 1.1rem 1.1rem 1rem;
  background: var(--karte);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  border-top: 4px solid var(--sand);
}
.kennzahlen li:nth-child(2) { border-top-color: var(--ocker); }
.kennzahlen li:nth-child(3) { border-top-color: var(--erde); }
.kennzahlen li:nth-child(4) { border-top-color: var(--blau); }
.kennzahlen strong {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--blau-dunkel);
  font-variant-numeric: tabular-nums;
}
.kennzahlen strong small { font-size: 0.55em; font-weight: 700; margin-left: 0.1em; }
.kennzahlen span { display: block; margin-top: 0.35rem; font-size: 0.92rem; line-height: 1.4; color: var(--grau); }
@media (max-width: 760px) {
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Programmablauf ---------- */
.ablauf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}
.ablauf li {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  border-radius: 12px;
  background: var(--blau);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}
.ablauf li.vorhanden {
  background: var(--karte);
  color: var(--text);
  border: 2px solid var(--blau);
}
.ablauf li strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }
.ablauf li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.45rem;
  width: 1.1rem;
  height: 1.1rem;
  translate: 0 -50%;
  background: var(--orange);
  clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%);
}
.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--grau);
}
.legende span::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.4em;
  vertical-align: -0.1em;
  border-radius: 3px;
  background: var(--blau);
}
.legende span.vorhanden::before { background: var(--karte); border: 2px solid var(--blau); }
@media (max-width: 760px) {
  .ablauf { grid-template-columns: 1fr; gap: 1.4rem; }
  .ablauf li:not(:last-child)::after {
    top: auto;
    bottom: -1.3rem;
    right: auto;
    left: 50%;
    translate: -50% 0;
    rotate: 90deg;
  }
}

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--blau);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s;
}
.knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf small { font-weight: 500; opacity: 0.8; }

/* ---------- Startseite ---------- */
.held {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  max-width: var(--breite-text);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}
.held img { width: clamp(7rem, 18vw, 10.5rem); height: auto; rotate: 8deg; filter: drop-shadow(0 12px 14px rgb(59 42 29 / 22%)); }
@media (max-width: 560px) {
  .held { grid-template-columns: 1fr; }
  .held img { display: none; }
}

.karte {
  display: block;
  margin: 2rem 0;
  overflow: hidden;
  background: var(--karte);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.karte:hover { transform: translateY(-3px); color: var(--text); box-shadow: 0 1px 2px rgb(31 43 102 / 6%), 0 16px 36px -12px rgb(31 43 102 / 28%); }
.karte img { display: block; width: 100%; height: auto; aspect-ratio: 1680 / 600; background: #f9f9f9; border-bottom: 1px solid var(--linie); }
.karte .text { padding: 1.2rem 1.4rem 1.35rem; }
.karte .schild {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff3e6;
  color: #a4530a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.karte strong { display: block; margin-bottom: 0.3rem; font-size: 1.2rem; line-height: 1.3; color: var(--blau-dunkel); }
.karte p { margin: 0 0 0.6rem; color: var(--grau); }
.karte .weiter { font-weight: 650; color: var(--blau); }

/* ---------- Literatur ---------- */
.literatur { font-size: 0.88rem; color: var(--grau); }
.literatur p { padding-left: 1.5em; text-indent: -1.5em; }

/* ---------- Fußzeile mit Bodenprofil ---------- */
.fuss { margin-top: 5rem; }
.fuss .profil { display: block; width: 100%; height: 90px; }
.fuss .unten {
  background: var(--erde-dunkel);
  color: #f3e7d3;
  font-size: 0.875rem;
}
.fuss .unten div {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.6rem;
}
.fuss a { color: #fff; }
