/* Elchmoor Pferde – Frontend-Styles (passend zum Design von Gut Elchmoor) */
:root {
  --ehm-paper: #faf4ea;
  --ehm-paper-2: #f3e9d8;
  --ehm-paper-3: #ece0cc;
  --ehm-ink: #2a241c;
  --ehm-ink-2: #6c6152;
  --ehm-brown: #5b4738;
  --ehm-brown-d: #43342a;
  --ehm-terra: #b26a43;
  --ehm-terra-d: #9a5533;
  --ehm-sage: #77836a;
  --ehm-gold: #b4924e;
  --ehm-heather: #8b7791;
  --ehm-green: #6d8a5f;
  --ehm-line: rgba(91, 71, 56, 0.16);
  --ehm-shadow: 0 18px 50px -22px rgba(67, 52, 42, 0.4);
  --ehm-radius: 14px;
  --ehm-serif: "Fraunces", Georgia, serif;
  --ehm-sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

.ehm-detail, .ehm-archive, .ehm-liste { font-family: var(--ehm-sans); color: var(--ehm-ink); line-height: 1.65; }
.ehm-detail h1, .ehm-detail h2, .ehm-detail h3,
.ehm-archive h1, .ehm-archive h2, .ehm-liste h3 { font-family: var(--ehm-serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.ehm-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.ehm-eyebrow { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ehm-terra); display: inline-flex; align-items: center; gap: 0.6em; }
.ehm-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ehm-gold); }
.ehm-lead { font-size: 1.15rem; color: var(--ehm-ink-2); max-width: 46ch; }

.ehm-btn { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.5em; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none; }
.ehm-btn-primary { background: var(--ehm-brown); color: #fbf3e6; }
.ehm-btn-primary:hover { background: var(--ehm-terra-d); color: #fff; transform: translateY(-1px); }
.ehm-btn-ghost { border-color: var(--ehm-line); color: var(--ehm-brown); background: transparent; }
.ehm-btn-ghost:hover { border-color: var(--ehm-brown); }

/* ---------- Filter + Liste ---------- */
.ehm-filterbar { background: #fdf8ef; border: 1px solid var(--ehm-line); border-radius: var(--ehm-radius);
  padding: 20px 22px; margin-bottom: 26px; }
.ehm-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ehm-filter-row + .ehm-filter-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ehm-line); }
.ehm-filter-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ehm-ink-2);
  font-weight: 600; width: 82px; flex-shrink: 0; }
.ehm-chip { font-family: inherit; font-size: 0.88rem; font-weight: 500; padding: 8px 15px; border-radius: 100px;
  border: 1px solid var(--ehm-line); background: var(--ehm-paper); color: var(--ehm-ink); cursor: pointer;
  transition: all 0.2s; white-space: nowrap; }
.ehm-chip:hover { border-color: var(--ehm-brown); }
.ehm-chip.active { background: var(--ehm-brown); color: #fbf3e6; border-color: var(--ehm-brown); }
.ehm-chip[data-type="kategorie"].active { background: var(--ehm-terra); border-color: var(--ehm-terra); }
.ehm-result-count { font-size: 0.9rem; color: var(--ehm-ink-2); margin-bottom: 20px; }
.ehm-result-count b { color: var(--ehm-brown); font-weight: 600; }

.ehm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

.ehm-horse-card { background: var(--ehm-paper); border: 1px solid var(--ehm-line); border-radius: var(--ehm-radius);
  overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.ehm-horse-card:hover { transform: translateY(-4px); box-shadow: var(--ehm-shadow); }
.ehm-horse-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ehm-horse-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 248, 238, 0.42);
  font-size: 3.2rem; position: relative; overflow: hidden; }
