/* =========================================================
   Katja Zarm – Demenz-Schulung & Beratung
   Designsystem: design-system/katja-demenz/MASTER.md
   ========================================================= */

/* Atkinson Hyperlegible Next – SIL Open Font License 1.1, selbst gehostet */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-next-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-next-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* Literata – SIL Open Font License 1.1, selbst gehostet (Überschriften) */
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/literata-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/literata-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Farbe – „Herzschlag“: Herzrot und Grafit aus dem Logo,
     dazu warme Flächen (siehe Design-Vorschlaege/Designvorschlag-Herzschlag.pdf) */
  --leinenweiss: #FBF8F5;  /* Grundfläche */
  --rosenpapier: #F6ECE7;  /* Abschnitte */
  --rose: #F2D6D2;         /* Karten auf dunklem Grund */
  --herzrot: #A0090C;      /* Buttons, Links, Markierungen – Herz im Logo */
  --grafit: #4C4C4B;       /* Überschriften – Pulslinie und Schrift im Logo */
  --tinte: #2B2A29;        /* Fließtext */
  --weinrot: #6E1418;      /* Kontaktbereich, Fußzeile, Hover */
  --warmgrau: #5E5A57;     /* Nebentext */
  --linie: #E8DCD6;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  /* Semantik */
  --color-bg: var(--leinenweiss);
  --color-surface: var(--rosenpapier);
  --color-text: var(--tinte);
  --color-text-muted: var(--warmgrau);
  --color-link: var(--herzrot);
  --color-primary: var(--herzrot);
  --color-on-primary: #FFFFFF;
  --color-focus: var(--tinte);

  /* Typografie */
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: 1.125rem;   /* 18px Fließtext */
  --step-1: 1.40625rem; /* 22.5px */
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4rem);

  /* Raum (8er-Raster) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4rem, 3rem + 4vw, 6.5rem);

  --radius: 10px;
  --measure: 65ch;
  --container: 72rem;
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1, h2 { color: var(--grafit); font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.005em; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); hyphens: auto; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--color-link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--weinrot); text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--weinrot);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-2); color: #fff; }

/* ---------- Buttons & Links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.button-primary { background: var(--color-primary); color: var(--color-on-primary); }
.button-primary:hover { background: var(--weinrot); color: var(--color-on-primary); }
.button:active { transform: scale(0.98); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 245, 0.94);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--weinrot);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* Logo mit Herz, Pulslinie und Namen */
.brand-logo { display: block; width: auto; height: 4rem; flex: none; }
@media (min-width: 48rem) { .brand-logo { height: 5.5rem; } }

/* Pulslinie als Trenner unter dem Einstieg */
.pulse-divider { color: var(--grafit); margin-top: var(--space-5); opacity: 0.7; }
.pulse-divider svg { display: block; width: 100%; height: 1.5rem; }
.nav-toggle[aria-expanded="true"] { background: var(--weinrot); color: #fff; }
.brand:hover { color: var(--weinrot); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--tinte);
  border-radius: var(--radius);
  background: transparent;
  color: var(--tinte);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul { list-style: none; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--tinte);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--herzrot); text-decoration: underline; }
.site-nav .nav-cta {
  background: var(--herzrot);
  color: #fff;
  padding-inline: 1.1rem;
}
.site-nav .nav-cta:hover { background: var(--weinrot); color: #fff; text-decoration: none; }

/* Mobiles Menü */
@media (max-width: 47.99rem) {
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--leinenweiss);
    border-bottom: 1px solid var(--linie);
    padding: var(--space-1) clamp(1.25rem, 4vw, 2.5rem) var(--space-3);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 0.25rem; }
  .site-nav a { padding-inline: 0.5rem; }
  .site-nav .nav-cta { margin-top: var(--space-1); justify-content: center; }
  /* Ohne JavaScript: Navigation einfach unter dem Namen anzeigen */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--space-1); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; }
}
@media (min-width: 48rem) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) var(--space-6); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.hero-role {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.hero h1 { max-width: 18ch; margin-bottom: var(--space-3); font-size: clamp(2.25rem, 1.5rem + 3vw, 3.4rem); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--tinte); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
}
/* Hero-Bild – Kanten laufen weich in den Seitenhintergrund aus */
.hero-media {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  /* weiche Ränder rundum (zwei Verläufe, die sich überlagern) */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-composite: intersect;
}
@media (min-width: 60rem) {
  .hero { padding-top: var(--space-6); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  /* Bild bleibt im Seitenrahmen, mittig neben dem Text */
  .hero-media { max-width: 36rem; margin: 0 auto; align-self: center; }
}

/* Variante: Herz aus dem Logo statt Foto – ohne weiche Maske, mittig und etwas kleiner */
.hero-heart { max-width: 15rem; }
.hero-heart img { aspect-ratio: 763 / 900; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
@media (min-width: 60rem) { .hero-heart { max-width: 21rem; justify-self: center; } }

/* Einmaliges sanftes Einblenden beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-in 1200ms var(--ease) both; }
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-6); }
.section-tint { background: var(--color-surface); }
.section-head { margin-bottom: var(--space-5); }
.section-head p { color: var(--color-text-muted); }

/* Für wen */
.audience {
  list-style: none;
  display: grid;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}
.audience h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.audience p { color: var(--color-text-muted); }
@media (min-width: 48rem) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .audience { grid-template-columns: repeat(3, 1fr); } }

/* Schulungen – Liste statt Kacheln */
.offer-list { list-style: none; border-top: 2px solid var(--tinte); }
.offer {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--linie);
}
.offer h3 { margin: 0; font-size: var(--step-2); }
.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
}
.offer-meta div { display: flex; gap: 0.4rem; }
.offer-meta dt { font-weight: 700; color: var(--tinte); }
.offer-meta dt::after { content: ":"; }
.offer-meta dd { margin: 0; }
@media (min-width: 52rem) {
  .offer { grid-template-columns: minmax(14rem, 1fr) 2fr; gap: var(--space-5); }
}
.offer-meta { flex-direction: column; }
@media (min-width: 40rem) { .offer-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; } .offer-meta div { display: contents; } }

