/* ============================================
   DESIGN-TOKENS
   ============================================ */
:root {
  --color-bg: #F1ECE2;
  --color-bg-alt: #E7E0D2;
  --color-text: #1B2340;
  --color-muted: #5A5F72;
  --color-accent: #B5292C;
  --color-accent-warm: #1B2340;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 780px;
}

/* ============================================
   GRUNDEINSTELLUNGEN
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px 0;
  color: var(--color-text);
}

/* ============================================
   ZITATE
   Markdown:

   > **„Ich habe gestern etwas gemacht.“**

   wird von buch.js in <blockquote> umgewandelt.
   ============================================ */

/* ============================================
   ZITATE
   Markdown:

   > **„Ich habe gestern etwas gemacht.“**

   wird von parseMarkdownBloecke() in <blockquote> umgewandelt. Gilt für
   Ratgeber-Seiten UND die Autorseite, damit Zitate überall gleich
   aussehen.
   ============================================ */

blockquote {
  position: relative;

  margin: 28px 0;

  padding: 20px 24px 20px 28px;

  background: var(--color-bg-alt);

  border-left: 4px solid var(--color-accent);

  border-radius: 0 8px 8px 0;

  color: var(--color-text);

  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
}

/* In dunklen Abschnitten (.section-alt, Hintergrund var(--color-bg-alt))
   hätte das Zitat sonst denselben Hintergrund wie der Abschnitt selbst
   und würde optisch verschwinden - deshalb dort die helle Grundfarbe
   als Kontrast. */
.section-alt blockquote {
  background: var(--color-bg);
}

/* Großes dekoratives Anführungszeichen */
blockquote::before {
  content: "\201E";

  position: absolute;

  left: 10px;
  top: -10px;

  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;

  color: var(--color-accent);
  opacity: 0.25;
}

blockquote strong {
  color: var(--color-text);
}

/* ============================================
   LISTEN IM FLIESSTEXT
   Gilt seitenweit (Ratgeber, Autorseite, Hauptseite, ...) außer im
   Blättermodus und im Quiz, die beide eigene, spezifischere Regeln
   haben. Die Navigation im Header nutzt ebenfalls <ul>/<li>, braucht
   aber ihr eigenes Layout statt Aufzählungspunkten - daher der Reset
   direkt im Anschluss.
   ============================================ */
ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

li {
  position: relative;
  margin: 0 0 8px 0;
  padding-left: 24px;
}

li:last-child {
  margin-bottom: 0;
}

li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

/* Reset für die Header-Navigation - dort keine Aufzählungspunkte/
   Einzüge, das eigene Flex-Layout (siehe "nav ul" oben) reicht. */
nav li {
  margin: 0;
  padding-left: 0;
}

nav li::before {
  content: none;
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--color-accent);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO-BEREICH
   ============================================ */
.hero {
  padding: 72px 0 88px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-accent-warm);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-text {
  max-width: 46ch;
  color: var(--color-muted);
}

.poem-lines {
  max-width: 46ch;
  color: var(--color-muted);
  line-height: 1.7;
  font-style: italic;
}

.poem-lines strong {
  color: var(--color-text);
  font-style: normal;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* ============================================
   ALLGEMEINE SEKTIONEN
   ============================================ */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.skills {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  flex-wrap: wrap;
}

.skills li {
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ============================================
   PROJEKT-KARTEN
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--color-bg);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #D6CDBB;
}

.project-card h3 {
  color: var(--color-accent);
}

/* ============================================
   BUCH-GRID
   ============================================ */
h3 {
  margin-top: 40px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #D6CDBB;
  display: block;
  margin-bottom: 8px;
}

.book-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.grid-link {
  margin-top: 20px;
}

.grid-link a {
  font-weight: 600;
  text-decoration: none;
}

.grid-link a:hover {
  text-decoration: underline;
}

