/* =====================================================================
   Braaklander Hof – Design „modern“
   Mobil zuerst, große Fotos, klare Typografie, Markenfarben verfeinert.
   ===================================================================== */

:root {
  --bordeaux: #6e2628;
  --bordeaux-dunkel: #4f1a1c;
  --bordeaux-hell: #f6ecea;
  --gold: #c49b4f;
  --gold-dunkel: #8a6a2c;      /* Gold für Text auf hellem Grund (Kontrast ≥ 4.5:1) */
  --gold-hell: #f5ecdc;
  --creme: #faf7f2;
  --sand: #f2ece3;
  --weiss: #fff;
  --text: #2b2524;
  --text-leise: #5e5552;
  --linie: #e5ddd2;
  --schatten: 0 1px 2px rgba(43, 37, 36, .06), 0 8px 24px rgba(43, 37, 36, .08);
  --radius: 14px;
  --radius-klein: 8px;
  --breit: 1200px;
  --text-breit: 46rem;
  --rand: clamp(16px, 4vw, 32px);
  --kopf-hoehe: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--creme);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--bordeaux); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--bordeaux-dunkel); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; }
h4, h5, h6 { font-size: 1.15rem; font-weight: 700; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprunglink { position: absolute; left: 10px; top: -60px; z-index: 300; background: var(--weiss); color: var(--text); padding: 10px 16px; border-radius: var(--radius-klein); }
.sprunglink:focus { top: 10px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: 0 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-dunkel); margin-bottom: .6em; }
.kicker--hell { color: var(--gold); }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--bordeaux);
  background: var(--bordeaux); color: var(--weiss); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.knopf:hover { background: var(--bordeaux-dunkel); border-color: var(--bordeaux-dunkel); color: var(--weiss); }
.knopf--rahmen { background: transparent; color: var(--bordeaux); }
.knopf--rahmen:hover { background: var(--bordeaux-hell); color: var(--bordeaux-dunkel); }
.knopf--gold { background: var(--gold); border-color: var(--gold); color: #241a10; }
.knopf--gold:hover { background: #d6b06a; border-color: #d6b06a; color: #241a10; }
.knopf--hell { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--weiss); }
.knopf--hell:hover { background: var(--weiss); color: var(--text); }
.knopf--klein { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.knopf--breit { width: 100%; }

/* ---------- Kopfbereich ---------- */
/* Der Weichzeichner sitzt auf ::before: backdrop-filter direkt am Kopf würde ihn zum Bezugsrahmen
   für das position:fixed-Menü machen – das mobile Menü wäre dann nur so hoch wie der Kopf (iPhone-Fehler). */
.kopf { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--linie); }
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.kopf__innen { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); height: var(--kopf-hoehe); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marke__zeichen { width: 44px; height: auto; color: var(--bordeaux); }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.marke__claim { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); margin-top: 3px; }
.kopf__menueknopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.kopf__menueknopf .icon { width: 24px; height: 24px; }
.kopf__menueknopf .icon--zu, .menue-offen .kopf__menueknopf .icon--auf { display: none; }
.menue-offen .kopf__menueknopf .icon--zu { display: block; }
.menue, .untermenue, .untermenue ul { list-style: none; margin: 0; padding: 0; }

