/* Gestaltung nach der Cover-Identität der Reihe (04_Marketing/cover.md im
   Buch-Repo): warmes Schwarz, Gold #C9A45C, Titelverlauf #E2C27E→#A8823F,
   Pergament #E6DCC6, EB Garamond; Josefin Sans für Auszeichnungen.
   Schriften selbst gehostet (OFL), keine fremden Server. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-var-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #15120f;
  --bg-tief: #0f0d0b;
  --text: #e6dcc6;
  --muted: #a89b82;
  --gold: #c9a45c;
  --gold-hell: #e2c27e;
  --gold-dunkel: #a8823f;
  --linie: rgba(201, 164, 92, 0.45);
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(var(--bg-tief), var(--bg) 18rem);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

a { color: var(--gold-hell); text-underline-offset: 0.18em; text-decoration-color: var(--linie); }
a:hover { text-decoration-color: var(--gold-hell); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.site-header,
.site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.wordmark {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9375rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Zierlinie: Linie – Raute – Linie, wie auf Cover und Rückseite */
.zier {
  display: flex;
  align-items: center;
  margin: 2.75rem auto;
  max-width: 22rem;
}

.zier::before,
.zier::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--linie));
}

.zier::after { background: linear-gradient(90deg, var(--linie), transparent); }

.zier span {
  width: 7px;
  height: 7px;
  margin: 0 0.75rem;
  transform: rotate(45deg);
  background: var(--gold);
}

/* Hero: Cover neben Titel */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 1rem;
}

@media (min-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 17rem) 1fr; }
}

.cover {
  margin: 0 auto;
  max-width: 17rem;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(201, 164, 92, 0.35);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.55);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  /* Unterlängen (g) ragen bei line-height 1.05 unter die Box; ohne das
     Polster schneidet background-clip: text sie ab. */
  padding-bottom: 0.14em;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--gold);
  background: linear-gradient(var(--gold-hell), var(--gold-dunkel));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hook {
  margin: 1.5rem 0 1rem;
  color: var(--gold);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.status {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Sieben Linien, vom feinsten Register zum gröbsten */
.register {
  display: grid;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  max-width: 22rem;
}

.register span { display: block; background: var(--gold); }

.register span:nth-child(1) { height: 1px; opacity: 0.25; }
.register span:nth-child(2) { height: 1px; opacity: 0.35; }
.register span:nth-child(3) { height: 2px; opacity: 0.45; }
.register span:nth-child(4) { height: 2px; opacity: 0.55; }
.register span:nth-child(5) { height: 3px; opacity: 0.7; }
.register span:nth-child(6) { height: 4px; opacity: 0.85; }
.register span:nth-child(7) { height: 6px; }

.blurb p { margin: 0 0 1.25rem; }

.question { font-weight: 600; }

.note {
  color: var(--muted);
  font-size: 1rem;
}

/* Testleser-Aufruf (fliegt zum Erscheinen wieder raus) */
.aufruf {
  margin: 3rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--linie);
  background: rgba(201, 164, 92, 0.06);
}

.aufruf h2 { margin-top: 0; }

.aufruf p { margin: 0 0 0.75rem; }
.aufruf p:last-child { margin-bottom: 0; }

/* Die Reihe */
.reihe ol {
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.reihe li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(201, 164, 92, 0.18);
}

.reihe li:first-child { border-top: 1px solid rgba(201, 164, 92, 0.18); }

.reihe .nr {
  color: var(--gold);
  font-size: 1.5rem;
  font-feature-settings: "onum"; /* Mediävalziffern wie das Reihenzeichen */
  min-width: 1.25rem;
  text-align: center;
}

.reihe .titel { font-size: 1.25rem; }

.reihe .stand {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
}

.contact { margin-top: 1rem; }

.contact p { margin: 0 0 0.5rem; }

.legal h1 {
  margin: 2rem 0;
  font-size: 2.5rem;
}

.legal h2 { font-size: 1.25rem; }

.legal p { overflow-wrap: anywhere; }

.site-footer {
  border-top: 1px solid rgba(201, 164, 92, 0.18);
  margin-top: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 1rem;
}

.site-footer a { color: var(--muted); }
