/* Eva Brigitta Mertens – gemeinsames Stylesheet aller Seiten.
   Farben und Schrift folgen dem Briefkopf. */

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bordeaux: #7b1e2e;
  --bordeaux-dunkel: #5e1522;
  --text: #1f1f1f;
  --text-leise: #5f5b57;
  --linie: #d8d3cc;
  --papier: #ffffff;
  --grund: #f3f1ed;
  --flaeche: #faf8f5;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: Arial, Helvetica, "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--grund);
}
a { color: var(--bordeaux); }
a:hover { color: var(--bordeaux-dunkel); }
a:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.blatt {
  max-width: 920px; margin: 28px auto; background: var(--papier);
  border: 1px solid var(--linie); padding: 0 64px 48px;
}

/* ---------- Kopf (wie Briefkopf) ---------- */
.kopf { display: flex; align-items: center; gap: 22px; padding: 40px 0 22px; }
.kopf-logo { flex: none; width: 74px; height: 74px; }
.kopf-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.35rem; line-height: 1.1; color: var(--text);
}
.kopf-name a { color: inherit; text-decoration: none; }
.kopf-zeile {
  margin-top: 8px; font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-leise);
}
.nav {
  border-top: 2px solid var(--bordeaux); border-bottom: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 12px 0;
}
.nav a {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--text); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

/* ---------- Text ---------- */
main { padding-top: 44px; }
section { margin-bottom: 56px; }
h1.titel { font-size: 1.75rem; font-weight: 400; line-height: 1.25; color: var(--bordeaux); margin-bottom: 8px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.rubrik {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bordeaux);
  border-bottom: 1px solid var(--linie); padding-bottom: 8px; margin-bottom: 22px;
}
.unterzeile { color: var(--text-leise); font-style: italic; }
.leise { color: var(--text-leise); font-size: 0.92rem; }
.stark { font-weight: 700; }
.leitsatz {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  line-height: 1.4; max-width: 34em;
}
.setzung { font-size: 1.2rem; font-weight: 700; line-height: 1.45; margin-top: 26px; max-width: 36em; }
.zahl { font-family: var(--serif); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--bordeaux); margin: 30px 0 12px; }

/* Zitat / Kernaussage: Linie links wie in der Publikationsliste */
.zitat { border-left: 3px solid var(--bordeaux); padding: 4px 0 4px 22px; margin: 8px 0; }
.zitat p.wort { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; }
.zitat .quelle { margin-top: 10px; font-size: 0.86rem; color: var(--text-leise); }
.merksatz {
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  padding: 30px 0; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.55rem; line-height: 1.4; color: var(--bordeaux);
}

/* ---------- Profil mit Foto ---------- */
.profil { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: start; }
.profil img { border: 1px solid var(--linie); }

/* ---------- Kästen ---------- */
.raster { display: grid; gap: 18px; margin-top: 22px; }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.kasten { border: 1px solid var(--linie); border-top: 2px solid var(--bordeaux); background: var(--flaeche); padding: 22px 22px 24px; }
.kasten.links { border-top: 1px solid var(--linie); border-left: 3px solid var(--bordeaux); }
.kasten .marke { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 8px; }
.kasten p { font-size: 0.95rem; }
.kasten .ergebnis { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linie); font-weight: 700; }
a.kasten { display: block; color: inherit; text-decoration: none; }
a.kasten:hover { border-color: var(--bordeaux); }
a.kasten .weiter { display: inline-block; margin-top: 16px; color: var(--bordeaux); font-weight: 700; font-size: 0.9rem; }
.ziffer { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--bordeaux); line-height: 1; margin-bottom: 8px; }

/* ---------- Listen ---------- */
.strichliste { list-style: none; margin-top: 18px; }
.strichliste li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--linie); }
.strichliste li:last-child { border-bottom: 1px solid var(--linie); }
.strichliste li::before { content: "—"; position: absolute; left: 0; color: var(--bordeaux); }
.strichliste .leise { display: block; margin-top: 2px; }

/* ---------- Publikationsliste (Fundstelle links, Titel rechts) ---------- */
.publiste { list-style: none; border-bottom: 1px solid var(--linie); }
.publiste li { display: grid; grid-template-columns: 132px 1fr; gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--linie); }
.fund { font-size: 0.82rem; font-weight: 700; color: var(--bordeaux); padding-top: 3px; }
.pub-titel { font-weight: 700; line-height: 1.35; }
.pub-meta { font-size: 0.88rem; color: var(--text-leise); margin-top: 3px; }
.pub-link { font-size: 0.86rem; margin-top: 2px; }
.status { display: inline-block; margin-top: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--bordeaux); color: var(--bordeaux); padding: 1px 8px; }

