/*
 * Webseite affilog (S3, DF244): Farben und Schriften wie die App („Nordlicht & Moos“,
 * src/styles.css), Wiese wie der Hintergrund „bg-meadow“ der Pferde-Bühne. Die Figur bewegt
 * `horse.css` aus der App; build.ts hängt sie an diese Datei an.
 */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fredoka Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4eee6;
  --text: #22262e;
  --muted: #5f646d;
  --border: #e8e0d5;
  --primary: #2f6f62;
  --primary-ink: #24584e;
  --primary-contrast: #ffffff;
  --accent: #e07a5f;
  --aurora-1: #5fc4a8;
  --aurora-2: #7b6cf6;
  --sand: #e9d8c4;
  --sky: #cfeaf7;
  --grass-1: #9fd38a;
  --grass-2: #6fb46a;
  --band: #2f6f62;
  --band-text: #f6f1ea;
  --bubble: #ffffff;
  --phone: #1f232b;
  --tint-mint: #e3f3ec;
  --tint-sand: #f6eadb;
  --tint-lilac: #ebe8fd;
  --tint-coral: #fbe7df;
  --tint-sky: #e3f1fa;
  --pal-1: #2f6f62;
  --pal-2: #3b82c4;
  --pal-3: #b04a8f;
  --pal-4: #b78213;
  --pal-5: #c8573b;
  --pal-6: #6a5be0;
  --shadow: 0 10px 30px -14px rgb(60 40 20 / 0.28);
  --shadow-lg: 0 34px 60px -28px rgb(50 35 20 / 0.45);
  --font-display: 'Fredoka Variable', ui-rounded, system-ui, sans-serif;
  --font-sans: 'Nunito Variable', ui-sans-serif, system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: 1rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141821;
    --surface: #1e2430;
    --surface-2: #232a37;
    --text: #eef0f4;
    --muted: #a3aab6;
    --border: #2f3746;
    --primary: #5fc4a8;
    --primary-ink: #7fd6bd;
    --primary-contrast: #0f1a17;
    --sand: #3a3226;
    --sky: #23324a;
    --grass-1: #4f8a4d;
    --grass-2: #3b6e3f;
    --band: #1d3a34;
    --bubble: #2a3240;
    --phone: #0b0d11;
    --tint-mint: #1b2e2b;
    --tint-sand: #2b2620;
    --tint-lilac: #24223a;
    --tint-coral: #2f2220;
    --tint-sky: #1c2a38;
    --pal-1: #5fc4a8;
    --pal-2: #6fb3f0;
    --pal-3: #e08ac4;
    --pal-4: #e6b54a;
    --pal-5: #ef9a76;
    --pal-6: #a89cff;
    --shadow: 0 10px 30px -14px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 34px 60px -28px rgb(0 0 0 / 0.8);
  }
}
@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }
}

/* ---------- Grundlagen ---------- */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: var(--primary-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aurora-2);
  outline-offset: 3px;
  border-radius: 6px;
}
img {
  max-width: 100%;
}
.icon {
  flex: none;
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 20;
}

