/* Schrift: TeX Gyre Pagella (GUST Font License), lokal eingebunden */
@font-face { font-family: "Pagella"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/pagella-regular.woff") format("woff"); }
@font-face { font-family: "Pagella"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/pagella-italic.woff") format("woff"); }
@font-face { font-family: "Pagella"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/pagella-bold.woff") format("woff"); }
@font-face { font-family: "Pagella"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/pagella-bolditalic.woff") format("woff"); }

/* Layout: wie das Buchcover – schwarzer Grund, Auge in der Mitte, darunter eine ruhige Lesespalte; die Seite liest sich wie das Aufschlagen des Buches */
:root {
  --night: #0a0908;        /* Grund, wie das Cover */
  --night-2: #14110e;      /* abgesetzte Flächen */
  --sand: #d9c29a;         /* Schrift des Covers */
  --sand-soft: #b9a582;    /* Fließtext */
  --sand-dim: #8a7a60;     /* Nebentext, Linien */
  --copper: #c07a43;       /* Iris, Handschrift */
  --line: rgba(217,194,154,.18);
  --display: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: dark;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--sand-soft);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sand); text-decoration-color: var(--sand-dim); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
a:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 20px; }
.col { max-width: 38rem; }

/* Kopfzeile */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(10,9,8,.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sand); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a { font-family: var(--display); font-size: .95rem; letter-spacing: .06em; text-decoration: none; color: var(--sand-soft); }
.top nav a:hover { color: var(--sand); }

/* Hero = Cover */
.hero { text-align: center; padding-block: 48px 40px; }
.cover {
  display: block; margin: 0 auto; width: min(100%, 440px); height: auto;
  box-shadow: 0 0 0 1px rgba(217,194,154,.12), 0 30px 80px rgba(217,194,154,.10), 0 20px 50px rgba(0,0,0,.8);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status { margin: 30px auto 0; font-size: .95rem; color: var(--sand-dim); letter-spacing: .04em; }
.status strong { color: var(--sand); font-weight: 400; }

/* Abschnitte */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.label { font-family: var(--display); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; color: var(--copper); margin: 0 0 14px; }
h2 { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: clamp(1.65rem, 4.2vw, 2.3rem); line-height: 1.18; margin: 0 0 20px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 1.3rem; margin: 0 0 6px; }
p { margin: 0 0 1.1em; }
.lead { font-style: italic; font-size: 1.15rem; color: var(--sand); }
.close { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 1.25rem; line-height: 1.45; margin-top: 1.6em; }

/* Aufbau */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; margin-top: 36px; }
.part { min-width: 0; }
.part .num { font-family: var(--display); color: var(--copper); font-size: 1rem; letter-spacing: .2em; }
.part ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.part li { display: grid; grid-template-columns: 2.2em 1fr; font-size: 1rem; }
.part li span { color: var(--sand-dim); font-variant-numeric: tabular-nums; }

/* Yakup und Lisa */
.scene { margin: 28px 0 0; padding: 26px 28px; background: var(--night-2); border-left: 1px solid var(--copper); }
.scene .when { font-style: italic; color: var(--sand-dim); font-size: .95rem; margin-bottom: .6em; }
.scene p:last-child { margin-bottom: 0; }
.note { font-size: .92rem; color: var(--sand-dim); margin-top: 18px; }

/* Autor */
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 48px; align-items: start; }
.two > * { min-width: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { border-top: 1px solid var(--line); padding-top: 10px; }
.facts b { display: block; font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 1.05rem; }

.portrait { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 8px; filter: saturate(.9); box-shadow: 0 20px 50px rgba(0,0,0,.6); }

/* Gedicht */
.verse { font-family: var(--display); font-style: italic; color: var(--sand); font-size: clamp(1.3rem, 3.8vw, 1.8rem); line-height: 1.4; margin: 8px 0 8px; }
.verse-de { color: var(--sand-dim); font-style: italic; }
.btn {
  display: inline-block; margin-top: 18px; padding: 12px 22px;
  border: 1px solid var(--sand-dim); color: var(--sand); text-decoration: none;
  font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
}
.btn:hover { border-color: var(--copper); color: var(--copper); }

/* Lexikon */
.lex { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 28px 36px; margin-top: 32px; }
.lex div { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.lex dt { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 1.2rem; }
.lex dd { margin: 4px 0 0; font-size: 1rem; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding-block: 48px 64px; font-size: .95rem; color: var(--sand-dim); }
footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
footer h4 { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 1.05rem; margin: 0 0 8px; letter-spacing: .04em; }
footer p { margin: 0 0 .4em; }
.todo { color: var(--copper); font-style: italic; }

@media (max-width: 760px) {
  .parts, .two, footer .wrap { grid-template-columns: minmax(0,1fr); gap: 32px; }
  section.block { padding-block: 56px; }
  .scene { padding: 20px; }
}

/* Rechtstexte */
.legal { padding-block: 56px 72px; }
.legal h1 { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 28px; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .5em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal .back { display: inline-block; margin-top: 2em; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
