/* Erde ohne Salz – Autorenseite (Entwurf)
   Schriften lokal eingebunden (keine Verbindung zu Google-Servern). */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/crimson-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/crimson-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/crimson-text-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #141619;
  --bg-2: #1b1e22;
  --bg-3: #23272c;
  --fog: #b9b6ad;
  --text: #dcd7cb;
  --text-dim: #a19d93;
  --parchment: #efe9dc;
  --gold: #c9ab6c;
  --gold-soft: rgba(201, 171, 108, .35);
  --moon: #3d5a80;
  --line: rgba(220, 215, 203, .14);
  --serif-display: "EB Garamond", "Garamond", "Georgia", serif;
  --serif-text: "Crimson Text", "EB Garamond", "Georgia", serif;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-text);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.7;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 4.5rem; }

h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; color: var(--parchment); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.55rem; }

.eyebrow {
  font-family: var(--serif-display);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .8rem;
  color: var(--gold);
  margin: 0 0 .9rem;
}

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container.narrow { width: min(var(--measure), 100% - 3rem); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* Platzhalter für den Entwurf – deutlich sichtbar */
.ph {
  background: rgba(201, 171, 108, .14);
  color: #e6cf98;
  border: 1px dashed rgba(201, 171, 108, .6);
  border-radius: 3px;
  padding: 0 .3em;
  font-style: normal;
  white-space: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-display);
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-decoration: none;
  padding: .72em 1.6em;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--gold); color: #17191c; }
.btn--primary:hover { background: var(--parchment); border-color: var(--parchment); color: #17191c; }
.btn--ghost { color: var(--parchment); background: rgba(20, 22, 25, .35); border-color: rgba(239, 233, 220, .45); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Kopfleiste ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(14, 15, 18, .88), rgba(14, 15, 18, .55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(220, 215, 203, .06);
}
.topbar__brand { display: flex; align-items: center; gap: .6rem; color: var(--parchment); text-decoration: none; font-family: var(--serif-display); font-size: 1.15rem; letter-spacing: .04em; }
.topbar__brand img { width: 28px; height: auto; }
.topbar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.topbar__nav a { color: var(--text); text-decoration: none; font-family: var(--serif-display); font-size: 1rem; letter-spacing: .06em; }
.topbar__nav a:hover { color: var(--gold); }
.topbar__nav .topbar__cta { color: var(--gold); border: 1px solid var(--gold-soft); padding: .25em .9em; border-radius: 2px; }

/* ---------- Titelbild (oberhalb des Hero) ---------- */
.keyvisual { position: relative; margin: 0 auto; padding-top: 3.5rem; max-width: 1400px; background: var(--bg); }
.keyvisual img { display: block; width: 100%; height: auto; aspect-ratio: 1872 / 1056; }
.keyvisual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 22, 25, 0), var(--bg));
}
@media (min-width: 1401px) {
  .keyvisual::before {
    content: ""; position: absolute; inset: 3.5rem 0 0 0; pointer-events: none;
    background: linear-gradient(90deg, var(--bg), rgba(20, 22, 25, 0) 4%, rgba(20, 22, 25, 0) 96%, var(--bg));
    z-index: 1;
  }
}
.keyvisual + .hero .hero__bg::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), rgba(20, 22, 25, 0));
}
.keyvisual + .hero .hero__inner { padding-top: 4.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: saturate(.75) brightness(.9); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, .92) 0%, rgba(16, 17, 20, .7) 38%, rgba(16, 17, 20, .25) 70%, rgba(16, 17, 20, .45) 100%),
    linear-gradient(to bottom, rgba(20, 22, 25, 0) 55%, var(--bg) 100%);
}
.hero__inner {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: 7rem 0 5rem;
}
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.2rem); letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero__author { font-family: var(--serif-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--fog); margin: .5rem 0 2rem; letter-spacing: .06em; }
.hero__hook { font-style: italic; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.55; max-width: 30rem; color: var(--text); margin: 0 0 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta { margin: 2rem 0 0; font-size: .98rem; color: var(--text-dim); }
.hero__cover { margin: 0; justify-self: center; width: min(360px, 100%); }
.hero__cover img {
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.05), inset 3px 0 6px rgba(0,0,0,.4);
}

/* ---------- Über das Buch ---------- */
.section--book { background: var(--bg); padding-top: clamp(3rem, 6vw, 5rem); }
.section--book h2 { font-style: italic; }
.klappentext p { margin: 0 0 1.3em; font-size: 1.22rem; }
.klappentext p:first-child::first-letter {
  font-family: var(--serif-display); float: left; font-size: 3.6em; line-height: .85; padding: .06em .12em 0 0; color: var(--gold);
}
.klappentext p:last-child { margin-bottom: 0; }

