/* ============================================================
   HAY PULPO — Website-Stylesheet
   Nach "HAY PULPO — ART DIRECTION SYSTEM 1.2"

   Verlagsebene  Kernpalette §12, keine Hausfarbe §11,
                 Krake neutral in Warmweiß §21
   Buchebene     jedes Buch bindet seine Farben neu §13
                 → Blöcke ganz unten
   Schrift       Roboto Flex, variable Achsen §6
   ============================================================ */

@font-face {
  font-family: "Roboto Flex";
  src: url("fonts/roboto-flex.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Verlagsebene · Kernpalette §12 --- */
  --nacht:        #082431;   /* Tiefnacht — Seitengrund */
  --nacht-hoch:   #0a2c3a;   /* abgesetzte Fläche */
  --petrol:       #073b46;   /* Tiefpetrol — Farbfeld des Verlags */
  --petrol-hell:  #176879;   /* Atlantik-Petrol */
  --himmel:       #5e9eaa;   /* Küstenblau */
  --gold:         #e6a441;   /* Abendgold — Akzent */
  --titelgold:    #e6a441;
  --signal:       #5e9eaa;   /* Verlagsebene führt keine Signalfarbe §16 */
  --papier:       #f3ebd8;
  --papier-leise: #c6c0b1;
  --papier-still: #9aa4a6;
  --linie:        rgba(243, 235, 216, .13);
  --linie-stark:  rgba(243, 235, 216, .26);

  /* --- Maße --- */
  --mass:   1160px;
  --schmal: 720px;
  --luft:   clamp(72px, 9vw, 132px);
  --kante:  clamp(20px, 5vw, 40px);
}

/* ============================================================
   Grundlagen
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--nacht);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nacht);
  color: var(--papier);
  font-family: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.7;
  font-weight: 380;
  font-variation-settings: "opsz" 16, "GRAD" -25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Ruhige Verlagskante, keine Signalfarbe */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 3px;
  background: var(--himmel); z-index: 30;
}

.wrap {
  width: 100%;
  max-width: var(--mass);
  margin-inline: auto;
  padding-inline: var(--kante);
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--himmel); color: var(--nacht); }

/* Sprungmarke für Tastatur und Screenreader */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  background: var(--papier); color: var(--nacht);
  padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Typografie §6 · §9
   ============================================================ */

h1, h2, h3 {
  margin: 0 0 .55em;
  color: var(--papier);
  line-height: 1.08;
  letter-spacing: -.018em;
  font-weight: 640;
  font-variation-settings: "opsz" 40, "wdth" 88, "GRAD" -40;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  max-width: 16ch;
  letter-spacing: -.026em;
}

h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  max-width: 20ch;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.005em;
  font-weight: 620;
  font-variation-settings: "opsz" 20, "wdth" 96, "GRAD" -20;
}

p {
  margin: 0 0 1.05em;
  max-width: 64ch;
  hyphens: auto;
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(18.5px, 1.5vw, 21px);
  line-height: 1.62;
  font-weight: 350;
  color: var(--papier-leise);
  max-width: 56ch;
  hyphens: none;
}

em { font-style: italic; color: var(--gold); }

/* Wortmarke im Fließtext — Versalien ruhig gesetzt */
.hp {
  font-size: .94em;
  letter-spacing: .055em;
  font-weight: 500;
  font-variation-settings: "wdth" 100, "GRAD" -10;
  white-space: nowrap;
}

.label {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 640;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  color: var(--signal);
  margin: 0 0 22px;
  max-width: none;
}

.link {
  box-shadow: inset 0 -1px 0 0 var(--gold);
  transition: color .18s ease, box-shadow .18s ease;
}
.link:hover { color: var(--gold); box-shadow: inset 0 -2px 0 0 var(--gold); }

/* ============================================================
   Kopfzeile
   ============================================================ */

.kopf {
  position: sticky; top: 3px; z-index: 20;
  background: color-mix(in srgb, var(--petrol) 92%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}

.marke { display: inline-flex; align-items: center; gap: 14px; }
.marke img { width: 28px; height: 28px; display: block; flex: none; }
.wortmarke {
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: .34em;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  color: var(--papier);
  padding-left: 2px;
}

.nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav a {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 560;
  color: rgba(243, 235, 216, .72);
  padding: 8px 0;
  box-shadow: inset 0 -1px 0 0 transparent;
  transition: color .18s ease, box-shadow .18s ease;
}
.nav a:hover { color: var(--papier); box-shadow: inset 0 -1px 0 0 var(--gold); }

/* ============================================================
   Abschnitte
   ============================================================ */

main > section { padding: var(--luft) 0; border-bottom: 1px solid var(--linie); }
main > section:last-of-type { border-bottom: 0; }
main > section[id] { scroll-margin-top: 92px; }

/* ---------- Auftakt ---------- */

.hero {
  background: var(--petrol);
  padding: clamp(84px, 12vw, 156px) 0 clamp(80px, 11vw, 140px);
  border-bottom: 0 !important;
  position: relative;
}
/* Umschlagraster: Farbfeld 38 % */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 38%, var(--linie) 38%);
}
.hero .label { color: var(--gold); }
.hero h1 em { color: var(--titelgold); font-style: normal; }
.hero .lead { color: rgba(243, 235, 216, .82); margin-top: 28px; }