/* mobiles Menü: deckende Fläche vom Kopf bis zum unteren Rand, eigener Bildlauf */
@media (max-width: 1099px) {
  .hauptmenue { display: none; }
  html.menue-offen, html.menue-offen body { overflow: hidden; }
  .menue-offen .hauptmenue {
    display: flex; flex-direction: column; gap: 28px; position: fixed; left: 0; right: 0; top: var(--kopf-hoehe); z-index: 1;
    height: calc(100vh - var(--kopf-hoehe)); height: calc(100dvh - var(--kopf-hoehe));
    padding: 8px var(--rand) calc(40px + env(safe-area-inset-bottom)); background: var(--creme);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--linie);
  }
  .menue li { position: relative; }
  .menue > li { border-bottom: 1px solid var(--linie); }
  .menue a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
  .menue > li > a { padding: 8px 56px 8px 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
  .menue li.aktiv > a { color: var(--bordeaux); }
  /* Knopf zum Auf-/Zuklappen rechts neben dem Menüpunkt */
  .menue__auf { position: absolute; right: -8px; top: 0; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-leise); cursor: pointer; }
  .menue > li > .menue__auf { top: 4px; }
  .menue__auf .icon { width: 24px; height: 24px; transition: transform .2s; }
  .menue__auf[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .menue__auf:hover { background: var(--sand); color: var(--bordeaux); }
  .hat-kinder > ul { display: none; }
  .hat-kinder.offen > ul { display: block; }
  .untermenue { padding: 0 0 12px 2px; }
  .untermenue a { padding: 6px 56px 6px 0; font-size: 1.0625rem; color: var(--text-leise); }
  .untermenue ul { padding-left: 16px; border-left: 2px solid var(--linie); margin: 0 0 8px 4px; }
  .untermenue ul a { font-size: 1rem; padding-right: 0; }
  .untermenue a:hover, .untermenue li.aktiv > a, .untermenue a[aria-current] { color: var(--bordeaux); }
  .hauptmenue__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .hauptmenue__extra .knopf { min-height: 48px; }
  .hauptmenue__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--text); font-weight: 500; text-decoration: none; }
}

@media (min-width: 1100px) {
  .kopf__menueknopf, .menue__auf { display: none; }
  .hauptmenue, .menue-offen .hauptmenue { display: flex; flex-direction: row; align-items: center; gap: 22px; position: static; padding: 0; background: none; border: 0; overflow: visible; }
  .menue { display: flex; gap: 2px; }
  .menue > li { position: relative; border: 0; }
  .menue > li > a { display: block; padding: 8px 12px; font-size: 1rem; font-weight: 500; border-radius: 999px; color: var(--text); text-decoration: none; }
  .untermenue a { display: block; text-decoration: none; }
  .hauptmenue__extra { display: flex; align-items: center; gap: 16px; }
  .menue > li > a:hover { background: var(--sand); }
  .menue > li.aktiv > a { color: var(--bordeaux); background: var(--bordeaux-hell); }
  .untermenue {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 10px; z-index: 120;
    background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .untermenue::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .menue > li:hover > .untermenue, .menue > li:focus-within > .untermenue { opacity: 1; visibility: visible; transform: none; }
  .untermenue a { padding: 7px 12px; border-radius: var(--radius-klein); font-size: .95rem; color: var(--text); }
  .untermenue a:hover { background: var(--sand); }
  .untermenue a:hover, .untermenue li.aktiv > a, .untermenue a[aria-current] { color: var(--bordeaux); }
  .untermenue ul { border-left: 2px solid var(--linie); margin: 0 0 4px 12px; padding-left: 4px; }
  .untermenue ul a { color: var(--text-leise); font-size: .9rem; padding: 4px 10px; }
  .hauptmenue__tel { display: none; }
}
@media (max-width: 420px) { .marke__claim { display: none; } .kopf__menuetext { display: none; } }

/* ---------- Kopfbild („Held“) ---------- */
.held { position: relative; isolation: isolate; min-height: clamp(320px, 48vh, 520px); display: flex; align-items: flex-end; color: var(--weiss); background: #2b2524; }
.held__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.held::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 13, .05) 30%, rgba(20, 14, 13, .72) 100%); }
.held__inhalt { width: 100%; max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 48px var(--rand) clamp(28px, 5vw, 56px); }
.held h1 { color: var(--weiss); margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); max-width: 22ch; }
.held--start { min-height: clamp(520px, 86vh, 820px); }
.held--start::after { background: linear-gradient(90deg, rgba(20, 14, 13, .72) 0%, rgba(20, 14, 13, .35) 55%, rgba(20, 14, 13, .1) 100%), linear-gradient(180deg, transparent 50%, rgba(20, 14, 13, .5)); }
.held--start h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.held__text { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 36ch; margin: .6em 0 0; color: rgba(255, 255, 255, .92); }
.held__eu { position: absolute; right: var(--rand); bottom: var(--rand); width: 96px; line-height: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--schatten); }
.held__eu img { width: 96px; height: auto; }
@media (max-width: 640px) { .held__eu { width: 64px; top: 12px; bottom: auto; right: 12px; } .held__eu img { width: 64px; } .held--start .knoepfe .knopf { flex: 1 1 100%; } }
.held .brotkrumen ol, .held .brotkrumen a { color: rgba(255, 255, 255, .9); }