/* Knöpfe */
.button,
.cta,
.waitlist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button {
  padding: 0.85rem 1.5rem;
  box-shadow: 0 10px 20px -12px var(--primary);
}
.button:hover,
.waitlist button:hover {
  transform: translateY(-2px);
}
.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--border);
}
.button.ghost:hover {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Kopf ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    'brand . lang cta'
    'menu menu menu menu';
  align-items: center;
  gap: 0.25rem 1rem;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 10px -4px rgb(0 0 0 / 0.35);
}
.menu {
  grid-area: menu;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
}
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.menu a:hover {
  background: var(--surface-2);
}
.menu a[aria-current='page'] {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-ink);
}
.lang {
  grid-area: lang;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.cta {
  grid-area: cta;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (min-width: 60rem) {
  .bar {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 'brand menu lang cta';
    padding-block: 0.8rem;
  }
  .menu {
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  .menu a {
    padding-inline: 0.8rem;
  }
  .cta {
    padding: 0.5rem 1.05rem;
    font-size: 0.95rem;
  }
  .hero-horse {
    left: -6%;
  }
}

/* ---------- Abschnitte ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  /* Pferde dürfen in den Rand ragen, aber nie über die Seite hinaus */
  overflow-x: clip;
}
main > section,
.prose {
  margin-block: clamp(4rem, 10vw, 7.5rem);
}
main > :last-child {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.block-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.block-head p {
  color: var(--muted);
}

/* ---------- Pferd, Wiese, Sprechblase ---------- */
.horse {
  position: relative;
  z-index: 1;
}
.horse-fig-wrap {
  position: relative;
}
.horse-fig-wrap::before {
  /* kleine Wiese unter den Hufen */
  content: '';
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: 1.5%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 35%,
    var(--grass-1) 0 45%,
    var(--grass-2) 70%,
    transparent 71%
  );
}
.horse svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.bubble {
  position: relative;
  width: max-content;
  max-width: 15rem;
  margin: 0 0 0.6rem auto;
  padding: 0.6rem 0.95rem;
  border-radius: 1.1rem;
  background: var(--bubble);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.bubble::after {
  content: '';
  position: absolute;
  right: 22%;
  bottom: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--bubble);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}

/* Handy-Rahmen mit Screenshot */
.phone {
  position: relative;
  margin: 0 auto;
  width: min(100%, 18.5rem);
  aspect-ratio: 390 / 844;
  padding: 0.55rem;
  border-radius: 2.75rem;
  background: var(--phone);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.14);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 2.25rem;
  background: var(--surface-2);
}

/* ---------- Bühne der Startseite ---------- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: clamp(2rem, 6vw, 4.5rem) !important;
}
.hero-text > p:not(.kicker, .actions) {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
}
.chips li::before,
ul.checks li::before {
  content: '';
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 72% no-repeat;
}
.hero-stage {
  position: relative;
  display: grid;
  justify-items: end;
  padding: 1rem 0 0;
  min-height: 26rem;
}
.hero-stage .phone {
  margin: 0 4% 0 0;
  width: min(62%, 18.5rem);
  transform: rotate(3deg);
}
.glow {
  position: absolute;
  inset: 8% 0 6% 10%;
  border-radius: 46% 54% 40% 60% / 50% 45% 55% 50%;
  background:
    radial-gradient(
      circle at 30% 70%,
      color-mix(in srgb, var(--grass-1) 55%, transparent),
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 25%,
      color-mix(in srgb, var(--sky) 90%, transparent),
      transparent 60%
    ),
    var(--tint-sand);
}
.hero-horse {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  width: min(50%, 18rem);
}
.hero-horse .bubble {
  margin: 0 0 0.5rem;
}
.hero-horse .bubble::after {
  right: auto;
  left: 70%;
}
@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
  .hero-stage {
    min-height: 34rem;
  }
}

/* ---------- Kopf der Unterseiten ---------- */
.intro,
.page-head {
  margin-top: clamp(2rem, 6vw, 4rem) !important;
}
.intro {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
  background:
    radial-gradient(
      circle at 90% 10%,
      color-mix(in srgb, var(--sky) 85%, transparent),
      transparent 50%
    ),
    var(--tint-sand);
}
.intro-text p:not(.kicker, .actions) {
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
}
.intro-text p:last-child {
  margin-bottom: 0;
}
.intro-horse {
  width: min(100%, 17rem);
  justify-self: end;
}
@media (min-width: 48rem) {
  .intro {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Abschnitt mit Bild ---------- */
.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.feature-text {
  max-width: 34rem;
}
.feature-text > p:not(.kicker) {
  color: var(--muted);
}
ul.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}
ul.checks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 650;
}
ul.checks li::before {
  margin-top: 0.22rem;
}
.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 5vw, 3rem) 1rem;
  border-radius: 2rem;
  background: var(--tint-mint);
}
main > .feature:nth-of-type(4n + 1) .feature-art {
  background: var(--tint-sand);
}
main > .feature:nth-of-type(4n + 2) .feature-art {
  background: var(--tint-lilac);
}
main > .feature:nth-of-type(4n + 3) .feature-art {
  background: var(--tint-sky);
}
.feature-art .phone {
  width: min(72%, 17rem);
}
.peek {
  position: absolute;
  right: 0;
  bottom: -1.5rem;
  width: min(44%, 14rem);
}
.peek .bubble {
  margin: 0 0 0.4rem auto;
  max-width: 11rem;
  font-size: 0.95rem;
}
.solo {
  width: min(80%, 22rem);
}
@media (min-width: 56rem) {
  .feature {
    grid-template-columns: 1fr 1.05fr;
    gap: 4.5rem;
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .peek {
    right: -2.5rem;
  }
}

/* Zeichnung „Teilen“ */
.share-art {
  width: min(100%, 25rem);
  display: grid;
  gap: 0.25rem;
}
.share-horse {
  width: 72%;
  justify-self: center;
}
.members {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.members li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-weight: 750;
  font-size: 0.95rem;
}
.members .who {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.members .who .icon {
  padding: 0.3rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #fff;
  background: var(--pal-1);
}
.members .p2 .who .icon {
  background: var(--pal-5);
}
.members .p3 .who .icon {
  background: var(--pal-6);
}
.members .days {
  display: flex;
  gap: 0.25rem;
}
.members .days i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.members .p1 .days i.on {
  background: var(--pal-1);
  border-color: transparent;
}
.members .p2 .days i.on {
  background: var(--pal-5);
  border-color: transparent;
}

/* ---------- Schritte ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step .num {
  position: absolute;
  top: 1.2rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.step .icon {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--primary);
}
.step p {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ---------- Kacheln ---------- */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
}
.card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card p + p {
  margin-top: 0.6rem;
}
.badge {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  color: var(--c, var(--pal-1));
  background: color-mix(in srgb, var(--c, var(--pal-1)) 13%, transparent);
}
.card:nth-child(6n + 2) .badge {
  --c: var(--pal-2);
}
.card:nth-child(6n + 3) .badge {
  --c: var(--pal-3);
}
.card:nth-child(6n + 4) .badge {
  --c: var(--pal-4);
}
.card:nth-child(6n + 5) .badge {
  --c: var(--pal-5);
}
.card:nth-child(6n + 6) .badge {
  --c: var(--pal-6);
}

/* ---------- Was affilog nicht macht ---------- */
.nots {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 85% 100%, rgb(255 255 255 / 0.08), transparent 45%), var(--band);
  color: var(--band-text);
}
.nots .kicker {
  color: #f4b942;
}
.nots h2 {
  color: #fff;
}
.nots-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem 2rem;
}
.nots-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 650;
}
.nots-list li::before {
  content: '';
  flex: none;
  margin-top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f1ea' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}
.nots-horse {
  width: min(100%, 20rem);
  justify-self: center;
}
.nots-horse .bubble {
  margin-right: 8%;
}
@media (min-width: 56rem) {
  .nots {
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
  }
  .nots-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Preis ---------- */
.price-block {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.price-text > p:not(.kicker) {
  color: var(--muted);
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}
.plan {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.plan.featured {
  border: 2px solid var(--primary);
}
.plan-name {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}
.plan-price {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-weight: 700;
}
.plan-price span {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.plan-note {
  margin: 0;
  font-weight: 700;
  color: var(--primary-ink);
}
.plans-foot {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}
@media (min-width: 56rem) {
  .price-block {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

/* ---------- Fragen ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}
@media (min-width: 56rem) {
  .faq {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
    align-items: start;
  }
  .faq .block-head {
    position: sticky;
    top: 6.5rem;
    margin: 0;
  }
}
.faq details {
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.faq details[open] {
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary-ink);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > :not(summary) {
  margin: 0;
  padding: 0 1.3rem 1.1rem;
  color: var(--muted);
}

/* ---------- Warteliste ---------- */
.waitlist {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(
      circle at 0% 0%,
      color-mix(in srgb, var(--aurora-1) 28%, transparent),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      color-mix(in srgb, var(--aurora-2) 22%, transparent),
      transparent 55%
    ),
    var(--surface-2);
}
.waitlist-text > p:not(.kicker) {
  color: var(--muted);
  font-size: 1.1rem;
}
.waitlist-horse {
  width: min(100%, 17rem);
  margin-top: 1rem;
}
.waitlist-horse .bubble {
  margin-right: 10%;
}
.waitlist form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.waitlist label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}
.waitlist input[type='email'],
.waitlist input:not([type]) {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 0.9rem;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.waitlist input[type='email']:focus,
.waitlist input:not([type]):focus {
  border-color: var(--primary);
}
.waitlist label.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
}
.waitlist label.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--primary);
}
.waitlist .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist .small {
  margin: 0;
}
.waitlist button {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  box-shadow: 0 12px 24px -14px var(--primary);
}
@media (min-width: 56rem) {
  .waitlist {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }
}

/* ---------- Fließtext, Neuigkeiten ---------- */
.prose {
  max-width: 46rem;
}
.prose h2 {
  margin-top: 1.8em;
}
.prose > :first-child {
  margin-top: 0;
}
.page-head h1 {
  margin: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
}
th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-2);
}
blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--aurora-1);
  background: var(--surface);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
ul.news {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
ul.news li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.4rem 1.5rem;
}
ul.news h2 {
  margin: 0.2em 0 0.4em;
  font-size: 1.4rem;
}
ul.news h2 a {
  color: var(--text);
  text-decoration: none;
}
ul.news p:last-child {
  margin: 0;
}
.more {
  font-weight: 800;
  text-decoration: none;
}
.post {
  margin-top: clamp(2rem, 6vw, 4rem) !important;
}

/* ---------- Fuß ---------- */
.foot {
  margin-top: 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.97rem;
}
.meadow {
  position: relative;
  height: 6.5rem;
  background: var(--bg);
  overflow-x: clip;
}
.meadow::before {
  /* Hügel, auf dem das Pferd döst */
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 4rem;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, var(--grass-1), var(--grass-2));
}
.meadow::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1.2rem;
  background: var(--surface-2);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.foot-horse {
  position: absolute;
  z-index: 1;
  bottom: 0.4rem;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  width: 10.5rem;
}
.foot-horse .horse-fig-wrap::before {
  display: none;
}
.foot-horse .bubble {
  position: absolute;
  right: 92%;
  bottom: 55%;
  max-width: 13rem;
  margin: 0;
  font-size: 0.92rem;
}
.foot-horse .bubble::after {
  right: -0.35rem;
  bottom: 0.9rem;
  transform: rotate(-45deg);
}
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.foot h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}
.foot a:hover {
  color: var(--primary-ink);
  text-decoration: underline;
}
.foot-brand .brand {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.foot-brand p {
  margin: 0 0 0.5rem;
}
@media (min-width: 56rem) {
  .foot-inner {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

/* Bewegung reduzieren: Figur steht still */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .horse-fig *,
  .horse-fig {
    animation: none !important;
  }
  .button,
  .card {
    transition: none;
  }
}

/* ---- Figur aus der App: src/features/horse/horse.css ---- */
/* Rig der Pferdefigur: nur transform/opacity animieren (60 fps auf Mittelklasse-Geräten). */
.horse-fig * {
  transform-box: view-box;
}
.horse-fig .pivot-body {
  transform-origin: 115px 133px;
}
.horse-fig .pivot-head {
  transform-origin: 182px 44px;
}
.horse-fig .pivot-ear {
  transform-origin: 188px 28px;
}
.horse-fig .pivot-ear-far {
  transform-origin: 181px 30px;
}
.horse-fig .pivot-tail {
  transform-origin: 66px 92px;
}
.horse-fig .pivot-mane {
  transform-origin: 176px 34px;
}
.horse-fig .pivot-eye {
  transform-origin: 194px 42px;
}
/* Beine: Pivot = lokaler Ursprung der Gruppe (Hüfte/Schulter bzw. Knie) */
.horse-fig .leg-upper,
.horse-fig .leg-lower {
  transform-origin: 0 0;
}

/* ---------- A1 Idle ---------- */
.horse-fig.idle .pivot-body {
  animation: hf-breathe 3.6s ease-in-out infinite;
}
.horse-fig.idle .lid {
  animation: hf-blink 5.2s infinite;
}
.horse-fig.idle .pivot-ear {
  animation: hf-ear 7s ease-in-out infinite;
}
.horse-fig.idle .pivot-ear-far {
  animation: hf-ear 9s ease-in-out 2s infinite;
}
.horse-fig.idle .pivot-mane {
  animation: hf-mane 4.4s ease-in-out infinite;
}
.horse-fig.idle .forelock {
  animation: hf-mane 3.8s ease-in-out 0.6s infinite;
  transform-origin: 193px 28px;
}
.horse-fig.idle .pivot-tail {
  animation: hf-tail 8s ease-in-out infinite;
}
.horse-fig.idle .pivot-head {
  animation: hf-head 6s ease-in-out infinite;
}

/* ---------- Posen (nie traurig, ohne Wörter, DF131) ---------- */
/* Ruhe: nach einigen Tagen ohne Bewegung döst die Figur gemütlich (Kopf tief, Augen halb zu, Zzz) */
.horse-fig.m-rest .pivot-head {
  animation: hf-head-rest 7s ease-in-out infinite;
}
.horse-fig.m-rest .lid {
  animation: hf-lid-rest 7s ease-in-out infinite;
}
.horse-fig.m-rest .pivot-ear,
.horse-fig.m-rest .pivot-ear-far {
  animation: none;
  transform: rotate(-14deg) scaleY(0.85);
}
.horse-fig.m-rest .pivot-tail {
  animation-duration: 16s;
}
.horse-fig.m-rest .zzz text {
  animation: hf-zzz 3.6s ease-in-out infinite;
  opacity: 0;
}
.horse-fig.m-rest .zzz text:nth-child(2) {
  animation-delay: 0.5s;
}
.horse-fig.m-rest .zzz text:nth-child(3) {
  animation-delay: 1s;
}
/* Atemwolke: kleine Wolke vor den Nüstern */
.horse-fig.m-breath .breath-cloud {
  animation: hf-breath-cloud 4.2s ease-in-out infinite;
  transform-origin: 229px 76px;
}
/* gewollte Pause: entspannt dösen, ein Hinterbein geschont */
.horse-fig.m-paused .lid {
  animation: hf-lid-dozy 9s ease-in-out infinite;
}
.horse-fig.m-paused .pivot-head {
  animation: hf-head-dozy 9s ease-in-out infinite;
}
.horse-fig.m-paused .leg-lh .leg-upper {
  transform: rotate(-5deg);
}
.horse-fig.m-paused .leg-lh .leg-lower {
  transform: rotate(16deg) translateY(-1.5px);
}
.horse-fig.m-paused .pivot-body {
  animation-duration: 5.4s;
}
/* ruhige Darstellung: Posen ohne Bewegung */
.horse-fig.static.m-rest .pivot-head {
  transform: rotate(22deg);
}
.horse-fig.static.m-rest .lid {
  transform: scaleY(0.6) !important;
}
.horse-fig.static.m-rest .zzz text {
  opacity: 0.8;
}
.horse-fig.static.m-paused .lid {
  transform: scaleY(0.5) !important;
}
.horse-fig.static .breath-cloud {
  animation: none !important;
}

@keyframes hf-head-rest {
  0%,
  100% {
    transform: rotate(20deg);
  }
  45% {
    transform: rotate(25deg);
  }
  55% {
    transform: rotate(24deg);
  }
}
@keyframes hf-lid-rest {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  40%,
  60% {
    transform: scaleY(0.9);
  }
}
@keyframes hf-zzz {
  0% {
    opacity: 0;
    transform: translate(0, 4px);
  }
  30%,
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(5px, -6px);
  }
}
@keyframes hf-breath-cloud {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(0, 0) scale(0.85);
  }
  50% {
    opacity: 0.95;
    transform: translate(1.5px, -1.5px) scale(1);
  }
}
@keyframes hf-lid-dozy {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(0.75);
  }
}
@keyframes hf-head-dozy {
  0%,
  100% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

@keyframes hf-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.018);
  }
}
@keyframes hf-blink {
  0%,
  92%,
  100% {
    transform: scaleY(0);
  }
  95% {
    transform: scaleY(1);
  }
}
@keyframes hf-ear {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  76% {
    transform: rotate(-14deg);
  }
  84% {
    transform: rotate(6deg);
  }
}
@keyframes hf-mane {
  0%,
  100% {
    transform: skewX(0deg);
  }
  50% {
    transform: skewX(-4deg);
  }
}
@keyframes hf-tail {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  66% {
    transform: rotate(10deg);
  }
  72% {
    transform: rotate(-6deg);
  }
  78% {
    transform: rotate(4deg);
  }
}
@keyframes hf-head {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(2deg);
  }
}