/* ---------- Anfrage ---------- */
.anfrage { border: 1px solid var(--bordeaux); padding: 34px 36px; text-align: center; }
.anfrage p { max-width: 34em; margin-left: auto; margin-right: auto; }
.knopf {
  display: inline-block; margin-top: 18px; background: var(--bordeaux); color: #fff;
  text-decoration: none; font-weight: 700; padding: 12px 28px; border: 1px solid var(--bordeaux);
}
.knopf:hover { background: var(--bordeaux-dunkel); color: #fff; }
.knopf.hell { background: transparent; color: var(--bordeaux); }
.knopf.hell:hover { background: var(--bordeaux); color: #fff; }

/* ---------- Fuß ---------- */
.fuss { border-top: 2px solid var(--bordeaux); margin-top: 20px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font-size: 0.86rem; color: var(--text-leise); }
.fuss strong { color: var(--text); }
.fuss .hinweis { flex-basis: 100%; font-size: 0.8rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext h2 { color: var(--bordeaux); font-size: 1.08rem; margin-top: 30px; margin-bottom: 8px; }
.rechtstext { max-width: 44em; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .blatt { margin: 0; border: 0; padding: 0 16px 36px; }
  .kopf { padding-top: 24px; gap: 14px; }
  .kopf-logo { width: 54px; height: 54px; }
  .kopf-name { font-size: 1.7rem; }
  .kopf-zeile { font-size: 0.6rem; letter-spacing: 0.16em; }
  .nav { gap: 2px 20px; }
  main { padding-top: 32px; }
  section { margin-bottom: 44px; }
  .profil { grid-template-columns: 1fr; gap: 24px; }
  .profil img { max-width: 220px; }
  .raster.zwei, .raster.drei { grid-template-columns: 1fr; }
  .publiste li { grid-template-columns: 1fr; }
  .leitsatz { font-size: 1.3rem; }
  .merksatz { font-size: 1.3rem; }
  .zahl { font-size: 2.5rem; }
  .anfrage { padding: 26px 18px; }
}
@media print {
  body { background: #fff; }
  .blatt { border: 0; margin: 0; }
  .nav { display: none; }
}

/* ---------- Überarbeitung: zentrierte Überschriften, Blocksatz ---------- */
.kopf { justify-content: center; text-align: center; }
.kopf-zeile { font-size: 0.76rem; }
.nav { justify-content: center; }
.nav a { font-size: 0.82rem; }
h1.titel, h2, h3, .rubrik, .leitsatz, .kasten .marke, .ziffer, a.kasten .unterzeile { text-align: center; }
.leitsatz { margin-left: auto; margin-right: auto; }
.rubrik { font-size: 0.98rem; letter-spacing: 0.2em; padding-bottom: 10px; }
.ziffer { font-size: 2rem; }
a.kasten h3 { font-size: 1.2rem; }
a.kasten .weiter { display: block; text-align: center; }

main p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main > section:first-child p, .anfrage p, .merksatz, p.leitsatz,
.raster.drei .kasten p, .publiste p, .zitat p, p:has(> .knopf) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
main > section:first-child p, .anfrage p, p.merksatz, p.leitsatz, p:has(> .knopf), .kasten p:has(> .knopf) { text-align: center; }
main > section:first-child .setzung, main > section:first-child p { margin-left: auto; margin-right: auto; }
main > section:first-child .zitat p { text-align: left; }
.kasten > .knopf { display: table; margin-left: auto; margin-right: auto; }

.fuss { flex-direction: column; align-items: center; text-align: center; gap: 14px; }

@media (max-width: 760px) {
  .kopf { flex-direction: column; gap: 10px; }
  .rubrik { font-size: 0.9rem; }
  .kopf-zeile { font-size: 0.64rem; }
}
.raster.zwei .kasten p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 760px) { .profil img { margin: 0 auto; } }

/* ---------- Überarbeitung 2: kleinere, einheitliche Schrift; Knöpfe; Fuß nebeneinander ---------- */
html { font-size: 87.5%; }
body { font-size: 1.07rem; }
.rubrik { font-size: 1.05rem; }
.nav a { font-size: 0.9rem; }
.kopf-zeile { font-size: 0.82rem; }
.leitsatz, .zitat p.wort, .merksatz, .zahl { font-family: var(--sans); }
.leitsatz { font-size: 1.3rem; line-height: 1.5; }
.zitat p.wort { font-size: 1.15rem; line-height: 1.55; }
.merksatz { font-size: 1.3rem; line-height: 1.5; }
.zahl { font-weight: 700; font-size: 2.8rem; }
.ziffer { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; }

a.kasten .weiter {
  display: table; margin: 20px auto 2px; padding: 10px 26px;
  border: 1.5px solid var(--bordeaux); background: var(--papier);
  color: var(--bordeaux); font-weight: 700; font-size: 1rem;
}
a.kasten:hover .weiter { background: var(--bordeaux); color: #fff; }

.fuss { flex-direction: row; justify-content: center; align-items: flex-start; gap: 14px 80px; }
.fuss .hinweis { flex-basis: 100%; }

@media (max-width: 760px) {
  body { font-size: 1.1rem; }
  .fuss { flex-direction: column; align-items: center; }
  .leitsatz, .merksatz { font-size: 1.2rem; }
  .zahl { font-size: 2.2rem; }
  .kopf-zeile { font-size: 0.72rem; }
}

.anfrage .hinweis-daten { margin-top: 16px; font-size: 0.9rem; }