/* ============================================================
   Knöpfe
   ============================================================ */

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  background: var(--gold);
  color: #0d1c1a;
  padding: 13px 28px;
  font-size: 15.5px;
  font-weight: 600;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  letter-spacing: .012em;
  border: 1px solid var(--gold);
  transition: transform .16s ease, filter .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.knopf:hover { filter: brightness(1.08); transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }

.knopf.sekundaer {
  background: transparent;
  color: var(--papier);
  border-color: var(--linie-stark);
}
.knopf.sekundaer:hover {
  background: var(--papier); color: var(--nacht); border-color: var(--papier); filter: none;
}

.hinweis-klein {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--papier-still);
  margin-top: 22px;
  max-width: 52ch;
}

/* ============================================================
   Buch §2 — große Fläche, Leere, Fokus
   ============================================================ */

.buch {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
  margin-top: 8px;
}

.buch-rahmen { position: relative; }
/* Kopfband in der Signalfarbe des Buches, Zitat vom Buchrücken §18 */
.buch-rahmen::before {
  content: ""; position: absolute; top: -14px; left: 0; width: 46%; height: 3px;
  background: var(--signal);
}
.buch-bild {
  width: 100%; height: auto; display: block;
  box-shadow:
    0 40px 70px -34px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(243, 235, 216, .12);
}

.buch h2 { margin-bottom: 8px; max-width: 22ch; }
.buch .autor {
  font-size: 18px;
  color: var(--himmel);
  font-weight: 400;
  margin-bottom: 26px;
}

.buch dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  margin: 30px 0 34px;
  font-size: 15.5px;
  max-width: 46ch;
}
.buch dt, .buch dd {
  padding: 11px 0;
  border-top: 1px solid var(--linie);
}
.buch dt {
  font-weight: 620;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  color: var(--himmel);
  letter-spacing: .05em;
  font-size: 13px;
  text-transform: uppercase;
  padding-right: 32px;
}
.buch dd { margin: 0; color: var(--papier-leise); }
.buch dl > :nth-last-child(-n+2) { border-bottom: 1px solid var(--linie); }

/* ============================================================
   Reihe
   ============================================================ */

.reihe { list-style: none; padding: 0; margin: 44px 0 0; max-width: 860px; }
.reihe li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 4px 22px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--linie);
  transition: background .18s ease;
}
.reihe li:last-child { border-bottom: 1px solid var(--linie); }
.reihe .nr {
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold);
  font-weight: 640;
  font-size: 13px;
  letter-spacing: .14em;
  font-variation-settings: "wdth" 100, "GRAD" 0;
}
.reihe .titel { font-weight: 400; color: var(--papier-leise); }
.reihe li:first-child .titel { color: var(--papier); font-weight: 500; }
.reihe .status {
  font-size: 12.5px;
  color: var(--papier-still);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  font-variation-settings: "wdth" 100, "GRAD" 0;
}
.reihe li:first-child .status { color: var(--signal); font-weight: 600; }

/* ============================================================
   Flächen
   ============================================================ */

.zweispalt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  margin-top: 12px;
}

.karte {
  background: var(--petrol);
  padding: clamp(28px, 3.4vw, 40px);
  border-top: 3px solid var(--gold);
}
.karte h3 { margin-bottom: 14px; }
.karte p { color: rgba(243, 235, 216, .84); font-size: 16.5px; }

.mail {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  font-variation-settings: "opsz" 30, "wdth" 92, "GRAD" -30;
  letter-spacing: -.01em;
  margin-top: 8px;
}
.mail .link { box-shadow: inset 0 -2px 0 0 var(--gold); }

/* ============================================================
   Fußzeile
   ============================================================ */

.fuss {
  background: var(--nacht-hoch);
  padding: clamp(52px, 6vw, 74px) 0 54px;
  border-top: 1px solid var(--linie);
}
.fuss-reihe {
  display: flex; flex-wrap: wrap; gap: 24px 44px;
  justify-content: space-between; align-items: center;
  padding-bottom: 34px; border-bottom: 1px solid var(--linie);
}
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 15px; color: var(--papier-leise); }
.fuss-links a { padding: 4px 0; box-shadow: inset 0 -1px 0 0 transparent; transition: color .18s, box-shadow .18s; }
.fuss-links a:hover { color: var(--papier); box-shadow: inset 0 -1px 0 0 var(--gold); }
.fuss-klein {
  font-size: 13px; line-height: 1.75;
  color: var(--papier-still);
  margin: 30px 0 0; max-width: 78ch;
}

/* ============================================================
   Rechtstexte
   ============================================================ */

