/* Pferdestärken - gemeinsames Stylesheet der Unterseiten (Pferd / Mensch)
   Look & Feel wie die Startseite: dunkel, Gold, Glas-Karten, Foto-Hintergrund.
   Schriften: DM Sans (Text) · Reenie Beanie (Überschriften) · Whisper (Akzente). */

:root {
  --bg-dark: #1a1613;
  --gold: #cda369;
  --text: #e9e3d8;
  --muted: #a89e90;
  --taupe: #b9a898;
  --card: rgba(37, 32, 27, .52);
  --card-strong: rgba(37, 32, 27, .86);
  --tile: rgba(62, 54, 46, .46);          /* Kacheln ohne Rahmen */
  --tile-hover: rgba(74, 65, 55, .56);
  --line: rgba(205, 163, 105, .38);
  --radius: 12px;
  --wrap: 1760px;
  --prose: none;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-script: "Reenie Beanie", cursive;
  --font-accent: "Whisper", cursive;

  /* Einheitliche Schriftgrößen - nur diese Stufen verwenden */
  --fs-label: .75rem;                          /* Versalien: Nav, Buttons, Labels */
  --fs-small: .875rem;                         /* Zusatzzeilen, Chips */
  --fs-body: 1rem;                             /* Fließtext */
  --fs-h3: 2rem;                               /* Script-Zwischenüberschrift */
  --fs-h2: clamp(2.5rem, 4.6vw, 3.4rem);       /* Script-Abschnittsüberschrift */
  --fs-h1: clamp(3.3rem, 6.4vw, 5.2rem);       /* Script-Seitenüberschrift */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

/* Foto-Hintergrund wie Startseite, aber ruhiger für Lesbarkeit */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(18, 14, 11, .62), rgba(18, 14, 11, .9)),
    url("/assets/img/background.webp") center 85% / cover no-repeat;
  pointer-events: none;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #e4c08a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 72px); }
main { flex: 1 0 auto; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--gold); color: #1a1613; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 22, 19, .78);
  backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; display: block; }