.ehm-horse-photo.has-img { color: transparent; }
.ehm-card-img { width: 100%; height: 100%; object-fit: cover; }
.ehm-p-brown { background: linear-gradient(155deg, #b98a5f, #7c5238); }
.ehm-p-sage { background: linear-gradient(155deg, #98a487, #67735a); }
.ehm-p-heather { background: linear-gradient(155deg, #a996ae, #7a6680); }
.ehm-p-gold { background: linear-gradient(155deg, #d8b877, #b4924e); }
.ehm-cat-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 248, 238, 0.92);
  color: var(--ehm-brown-d); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; font-weight: 600; }
.ehm-sale-dot { position: absolute; top: 12px; right: 12px; font-size: 0.66rem; font-weight: 600;
  padding: 5px 10px; border-radius: 100px; letter-spacing: 0.06em; }
.ehm-sale-yes { background: var(--ehm-green); color: #fff; }
.ehm-sale-sold { background: var(--ehm-ink-2); color: #fff; }
.ehm-horse-body { padding: 18px; flex: 1; }
.ehm-horse-body h3 { font-size: 1.25rem; }
.ehm-horse-breed { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ehm-terra);
  margin-top: 4px; display: block; }
.ehm-horse-meta { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ehm-line);
  font-size: 0.82rem; color: var(--ehm-ink-2); }
.ehm-horse-meta i { color: var(--ehm-sage); margin-right: 5px; }
.ehm-no-result { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--ehm-ink-2); }
.ehm-no-result i { font-size: 2rem; color: var(--ehm-paper-3); margin-bottom: 12px; }

/* ---------- Archiv-Hero ---------- */
.ehm-archive-hero { background: var(--ehm-paper-2); padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 6vw, 60px); }
.ehm-archive-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.7rem 0 0.9rem; }
.ehm-archive-body { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(60px, 9vw, 96px); }

/* ---------- Detailseite ---------- */
.ehm-detail { padding: 26px 0 clamp(60px, 9vw, 96px); }
.ehm-breadcrumb { font-size: 0.82rem; color: var(--ehm-ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ehm-breadcrumb a { color: var(--ehm-terra); font-weight: 500; text-decoration: none; }
.ehm-breadcrumb i { font-size: 0.6rem; }
.ehm-back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600;
  color: var(--ehm-brown); text-decoration: none; font-size: 0.92rem; }
.ehm-back-link i { transition: transform 0.2s; }
.ehm-back-link:hover i { transform: translateX(-4px); }

.ehm-detail-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; padding: 28px 0 10px; }
.ehm-gallery-main { aspect-ratio: 4 / 3; border-radius: var(--ehm-radius); overflow: hidden; display: grid;
  place-items: center; position: relative; }
.ehm-gallery-main img, .ehm-main-img { width: 100%; height: 100%; object-fit: cover; }
.ehm-gallery-main.ehm-ph { color: rgba(255, 248, 238, 0.4); font-size: 5rem; }
.ehm-gcount { position: absolute; bottom: 14px; right: 14px; font-size: 0.72rem; background: rgba(255, 248, 238, 0.9);
  color: var(--ehm-brown-d); padding: 5px 11px; border-radius: 100px; font-weight: 600; }
.ehm-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.ehm-thumb { aspect-ratio: 1; border-radius: 9px; border: 2px solid transparent; overflow: hidden; cursor: pointer;
  padding: 0; background: none; }
.ehm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ehm-thumb.active { border-color: var(--ehm-terra); }

.ehm-summary h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 8px 0 4px; }
.ehm-motto { font-family: var(--ehm-serif); font-style: italic; font-size: 1.15rem; color: var(--ehm-ink-2); margin-bottom: 18px; }
.ehm-sale-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 10px; letter-spacing: 0.04em; }
.ehm-sale-badge.yes { background: rgba(109, 138, 95, 0.16); color: #4e6a42; }
.ehm-sale-badge.no { background: var(--ehm-paper-3); color: var(--ehm-ink-2); }
.ehm-sale-badge.sold { background: rgba(42, 36, 28, 0.1); color: var(--ehm-ink-2); }
.ehm-price { font-size: 0.95rem; color: var(--ehm-ink-2); margin: -4px 0 18px; }
.ehm-price b { color: var(--ehm-brown); font-family: var(--ehm-serif); font-weight: 500; }

.ehm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ehm-line);
  border: 1px solid var(--ehm-line); border-radius: var(--ehm-radius); overflow: hidden; margin: 20px 0; }
.ehm-cell { background: #fdf8ef; padding: 13px 16px; }
.ehm-k { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ehm-ink-2); }
.ehm-v { font-family: var(--ehm-serif); font-size: 1.05rem; color: var(--ehm-ink); margin-top: 2px; }
.ehm-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.ehm-block { padding: 40px 0; border-top: 1px solid var(--ehm-line); margin-top: 10px; }
.ehm-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 0; }
.ehm-block .ehm-eyebrow { margin-bottom: 8px; }
.ehm-text { max-width: 62ch; color: var(--ehm-ink-2); margin-top: 14px; }
.ehm-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ehm-tags span { background: var(--ehm-paper-2); border: 1px solid var(--ehm-line); border-radius: 100px;
  padding: 7px 15px; font-size: 0.86rem; color: var(--ehm-brown); display: inline-flex; align-items: center; gap: 8px; }
.ehm-tags span i { color: var(--ehm-terra); }

.ehm-pedigree { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.ehm-ped-branch { background: #fdf8ef; border: 1px solid var(--ehm-line); border-radius: var(--ehm-radius); padding: 18px; }
.ehm-ped-parent { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ehm-pic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255, 248, 238, 0.7); flex-shrink: 0; }
.ehm-role { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ehm-terra); }
.ehm-pname { font-family: var(--ehm-serif); font-size: 1.2rem; }
.ehm-ped-grand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ehm-ped-grand div { background: var(--ehm-paper); border: 1px solid var(--ehm-line); border-radius: 9px;
  padding: 9px 12px; font-size: 0.85rem; }
.ehm-ped-grand span { display: block; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ehm-ink-2); }

.ehm-award-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ehm-award-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fdf8ef;
  border: 1px solid var(--ehm-line); border-radius: 12px; }
.ehm-aw-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(180, 146, 78, 0.16); color: var(--ehm-gold);
  display: grid; place-items: center; flex-shrink: 0; }
.ehm-award-list b { font-family: var(--ehm-serif); font-weight: 500; }
.ehm-award-list small { color: var(--ehm-ink-2); display: block; font-size: 0.86rem; }

.ehm-papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 22px; }
.ehm-paper-item { background: #fdf8ef; border: 1px solid var(--ehm-line); border-radius: 12px; padding: 16px; }
.ehm-paper-item i { color: var(--ehm-sage); font-size: 1.1rem; }
.ehm-pk { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ehm-ink-2); margin: 8px 0 2px; }
.ehm-pv { font-family: var(--ehm-serif); font-size: 1.02rem; }

.ehm-video { margin-top: 22px; border-radius: var(--ehm-radius); overflow: hidden; }
.ehm-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .ehm-detail-hero { grid-template-columns: 1fr; gap: 26px; }
  .ehm-pedigree { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ehm-container { padding: 0 18px; }
  .ehm-filter-label { width: 100%; margin-bottom: 4px; }
  .ehm-thumbs { grid-template-columns: repeat(4, 1fr); }
  .ehm-facts { grid-template-columns: 1fr; }
  .ehm-grid { grid-template-columns: 1fr; }
}
