/* Kontrast gemessen (WCAG): text auf nacht 14,7:1, gedaempft 8,4:1, gold 8,9:1 — alle über AAA (7:1). */
:root {
  --nacht: #0e1730;
  --karte: #16223f;
  --linie: #2a3a60;
  --gold-linie: rgb(217 178 95 / 0.45);
  --text: #f1e9d8;
  --gedaempft: #b9b2a3;
  --gold: #d9b25f;
  --gold-hell: #e6c77e;
  --breite: 64rem;
  --schrift: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift-titel: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* Schriften liegen lokal statt bei Google, sonst ginge die IP jedes Besuchers an Google. */
@font-face { font-family: "Crimson Pro"; font-weight: 400; font-display: swap; src: url(schriften/crimson-pro-400.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 400; font-style: italic; font-display: swap; src: url(schriften/crimson-pro-400-kursiv.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(schriften/cormorant-garamond-500.woff2) format("woff2"); }

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Sternenhimmel als Inline-SVG: zwei Kacheln in verschiedenen Größen, damit sich kein Muster wiederholt. */
body {
  margin: 0;
  color: var(--text);
  font: 1.2rem/1.6 var(--schrift);
  background:
    radial-gradient(ellipse 70% 40% at 75% 0%, rgb(217 178 95 / 0.07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23f1e9d8'%3E%3Ccircle cx='18' cy='34' r='.8' opacity='.5'/%3E%3Ccircle cx='96' cy='12' r='.6' opacity='.35'/%3E%3Ccircle cx='141' cy='88' r='1' opacity='.45'/%3E%3Ccircle cx='212' cy='41' r='.7' opacity='.4'/%3E%3Ccircle cx='60' cy='150' r='.6' opacity='.3'/%3E%3Ccircle cx='181' cy='171' r='.8' opacity='.4'/%3E%3Ccircle cx='238' cy='229' r='.6' opacity='.3'/%3E%3Ccircle cx='31' cy='236' r='.9' opacity='.35'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='410' height='410'%3E%3Cg fill='%23e6c77e'%3E%3Ccircle cx='77' cy='301' r='1.1' opacity='.35'/%3E%3Ccircle cx='322' cy='118' r='.9' opacity='.3'/%3E%3Ccircle cx='250' cy='366' r='.7' opacity='.25'/%3E%3C/g%3E%3C/svg%3E"),
    var(--nacht);
  background-repeat: no-repeat, repeat, repeat;
}

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

a { color: var(--gold-hell); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 500; line-height: 1.15; letter-spacing: 0.01em; hyphens: auto; overflow-wrap: break-word; }
h1, h2 { color: var(--gold); margin: 0 0 1.5rem; }
h1 { font-size: clamp(2.5rem, 5vw, 3.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.9rem; margin: 0.25rem 0; }
.recht h2 { font-size: 1.6rem; color: var(--text); margin: 2rem 0 0.5rem; }

/* Kleine Großbuchstaben für Dachzeilen, Navigation und Knöpfe */
.fuer, .kopf nav a, .knopf, .cover-reihe span, .naechte-liste .nacht {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}
.fuer { color: var(--gold); margin: 0 0 0.5rem !important; }

.kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--linie);
}
.kopf .marke { font-family: var(--schrift-titel); font-size: 1.6rem; color: var(--text); text-decoration: none; letter-spacing: 0.03em; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.kopf nav a { text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid transparent; }
.kopf nav a:hover { border-bottom-color: var(--gold-linie); }
.kopf nav a[aria-current] { color: var(--text); border-bottom-color: var(--gold); }

/* Torbogen: das Motiv aller drei Cover und des Waldtors. 999px wird auf einen exakten Halbkreis gekappt. */
.bogen { border-radius: 999px 999px 0 0; outline: 1px solid var(--gold-linie); outline-offset: 0.75rem; }

.titel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}
.titel h1 { font-size: clamp(3.25rem, 8vw, 5.5rem); line-height: 1.02; margin: 0 0 1.5rem; }
.titel .leitsatz { font-size: 1.45rem; font-style: italic; margin: 0 0 1.5rem; max-width: 26rem; }
.titel img { width: 100%; max-height: 80vh; object-fit: cover; }

/* 13 Goldpunkte für die 13 Nächte */
.dreizehn {
  display: block;
  width: 13rem;
  height: 0.5rem;
  margin: 0 0 2.5rem;
  background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) 0 50% / 1rem 100% repeat-x;
}

.knopf {
  display: inline-block;
  background: var(--gold);
  color: var(--nacht);
  border: 1px solid var(--gold);
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
}
.knopf:hover { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--nacht); }

section:not(.titel) {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 4rem 1rem 1rem;
}

/* Zierlinie mit Stern zwischen den Abschnitten */
main > section + section::before {
  content: "✦" / "";
  display: block;
  max-width: 16rem;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--gold);
  background:
    linear-gradient(var(--gold-linie), var(--gold-linie)) left center / calc(50% - 1.25rem) 1px no-repeat,
    linear-gradient(var(--gold-linie), var(--gold-linie)) right center / calc(50% - 1.25rem) 1px no-repeat;
}

.einleitung { font-size: 1.3rem; font-style: italic; color: var(--gedaempft); max-width: 42rem; }
.text { max-width: 42rem; }

/* Initiale im Text über die Autorin */
#autorin .text > p:first-child::first-letter {
  float: left;
  font-family: var(--schrift-titel);
  font-size: 4.6em;
  line-height: 0.8;
  padding: 0.06em 0.1em 0 0;
  color: var(--gold);
}