/* Seitenkopf ohne Foto */
.seitenkopf { background: var(--sand); border-bottom: 1px solid var(--linie); }
.seitenkopf__innen { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 32px var(--rand) 28px; }
.seitenkopf h1 { margin-bottom: .2em; font-size: clamp(2rem, 5vw, 3rem); }

/* Brotkrumen */
.brotkrumen ol { list-style: none; margin: 0 0 .6em; padding: 0; display: flex; flex-wrap: wrap; font-size: .875rem; color: var(--text-leise); }
.brotkrumen li + li::before { content: "›"; margin: 0 .5em; opacity: .7; }
.brotkrumen a { color: inherit; text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; }

/* ---------- Schnellkontakt (statt goldener Kontaktleiste) ---------- */
.schnellkontakt { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 18px var(--rand) 0; }
.schnellkontakt__titel { font-weight: 700; margin: 0 0 10px; color: var(--text-leise); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.schnellkontakt__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.schnellkontakt a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.25; transition: border-color .2s, box-shadow .2s; }
.schnellkontakt a:hover { border-color: var(--gold); box-shadow: var(--schatten); }
.schnellkontakt .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--gold-hell); color: var(--gold-dunkel); }
.schnellkontakt small { display: block; font-weight: 400; color: var(--text-leise); font-size: .8rem; }
@media (min-width: 900px) { .schnellkontakt__liste { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* ---------- Inhaltsraster ---------- */
.inhalt {
  display: grid;
  grid-template-columns:
    [voll-start] minmax(var(--rand), 1fr)
    [breit-start] minmax(0, calc((var(--breit) - var(--text-breit)) / 2))
    [text-start] min(var(--text-breit), 100% - 2 * var(--rand))
    [text-end] minmax(0, calc((var(--breit) - var(--text-breit)) / 2))
    [breit-end] minmax(var(--rand), 1fr) [voll-end];
  padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 6vw, 72px);
}
.inhalt > * { grid-column: text; min-width: 0; }
.inhalt > :is(.bild-text, .galerie, .kacheln, .liste, .pferd, .news-detail, .zurueck-leiste, .stammbaum, .news-liste) { grid-column: breit; }
.inhalt > .band { grid-column: voll; }
.inhalt > :is(h2, h3) { margin-top: 1.6em; }
.inhalt > :is(.bild-text, .band, .galerie, .kacheln, .liste) { margin: clamp(32px, 5vw, 56px) 0; }
.inhalt > :first-child { margin-top: 0; }
.inhalt ul, .inhalt ol { padding-left: 1.25em; }
.inhalt li::marker { color: var(--gold-dunkel); }
.inhalt > p > img { display: block; margin: 1em 0; border-radius: var(--radius); }
.startseite .inhalt > p:first-of-type { font-size: 1.2em; color: var(--text); font-weight: 500; }
.startseite .inhalt > .liste--verkaufspferde { order: -1; margin-top: 0; }

/* Bild + Text */
.bild-text { display: grid; gap: 0; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.bild-text__bild { position: relative; min-height: 260px; }
.bild-text__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bild-text__text { padding: clamp(24px, 4vw, 48px); }
.bild-text__text > :last-child { margin-bottom: 0; }
@media (min-width: 800px) { .bild-text { grid-template-columns: 1fr 1fr; } .bild-text__bild { min-height: 420px; } }

/* Bänder */
.band { position: relative; isolation: isolate; color: var(--weiss); background: var(--bordeaux-dunkel); }
.band__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 18, 17, .62); }
.band--bordeaux::after { background: linear-gradient(rgba(79, 26, 28, .9), rgba(79, 26, 28, .9)); }
.band__inhalt { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--rand); }
.band__inhalt > :last-child { margin-bottom: 0; }
.band :is(h2, h3, p, a:not(.knopf)) { color: var(--weiss); }
.band--bordeaux p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; max-width: 50ch; margin-inline: auto; text-align: center; }
.band .knopf--rahmen, .band .knopf { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--weiss); }
.band .knopf:hover { background: var(--weiss); color: var(--text); }
.band img:not(.band__bild) { display: block; width: 200px; margin: 0 auto 12px; }
.band:has(img:not(.band__bild)) .band__inhalt { text-align: center; }
.band:has(img:not(.band__bild)) .knoepfe { justify-content: center; }