/* ---------- Gang nach Gangart-Gruppe (DF64) ---------- */
/* Tölt und andere Gangart: Viertakt (LH → LV → RH → RV), hohe Vorhand, ruhiger Rücken */
.horse-fig.walk {
  --t: 0.56s;
}
.horse-fig.walk .pivot-head {
  transform: rotate(-7deg);
}
.horse-fig.walk .pivot-body {
  animation: hf-bob calc(var(--t) / 2) ease-in-out infinite;
}
.horse-fig.walk .pivot-mane {
  animation: hf-mane calc(var(--t) * 2) ease-in-out infinite;
}
.horse-fig.walk .pivot-tail {
  animation: hf-tail-flow calc(var(--t) * 2) ease-in-out infinite;
}
.horse-fig.walk .front .leg-upper {
  animation: hf-front-up var(--t) linear infinite;
}
.horse-fig.walk .front .leg-lower {
  animation: hf-front-low var(--t) linear infinite;
}
.horse-fig.walk .hind .leg-upper {
  animation: hf-hind-up var(--t) linear infinite;
}
.horse-fig.walk .hind .leg-lower {
  animation: hf-hind-low var(--t) linear infinite;
}
/* Phasen: LH 0 · LV ¼ · RH ½ · RV ¾ */
.horse-fig.walk .leg-lh * {
  animation-delay: 0s !important;
}
.horse-fig.walk .leg-lf * {
  animation-delay: calc(var(--t) * -0.75) !important;
}
.horse-fig.walk .leg-rh * {
  animation-delay: calc(var(--t) * -0.5) !important;
}
.horse-fig.walk .leg-rf * {
  animation-delay: calc(var(--t) * -0.25) !important;
}
.horse-fig.fast {
  --t: 0.38s;
}
/* Drei Gänge: Trab, diagonale Beinpaare (LH + RV, RH + LV) */
.horse-fig.walk.g-drei {
  --t: 0.62s;
}
.horse-fig.walk.g-drei .pivot-head {
  transform: rotate(-2deg);
}
.horse-fig.walk.g-drei .leg-lh *,
.horse-fig.walk.g-drei .leg-rf * {
  animation-delay: 0s !important;
}
.horse-fig.walk.g-drei .leg-rh *,
.horse-fig.walk.g-drei .leg-lf * {
  animation-delay: calc(var(--t) * -0.5) !important;
}
/* seltener Galopp, für alle Gruppen gleich: RH → LH + RV → LV */
.horse-fig.walk.fast .leg-rh * {
  animation-delay: 0s !important;
}
.horse-fig.walk.fast .leg-lh *,
.horse-fig.walk.fast .leg-rf * {
  animation-delay: calc(var(--t) * -0.8) !important;
}
.horse-fig.walk.fast .leg-lf * {
  animation-delay: calc(var(--t) * -0.6) !important;
}

