/* =========================================================
   Wulf Mämpel – Stylesheet
   Farben & Schriften zentral in :root anpassbar
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/sourceserif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/sourceserif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #242424;
  --paper: #ffffff;
  --paper-2: #f5f3f0;
  --red: #e3051b;
  --red-dark: #b80416;
  --red-soft: rgba(227, 5, 27, .38);
  --muted: #6d6a66;
  --muted-light: #a3a09b;
  --line: #e4e1dc;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 96px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.section--dark { background: var(--ink); color: #fff; }

.dot { color: var(--red); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

/* ---------- Der rote Schrägstrich (Markenzeichen) ---------- */
/* Dekorative Balken im Inhalt ausgeblendet – nur Logo & Footer behalten ihn */
.slash--hero, .slash--image, .slash--contact { display: none; }
.slash { position: absolute; pointer-events: none; z-index: 0; }
.slash::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: skewX(-22deg);
  transform-origin: bottom left;
}
.slash--hero { width: 38px; height: 64%; left: calc(max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) + 90px); top: 18%; }
.slash--hero::before { background: var(--red-soft); transform: skewX(-22deg); transform-origin: center; }
.slash--image { width: 26px; height: 60%; left: -30px; top: -24px; z-index: -1; }
.slash--image::before { background: var(--red-soft); transform-origin: center; }
.slash--footer { position: relative; display: inline-block; width: 8px; height: 64px; margin-right: 22px; vertical-align: middle; }
.slash--contact { width: 10px; height: 120px; left: -40px; top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.link-arrow {
  display: inline-flex; gap: 8px; margin-top: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; color: var(--red);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 72px; }

.logo { display: flex; align-items: last baseline; gap: 6px; text-decoration: none; color: #fff; position: relative; padding-left: 26px; }
.logo__slash { position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--red); transform: skewX(-22deg); }
.logo__name { font-weight: 800; font-size: 26px; line-height: 1.02; letter-spacing: -.02em; }
.logo__tag { font-size: 18px; font-weight: 400; line-height: 1.02; letter-spacing: 0; color: #d5d2cd; margin-left: 4px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3.6vw, 56px); }
.site-nav a {
  position: relative; text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; color: #fff; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  overflow: hidden;
}
.hero__text {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(56px, 8vw, 120px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero__text > *:not(.slash) { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(64px, 8.6vw, 148px);
  font-weight: 800; letter-spacing: -.045em; line-height: .88;
  margin-bottom: 32px;
}
.hero__lead { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 36ch; color: #2b2926; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; overflow: hidden; background: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; animation: heroZoom 1.6s var(--ease) both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%); }
@keyframes heroZoom { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Zahlen ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 52px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(52px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.045em; color: var(--red); line-height: .9; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.55; color: var(--ink); max-width: 30em; }

/* ---------- Über ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__head { position: sticky; top: calc(var(--header-h) + 32px); }
.section-title { font-size: clamp(38px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }

/* ---------- Fließtext ---------- */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #2b2926; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--red); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose--lead > p:first-child::first-letter {
  float: left; font-family: var(--serif); font-weight: 600; color: var(--red);
  font-size: 3.6em; line-height: .82; margin: .06em .08em 0 0;
}
.prose--light { color: #d9d6d1; }
.prose--light strong { color: #fff; }
.legal { font-size: 17px; max-width: 760px; }

/* ---------- Bücher-Teaser ---------- */
.books-teaser { overflow: hidden; }
.books-teaser__grid > *, .about__grid > *, .contact__grid > * { min-width: 0; }
.books-teaser__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.spaced-title {
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted-light);
  margin-bottom: 40px; line-height: 1.4; overflow-wrap: anywhere;
}
.books-teaser .prose { margin-bottom: 40px; font-size: 18px; }

.carousel { position: relative; min-width: 0; }
.carousel__track {
  display: flex; gap: 28px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 4px 24px; scrollbar-width: none;
}
.carousel.can-scroll-right .carousel__track { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 clamp(200px, 19vw, 270px); scroll-snap-align: start; text-decoration: none; }
.carousel__item .cover { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.carousel__item:hover .cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 50px rgba(0,0,0,.6); }
.carousel__caption { display: block; margin-top: 18px; }
.carousel__genre { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.carousel__title { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.carousel__nav { display: flex; gap: 10px; margin-top: 12px; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: #fff; border: 1px solid #3a3a3a; font-size: 18px;
  transition: background .25s, border-color .25s;
}
.carousel__btn:hover { background: var(--red); border-color: var(--red); }
.carousel__btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Buchcover ---------- */
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35); border-radius: 2px; }
.cover--type {
  display: flex; flex-direction: column; padding: 12% 11%;
  background: #fff; color: var(--ink); position: relative; overflow: hidden;
}
.cover--type { border-bottom: 6px solid var(--red); }
.cover__author { font-size: clamp(9px, .8vw, 11px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cover__title { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 30%; position: relative; z-index: 1; }
.cover__genre { max-width: 62%; margin-top: auto; font-size: clamp(9px, .8vw, 11px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; }
.cover--large .cover__title { font-size: clamp(28px, 3vw, 42px); }

/* ---------- Video ---------- */
.video__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.video__head .eyebrow { margin: 0; }
.video__text { font-family: var(--serif); font-size: 20px; margin: 0; color: #2b2926; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; border-radius: var(--radius); }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(180,0,20,.55) 0, rgba(180,0,20,.15) 12%, transparent 30%, transparent 70%, rgba(180,0,20,.15) 88%, rgba(180,0,20,.55) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
  transition: opacity .4s;
}
.video__frame:hover img { transform: scale(1.03); }
.video__frame.is-playing::before { opacity: 0; }
.video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(227,5,27,.5);
  animation: pulse 2.4s infinite;
  transition: transform .3s var(--ease);
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,5,27,.5); } 70% { box-shadow: 0 0 0 26px rgba(227,5,27,0); } 100% { box-shadow: 0 0 0 0 rgba(227,5,27,0); } }
.video__consent { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; color: rgba(255,255,255,.8); margin: 0; }
.video__frame iframe, .video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; position: relative; }
.contact__head { position: relative; }
.contact__title { font-size: clamp(52px, 6vw, 88px); font-weight: 300; letter-spacing: -.04em; color: var(--red); margin-bottom: 24px; }
.contact__title .dot { color: #fff; }
.contact__intro { font-family: var(--serif); font-size: 19px; color: #cfccc6; max-width: 32ch; }
.contact__mail { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.contact__mail:hover { color: var(--red); }
.contact__location { margin-top: 28px; color: var(--muted-light); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.contact--page { min-height: 70vh; }

.contact-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px;
  font: inherit; font-size: 16px; color: #fff;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius);
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 180px; line-height: 1.5; }
.field label {
  position: absolute; left: 19px; top: 18px;
  font-size: 15px; color: var(--muted-light); pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #1b1b1b; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); color: var(--red); }
.field--error input, .field--error textarea { border-color: #ff4d5e; }
.field__error { display: block; font-size: 13px; color: #ff6b79; margin-top: 6px; }

.contact-form__footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; }
.check { display: flex; gap: 12px; font-size: 13px; color: var(--muted-light); line-height: 1.5; max-width: 52ch; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check a { color: #fff; }
.check--error span { color: #ff6b79; }
.contact-form .btn { flex: none; }

.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; }
.notice--success { background: rgba(40, 167, 90, .14); border: 1px solid rgba(40, 167, 90, .5); color: #b6f0cc; }
.notice--error { background: rgba(227, 5, 27, .12); border: 1px solid rgba(227, 5, 27, .5); color: #ffb3ba; }

/* ---------- Unterseiten ---------- */
.page-hero { padding: clamp(64px, 9vw, 130px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  display: none;
  content: ""; position: absolute; right: 14%; top: 18%; width: 30px; height: 64%;
  background: var(--red-soft); transform: skewX(-22deg); opacity: .7; pointer-events: none;
}
.page-hero--small { padding-bottom: 32px; }
.page-hero--small::after { display: none; }
.page-title { font-size: clamp(52px, 7.5vw, 120px); font-weight: 800; letter-spacing: -.045em; line-height: .92; margin-bottom: 24px; position: relative; z-index: 1; }
.page-lead { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); max-width: 44ch; color: #2b2926; position: relative; z-index: 1; }

.author__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.author__image { isolation: isolate; margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.author__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.035em; }

/* Bücherliste */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 500; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.book-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.book-card { text-decoration: none; display: block; }
.book-card[hidden] { display: none; }
.book-card__cover { position: relative; }
.book-card__cover .cover { transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.book-card:hover .cover { transform: translateY(-8px); box-shadow: 0 26px 46px rgba(0,0,0,.28); }
.book-card__body { padding-top: 20px; }
.book-card__genre { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.book-card__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 8px; }
.book-card__teaser { font-family: var(--serif); font-size: 16px; color: var(--muted); line-height: 1.5; margin: 0; }
.book-card--dark .book-card__title { color: #fff; font-size: 17px; }

/* Buch-Detail */
.book-detail__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.book-detail__cover { z-index: 0; isolation: isolate; position: sticky; top: calc(var(--header-h) + 40px); }
.book-detail__cover .cover { box-shadow: 0 40px 70px rgba(0,0,0,.28); }
.back-link { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 36px; }
.back-link:hover { color: var(--red); }
.book-detail__title { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 20px; }
.book-detail__subtitle { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: #4a4743; margin-bottom: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 0 48px; margin: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 16px 0; }
.facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* Galerie */
.gallery { columns: 3 280px; column-gap: 20px; }
.gallery__item { break-inside: avoid; margin: 0 0 20px; }
.gallery__item a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery__item img { width: 100%; transition: transform .7s var(--ease); }
.gallery__item a:hover img { transform: scale(1.04); }
.gallery__item figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.96); display: grid; place-items: center; padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; }
.lightbox figcaption { color: #ddd; margin-top: 14px; font-size: 15px; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: #fff; font-size: 30px; width: 56px; height: 56px; }
.lightbox__close { top: 16px; right: 20px; font-size: 40px; }
.lightbox__nav--prev { left: 16px; top: 50%; }
.lightbox__nav--next { right: 16px; top: 50%; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--red); }

.empty { font-family: var(--serif); font-size: 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 1px solid #1f1f1f; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 56px; padding-bottom: 48px; flex-wrap: wrap; }
.site-footer__contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.site-footer__mail { font-size: clamp(18px, 2vw, 24px); font-weight: 700; text-decoration: none; margin-right: 32px; }
.site-footer__mail:hover { color: var(--red); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #333; border-radius: 50%; transition: all .25s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.site-footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; color: var(--muted-light); text-align: right; }
.site-footer__meta strong { color: #fff; font-size: 17px; }
.site-footer__legal { display: flex; gap: 24px; margin-top: 8px; }
.site-footer__legal a { color: #fff; }
.site-footer__legal a:hover { color: var(--red); }
.site-footer__credit { font-size: 12px; color: #6f6c68; margin-top: 8px; }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .logo__name { font-size: 22px; }
  .logo__tag { display: none; }
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    display: flex; align-items: flex-start; padding: 40px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { font-size: 32px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
  .site-header.is-scrolled .site-header__inner { height: var(--header-h); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__text { padding: 48px var(--gutter) 64px; }
  .slash--hero { width: 28px; left: 62%; top: 22%; height: 56%; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat, .stat:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); gap: 8px; }
  .stat:first-child { border-top: 0; }

  .about__grid, .books-teaser__grid, .contact__grid, .author__grid, .book-detail__grid { grid-template-columns: 1fr; }
  .about__head, .author__image, .book-detail__cover { position: static; }
  .book-detail__cover { max-width: 360px; }
  .slash--contact { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .contact-form__fields { grid-template-columns: 1fr; }
  .contact-form__footer { flex-direction: column; align-items: stretch; }
  .contact-form .btn { justify-content: center; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { align-items: flex-start; text-align: left; }
  .prose { font-size: 18px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .spaced-title { letter-spacing: .28em; font-size: 16px; }
  .book-card__title { font-size: 16px; }
  .book-card__teaser { display: none; }
  .lightbox { padding: 60px 12px; }
}

/* Zwei dunkle Abschnitte direkt hintereinander: kein doppelter Abstand */
.section--dark + .section--dark { padding-top: 0; }
.carousel__nav[hidden] { display: none; }