.divider { display: flex; align-items: center; justify-content: center; gap: 1.4rem; width: min(var(--measure), 100% - 3rem); margin: 0 auto; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.divider img { width: 40px; opacity: .9; }

/* ---------- Leseprobe ---------- */
.section--excerpt { background: radial-gradient(ellipse at 50% 0%, rgba(61, 90, 128, .12), transparent 60%), var(--bg); }
.excerpt__intro { font-style: italic; color: var(--text-dim); margin: -.9rem 0 2.5rem; }
.excerpt p { margin: 0; text-indent: 1.4em; hyphens: auto; -webkit-hyphens: auto; text-align: justify; }
.excerpt p:first-child { text-indent: 0; }
.excerpt p:first-child::first-letter {
  font-family: var(--serif-display); float: left; font-size: 3.6em; line-height: .85; padding: .06em .12em 0 0; color: var(--gold);
}
.excerpt .excerpt__more { text-align: center; text-indent: 0; color: var(--gold); margin-top: 1.4rem; letter-spacing: .4em; }
.excerpt__cta { margin: 3rem 0 0; text-align: center; font-style: italic; color: var(--text-dim); }
.excerpt__cta .btn { margin-top: 1.2rem; font-style: normal; }

/* ---------- Galerie ---------- */
.section--gallery { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--gallery .eyebrow, .section--gallery h2 { text-align: center; }
.section--gallery h2 { margin-bottom: 3rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 760 / 904; object-fit: cover; border-radius: 2px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); filter: saturate(.9); transition: filter .4s; }
.gallery__item:hover img { filter: saturate(1); }
.gallery__item figcaption { padding: 1rem .2rem 0; font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--text-dim); }
.gallery__title { display: block; font-family: var(--serif-display); font-style: normal; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--gold); margin-bottom: .3rem; }

/* ---------- Autor ---------- */
.author { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.author__photo { margin: 0; position: relative; }
.author__photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold-soft); border-radius: 2px; z-index: 0; }
.author__photo img { position: relative; z-index: 1; border-radius: 2px; filter: saturate(.82) contrast(1.02); box-shadow: 0 25px 50px -20px rgba(0,0,0,.8); }
.author__text { max-width: 34rem; }
.author__text p { margin: 0 0 1.1em; }

/* ---------- Bestellen ---------- */
.section--order { background: linear-gradient(to bottom, var(--bg), #101215); border-top: 1px solid var(--line); }
.section--order .eyebrow, .section--order h2 { text-align: center; }
.section--order h2 { margin-bottom: 3rem; }
.order { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.order__card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px;
  padding: 2rem 1.8rem;
}
.order__card p { margin: 0 0 1rem; }
.order__card .btn { margin-top: auto; }
.order__price { font-family: var(--serif-display); font-size: 1.5rem; color: var(--gold); margin: .3rem 0 1rem !important; }
.order__small { font-size: .92rem; color: var(--text-dim); }
.order__card--signed { background: linear-gradient(160deg, rgba(61, 90, 128, .22), var(--bg-3) 60%); }
.order__note { margin: clamp(1.5rem, 3vw, 2.2rem) 0 0; max-width: 46rem; }
.order__contact { margin-top: auto !important; margin-bottom: 0 !important; font-size: 1.1rem; }

/* ---------- Fußzeile ---------- */
.footer { text-align: center; padding: 3.5rem 1.5rem 3rem; background: #0e1012; border-top: 1px solid var(--line); color: var(--text-dim); }
.footer img { width: 44px; margin: 0 auto .8rem; opacity: .85; }
.footer__title { font-family: var(--serif-display); font-size: 1.3rem; color: var(--parchment); margin: 0 0 .4rem; letter-spacing: .05em; }
.footer__small { font-size: .92rem; margin: 0 0 1.2rem; }
.footer__nav { display: flex; justify-content: center; gap: 2rem; }
.footer__nav a { color: var(--text); text-decoration: none; font-family: var(--serif-display); letter-spacing: .06em; }
.footer__nav a:hover { color: var(--gold); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 8rem 0 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.legal p, .legal li { margin: 0 0 .9em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.note {
  border-left: 3px solid var(--gold); background: rgba(201, 171, 108, .08);
  padding: 1rem 1.3rem; margin: 0 0 2rem; font-size: 1.02rem;
}
.back { display: inline-block; margin-top: 2.5rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: 1fr 1fr; }
  .order__card--signed { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 6.5rem 0 3.5rem; gap: 2.5rem; }
  .keyvisual + .hero .hero__inner { padding-top: 2.5rem; }
  .keyvisual::after { height: 12%; }
  .hero__text { order: 2; }
  .hero__cover { order: 1; width: min(230px, 62vw); }
  .hero__hook { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__bg img { object-position: 18% 50%; }
  .hero__bg::after { background: linear-gradient(to bottom, rgba(16,17,20,.55) 0%, rgba(16,17,20,.78) 45%, var(--bg) 100%); }
  .author { grid-template-columns: 1fr; }
  .author__photo { width: min(320px, 80%); margin: 0 auto 1rem; }
  .author__text { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .container, .container.narrow, .divider { width: calc(100% - 2.5rem); }
  .excerpt p { text-align: left; }
  .klappentext p { font-size: 1.15rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 1rem .8rem; }
  .gallery__item figcaption { font-size: .95rem; }
  .gallery__title { font-size: .72rem; letter-spacing: .12em; }
  .order { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .topbar__brand span { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