/* Aktuelles (Startseite) */
.band--aktuelles { background: var(--sand); color: var(--text); }
.band--aktuelles .band__bild, .band--aktuelles::after { display: none; }
.band--aktuelles :is(h2, h3, p, a:not(.knopf)) { color: var(--text); }
.band--aktuelles .knopf { border-color: var(--bordeaux); color: var(--bordeaux); }
.band--aktuelles .knopf:hover { background: var(--bordeaux); color: var(--weiss); }
.news-kacheln { list-style: none; margin: 24px 0; padding: 0 !important; display: grid; gap: 16px; }
@media (min-width: 800px) { .news-kacheln { grid-template-columns: repeat(3, 1fr); } }
.news-kachel { position: relative; background: var(--weiss); border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten); border-top: 4px solid var(--gold); }
.news-kachel__datum { display: flex; align-items: baseline; gap: 8px; color: var(--gold-dunkel); font-weight: 700; font-size: .9rem; }
.news-kachel__tag { font-size: 2rem; line-height: 1; color: var(--bordeaux); }
.news-kachel__titel { font-size: 1.15rem; font-weight: 700; margin: .6em 0 0; }
.news-kachel__titel a { color: var(--text) !important; text-decoration: none; }
.news-kachel__titel a::after { content: ""; position: absolute; inset: 0; }
.news-kachel:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 30px rgba(43, 37, 36, .14); }

/* Zitate */
.band--zitate::after { background: rgba(79, 26, 28, .82); }
.band--zitate h2 { text-align: center; }
.zitate { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 700px) { .zitate { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .zitate { grid-template-columns: repeat(3, 1fr); } }
.zitate > p { margin: 0; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 1rem; }
.zitate strong { display: block; font-size: 1.12rem; margin-bottom: .3em; }

/* Kacheln */
.kacheln { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.kachel { position: relative; display: flex; flex-direction: column; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s; }
.kachel:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 16px 34px rgba(43, 37, 36, .16); }
.kachel__bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel__text { padding: 18px 20px 22px; }
.kachel__text > :last-child { margin-bottom: 0; }
.kachel :is(h2, h3) { font-size: 1.3rem; font-weight: 700; margin-bottom: .35em; }
.kachel :is(h2, h3) a { color: var(--text); text-decoration: none; }
.kachel :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.kachel--text .kachel__text { font-size: .98rem; color: var(--text-leise); }
.kachel--text .kachel__text p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.kachel--text .kachel__text p + p { display: none; }
.kachel--bild .kachel__text { padding: 14px 18px; }
.kachel--bild :is(h2, h3) { font-size: 1.1rem; margin: 0; }
.kachel--bild :is(h2, h3) a::before { content: "→"; float: right; color: var(--gold-dunkel); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie__link { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-klein); background: var(--sand); }
.galerie__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie__link:hover img { transform: scale(1.04); }

/* Aufklappen */
.aufklappen { border-bottom: 1px solid var(--linie); }
.aufklappen:first-of-type, :not(.aufklappen) + .aufklappen { border-top: 1px solid var(--linie); }
.aufklappen summary { position: relative; cursor: pointer; list-style: none; padding: 16px 44px 16px 0; font-weight: 700; font-size: 1.05rem; }
.aufklappen summary::-webkit-details-marker { display: none; }
.aufklappen summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-hell); color: var(--gold-dunkel); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.aufklappen[open] summary::after { content: "–"; }
.aufklappen summary:hover { color: var(--bordeaux); }
.aufklappen__inhalt { padding: 0 0 18px; }
.aufklappen__inhalt img { float: right; max-width: 150px; margin: 0 0 12px 18px; border-radius: var(--radius-klein); }
.aufklappen__inhalt::after { content: ""; display: block; clear: both; }