.brand span { font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--gold); }
.nav .nav-switch { color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.nav .nav-switch:hover { background: rgba(205,163,105,.12); }
.nav .nav-quiet { opacity: .85; }

@media (max-width: 960px) {
  .nav a.nav-anchor { display: none; }
  .nav { gap: 14px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .site-header .wrap { padding: 0 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vh, 56px); overflow: hidden; }
.hero > .wrap { display: flex; }
.hero-inner { position: relative; display: flex; flex-direction: column; flex: 1; }
.hero-inner > h1 { margin-top: auto; }
.hero-more { padding-top: 8px; align-self: flex-start; }
.eyebrow {
  margin: 0 0 clamp(22px, 2.6vw, 32px);
  font-size: var(--fs-label);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1.6;
}
.pre-q { margin: 0 0 6px; font-size: var(--fs-body); font-weight: 500; line-height: 1.3; color: var(--text); }
h1 { margin: 0 0 clamp(20px, 2.6vw, 32px); font-weight: 400; }
.h1-script {
  display: block;
  font-family: var(--font-script);
  font-size: var(--fs-h1);
  line-height: .95;
  color: var(--gold);
}
.h1-script .l { display: inline; }
.subhead {
  margin: 0 0 12px;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  color: var(--text);
}
.lead { font-size: var(--fs-body); font-weight: 400; line-height: 1.68; color: var(--text); margin: 0 0 24px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.btn-sm { padding: 8px 18px; font-size: var(--fs-label); }
.quiet-link { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.quiet-link:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: var(--gap) 0; }
:root { --gap: clamp(56px, 8vw, 104px); }
/* Abstand vor dem Swoosh = Abstand danach (= --gap) */
.section + .section, .section + .contact-quiet { padding-top: 0; }
/* Swoosh statt Trennlinie zwischen den Rubriken */
.section + .section::before, .section + .contact-quiet::before {
  content: "";
  display: block;
  width: clamp(200px, 18vw, 300px);
  aspect-ratio: 480 / 25;
  margin: 0 auto var(--gap);
  background: url("/assets/img/swoosh-480.png?v=2") center / contain no-repeat;
}
h2 {
  margin: 0 0 18px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: .98;
  color: var(--gold);
}
h3 {
  margin: 0 0 8px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--gold);
}
.prose { max-width: var(--prose); }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.kicker { max-width: var(--prose); font-size: var(--fs-body); color: var(--text); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 24px;
  background: var(--tile);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}
.card > p, .card > .prose { flex: 1 1 auto; }
/* unten gleicher Innenabstand wie oben/links: keine Außenabstände am letzten Element */
.card > :last-child, .card .list:last-child, .card .list li:last-child { margin-bottom: 0; }
.card > .btn { margin-top: 18px; align-self: flex-start; }
.card p { margin: 0; font-size: var(--fs-body); line-height: 1.68; }
.card a.more { display: inline-block; margin-top: 12px; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }

/* Kurz-erklärt-Box (für KI-/Snippet-Zitate gedacht) */
.facts { background: var(--card-strong); border: 1px solid var(--gold); border-radius: var(--radius); padding: 26px 30px; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 14px 0 0; }
.facts dt { font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.facts dd { margin: 0; }
.facts-more { margin-left: 10px; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .facts dl { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* Zitat / Story */
blockquote {
  margin: 0 0 26px;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-script);
  font-size: var(--fs-h3);
  line-height: 1.08;
  color: var(--text);
  max-width: 24em;
}
blockquote cite { display: block; margin-top: 8px; font-family: var(--font-text); font-style: normal; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Ablauf */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.steps li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; counter-increment: step; position: relative; padding: 22px 24px; background: var(--tile); border-radius: var(--radius); }
.steps li::before { content: counter(step); font-family: var(--font-script); font-size: 3.2rem; line-height: .8; color: var(--gold); }
.steps strong { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-h3); line-height: 1; color: var(--gold); }
.steps li p { grid-column: 1 / -1; margin: 12px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Regionen-Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.chips li { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); background: var(--card); }

/* FAQ */
.faq details { margin-bottom: 10px; padding: 0 22px; background: var(--tile); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: var(--fs-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-script); font-size: 2rem; color: var(--gold); }
.faq details[open] summary::after { content: "-"; }
.faq .answer { padding: 0 0 20px; max-width: var(--prose); }
.faq .answer p { margin: 0; }

/* Bild-Platzhalter */
.media-ph {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 18px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--fs-small);
  background: rgba(37, 32, 27, .35);
}

/* Co-Trainer-Foto */
.cotrainer { margin: 0; text-align: center; }
.cotrainer img { display: block; width: 100%; height: auto; }
.cotrainer figcaption h3 { margin: 0; }

/* Pferde: links Foto, rechts gestapelte Wendekarten */
.horses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 4vw, 72px); align-items: stretch; margin-top: var(--gap); }
/* Überschrift oben links, Pferde links- und unterbündig (Unterkante = Pixie-Kachel), dürfen in die Kacheln ragen */
.horses .cotrainer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
.horses .cotrainer img { position: relative; z-index: 0; flex: 1 1 0; min-height: 0; height: 0; width: 135%; max-width: none; object-fit: contain; object-position: left bottom;
  /* Das Bild hat links einen weich auslaufenden Rand: so weit nach links schieben, dass die sichtbare Kante an der Überschrift steht */
  transform: translateX(-10%); }
@media (max-width: 900px) {
  .horses { grid-template-columns: 1fr; }
  .horses .cotrainer img { flex: none; height: auto; width: 100%; max-width: 520px; transform: none; }
}
.flip-stack { position: relative; z-index: 1; display: grid; gap: 16px; }
.flip { perspective: 1600px; cursor: pointer; border-radius: var(--radius); }
.flip-inner { display: grid; transition: transform 700ms cubic-bezier(.45, 0, .55, 1); transform-style: preserve-3d; }
/* symmetrische Kurve: Die Kachel steht genau nach der halben Zeit hochkant, passend zum Seitenwechsel bei 350 ms */
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
/* gleicher leichter Glas-Look wie die FAQ */
.flip-face {
  grid-area: 1 / 1;
  position: relative;
  padding: 20px 26px 22px;
  border-radius: var(--radius);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(1px);
}
.flip-back { transform: rotateY(180deg) translateZ(1px); }
/* Sicherheitsnetz für Browser mit unzuverlässigem backface-visibility:
   Die jeweils verdeckte Seite wird genau in der Mitte der Drehung (Kachel steht hochkant) ausgeblendet */