/* Module der Basisschulung – aufklappbar */
.modules { margin-top: var(--space-3); border-top: 1px solid var(--linie); }
.modules summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding-top: var(--space-1);
  font-weight: 700;
  color: var(--herzrot);
  cursor: pointer;
  list-style: none;
}
.modules summary::-webkit-details-marker { display: none; }
.modules summary::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease);
}
.modules[open] summary::before { transform: rotate(45deg); }
.modules summary:hover { color: var(--weinrot); text-decoration: underline; }
.modules ol { margin: var(--space-2) 0 0; padding-left: 1.5rem; display: grid; gap: 0.5rem; max-width: var(--measure); }
.modules + .modules { margin-top: 0; }
.terms { margin: var(--space-2) 0 0; max-width: var(--measure); }
.terms dt { font-weight: 700; margin-top: var(--space-2); }
.terms dt:first-child { margin-top: 0; }
.terms dd { margin: 0.2rem 0 0; color: var(--color-text-muted); }
.offer-cta { margin-top: var(--space-3); font-weight: 700; }
.terms-agb { margin: var(--space-3) 0 0; font-weight: 700; }
/* Themenliste in Angeboten (Vorträge, Beratung) */
.topic-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 var(--space-2); max-width: var(--measure); }
.topic-list li { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--leinenweiss); border: 1px solid var(--linie); font-size: 1rem; }

/* Button am Ende von „Mein Angebot“: gleicher Abstand oben (zur letzten Linie) und unten (zum Abschnittsende) */
.offer-cta-end { margin-top: var(--space-5); margin-bottom: 0; }
#angebot { padding-bottom: var(--space-5); }
@media (min-width: 52rem) {
  /* bündig mit der rechten Textspalte der Angebotsliste */
  .offer-cta-end { padding-left: calc((100% - var(--space-5)) / 3 + var(--space-5)); max-width: none; }
}

/* Termine */
.dates-title { font-size: var(--step-0); margin: var(--space-3) 0 var(--space-1); }
.dates { list-style: none; display: grid; gap: 0.5rem; }
.dates li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--herzrot);
  background: var(--rosenpapier);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dates span { color: var(--color-text-muted); }
/* Ab Tablet-Breite: Datum in einer gemeinsamen Spalte, der Text danach beginnt
   bei allen Terminen an derselben Stelle (Unterraster über alle Zeilen) */
@media (min-width: 40rem) {
  .dates { grid-template-columns: max-content 1fr; }
  .dates li {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    column-gap: 1.25rem;
  }
}
.section-tint .dates li,
.section-tint .dates-empty { background: var(--leinenweiss); }
.dates-empty {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--herzrot);
  background: var(--rosenpapier);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Beratung */
.split { display: grid; gap: var(--space-4); }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; } }
.check-list { list-style: none; display: grid; gap: var(--space-2); }
.check-list li {
  position: relative;
  padding-left: 2.25rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--herzrot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

/* Ablauf – echte Reihenfolge, daher nummeriert */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--leinenweiss);
  border: 2px solid var(--herzrot);
  color: var(--tinte);
  font-weight: 800;
  font-size: var(--step-1);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--color-text-muted); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .steps li { padding-left: 0; padding-top: 4rem; }
  .steps li::before { top: 0; }
}