@keyframes hf-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.2px);
  }
}
@keyframes hf-tail-flow {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(-16deg);
  }
}
@keyframes hf-front-up {
  0% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  38% {
    transform: rotate(-38deg);
  }
  55% {
    transform: rotate(-16deg);
  }
  100% {
    transform: rotate(14deg);
  }
}
@keyframes hf-front-low {
  0% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(60deg);
  }
  38% {
    transform: rotate(78deg);
  }
  52% {
    transform: rotate(8deg);
  }
  60%,
  100% {
    transform: rotate(0);
  }
}
@keyframes hf-hind-up {
  0% {
    transform: rotate(16deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  48% {
    transform: rotate(-24deg);
  }
  60% {
    transform: rotate(-16deg);
  }
  100% {
    transform: rotate(16deg);
  }
}
@keyframes hf-hind-low {
  0%,
  10% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(38deg);
  }
  48% {
    transform: rotate(10deg);
  }
  60%,
  100% {
    transform: rotate(0);
  }
}

/* ---------- A3 Reaktionen ---------- */
.horse-fig.r-shake .pivot-head {
  animation: hf-shake 0.9s ease-in-out;
}
.horse-fig.r-shake .pivot-mane,
.horse-fig.r-mane .pivot-mane {
  animation: hf-mane-shake 0.9s ease-in-out;
}
.horse-fig.r-mane .pivot-body {
  animation: hf-wiggle 0.9s ease-in-out;
}
.horse-fig.r-snort .pivot-head {
  animation: hf-snort 0.7s ease-out;
}
.horse-fig.r-neigh .pivot-head {
  animation: hf-neigh 1.3s ease-in-out;
}
.horse-fig.r-neigh .pivot-ear,
.horse-fig.r-neigh .pivot-ear-far {
  animation: hf-ear 1.3s;
}
.horse-fig.r-treat .pivot-head {
  animation: hf-treat 1.6s ease-in-out;
}
.horse-fig .puff {
  opacity: 0;
}
.horse-fig.r-snort .puff {
  animation: hf-puff 0.9s ease-out forwards;
}
.horse-fig.r-snort .puff:nth-child(2) {
  animation-delay: 0.08s;
}
.horse-fig.r-snort .puff:nth-child(3) {
  animation-delay: 0.16s;
}
.horse-fig .treat {
  opacity: 0;
}
.horse-fig.r-treat .treat {
  animation: hf-treat-item 1.6s ease-in-out forwards;
}

@keyframes hf-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(9deg);
  }
  35% {
    transform: rotate(-9deg);
  }
  55% {
    transform: rotate(7deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}
@keyframes hf-mane-shake {
  0%,
  100% {
    transform: skewX(0);
  }
  20% {
    transform: skewX(-12deg);
  }
  45% {
    transform: skewX(10deg);
  }
  70% {
    transform: skewX(-6deg);
  }
}
@keyframes hf-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(1.2deg);
  }
  60% {
    transform: rotate(-1.2deg);
  }
}
@keyframes hf-snort {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@keyframes hf-neigh {
  0%,
  100% {
    transform: rotate(0);
  }
  25%,
  70% {
    transform: rotate(-18deg);
  }
  40% {
    transform: rotate(-14deg);
  }
  55% {
    transform: rotate(-19deg);
  }
}
@keyframes hf-treat {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  70% {
    transform: rotate(14deg);
  }
  45% {
    transform: rotate(12deg);
  }
  55% {
    transform: rotate(15deg);
  }
}
@keyframes hf-puff {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(16px, 8px) scale(1.6);
  }
}
@keyframes hf-treat-item {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20%,
  55% {
    opacity: 1;
    transform: translateY(0);
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.4);
  }
}

