/* Ex zurück — Buchwebseite. Selbstgehostet, keine externen Ressourcen. */

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

:root {
  --ink: #1a2540;
  --ink-soft: #3b4863;
  --sky: #4a73b8;
  --sky-deep: #1e3a8a;
  --paper: #fbfaf6;
  --paper-warm: #f4eedf;
  --grass: #5a7d3a;
  --line: #d7d2c2;
  --shadow: 0 6px 24px rgba(20,34,72,.12);
  --max: 1080px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Times New Roman", "Liberation Serif", "DejaVu Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
  background-color: rgba(251,250,246,.92);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-size: 22px; font-weight: 700; letter-spacing: .02em;
  color: var(--sky-deep);
  font-style: italic;
}
.brand a { color: inherit; text-decoration: none; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  margin-left: 22px; font-size: 16px;
}
.nav a:hover { color: var(--sky-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(74,115,184,.18) 0%, rgba(244,238,223,0) 70%),
    var(--paper);
  padding: 60px 24px 40px;
}
.hero .inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr; gap: 56px;
  align-items: center;
}
.cover-wrap {
  box-shadow: var(--shadow);
  border-radius: 4px; overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
.cover-wrap:hover { transform: rotate(0) scale(1.01); }

.hero h1 {
  font-size: 52px; line-height: 1.08; margin: 0 0 14px;
  color: var(--sky-deep);
  font-weight: 700;
  letter-spacing: -.01em;
}
.subtitle {
  font-style: italic; font-size: 22px; color: var(--ink-soft);
  margin: 0 0 8px;
}
.author { font-size: 17px; color: var(--ink-soft); margin: 0 0 24px; }
.hero .lead {
  font-size: 19px; margin: 0 0 28px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--sky-deep);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 17px;
  font-family: inherit;
  letter-spacing: .01em;
  transition: background .15s ease, transform .15s ease;
  border: 1px solid var(--sky-deep);
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn.secondary {
  background: transparent; color: var(--sky-deep);
}
.btn.secondary:hover { background: var(--sky-deep); color: #fff; }

.affiliate-note {
  font-size: 13px; color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Sections ---------- */
section { padding: 64px 24px; }
section .inner { max-width: 760px; margin: 0 auto; }
section.wide .inner { max-width: var(--max); }

section h2 {
  font-size: 34px;
  color: var(--sky-deep);
  margin: 0 0 24px;
  font-weight: 700;
}
section h3 { font-size: 22px; margin: 28px 0 12px; color: var(--ink); }
section p { margin: 0 0 16px; }

.alt-bg { background: var(--paper-warm); }

/* Pull-quote / back-cover style */
.blurb {
  font-size: 21px;
  line-height: 1.65;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 640px;
}
.blurb-rule {
  width: 60px; height: 2px; background: var(--sky); margin: 0 auto 28px;
}

/* Chapter list */
.chapters {
  list-style: none; padding: 0; margin: 0;
  column-count: 2; column-gap: 36px;
}
.chapters li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.chapters li .num {
  color: var(--sky); font-weight: 700; margin-right: 10px;
}

/* For-whom list */
.tick-list { list-style: none; padding: 0; margin: 0 0 24px; }
.tick-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.tick-list li::before {
  content: "✓";
  position: absolute; left: 4px; top: 10px;
  color: var(--grass); font-weight: 700;
}

/* Author card */
.author-card {
  display: flex; gap: 28px; align-items: flex-start;
}
.author-card .mark {
  flex: 0 0 80px; height: 80px; border-radius: 50%;
  background: var(--sky-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; font-style: italic;
}

/* Final CTA */
.final-cta {
  background: var(--sky-deep);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.92); font-size: 19px; max-width: 580px; margin: 0 auto 28px; }
.final-cta .btn {
  background: #fff; color: var(--sky-deep); border-color: #fff;
}
.final-cta .btn:hover { background: var(--paper-warm); color: var(--sky-deep); }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 40px 24px 28px;
  font-size: 15px;
}
footer .inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
footer a { color: #fff; text-decoration: none; margin-right: 18px; }
footer a:hover { text-decoration: underline; }
footer .meta { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px; margin: 40px auto; padding: 24px;
  background: #fff; border-radius: 4px; box-shadow: var(--shadow);
}
.legal h1 { color: var(--sky-deep); font-size: 36px; margin-top: 0; }
.legal h2 { color: var(--sky-deep); font-size: 22px; margin-top: 32px; }
.legal h3 { font-size: 18px; margin-top: 22px; }
.legal address { font-style: normal; margin: 12px 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 36px 20px; }
  .hero .inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .cover-wrap { max-width: 280px; margin: 0 auto; transform: none; }
  .hero h1 { font-size: 36px; }
  .subtitle { font-size: 19px; }
  .cta-row { justify-content: center; }
  section { padding: 44px 20px; }
  section h2 { font-size: 26px; }
  .chapters { column-count: 1; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .nav a { margin-left: 0; margin-right: 16px; }
}
