/* ============================================================
   Sophie N. Teuber (ndesignvibes.com) — style.css
   Farb- und Schriftwelt vom Buchcover abgeleitet.
   Selbst gehostete Schriften, kein JavaScript, keine Tracker.
   ============================================================ */

/* ---------- Schriften (selbst gehostet, auf Latein reduziert) ---------- */
@font-face {
  font-family: "Literata";
  src: url("fonts/Literata-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/Literata-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Literata Display";
  src: url("fonts/Literata36pt-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata Display";
  src: url("fonts/Literata36pt-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design-Tokens (Farben direkt aus dem Cover) ---------- */
:root {
  --paper: #FFFCF6;        /* Seitenhintergrund, sehr helles Warmweiß */
  --card: #FBF3E6;         /* Cover-Creme als Fläche für Karten und Akzente */
  --ink: #3B443A;          /* Cover-Titelgrün */
  --muted: #7C7C6F;        /* Sekundärtext */
  --hairline: #EDE4D4;     /* feine Linien */

  --coral: #F98365;        /* Puzzle oben links */
  --sage:  #BDCCB9;        /* Puzzle oben rechts */
  --gold:  #E7B95B;        /* Puzzle unten links */
  --rose:  #CA8482;        /* Puzzle unten rechts */
  --coral-deep: #DC6248;   /* Coral für Text und Buttons, kontraststark */

  --display: "Poppins", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --serif-display: "Literata Display", Georgia, serif;

  --max: 68rem;
  --max-text: 40rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

a { color: var(--coral-deep); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Signatur: vierteilige Linie (die vier Puzzleteile) ---------- */
.quadrule {
  display: flex;
  width: 3.6rem;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}
.quadrule span { flex: 1; }
.quadrule span:nth-child(1) { background: var(--coral); }
.quadrule span:nth-child(2) { background: var(--sage); }
.quadrule span:nth-child(3) { background: var(--gold); }
.quadrule span:nth-child(4) { background: var(--rose); }

/* ---------- Namenszug ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.3rem; padding-bottom: 1.3rem;
}
.site-header .wordmark { font-size: 1rem; }

.site-nav {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a { color: var(--muted); margin-left: 1.5rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4rem; text-align: center; }

.portrait {
  display: block;
  width: 116px; height: 116px;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), 0 16px 34px -22px rgba(59, 68, 58, 0.55);
}
.portrait-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--sage);
  font-family: var(--display); font-weight: 500;
  font-size: 1.7rem; letter-spacing: 0.06em;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.hero .subline {
  margin: 0.9rem 0 1.4rem;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--coral-deep);
}
.hero .intro {
  max-width: 32rem;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Abschnittslabel ---------- */
.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 3rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}

/* ---------- Buchpräsentation ---------- */
.books { padding-bottom: 5.5rem; }

.book {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.book + .book {
  margin-top: 4.5rem; padding-top: 4.5rem;
  border-top: 1px solid var(--hairline);
}

.cover { position: relative; }

/* leicht versetzte Fläche hinter dem Cover — hebt es vom Hintergrund ab */
.cover::before {
  content: "";
  position: absolute;
  left: 14px; top: 14px; right: -14px; bottom: -14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  z-index: 0;
}
.cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(59, 68, 58, 0.14);
  box-shadow:
    0 2px 6px rgba(59, 68, 58, 0.10),
    0 24px 44px -24px rgba(59, 68, 58, 0.55);
}

/* Platzhalter-Cover für künftige Titel ohne Bild */
.cover.is-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(59, 68, 58, 0.10), 0 24px 44px -24px rgba(59, 68, 58, 0.45);
  background: var(--card);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.6rem 1.4rem; text-align: center;
}
.cover.is-placeholder .cover-author {
  font-family: var(--display); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.cover.is-placeholder .cover-title {
  font-family: var(--display); font-weight: 600;
  font-size: 1.15rem; line-height: 1.3; color: var(--ink);
}

.book-info .author {
  margin: 0 0 0.7rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.book-info h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.2;
}
.book-info .book-sub {
  margin: 0 0 1.4rem;
  font-family: var(--serif-display); font-style: italic;
  font-size: 1.2rem; color: var(--coral-deep);
}
.book-info p.desc { margin: 0 0 1.6rem; max-width: 34rem; }

/* Kurzangaben zum Buch */
.book-facts {
  list-style: none; margin: 0 0 2rem; padding: 0;
  max-width: 34rem;
  font-size: 0.95rem;
}
.book-facts li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
}
.book-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
}
.book-facts li:nth-child(1)::before { background: var(--coral); }
.book-facts li:nth-child(2)::before { background: var(--sage); }
.book-facts li:nth-child(3)::before { background: var(--gold); }
.book-facts li:nth-child(4)::before { background: var(--rose); }

/* ---------- Button ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--coral-deep);
  color: #FFF9F2;
  font-family: var(--display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover {
  background: var(--ink); color: #FFF9F2;
  text-decoration: none; transform: translateY(-1px);
}
.button.is-quiet {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline);
}
.button.is-quiet:hover { background: var(--card); color: var(--ink); }

/* ---------- Unterseiten ---------- */
.page { max-width: var(--max-text); margin: 0 auto; padding: 4.5rem 0 5.5rem; }
.page .kicker {
  margin: 0 0 0.9rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.page h1 {
  margin: 0 0 1.4rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.2;
}
.page h2 {
  margin: 2.5rem 0 0.7rem;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
}
.page .note {
  margin-top: 2.4rem; padding: 1rem 1.2rem;
  background: var(--card);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  font-size: 0.9rem; color: var(--muted);
}
.page .meta { font-family: var(--display); font-size: 0.78rem; color: var(--muted); }
.page .backlink {
  display: inline-block; margin-top: 2.4rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Einzelne Downloads auf der Bonusseite */
.downloads { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.downloads li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}
.downloads .tile {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.04em;
  color: #FFF9F2;
}
.downloads li:nth-child(1) .tile { background: var(--coral); }
.downloads li:nth-child(2) .tile { background: var(--sage); color: var(--ink); }
.downloads li:nth-child(3) .tile { background: var(--gold); color: var(--ink); }
.downloads li:nth-child(4) .tile { background: var(--rose); }

.downloads .text { flex: 1; min-width: 0; }
.downloads .name {
  display: block;
  font-family: var(--display); font-weight: 500;
  font-size: 0.98rem; color: var(--ink);
  margin-bottom: 0.1rem;
}
.downloads .desc {
  display: block;
  font-size: 0.88rem; color: var(--muted); line-height: 1.5;
}
.downloads .dl {
  flex: none;
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--coral-deep);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--paper);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.downloads .dl:hover {
  background: var(--coral-deep); color: #FFF9F2;
  text-decoration: none; border-color: var(--coral-deep);
}

/* Downloadkarte auf der Bonusseite */
.download-card {
  margin-top: 2.4rem;
  padding: 2.2rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  text-align: center;
}
.download-card .quadrule { margin-bottom: 1.4rem; }
.download-card h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.download-card p { margin: 0 0 1.6rem; color: var(--muted); font-size: 0.95rem; }
.download-card .meta { display: block; margin-top: 1rem; }

.placeholder {
  color: var(--muted);
  background: #F6EEDE;
  padding: 0 0.3em; border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding-top: 1.5rem; padding-bottom: 2rem;
  font-family: var(--display); font-size: 0.78rem; color: var(--muted);
}
.site-footer nav a { color: var(--muted); margin-left: 1.4rem; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .wordmark { font-size: 0.9rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 3rem; }
  .book { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cover { width: min(240px, 68vw); }
  .cover::before { left: 10px; top: 10px; right: -10px; bottom: -10px; }
  .downloads li { flex-wrap: wrap; text-align: left; }
  .downloads .text { flex: 1 1 60%; }
  .downloads .dl { margin-left: calc(40px + 1.1rem); }
  .book-info p.desc { margin-left: auto; margin-right: auto; }
  .book-facts { text-align: left; display: inline-block; }
  .site-footer .wrap { flex-direction: column; align-items: center; text-align: center; }
  .site-footer nav a { margin: 0 0.7rem; }
}

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