/* Großes Cover-Bild */
.book-cover {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #D6CDBB;
  display: block;
  margin-bottom: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 32px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-row p {
  margin: 0;
}

.footer-row a {
  color: var(--color-muted);
}

.footer-row a:hover {
  color: var(--color-accent);
}

/* ============================================
   COVER-LIGHTBOX
   ============================================ */
.cover-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 64, 0.9);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cover-lightbox-overlay.is-open {
  display: flex;
}

.cover-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cover-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
}

.cover-lightbox-close:hover {
  color: var(--color-accent);
}

/* ============================================
   ÜBERSCHRIFTEN & TRENNLINIEN
   Gilt seitenweit (Ratgeber, Autorseite, Hauptseite, ...) außer im
   Blättermodus, der seine eigene, spezifischere h1/hr-Optik hat.
   ============================================ */
h1 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  display: inline-block;
}

hr {
  border: none;
  border-top: 2px solid var(--color-accent);
  width: 60px;
  margin: 64px 0;
}

/* ============================================
   BLÄTTERN-LINK
   ============================================ */
.blaettern-wrap {
  margin: -16px 0 32px;
}

.blaettern-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.blaettern-link:hover {
  color: var(--color-accent-warm);
  border-color: var(--color-accent-warm);
}

/* ============================================
   AUTOR-UNTERSCHRIFT
   ============================================ */

.autor-signatur {
  font-family: 'Homemade Apple', cursive;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  transform: rotate(-3deg) skewX(-6deg);
  margin: 0 0 2px 0;
  display: block;
}

/* Unterschrift im Flipbook */
.flipbook-page .autor-signatur {
  font-family: 'Homemade Apple', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  transform: rotate(-3deg) skewX(-6deg);
  margin: 56px 0 2px 0;
}

/* ============================================
   AUTOR-VORSTELLUNG
   ============================================ */
.autor-einleitung {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px 8px 8px 4px;
  padding: 20px 24px;
  margin: 0 0 28px 0;
}

.autor-einleitung p:last-child {
  margin-bottom: 0;
}

.autor-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px 0;
}

.autor-foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  flex-shrink: 0;
  margin: 0;
}

.autor-box .autor-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent-warm);
  letter-spacing: 0.02em;
  margin: 0;
}

.autor-tagline {
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin: -8px 0 24px 116px;
}

.autor-box .autor-tagline {
  margin: 6px 0 0 0;
  max-width: 40ch;
}

#autor .autor-signatur {
  font-size: 2.4rem;
}

/* ============================================
   AUTORSEITE: ABSCHLUSS-BOX
   Baut autorseite.js aus der letzten Namenszeile: Porträt links, rechts
   daneben Name + der komplette restliche Dokumenttext. Da dieser Text
   (anders als die kurze Tagline auf Hero/Buch-Seite) mehrere Absätze
   lang ist, braucht die Box eine andere Ausrichtung: oben statt
   zentriert, und der Textblock nutzt die volle verbleibende Breite.
   ============================================ */
.autor-box-abschluss {
  align-items: flex-start;
}

.autor-box-abschluss .autor-box-text {
  flex: 1;
}

.autor-box-abschluss .autor-name {
  margin-bottom: 12px;
}

/* ============================================
   BONUS-QUIZ
   Button auf der Buch-Seite + Overlay mit den Quiz-Fragen. Da es sich
   um Satire handelt, gilt jede Antwort als richtig - es gibt also
   keine Fehlermeldung, nur den vorgegebenen Auflösungstext am Ende.
   ============================================ */
.quiz-start-wrap {
  margin: 32px 0;
}

.quiz-start-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.quiz-start-button:hover {
  transform: translateY(-2px);
}

.quiz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 64, 0.85);
  /* --color-accent-warm, halbtransparent */
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.quiz-overlay.is-open {
  display: flex;
}

.quiz-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
}

.quiz-close:hover {
  color: var(--color-accent);
}

