/* =========================================================================
   Ellis Family Guides — gemeinsames Stylesheet für alle Seiten
   Angelegt 17.08.2026. Vorher stand die Palette in jeder Datei erneut; mit
   drei Seiten wurde das zur Fehlerquelle.

   Die Palette ist NICHT frei gewählt — sie kommt aus dem Buchcover
   (config.json: cover.primary / accent / line) und aus dem A+ Content.
   Wer hier Farben ändert, ändert sie gegen das gedruckte Buch.
   ========================================================================= */

:root {
  --navy: #2C4A66;        /* cover.primary — Titelbalken, dunkle Bänder    */
  --navy-deep: #24405A;   /* Hover-Zustand                                 */
  --gold: #C9A227;        /* cover.line — Haarlinien, Zierlinien           */
  --gold-dark: #7D6122;   /* cover.accent — Links und Schaltflächen        */
  --bg: #FAF8F3;          /* Seitengrund, Creme wie der Buchschnitt        */
  --bg-warm: #f1ede3;     /* Fußzeile                                      */
  --card: #ffffff;
  --line: #e2dccc;        /* Rahmen                                        */
  --ink: #2b2b2b;
  --ink-soft: #55524a;
  --ink-mute: #8a8377;
  --cream: #F3EDE0;       /* Text auf Navy                                 */
  --cream-mute: #cdd8e2;  /* Nebentext auf Navy                            */
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --measure: 680px;       /* Lesebreite                                    */
  --wide: 1080px;         /* Breite Abschnitte (Ausgaben, Video)           */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

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

/* Tastaturbedienung sichtbar halten — die Leserschaft ist 50+, viele
   navigieren mit der Tastatur oder mit Vergrößerung. */
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --- Bausteine ---------------------------------------------------------- */

/* Eyebrow: die kleine Versalzeile in Gold. Kommt direkt aus dem A+ Content
   („ELLIS FAMILY GUIDES · THE PEACE OF MIND SERIES"). */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.band .eyebrow, .hero .eyebrow { color: var(--gold); }

/* Goldene Haarlinie unter Überschriften — dieselbe Zierlinie wie auf dem
   Cover und in allen drei A+-Blöcken. */
.rule { width: 110px; height: 2px; background: var(--gold); border: 0; margin: 18px auto 22px; }
.rule.left { margin-left: 0; }

/* Ganzflächige Bänder. Die Seite wechselt Navy / Creme / Navy — derselbe
   Rhythmus wie der A+ Content und wie das Cover (Navy-Balken auf Hellblau). */
.band { background: var(--navy); color: var(--cream); padding: 64px 20px; text-align: center; }
.band-cream { background: var(--bg); padding: 60px 20px; }
.band-card { background: #f5f2ea; padding: 60px 20px; }
.band .inner, .band-cream .inner, .band-card .inner { max-width: var(--measure); margin: 0 auto; }
.band .inner.wide, .band-cream .inner.wide, .band-card .inner.wide { max-width: var(--wide); }

/* text-wrap: balance verteilt die Zeilen einer Überschrift gleichmäßig, statt
   die letzte Zeile mit einem Wort dastehen zu lassen. Browser ohne diese
   Eigenschaft brechen wie bisher — kein Nachteil, nur kein Gewinn. */
h1 {
  font-size: clamp(28px, 4.6vw, 42px); font-weight: normal; line-height: 1.28;
  text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 3vw, 31px); font-weight: normal; line-height: 1.3;
  color: var(--navy); text-wrap: balance;
}
.band h2 { color: var(--cream); }
h3 { font-size: 21px; font-weight: normal; color: var(--navy); }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.lede { font-style: italic; color: var(--cream-mute); font-size: clamp(17px, 2vw, 20px); }
.small { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); }

/* Blattornament als Aufzählungszeichen — dieselbe Bilddatei wie auf dem
   Buchcover. Auf der Website geht das als echte Grafik; in Amazons
   Beschreibungsfeld nicht, dort wird auch das Schriftzeichen ❧ abgelehnt
   („Emoji characters are not supported", geprüft 08.08.2026). */
ul.leaf { list-style: none; margin: 0 0 14px; text-align: left; }
ul.leaf li {
  padding-left: 30px; margin-bottom: 10px;
  background: url("/img/leaf.png") no-repeat 0 0.42em;
  background-size: 19px auto;
}

/* Schaltflächen */
a.btn {
  display: inline-block; font-family: var(--sans); font-size: 16px;
  background: var(--navy); color: var(--cream); text-decoration: none;
  padding: 13px 24px; border-radius: 6px; margin: 10px 10px 0 0;
  transition: background .15s ease;
}
a.btn:hover { background: var(--navy-deep); }
a.btn.gold { background: var(--gold-dark); }
a.btn.gold:hover { background: #6a5119; }
a.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(243,237,224,.5); }
a.btn.ghost:hover { background: rgba(243,237,224,.12); }

a.plain { color: var(--gold-dark); }

/* Zitat — bewusst zurückhaltend gesetzt: Es soll belegen, nicht schreien. */
.quote {
  border-left: 3px solid var(--gold); padding: 2px 0 2px 16px; margin: 16px 0 4px;
  font-style: italic; color: var(--ink-soft); font-size: 17px; text-align: left;
}
.quote cite {
  display: block; font-style: normal; font-size: 14px; color: var(--gold-dark);
  margin-top: 8px; font-family: var(--sans);
}
/* Dasselbe Zitat auf Navy, groß gesetzt — der A+-Block 3 als HTML. */
.quote-large { font-style: italic; font-size: clamp(18px, 2.3vw, 23px); line-height: 1.55; color: var(--cream); }
.quote-large cite {
  display: block; font-style: normal; font-family: var(--sans); font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 22px;
}
.seal { width: 96px; height: 96px; }

/* Kopf und Fuß */
.sitehead {
  background: var(--navy); color: var(--cream);
  padding: 14px 20px; text-align: center;
  font-family: var(--sans); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  border-bottom: 1px solid rgba(201,162,39,.35);
}
.sitehead a { color: var(--gold); text-decoration: none; }
.sitehead a:hover { text-decoration: underline; }

main { flex: 1; }

footer {
  padding: 28px 20px 36px; background: var(--bg-warm); text-align: center;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-mute); line-height: 1.75;
}
footer a { color: var(--gold-dark); }
