/* DNX: ein Stylesheet für alle Seiten. Kein Skript, keine externen Anfragen.
   Schriften liegen als Dateien unter /assets/fonts/ (selbst gehostet, Lizenz SIL OFL, Texte liegen daneben).
   Farben und Schriften sind aus Birth Codex abgeleitet (dunkler Grund, Gold, Cormorant Garamond und Jost),
   die Fassung ist ruhiger und eigenständig: keine Verläufe außer einem kaum sichtbaren Lichtschein, kein Effekt. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0b1a;
  --bg-soft: #0f1128;
  --card: #141633;
  --line: #262a54;
  --text: #e8e6f0;
  --muted: #b9b5d2;
  --gold: #c9a84c;
  --gold-light: #e4cc7a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(46rem 24rem at 78% -6rem, rgba(201, 168, 76, 0.07), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #f3dd94; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(201, 168, 76, 0.35); color: #fff; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); background: rgba(10, 11, 26, 0.92); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 10px; }
.logo { display: block; line-height: 0; }
.logo img { width: 112px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 15px; letter-spacing: 0.04em; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav a.nav-first { color: var(--gold-light); font-weight: 500; }

/* Überschriften */
main { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 16px; color: #f4f2fa; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.5rem, 9.4vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }

section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); max-width: 40em; margin-bottom: 0; }

/* feine Trennlinie mit kleiner Raute */
.orn { position: relative; height: 1px; max-width: 1040px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent); }
.orn::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; background: var(--bg); border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); }

/* Start: Hero */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero .lead { margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.3rem, 8.2vw, 3.6rem); }
.photo-a { position: relative; width: calc(100% - 14px); max-width: 330px; margin: 0 auto; }
.photo-a::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border: 1px solid rgba(201, 168, 76, 0.65); border-radius: 22px; }
.photo-a img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 22px; filter: saturate(0.92); }

/* Knöpfe */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 16px; letter-spacing: 0.03em; line-height: 1.3; text-decoration: none; text-align: center; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: #0a0b1a; }
.btn-gold:hover { background: var(--gold-light); color: #0a0b1a; }
.btn-line { color: var(--gold-light); border-color: rgba(201, 168, 76, 0.6); }
.btn-line:hover { background: rgba(201, 168, 76, 0.12); color: #f3dd94; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Karten */
.cards { display: grid; gap: 18px; }
.card { background: rgba(20, 22, 51, 0.62); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .year { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 6px; display: block; }

/* Birth-Codex-Band */
.bc-band { padding: 8px 0 56px; }
.bc-card { position: relative; background: var(--bg-soft); border: 1px solid rgba(201, 168, 76, 0.4); border-radius: 22px; padding: 34px 24px; }
.bc-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 168, 76, 0.14); border-radius: 16px; pointer-events: none; }
.bc-facts { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; }
.bc-facts strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--gold-light); font-weight: 600; font-variant-numeric: lining-nums; }
.bc-facts span { color: var(--muted); font-size: 15px; }

/* Zahlen */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; text-align: center; }
.facts strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; color: var(--gold-light); font-weight: 600; font-variant-numeric: lining-nums; }
.facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Stimmen */
.quotes { display: grid; gap: 18px; }
.quote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 22, 51, 0.5); }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: #f0eef8; }
.quote p::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: 0.6; color: var(--gold); margin-bottom: 6px; }
.quote footer { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Chronik */
.chronik { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(201, 168, 76, 0.4); }
.chronik li { position: relative; padding: 0 0 30px 22px; }
.chronik li:last-child { padding-bottom: 0; }
.chronik li::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--gold); transform: rotate(45deg); }
.chronik .jahr { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--gold); letter-spacing: 0.06em; line-height: 1.4; }
.chronik h3 { font-size: 1.55rem; margin-bottom: 4px; }
.chronik p { color: var(--muted); margin-bottom: 0; }

/* Schritte */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 22, 51, 0.5); padding: 18px 20px 18px 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; display: grid; place-items: center; }

/* Foto-Band Festival */
.photo-band { margin: 0 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.photo-band img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(0.4) brightness(0.8); }

/* Podcast */
.podcast-cover { width: 100%; max-width: 280px; border-radius: 14px; border: 1px solid var(--line); margin: 0 auto; }
.platforms { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.platforms a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(20, 22, 51, 0.62); border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; color: var(--text); text-decoration: none; font-weight: 500; }
.platforms a:hover { border-color: var(--gold); color: var(--gold-light); }

/* Links in Fließtext einer Karte */
.link-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.link-list li { padding-left: 18px; position: relative; }
.link-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* Rechtstexte */
.legal { overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.legal h2 { font-size: 1.8rem; margin-top: 34px; }
.legal h3 { font-size: 1.35rem; margin-top: 24px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--muted); margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(201, 168, 76, 0.4); }
.site-footer a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  .logo img { width: 128px; }
  .nav { gap: 2px 30px; font-size: 16px; }
  section { padding: 84px 0; }
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .lead { font-size: 1.3rem; }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .bc-card { padding: 54px 56px; }
  .bc-facts { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .chronik li { padding-left: 34px; }
  .photo-band img { aspect-ratio: 21 / 9; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .cards.three { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .platforms a { transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
}