.cover-reihe { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 3rem 2.5rem; }
.cover-reihe a { display: block; font-family: var(--schrift-titel); font-size: 1.35rem; line-height: 1.25; color: var(--text); text-decoration: none; }
.cover-reihe a:hover { color: var(--gold-hell); }
.cover-reihe img { aspect-ratio: 600 / 776; width: 100%; margin-bottom: 1.25rem; border-radius: 2px; box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.45); }
.cover-reihe span { display: block; margin-top: 0.5rem; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .cover-reihe img { transition: transform 0.3s; }
  .cover-reihe a:hover img { transform: translateY(-0.375rem); }
}

/* Bücherseite: keine Kästen, Cover abwechselnd links und rechts */
.buch {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--linie);
}
.buch:nth-of-type(even) { grid-template-columns: 1fr 15rem; }
.buch:nth-of-type(even) > img { order: 2; }
.buch img { border-radius: 2px; box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.45); }
.buch p { margin: 0 0 1rem; }
.untertitel { font-style: italic; color: var(--gedaempft); font-size: 1.3rem; }
.daten { font-size: 0.95rem; color: var(--gedaempft); border-top: 1px solid var(--linie); padding-top: 1rem; }

/* Linksammlung: eine Kachel pro Nacht */
.naechte-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.naechte-liste a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 0.75rem;
  align-content: start;
  height: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 3px;
  background: rgb(22 34 63 / 0.6);
  color: var(--text);
  text-decoration: none;
  hyphens: auto;
  overflow-wrap: break-word;
}
.naechte-liste a:hover { border-color: var(--gold); background: var(--karte); color: var(--text); }
.naechte-liste .nr { grid-row: span 3; font-family: var(--schrift-titel); font-size: 2.75rem; line-height: 1; color: var(--gold); text-align: center; font-variant-numeric: lining-nums; }
.naechte-liste .nr.stern { font-size: 1.25rem; padding-top: 0.5rem; }
.naechte-liste .nacht { color: var(--gold-hell); font-size: 0.75rem; }
.naechte-liste .thema { font-family: var(--schrift-titel); font-size: 1.35rem; line-height: 1.2; }
.naechte-liste .lied { font-style: italic; color: var(--gedaempft); font-size: 1rem; }

.fuss {
  max-width: var(--breite);
  margin: 5rem auto 0;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  color: var(--gedaempft);
  font-size: 0.95rem;
}

@media (max-width: 45rem) {
  .titel { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
  .titel img { order: -1; max-height: 60vh; object-position: 30% 55%; }
  .buch, .buch:nth-of-type(even) { grid-template-columns: 1fr; gap: 2rem; }
  .buch:nth-of-type(even) > img { order: 0; }
  .buch img { width: 60%; margin: 0 auto; }
  .cover-reihe { grid-template-columns: minmax(0, 15rem); }
}