/* Grasen (A6, Stehtag) */
.horse-fig.graze .pivot-head {
  animation: hf-graze 2.4s ease-in-out infinite;
}
@keyframes hf-graze {
  0%,
  100% {
    transform: rotate(48deg);
  }
  50% {
    transform: rotate(52deg);
  }
}

/* Aufsteigen (A4 Level-Up) */
.horse-fig.rear .whole {
  animation: hf-rear 1.6s ease-in-out infinite;
  transform-origin: 80px 176px;
}
@keyframes hf-rear {
  0%,
  100% {
    transform: rotate(0);
  }
  40%,
  60% {
    transform: rotate(-20deg);
  }
}

/* ---------- Tricks (Reitplatz) ---------- */
.horse-fig.arena .leg-upper,
.horse-fig.arena .leg-lower,
.horse-fig.arena .pivot-head {
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.horse-fig .whole {
  transform-origin: 120px 120px;
}

/* Drehen: einmal um die eigene Achse (Seitenansicht: umdrehen und zurück) */
.horse-fig.t-turn .whole {
  animation: hf-turn 2.2s ease-in-out;
}
@keyframes hf-turn {
  0% {
    transform: scaleX(1);
  }
  22% {
    transform: scaleX(0.08) translateY(-3px);
  }
  42%,
  58% {
    transform: scaleX(-1);
  }
  78% {
    transform: scaleX(0.08) translateY(-3px);
  }
  100% {
    transform: scaleX(1);
  }
}

/* High Five (Huf): nahes Vorderbein nach vorn strecken und halten (Klasse bleibt, bis eingeschlagen wird) */
.horse-fig.t-hoof .leg-lf .leg-upper {
  transform: rotate(-78deg);
}
.horse-fig.t-hoof .leg-lf .leg-lower {
  transform: rotate(-6deg);
}
.horse-fig.t-hoof .pivot-head {
  animation: none;
  transform: rotate(10deg);
}
.horse-fig.t-hoof .pivot-ear {
  animation: hf-ear 2s ease-in-out infinite;
}

/* Steigen: auf die Hinterbeine, Vorderbeine angewinkelt */
.horse-fig.t-rear .whole {
  animation: hf-rear-once 2.4s ease-in-out;
  transform-origin: 84px 176px;
}
.horse-fig.t-rear .front .leg-upper {
  animation: hf-fold-up 2.4s ease-in-out;
}
.horse-fig.t-rear .front .leg-lower {
  animation: hf-fold-low 2.4s ease-in-out;
}
.horse-fig.t-rear .pivot-head {
  animation: hf-rear-head 2.4s ease-in-out;
}
.horse-fig.t-rear .pivot-tail {
  animation: hf-tail 2.4s ease-in-out;
}
@keyframes hf-rear-once {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  68% {
    transform: rotate(-26deg);
  }
  48% {
    transform: rotate(-29deg);
  }
}
@keyframes hf-fold-up {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  68% {
    transform: rotate(-62deg);
  }
}
@keyframes hf-fold-low {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  68% {
    transform: rotate(105deg);
  }
}
@keyframes hf-rear-head {
  0%,
  100% {
    transform: rotate(0);
  }
  30%,
  68% {
    transform: rotate(18deg);
  }
}

/* Ja sagen: dreimal deutlich nicken, Ohren wippen mit */
.horse-fig.t-yes .pivot-head {
  animation: hf-nod 2.4s ease-in-out;
}
.horse-fig.t-yes .pivot-ear,
.horse-fig.t-yes .pivot-ear-far {
  animation: hf-nod-ear 2.4s ease-in-out;
}
@keyframes hf-nod {
  0%,
  100%,
  66.67% {
    transform: rotate(0);
  }
  16.67%,
  50%,
  83.33% {
    transform: rotate(16deg);
  }
  33.33% {
    transform: rotate(-2deg);
  }
}
@keyframes hf-nod-ear {
  0%,
  100%,
  66.67% {
    transform: rotate(0);
  }
  16.67%,
  50%,
  83.33% {
    transform: rotate(-6deg);
  }
  33.33% {
    transform: rotate(4deg);
  }
}

/* Nein sagen: Kopf dreht sich zum Betrachter und zurück (horizontale Verkürzung am Halsansatz, ohne Rotation),
   dazu seitliches Versetzen; Ohren und Mähne schwingen gegenläufig */
.horse-fig.t-no .pivot-head {
  animation: none;
}
.horse-fig.t-no .head-turn {
  animation: hf-head-no 2.4s ease-in-out;
  transform-origin: 192px 50px;
}
.horse-fig.t-no .pivot-ear,
.horse-fig.t-no .pivot-ear-far {
  animation: hf-no-ear 2.4s ease-in-out;
}
.horse-fig.t-no .pivot-mane {
  animation: hf-no-mane 2.4s ease-in-out;
}
@keyframes hf-head-no {
  0%,
  33.33%,
  66.67%,
  100% {
    transform: translateX(0) scaleX(1);
  }
  16.67%,
  83.33% {
    transform: translateX(-3px) scaleX(0.68);
  }
  50% {
    transform: translateX(3px) scaleX(0.68);
  }
}
@keyframes hf-no-ear {
  0%,
  33.33%,
  66.67%,
  100% {
    transform: rotate(0);
  }
  16.67%,
  83.33% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-8deg);
  }
}
@keyframes hf-no-mane {
  0%,
  33.33%,
  66.67%,
  100% {
    transform: rotate(0);
  }
  16.67%,
  83.33% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

/* Kompliment: Verbeugung – Vorderkörper senkt sich, Kopf nach vorn-unten, linkes Vorderbein gestreckt
   und auf dem Boden, rechtes Vorderbein knickt im Knie ein, Hinterhand bleibt stehen (Drehpunkt an den Hinterhufen) */
.horse-fig.t-bow .whole {
  animation: hf-bow 2.8s ease-in-out;
  transform-origin: 84px 176px;
}
.horse-fig.t-bow .pivot-head {
  animation: hf-bow-head 2.8s ease-in-out;
}
.horse-fig.t-bow .leg-lf .leg-upper {
  animation: hf-bow-leg 2.8s ease-in-out;
}
.horse-fig.t-bow .leg-lf .leg-lower {
  animation: hf-bow-foot 2.8s ease-in-out;
}
.horse-fig.t-bow .leg-rf .leg-lower {
  animation: hf-bow-knee 2.8s ease-in-out;
}
@keyframes hf-bow {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(12deg);
  }
}
@keyframes hf-bow-head {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(42deg);
  }
}
@keyframes hf-bow-leg {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(-56deg);
  }
}
@keyframes hf-bow-foot {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(-10deg);
  }
}
@keyframes hf-bow-knee {
  0%,
  100% {
    transform: rotate(0);
  }
  35%,
  65% {
    transform: rotate(60deg);
  }
}

/* Leckerli vom Reitplatz: eigenes Emoji statt der eingebauten Karotte */
.horse-fig.no-treat-item .treat {
  display: none;
}