.quiz-panel {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.quiz-panel:has(.quiz-score) {
  max-width: 480px;
  text-align: center;
}

/* Falls die Quiz-Beschreibung (aus dem Markdown) doch mal ein Zitat,
   eine Liste oder eine Trennlinie enthält: im Quiz gilt bewusst NICHT
   die allgemeine Ratgeber-Optik (roter Rahmen/Punkte), sondern ein
   schlichter Look, der sich ins kompakte Overlay einfügt. */
.quiz-panel blockquote {
  background: none;
  border-left: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-family: var(--font-body);
  font-size: 1rem;
}

.quiz-panel blockquote::before {
  content: none;
}

.quiz-panel ul {
  padding-left: 20px;
  list-style: disc;
}

.quiz-panel li {
  padding-left: 0;
}

.quiz-panel li::before {
  content: none;
}

.quiz-panel hr {
  margin: 24px 0;
}

.quiz-titel {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.quiz-frage {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.quiz-frage legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0 0 12px 0;
  padding: 0;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--color-muted);
}

.quiz-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.quiz-option input:checked {
  background: var(--color-accent);
}

.quiz-option input:checked::after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 2px;
  color: #fff;
  font-size: 0.85rem;
}

.quiz-option input:checked+span {
  color: var(--color-text);
  font-weight: 500;
}

.quiz-auswerten-button {
  display: block;
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s ease;
}

.quiz-auswerten-button:hover {
  transform: translateY(-2px);
}

.quiz-score {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  padding: 14px 32px;
  margin: 0 0 28px 0;
}

.quiz-ergebnis-abzeichen {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.quiz-ergebnis-text {
  text-align: left;
}

.quiz-ergebnis-text p:last-child {
  margin-bottom: 0;
}

.quiz-zurueck-button {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 10px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.quiz-zurueck-button:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   RATGEBER-SHOWCASE
   ============================================ */
.showcase {
  padding-top: 8px;
}

.showcase-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-accent-warm);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.showcase-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.showcase-arrow {
  background: var(--color-accent-warm);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.showcase-arrow:hover:not(:disabled) {
  transform: scale(1.08);
}

.showcase-arrow:disabled {
  background: var(--color-muted);
  cursor: default;
}

.showcase-link {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  text-align: center;
  max-width: 600px;
}

.showcase-cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #D6CDBB;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.showcase-link:hover .showcase-cover {
  transform: translateY(-4px);
}

.showcase-title {
  margin-top: 16px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
}

@media (max-width: 480px) {
  .showcase-box {
    gap: 12px;
  }

  .showcase-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ============================================
   FLIPBOOK-ANSICHT
   ============================================ */
.flipbook-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 64, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flipbook-overlay.is-open {
  display: flex;
}

.flipbook-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
}

.flipbook-close:hover {
  color: var(--color-accent);
}

.flipbook-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.flipbook-arrow {
  background: var(--color-accent);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.flipbook-arrow:hover:not(:disabled) {
  transform: scale(1.08);
}

.flipbook-arrow:disabled {
  background: var(--color-muted);
  cursor: default;
}

.flipbook-book {
  display: flex;
  background: var(--color-bg);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #D6CDBB;
}

.flipbook-page {
  width: 480px;
  max-width: 46vw;
  height: 660px;
  padding: 48px 40px;
  overflow: hidden;
  position: relative;
}

.flipbook-page:last-child {
  border-left: 1px solid #D6CDBB;
  box-shadow: inset 6px 0 12px -8px rgba(0, 0, 0, 0.25);
}

/* Kapitel-Überschriften */
.flipbook-page h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  display: inline-block;
  margin: 0 0 20px 0;
}

.flipbook-page h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-accent);
}

.flipbook-page h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--color-accent);
}

.flipbook-page p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* ============================================
   ZITATE IM BLÄTTERMODUS
   ============================================ */
.flipbook-page blockquote {
  margin: 14px 0 16px;

  padding: 10px 12px 10px 16px;

  background: var(--color-bg-alt);

  border-left: 3px solid var(--color-accent);

  border-radius: 0 6px 6px 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.45;

  color: var(--color-text);

  break-inside: avoid;
  page-break-inside: avoid;
}

.flipbook-page blockquote::before {
  content: "\201E";

  float: left;

  margin: -5px 5px 0 -2px;

  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;

  color: var(--color-accent);
  opacity: 0.3;
}