.flip-front, .flip-back { transition: opacity 0s linear 350ms; }
.flip-back, .flip.is-flipped .flip-front { opacity: 0; }
.flip.is-flipped .flip-back { opacity: 1; }
.flip-face p { margin: 0; }
.flip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 8px; padding-right: 36px; }
.flip-head h3 { margin: 0; }
.flip .flip-head .regname { margin: 0; }
/* Eselsohr oben rechts: zeigt, dass sich die Karte umdrehen lässt; wird beim Darüberfahren sanft größer.
   Hintergrund und ausgeschnittene Ecke liegen auf einer eigenen Ebene (::after), nicht auf der drehenden Kachel selbst -
   ein clip-path direkt auf dem 3D-Element lässt manche Browser die Kachel während der Drehung kurz ausblenden. */
@property --ear { syntax: "<length>"; inherits: true; initial-value: 26px; }
@property --ear-boost { syntax: "<length>"; inherits: true; initial-value: 0px; }
.flip { --ear: 26px; --ear-boost: 0px; --ear-size: calc(var(--ear) + var(--ear-boost)); }
.flip-face::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--tile);
  transition: background 200ms ease;
  clip-path: polygon(0 0, calc(100% - var(--ear-size)) 0, 100% var(--ear-size), 100% 100%, 0 100%);
}
.flip:hover .flip-face::after, .flip:focus-visible .flip-face::after { background: var(--tile-hover); }
.flip-face::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: var(--ear-size); height: var(--ear-size);
  background: linear-gradient(225deg, transparent 50%, rgba(205, 163, 105, .75) 50%, rgba(205, 163, 105, .4) 100%);
  border-bottom-left-radius: 5px;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, .25);
}
/* beim Darüberfahren sanft etwas größer, beim Verlassen sanft zurück */
.flip { transition: --ear-boost 700ms cubic-bezier(.4, .2, .2, 1); }
.flip:hover, .flip:focus-visible { --ear-boost: 8px; }
.flip-cols { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px 32px; }
@media (max-width: 560px) { .flip-cols { grid-template-columns: 1fr; } }
.flip-label { margin: 0 0 4px; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.flip-back, .flip-back .list { font-size: var(--fs-small); line-height: 1.55; }
.flip-back .list { margin: 0; }
.flip-back .list li { margin-bottom: .2em; }
.profile { display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; margin: 0; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0 auto; padding: 0; align-self: center; }
.badges li { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-label); letter-spacing: .12em; color: var(--taupe); }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* Team-Karten mit Foto: die Fotospalte ist genau so hoch wie der Text,
   das freigestellte Foto füllt diese Höhe (Kopf auf Höhe der Überschrift, Füße auf Höhe der letzten Zeile) */
.card.person { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 32px; padding: 32px; align-items: stretch; }
/* Fotospalte muss breit genug sein, damit das Foto die volle Texthöhe füllen kann */
@media (max-width: 1459px) { .card.person { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); } }
/* darunter reicht die Breite nebeneinander nicht mehr: Kacheln untereinander */
@media (max-width: 1389px) { #wer .grid-2 { grid-template-columns: 1fr; } .card.person { grid-template-columns: minmax(0, 24%) minmax(0, 1fr); } }
.person .prose p:last-child { margin-bottom: 0; }
.portrait-wrap { position: relative; min-height: 160px; }
.portrait-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.portrait-wrap > img { object-fit: contain; object-position: center bottom; }
/* Tabea ist in echt etwas kleiner: Foto auf 93 % Höhe, Füße auf derselben Linie */
.portrait-wrap.is-smaller > img { top: 7%; height: 93%; }
@media (max-width: 900px) { .card.person { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); } }
@media (max-width: 800px) { .card.person { grid-template-columns: minmax(0, 37%) minmax(0, 1fr); } }
@media (max-width: 720px) { .card.person { grid-template-columns: 1fr; } .portrait-wrap { height: 300px; } }