.rechtstext { padding: clamp(52px, 6vw, 80px) 0 clamp(72px, 9vw, 110px); }
.rechtstext .wrap { max-width: var(--schmal); }
.rechtstext h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 34px; max-width: 22ch; }
.rechtstext h2 {
  font-size: 20px; margin: 48px 0 12px; color: var(--gold);
  font-weight: 620; max-width: none; letter-spacing: -.005em;
  font-variation-settings: "opsz" 20, "wdth" 96, "GRAD" -20;
}
.rechtstext h3 { font-size: 17px; margin: 28px 0 8px; }
.rechtstext p, .rechtstext li { font-size: 16.5px; color: rgba(243, 235, 216, .87); line-height: 1.72; }
.rechtstext a { box-shadow: inset 0 -1px 0 0 var(--gold); }
.rechtstext a:hover { color: var(--gold); }
.rechtstext ul { padding-left: 20px; max-width: 64ch; margin: 0 0 18px; }
.rechtstext li { margin-bottom: 8px; }
.rechtstext li::marker { color: var(--himmel); }

.zurueck {
  display: inline-block; margin-bottom: 34px;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 560; color: var(--papier-still);
  box-shadow: none !important;
}
.zurueck:hover { color: var(--gold); }

.stand {
  font-size: 13.5px; color: var(--papier-still);
  margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--linie);
}

/* Fehlerseite */
.fehler { padding: clamp(90px, 14vw, 170px) 0; text-align: left; }

/* ============================================================
   Schmale Fenster
   ============================================================ */

@media (max-width: 860px) {
  .buch { grid-template-columns: 1fr; }
  .buch-rahmen { max-width: 280px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .kopf .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 14px; min-height: 0; }
  .nav { gap: clamp(12px, 4vw, 20px); width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 11.5px; letter-spacing: .1em; }
  main > section[id] { scroll-margin-top: 116px; }
  .reihe li { grid-template-columns: 40px minmax(0, 1fr); }
  .reihe .status { grid-column: 2; text-align: left; }
  .buch dl { grid-template-columns: 1fr; max-width: none; }
  .buch dt { padding-bottom: 0; border-bottom: 0; }
  .buch dd { padding-top: 2px; border-top: 0; }
  .buch dl > :nth-last-child(-n+2) { border-bottom: 0; }
  .buch dd:last-child { border-bottom: 1px solid var(--linie); padding-bottom: 12px; }
  .knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .knopf:hover { transform: none; }
}

/* ============================================================
   Druck — vor allem für Impressum und Datenschutz
   ============================================================ */

@media print {
  body::before, .kopf, .nav, .knopfreihe, .fuss-links { display: none !important; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .rechtstext { padding: 0; }
  h1, h2, h3, p, li { color: #000 !important; }
  a { box-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* ============================================================
   BUCHEBENE — Farben gehören dem Buch §13
   Für einen weiteren Titel diesen Block kopieren und die
   Farben aus §14/§15 eintragen.
   ============================================================ */

/* Emily Band 1 — Alte Kapelle §14 */
#programm, #reihe {
  --petrol:    #0b4c55;
  --himmel:    #78aeb6;
  --gold:      #f2c35b;
  --titelgold: #f4c542;
  --signal:    #e65b45;
}

/* Kleine Fußnote in der Ausgabenliste */
.fussnote {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--papier-still);
  margin-top: 3px;
  max-width: 34ch;
}

/* ============================================================
   Kontaktformular
   ============================================================ */

.kontaktraster {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 34px;
}

.formular { max-width: 560px; }

.feld { margin-bottom: 20px; }
.feld label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 620;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  color: var(--himmel);
  margin-bottom: 8px;
}
.feld label span { color: var(--gold); }

.feld input,
.feld textarea {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  color: var(--papier);
  background: rgba(243, 235, 216, .05);
  border: 1px solid var(--linie-stark);
  border-radius: 0;
  padding: 13px 15px;
  transition: border-color .16s ease, background .16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.feld textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.feld input:hover, .feld textarea:hover { border-color: rgba(243, 235, 216, .4); }
.feld input:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(243, 235, 216, .08);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.feld input:user-invalid, .feld textarea:user-invalid { border-color: var(--signal); }

/* Für Menschen unsichtbar, für Bots verlockend */
.honigtopf {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.formular .knopfreihe { margin-top: 26px; }
.formular button.knopf { cursor: pointer; font-family: inherit; }
.formular button.knopf:disabled { opacity: .55; cursor: progress; }

.formular-status {
  margin: 18px 0 0;
  font-size: 15px;
  min-height: 1.4em;
  color: var(--papier-leise);
}
.formular-status.gut { color: var(--himmel); font-weight: 500; }
.formular-status.schlecht { color: var(--signal); font-weight: 500; }

.kontaktdaten {
  background: var(--petrol);
  padding: clamp(26px, 3vw, 34px);
  border-top: 3px solid var(--gold);
}
.kontaktdaten h3 { margin-bottom: 14px; }
.kontaktdaten .mail { font-size: clamp(18px, 2vw, 22px); margin: 0 0 18px; }
.kontaktdaten .hinweis-klein { margin-top: 0; }

@media (max-width: 860px) {
  .kontaktraster { grid-template-columns: 1fr; }
}