.flipbook-page blockquote strong {
  color: var(--color-text);
}

.flipbook-page p+ul,
.flipbook-page p+ol {
  margin-top: 4px;
}

.flipbook-page ul+p,
.flipbook-page ol+p {
  margin-top: 14px;
}

.flipbook-page strong {
  color: var(--color-accent);
}

.flipbook-page hr {
  border: none;
  border-top: 2px solid var(--color-accent);
  width: 60px;
  margin: 20px 0;
}

.flipbook-page-number {
  position: absolute;
  bottom: 18px;
  right: 20px;
  background: var(--color-accent-warm);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 999px;
}

.flipbook-page-number.left {
  right: auto;
  left: 20px;
}

/* ============================================
   AUTOREN-ELEMENTE IM FLIPBOOK
   ============================================ */
.flipbook-page .autor-signatur {
  font-size: 1.5rem;
  margin-top: 56px;
}

.flipbook-page .autor-einleitung {
  padding: 14px 16px;
  margin-bottom: 18px;
}

.flipbook-page .autor-box {
  gap: 10px;
  margin-bottom: 16px;
}

.flipbook-page .autor-foto {
  width: 64px;
  height: 64px;
  border-width: 2px;
}

.flipbook-page .autor-box .autor-name {
  font-size: 1rem;
}

.flipbook-page .autor-tagline {
  font-size: 0.8rem;
  margin-top: -4px;
  margin-left: 74px;
}

.flipbook-page .autor-box>div {
  flex: 1;
}

.flipbook-page .autor-box .autor-tagline {
  max-width: none;
  margin: 4px 0 0 0;
}

.flipbook-page .autor-einleitung {
  margin-top: 32px;
  margin-bottom: 32px;
}

.flipbook-page .autor-box {
  margin-top: 48px;
}

.flipbook-counter {
  text-align: center;
  color: #fff;
  margin-top: 16px;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE FLIPBOOK
   ============================================ */
@media (max-width: 720px) {
  .flipbook-book {
    flex-direction: column;
  }

  .flipbook-page {
    width: 86vw;
    max-width: 86vw;
    height: 64vh;
  }

  .flipbook-page:last-child {
    border-left: none;
    border-top: 1px solid #D6CDBB;
    box-shadow: inset 0 6px 12px -8px rgba(0, 0, 0, 0.25);
  }

  .flipbook-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ============================================
   LISTEN IM FLIPBOOK
   ============================================ */
.flipbook-page ul,
.flipbook-turn-face ul {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0 0 0 6px;
}

.flipbook-page li,
.flipbook-turn-face li {
  position: relative;
  margin: 0 0 5px;
  padding-left: 21px;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--color-text);

  break-inside: avoid;
  page-break-inside: avoid;
}

.flipbook-page li:last-child,
.flipbook-turn-face li:last-child {
  margin-bottom: 0;
}

.flipbook-page li::before,
.flipbook-turn-face li::before {
  content: "";

  position: absolute;
  left: 1px;
  top: 0.72em;

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--color-accent);

  transform: translateY(-50%);

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.ratgeber-tabelle th,
.ratgeber-tabelle td {
  padding: 8px 12px;
  border: 1px solid var(--color-border, #ddd);
  text-align: left;
}

.ratgeber-tabelle thead {
  background: var(--color-accent, #f0f0f0);
}

.ratgeber-tabelle th {
  color: #fff;
  font-weight: 600;
}

/* Kompaktere Darstellung im Blättermodus, passend zur restlichen
   Schriftgröße dort (siehe .flipbook-page p, li). */
.flipbook-page .ratgeber-tabelle {
  font-size: 0.82rem;
  margin: 14px 0 16px;
}

.flipbook-page .ratgeber-tabelle th,
.flipbook-page .ratgeber-tabelle td {
  padding: 5px 8px;
}

/* ============================================
   RESPONSIVE: HANDY
   ============================================ */
@media (max-width: 480px) {
  nav ul {
    gap: 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 48px 0 56px;
  }
}