/* ---------- Pferdekarten ---------- */
.liste > h2 { margin-bottom: .8em; }
.pferde-karten { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.pferde-karten--klein { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.pferde-karte { position: relative; display: flex; flex-direction: column; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s; }
.pferde-karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 16px 34px rgba(43, 37, 36, .16); }
.pferde-karte__bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.pferde-karte__bild--hoch { aspect-ratio: 4 / 5; }
.pferde-karte__bild--quer { aspect-ratio: 3 / 2; }
.pferde-karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.pferde-karte__bild .abzeichen { position: absolute; left: 12px; top: 12px; }
.pferde-karte__text { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pferde-karte__name { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25em; }
.pferde-karten--klein .pferde-karte__name { font-size: 1.08rem; }
.pferde-karte__name a { color: var(--text); text-decoration: none; }
.pferde-karte__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pferde-karte__fakten { margin: 0; font-weight: 500; }
.pferde-karten--klein .pferde-karte__fakten { font-weight: 400; font-size: .9rem; color: var(--text-leise); }
.pferde-karte__rasse { margin: .15em 0 0; color: var(--text-leise); font-size: .95rem; }
.pferde-karte__preis { margin: .7em 0 0; font-size: 1.35rem; font-weight: 700; color: var(--bordeaux); }
.pferde-karte__status { margin: .5em 0 0; font-size: .9rem; color: var(--text-leise); font-style: italic; }
.pferde-karte__mehr { margin: auto 0 0; padding-top: 12px; font-weight: 700; color: var(--gold-dunkel); font-size: .95rem; }
.abzeichen { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; background: #e7f2e8; color: #23532b; }
.abzeichen--reserviert { background: var(--gold-hell); color: #6b4f19; }
.abzeichen--verkauft { background: #ece9e7; color: #514946; }
.abzeichen--ankuendigung { background: var(--bordeaux-hell); color: var(--bordeaux); }
.ohne-foto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-leise); font-size: .9rem; background: var(--sand); }
.ohne-foto img { width: 40%; height: auto; opacity: .3; }
.ohne-foto--gross { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* Filter */
.filter__wahl { position: absolute; opacity: 0; pointer-events: none; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.filter__titel { font-weight: 700; margin-right: 4px; color: var(--text-leise); font-size: .95rem; }
.filter label { cursor: pointer; padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--linie); background: var(--weiss); font-weight: 500; font-size: .95rem; }
.filter label:hover { border-color: var(--gold); }
#filter-alle:checked ~ .filter [for="filter-alle"],
#filter-stute:checked ~ .filter [for="filter-stute"],
#filter-hengst:checked ~ .filter [for="filter-hengst"],
#filter-wallach:checked ~ .filter [for="filter-wallach"] { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--weiss); }
.filter__wahl:focus-visible ~ .filter { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
#filter-stute:checked ~ .pferde-karten .pferde-karte:not([data-geschlecht="stute"]),
#filter-hengst:checked ~ .pferde-karten .pferde-karte:not([data-geschlecht="hengst"]),
#filter-wallach:checked ~ .pferde-karten .pferde-karte:not([data-geschlecht="wallach"]) { display: none; }

/* ---------- News ---------- */
.news-liste { display: grid; gap: 18px; margin-top: 12px; }
.news-eintrag { position: relative; display: grid; gap: 0; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
@media (min-width: 760px) { .news-eintrag { grid-template-columns: 280px 1fr; } }
.news-eintrag__bild { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
@media (min-width: 760px) { .news-eintrag__bild { aspect-ratio: auto; min-height: 100%; } }
.news-eintrag__bild img { width: 100%; height: 100%; object-fit: cover; }
.news-eintrag__text { padding: 18px 22px; }
.news-eintrag__titel { font-size: 1.3rem; font-weight: 700; margin: .1em 0 .4em; }
.news-eintrag__titel a { color: var(--text); text-decoration: none; }
.news-eintrag__titel a::after { content: ""; position: absolute; inset: 0; }
.news__datum { color: var(--gold-dunkel); font-weight: 500; font-size: .92rem; margin: 0; }
.mehr { font-weight: 700; color: var(--bordeaux); margin: 0; }
.news-detail { display: grid; gap: 28px; }
.news-detail__bild { margin: 0; }
.news-detail__bild img { width: 100%; border-radius: var(--radius); }
.news-detail__text { max-width: var(--text-breit); }

/* ---------- Pferd (Detailseite) ---------- */
.seitenkopf--pferd h1 { margin-bottom: .25em; }
.pferd__kurz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; color: var(--text-leise); font-weight: 500; }
.pferd__untertitel { margin: .5em 0 0; font-weight: 500; }
.pferd__oben { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .pferd__oben { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 36px; } .pferd__karte { position: sticky; top: calc(var(--kopf-hoehe) + 20px); } }
.pferd__hauptbild { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pferd__hauptbild img { width: 100%; height: 100%; object-fit: cover; }
.galerie--pferd { margin-top: 8px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) { .galerie--pferd { grid-template-columns: repeat(4, 1fr); } }
.pferd__karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px; }
.pferd__preis { font-size: 2rem; font-weight: 700; color: var(--bordeaux); margin: 0 0 .3em; line-height: 1.1; }
.pferd__hinweis { background: var(--gold-hell); color: #5c4416; padding: 10px 14px; border-radius: var(--radius-klein); font-weight: 500; }
.eckdaten { margin: 0 0 18px; }
.eckdaten > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.eckdaten > div:last-child { border-bottom: 0; }
.eckdaten dt { color: var(--text-leise); font-size: .95rem; }
.eckdaten dd { margin: 0; font-weight: 500; }
.pferd__stand { margin: -8px 0 16px; font-size: .85rem; color: var(--text-leise); }
.stammbaum a.stammbaum__name { color: var(--bordeaux); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pferd__verweise { margin: clamp(24px, 4vw, 40px) 0 0; padding: 16px 20px; background: var(--weiss); border-radius: var(--radius); border: 1px solid var(--linie); }
.pferd__verweise p { margin: 0; }

/* „Auf einen Blick“ (Kurzinfo) und häufige Fragen */
.kurzinfo { margin: 0 0 clamp(28px, 4vw, 44px); padding: clamp(18px, 3vw, 28px); background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); border-top: 4px solid var(--gold); }
.kurzinfo h2 { font-size: 1.25rem; margin: 0 0 .5em; }
.kurzinfo__liste { margin: 0; font-size: 1rem; line-height: 1.55; }
.kurzinfo__liste > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.kurzinfo__liste > div:last-child { border-bottom: 0; }
.kurzinfo__liste dt { font-weight: 700; color: var(--text-leise); }
.kurzinfo__liste dd { margin: 0; }
@media (max-width: 600px) { .kurzinfo__liste > div { grid-template-columns: 1fr; } }
.faq { margin: clamp(32px, 5vw, 56px) 0 0; }
.faq__frage { display: inline; font: inherit; color: inherit; margin: 0; letter-spacing: normal; }
.anfrage { display: grid; gap: 10px; padding-top: 6px; }
.anfrage__titel { font-size: 1.2rem; margin: 0; }
.anfrage__text { margin: 0 0 4px; color: var(--text-leise); font-size: .95rem; }
.anfrage__hinweis { margin: 0; font-size: .85rem; color: var(--text-leise); }
.pferd__beschreibung { max-width: var(--text-breit); margin-top: clamp(32px, 5vw, 56px); }
.pferd__beschreibung::after { content: ""; display: block; clear: both; }
.pferd__bild-im-text { float: right; width: min(300px, 45%); margin: 0 0 16px 22px; border-radius: var(--radius); }
.anfrage-leiste { display: none; }
@media (max-width: 899px) {
  .art-pferd.kategorie-verkauf { padding-bottom: 76px; }
  .anfrage-leiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 247, 242, .96); border-top: 1px solid var(--linie); backdrop-filter: blur(8px); }
  .anfrage-leiste .knopf { padding: 10px 8px; gap: .4em; font-size: .95rem; }
}
@media (max-width: 420px) {
  .anfrage-leiste .knopf { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 4px; font-size: .8rem; border-radius: 14px; }
}

/* Video (selbst gehostet) */
.pferd__video { max-width: var(--text-breit); margin-top: clamp(32px, 5vw, 56px); }
.pferd__video video { display: block; width: 100%; height: auto; aspect-ratio: auto 3 / 2; background: #1d1712; border-radius: var(--radius); }

/* Stammbaum: von links (Eltern) nach rechts (Urgroßeltern) */
.stammbaum { margin-top: clamp(36px, 6vw, 64px); }
.stammbaum__seiten { display: grid; gap: 20px; }
@media (min-width: 1000px) { .stammbaum__seiten { grid-template-columns: 1fr 1fr; } }
.stammbaum__seite { background: var(--weiss); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--schatten); }
.stammbaum__seite > h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dunkel); margin-bottom: 12px; }
.stammbaum__baum, .stammbaum__baum ul { list-style: none; margin: 0; padding: 0 !important; }
.stammbaum__baum > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; }
.stammbaum__baum > li > ul > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.stammbaum__baum ul { position: relative; display: grid; gap: 6px; margin-left: 14px !important; }
.stammbaum__baum ul::before { content: ""; position: absolute; left: -14px; top: 50%; width: 8px; border-top: 1px solid var(--gold); }
.stammbaum__baum ul > li { position: relative; padding-left: 12px; }
.stammbaum__baum ul > li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; border-top: 1px solid var(--gold); }
.stammbaum__baum ul > li::after { content: ""; position: absolute; left: 0; border-left: 1px solid var(--gold); }
.stammbaum__baum ul > li:first-child::after { top: 50%; bottom: -3px; }
.stammbaum__baum ul > li:last-child::after { top: -3px; bottom: 50%; }
.stammbaum__baum ul > li:only-child::after { display: none; }
.stammbaum__baum ul ul { margin-left: 10px !important; }
.stammbaum__name { display: block; padding: 8px 10px; border-radius: var(--radius-klein); background: var(--creme); border: 1px solid var(--linie); font-weight: 500; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.stammbaum__baum > li > .stammbaum__name { background: var(--bordeaux-hell); border-color: #e3cbc7; font-weight: 700; }
.stammbaum__seite--mutter .stammbaum__baum > li > .stammbaum__name { background: var(--gold-hell); border-color: #e8d7b4; }
.stammbaum__name--leer { color: #b0a7a1; font-weight: 400; }
@media (max-width: 520px) { .stammbaum__name { font-size: .78rem; padding: 6px 6px; } .stammbaum__seite { padding: 14px 10px; } }

/* Zurück */
.zurueck-leiste { margin-top: clamp(32px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--linie); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- Fußbereich ---------- */
.fuss { background: #231a19; color: #e9e2dc; margin-top: 0; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { color: var(--gold); text-decoration: underline; }
.fuss__innen { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 48px var(--rand) 24px; display: grid; gap: 32px; }
@media (min-width: 800px) { .fuss__innen { grid-template-columns: 1.2fr 1.3fr 1fr; } }
.fuss h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 1em; }
.fuss__spalte--marke img { width: 150px; margin-bottom: 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss__kontakt li, .fuss__links li { margin-bottom: 10px; }
.fuss__kontakt a { display: inline-flex; align-items: center; gap: 10px; }
.fuss small { color: #b9aea6; }
.fuss__social { display: flex; gap: 10px; margin-top: 18px !important; }
.fuss__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.fuss__unten { border-top: 1px solid rgba(255, 255, 255, .12); }
.fuss__unten p { max-width: calc(var(--breit) + 2 * var(--rand)); margin: 0 auto; padding: 16px var(--rand) 22px; font-size: .88rem; color: #b9aea6; }
.fuss__unten a { color: #e9e2dc; }

/* ---------- Großansicht ---------- */
.grossansicht { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.grossansicht::backdrop { background: rgba(20, 14, 13, .92); }
.grossansicht figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.grossansicht img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; }
.grossansicht figcaption { color: #eee; font-size: .95rem; padding: 12px; text-align: center; max-width: 80vw; }
.grossansicht button { position: fixed; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 52px; height: 52px; cursor: pointer; border-radius: 50%; }
.grossansicht button:hover { background: var(--gold); color: #241a10; }
.grossansicht__zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.grossansicht__weiter { right: 12px; top: 50%; transform: translateY(-50%); }
.grossansicht__zu { right: 12px; top: 12px; }

/* 404 */
.mittig { text-align: center; }
.linkliste { list-style: none; padding: 0 !important; text-align: center; font-size: 1.15rem; }
.linkliste li { margin: .4em 0; }

@media print {
  .kopf, .schnellkontakt, .fuss, .anfrage-leiste, .filter, .held__eu { display: none !important; }
  body { background: #fff; }
  .held { min-height: 0; color: var(--text); }
  .held__bild, .held::after { display: none; }
  .held h1 { color: var(--text); text-shadow: none; }
}

/* lange Aufzählungen zweispaltig */
@media (min-width: 768px) { .inhalt > ul:has(> li:nth-child(9)) { columns: 2; column-gap: 40px; } .inhalt > ul:has(> li:nth-child(9)) li { break-inside: avoid; } }

/* Startseite: Zitate-Band schließt direkt an die Fußzeile an */
.startseite .inhalt { padding-bottom: 0; }
.startseite .inhalt > .band--zitate { margin-bottom: 0; }
@media (max-width: 420px) {
  .schnellkontakt a { gap: 9px; padding: 10px; font-size: .95rem; }
  .schnellkontakt .icon { width: 30px; height: 30px; padding: 6px; }
}

/* ---------- Veranstaltungen: Platzhalter und Rückblick ---------- */
.keine-termine { margin: 24px 0; padding: 22px; background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); border-top: 4px solid var(--gold); }
.keine-termine__text { margin: 0; }
.keine-termine .knoepfe { margin: 14px 0 0; }
.news-kachel__art { margin: .8em 0 0; }
.rueckblick { margin-top: clamp(32px, 5vw, 56px); }
.rueckblick__titel { display: inline; margin: 0; font: inherit; color: inherit; letter-spacing: normal; }
.news-liste--rueckblick { margin-top: 8px; }
.news-eintrag--vergangen .news__datum, .news__datum--vorbei { color: var(--text-leise); font-style: italic; }