/* Listen in Karten */
.list { margin: 6px 0 0; padding-left: 1.1em; }
.list li { margin-bottom: .5em; }
.list li::marker { color: var(--gold); }

/* Kleine Zusatzzeile unter Kartenüberschriften (Titel / Registername) */
.card .regname, .flip .regname { margin: -2px 0 12px; font-size: var(--fs-small); letter-spacing: .03em; color: var(--muted); }

/* Platzhalter-Kennzeichnung - vor Go-live alle durch echte Inhalte ersetzen
   (Suche im Code nach  class="ph"  bzw.  [Platzhalter  ) */
.ph { background: rgba(205, 163, 105, .13); border-bottom: 1px dashed var(--gold); padding: 0 2px; }

/* Buttons */
.btn {
  appearance: none; cursor: pointer;
  display: inline-block; padding: 11px 24px;
  font: inherit; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: transparent;
  border: 1px solid var(--gold); border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}
.btn:hover, .btn:focus-visible { background: rgba(205,163,105,.16); box-shadow: 0 0 24px rgba(205,163,105,.2); color: var(--text); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Kontakt (bewusst zurückhaltend) */
.contact-quiet { text-align: center; padding: clamp(36px, 6vw, 64px) 0; }
.contact-quiet p { max-width: 46ch; margin: 0 auto 18px; color: var(--muted); }
.crosslink { text-align: center; padding: 0 0 clamp(36px, 6vw, 64px); }
.crosslink .script { font-family: var(--font-script); font-size: var(--fs-h3); color: var(--gold); display: block; margin-bottom: 6px; }
a.script { text-decoration: none; transition: color 200ms ease; }
a.script:hover, a.script:focus-visible { color: #e4c08a; }

/* ---------- 404: Völlig vergaloppiert ---------- */
/* wie der Hero auf Mensch/Pferd: füllt den ersten Bildschirm, Text sitzt unten */
.lost { display: flex; align-items: flex-end; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vh, 56px); }
.lost > .wrap { width: 100%; }
.lost-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.lost-img { display: block; width: auto; height: clamp(260px, 58vh, 620px); }
.lost-code { margin: 0 0 4px; font-size: var(--fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.lost .lead { max-width: 40em; margin: 0 0 24px; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .lost-inner { grid-template-columns: 1fr; text-align: center; }
  .lost-img { height: 38vh; margin: 0 auto; }
  .lost .lead { margin-inline: auto; }
  .lost-actions { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; margin-top: auto; padding: 26px 0 30px; background: rgba(18,14,11,.6); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: var(--fs-label); letter-spacing: .22em; text-transform: uppercase; }
.footer-links button { appearance: none; border: 0; padding: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); cursor: pointer; }
.footer-links button:hover, .footer-links button:focus-visible { color: var(--gold); }
.footer-links .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .7; }
.copyright, .version { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.copyright { justify-self: end; }
.copyright:hover { color: var(--muted); }
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; justify-items: center; }
  .copyright { justify-self: center; }
}

/* ---------- Modals (Rechtstexte + Kontakt) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 28px 18px; background: rgba(10,8,7,.74); backdrop-filter: blur(6px); }
.modal.is-open { display: flex; }
.modal-panel { position: relative; width: min(860px, 94vw); max-height: 90vh; overflow: auto; border: 1px solid var(--gold); border-radius: 14px; background: rgba(26,22,19,.97); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.modal-panel.is-legal { height: min(720px, 82vh); overflow: hidden; }
.modal-panel.is-contact { width: min(620px, 94vw); padding: 34px 34px 30px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(205,163,105,.75); border-radius: 50%; background: rgba(26,22,19,.94); color: var(--gold); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.modal-frame { width: 100%; height: 100%; border: 0; background: #fff; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 5px; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(37,32,27,.7); border: 1px solid var(--line); border-radius: 8px;
}
.form-row textarea { min-height: 120px; resize: vertical; }
/* eigener Dropdown-Pfeil, weiter im Feld */
.form-row select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.6 2.6c1.9 1.6 3.6 3.9 5.9 6.9.4.5.8.5 1.1 0 1.6-2.9 3.5-5.5 5.9-7.9' fill='none' stroke='%23cda369' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2.4 3.9c1.6 1.4 3 3.1 4.6 5.3' fill='none' stroke='%23cda369' stroke-width='.8' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 12px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.consent button { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: var(--fs-small); min-height: 1.4em; }
.form-status.is-error { color: #e6a08a; }
.form-status.is-ok { color: #b9d6a3; }
.contact-title { font-family: var(--font-script); font-size: var(--fs-h2); line-height: .95; color: var(--gold); margin: 0 0 6px; }
.contact-sub { margin: 0 0 22px; color: var(--muted); font-size: var(--fs-small); }

/* Zweispaltige Textabschnitte (nutzen die volle Breite, ohne überlange Zeilen) */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.split > * { min-width: 0; }
/* Warum Pferde wirken: Kasten rechts schließt oben und unten mit dem Text links ab */
#wirkung .split, #methode .split { align-items: stretch; }
#wirkung .split .prose p:last-child, #methode .split .prose p:last-child { margin-bottom: 0; }
#wirkung .split .card .list li, #methode .split .card .list li { margin-bottom: .3em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.crosslink .pre-q { text-align: center; max-width: 42ch; margin: 0 auto 2px; color: var(--taupe); text-wrap: balance; }

/* ---------- Pferd ---------- */
/* Handlungsaufforderung im Hero und im Kontaktbereich: WhatsApp + Formular */
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.contact-actions { justify-content: center; margin: 0; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: rgba(205,163,105,.14); }
.wa-icon { width: 18px; height: 18px; flex: none; color: var(--gold); }
/* schwebender WhatsApp-Button, vor allem für Mobil */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(26,22,19,.92); box-shadow: 0 8px 26px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(8px); transition: background 180ms ease, transform 180ms ease, opacity 250ms ease, visibility 250ms; }
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float .wa-icon { width: 26px; height: 26px; }
.wa-float.is-visible:hover, .wa-float.is-visible:focus-visible { background: rgba(60,48,36,.96); transform: translateY(-2px); }
/* Anzeichen: Arbeitsfoto links, Kasten rechts - beide genau gleich hoch, das Foto passt sich der Kastenhöhe an */
.photo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; }
.photo-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.photo-split .card { padding: 28px; justify-content: space-between; }
.photo-split .card .list { margin: 14px 0; }
.photo-split .card .list li { margin-bottom: .35em; }
@media (max-width: 900px) { .photo-split { grid-template-columns: 1fr; } }
/* Vorher-nachher-Beispiele */
.card.example { margin: 0; padding: 0; overflow: hidden; }
.card.example img { display: block; width: 100%; height: auto; }
.card.example figcaption { padding: 18px 24px 22px; }
.card.example figcaption p { margin: 0; }
/* Tabea: eine breite Karte mit Arbeitsfoto, das Foto bestimmt die Höhe */
.card.person.person-wide { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; }
.person-wide .portrait-wrap { min-height: 0; }
.person-wide .portrait-wrap > img { position: static; height: auto; }
@media (max-width: 900px) { .card.person.person-wide { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); } }
@media (max-width: 720px) { .card.person.person-wide { grid-template-columns: 1fr; } .person-wide .portrait-wrap { height: auto; max-width: 240px; margin: 0 auto; } }
.person .prose p + p { margin-top: .9em; }
/* Google-Bewertung: in der Navigation gut sichtbar, regt mit fünf Sternen zur positiven Bewertung an */
.nav .nav-rate { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.stars { color: var(--gold); letter-spacing: .08em; }
.nav .nav-rate:hover .nav-rate-label, .nav .nav-rate:focus-visible .nav-rate-label { color: var(--gold); }
@media (max-width: 560px) { .nav .nav-rate-label { display: none; } }
@media (max-width: 400px) { .nav .nav-rate .stars { letter-spacing: 0; font-size: .7rem; } }
.contact-quiet p.rate-line { max-width: none; margin: 22px auto 0; font-size: var(--fs-small); text-wrap: balance; }
.rate-line a { text-decoration: none; }