/* Über mich */
.about { display: grid; gap: var(--space-5); align-items: start; }
.about-photo {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: var(--radius);
  background: var(--rose);
}
.about-text h3 { margin-top: var(--space-4); }
.quals { list-style: none; display: grid; gap: 0.5rem; }
.quals li { padding-left: 1.5rem; position: relative; }
.quals li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--herzrot);
}
@media (min-width: 52rem) { .about { grid-template-columns: 22rem 1fr; gap: var(--space-6); } }

/* Buch */
.book {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--linie);
}
/* 3D-Buch (nachgebaut nach der Book-Komponente, ohne React/Tailwind) */
.book3d {
  --book-width: 13rem;
  --book-depth: 1.6rem;
  --book-color: #8FB3E0;
  width: var(--book-width);
  perspective: 900px;
}
.book3d-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 514 / 902;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}
.book3d:hover .book3d-inner,
.book:focus-within .book3d-inner {
  transform: rotateY(-20deg) scale(1.066) translateX(-8px);
}
.book3d-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  background: var(--book-color);
  box-shadow:
    0 1.8px 3.6px rgba(0, 0, 0, .05),
    0 10.8px 21.6px rgba(0, 0, 0, .08),
    0 18px 36px -12px rgba(110, 20, 24, .3),
    inset 0 -.9px 0 rgba(0, 0, 0, .1),
    inset 0 1.8px 1.8px rgba(255, 255, 255, .1),
    inset 3.6px 0 3.6px rgba(0, 0, 0, .1);
}
.book3d-front img { width: 100%; height: 100%; object-fit: cover; }
/* Buchrücken-Falz: Licht und Schatten am linken Rand */
.book3d-bind {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8.2%;
  mix-blend-mode: overlay;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0) 12%, rgba(255,255,255,.25) 29.25%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 75.25%, rgba(255,255,255,.25) 91%, rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,.1) 12%, transparent 30%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.2) 73.5%, rgba(0,0,0,.5) 75.25%, rgba(0,0,0,.15) 85.25%, transparent);
}
/* Seitenkante rechts */
.book3d-pages {
  position: absolute;
  top: 3px;
  width: calc(var(--book-depth) - 2px);
  height: calc(100% - 6px);
  background: repeating-linear-gradient(90deg, #fff, #efefef 1px, #fff 3px, #9a9a9a 0);
  transform: translateX(calc(var(--book-width) - var(--book-depth) / 2 - 3px)) rotateY(90deg) translateX(calc(var(--book-depth) / 2));
}
/* Rückseite */
.book3d-back {
  position: absolute;
  inset: 0;
  border-radius: 6px 4px 4px 6px;
  background: var(--book-color);
  transform: translateZ(calc(-1 * var(--book-depth)));
}
.book-cta { margin-top: var(--space-4); }
.book-cta .button { gap: 0.6rem; }
.book-kicker { color: var(--color-text-muted); font-weight: 600; margin-bottom: 0.25rem; }
.book h3 { font-size: var(--step-3); margin-bottom: 0.25rem; font-family: var(--serif); font-weight: 600; color: var(--grafit); }
.book-subtitle { font-size: var(--step-1); line-height: 1.35; margin-bottom: var(--space-3); color: var(--herzrot); }
@media (min-width: 52rem) {
  .book { grid-template-columns: 22rem 1fr; gap: var(--space-6); }
  .book-cover { justify-self: center; }
  .book3d { --book-width: 15rem; }
}

/* Kontakt */
.contact { background: var(--weinrot); color: #fff; }
.contact h2 { color: #fff; }
.contact-lead { font-size: var(--step-1); line-height: 1.5; max-width: 38ch; }
.contact-links {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  max-width: 44rem;
}
@media (min-width: 40rem) { .contact-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .contact-links { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 5rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--rose);
  color: var(--tinte);
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.contact-link:hover { background: #fff; color: var(--tinte); }
.contact-link:active { transform: scale(0.98); }
.contact-link svg { flex: none; }
.contact-label { display: block; font-weight: 750; font-size: var(--step-1); line-height: 1.2; }
.contact-value { display: block; overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: var(--rose); }
.contact-note { margin-top: var(--space-4); color: #F1DCD9; }
.contact-note a { color: #fff; }
.contact-note a:hover { color: var(--rose); }

/* Footer */
.site-footer {
  background: var(--weinrot);
  color: #F1DCD9;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: var(--space-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; display: flex; gap: var(--space-2); }
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
}
.site-footer :focus-visible { outline-color: var(--rose); }

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding-block: var(--space-5) var(--space-6); }
.legal h1 { font-size: var(--step-3); margin-bottom: var(--space-4); }
.legal h2 { font-size: var(--step-1); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.legal .note {
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid var(--herzrot);
  background: var(--rosenpapier);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
