/*
Theme Name: Elchmoor Elegant
Theme URI: https://elchmoor.local
Author: Elchmoor
Description: Elegantes WordPress-Theme fuer den Elchmoor Pferdehof mit Tailwind-inspiriertem Designsystem, Demo-Import und Pferde-Plugin-Integration.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: elchmoor
*/

:root {
  --em-forest: #10251e;
  --em-ivy: #1f4636;
  --em-linen: #f7f1e4;
  --em-mist: #fdfaf2;
  --em-champagne: #d6bd78;
  --em-antique: #a27b37;
  --em-ink: #18231e;
  --em-muted: rgba(24, 35, 30, 0.68);
  --em-radius: 2rem;
  --em-shadow: 0 28px 80px rgba(16, 37, 30, 0.18);
  --em-lift: 0 18px 46px rgba(16, 37, 30, 0.12);
  --em-heading: "Cormorant Garamond", serif;
  --em-body: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--em-linen);
  color: var(--em-ink);
  font-family: var(--em-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.em-container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.em-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(16, 37, 30, 0.92);
  color: var(--em-linen);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(247, 241, 228, 0.12);
}

.em-nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.em-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.em-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 189, 120, 0.72);
  border-radius: 999px;
  color: var(--em-champagne);
  font-size: 1.35rem;
}

.em-brand-title {
  display: block;
  font-family: var(--em-heading);
  font-size: 2rem;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.em-brand-subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.64;
}

.em-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.em-menu a {
  opacity: 0.78;
  transition: color 160ms ease, opacity 160ms ease;
}

.em-menu a:hover,
.em-menu .current-menu-item > a {
  color: var(--em-champagne);
  opacity: 1;
}

.em-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--em-champagne);
  color: var(--em-forest);
  padding: 0.9rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.em-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--em-linen);
}

.em-button.is-outline {
  border-color: rgba(247, 241, 228, 0.32);
  background: transparent;
  color: var(--em-linen);
}

.em-button.is-outline:hover {
  border-color: var(--em-champagne);
  color: var(--em-champagne);
  background: transparent;
}

.em-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: end;
  background: var(--em-forest);
  color: var(--em-linen);
}

.em-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.em-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 37, 30, 0.84), rgba(16, 37, 30, 0.36) 48%, rgba(16, 37, 30, 0.12));
}

.em-hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: 8rem 0 5rem;
}

.em-eyebrow {
  margin: 0 0 1.25rem;
  color: var(--em-antique);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.em-hero .em-eyebrow {
  color: var(--em-champagne);
}

.em-display,
.em-section-title,
h1,
h2,
h3 {
  font-family: var(--em-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.em-display {
  max-width: 860px;
  margin: 0;
  color: inherit;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
}

.em-lede {
  max-width: 680px;
  margin: 1.8rem 0 0;
  color: rgba(247, 241, 228, 0.76);
  font-size: 1.14rem;
  line-height: 1.85;
}

.em-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.em-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.em-section.is-dark {
  background: var(--em-forest);
  color: var(--em-linen);
}

.em-section.is-light {
  background: var(--em-mist);
}

.em-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.em-section-title {
  margin: 0;
  color: var(--em-forest);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.96;
}

.is-dark .em-section-title {
  color: var(--em-linen);
}

.em-richtext {
  color: var(--em-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.is-dark .em-richtext {
  color: rgba(247, 241, 228, 0.72);
}

.em-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.em-card {
  border: 1px solid rgba(162, 123, 55, 0.18);
  border-radius: var(--em-radius);
  background: rgba(247, 241, 228, 0.75);
  padding: 1.7rem;
  box-shadow: var(--em-lift);
}

.em-card h3 {
  margin: 0.9rem 0 0.6rem;
  color: var(--em-forest);
  font-size: 2.35rem;
  line-height: 1;
}

.em-card p {
  margin: 0;
  color: var(--em-muted);
  line-height: 1.7;
}

.em-icon {
  color: var(--em-antique);
  font-size: 2.4rem;
}

.em-horse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.em-horse-card {
  display: block;
}

.em-horse-card-media {
  overflow: hidden;
  border-radius: var(--em-radius);
  background: var(--em-ivy);
  box-shadow: var(--em-shadow);
}

.em-horse-card-media img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.em-horse-card:hover img {
  transform: scale(1.045);
}

.em-horse-card-body {
  position: relative;
  margin: -2.6rem 1rem 0;
  border: 1px solid rgba(247, 241, 228, 0.12);
  border-radius: 1.5rem;
  background: rgba(16, 37, 30, 0.94);
  color: var(--em-linen);
  padding: 1.4rem;
  box-shadow: var(--em-shadow);
}

.em-horse-card-body h3 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
}

.em-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(214, 189, 120, 0.16);
  color: var(--em-champagne);
  padding: 0.45rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.em-footer {
  background: var(--em-forest);
  color: var(--em-linen);
  padding: 5rem 0 2.5rem;
}

.em-footer-panel {
  margin-top: 3.5rem;
  border: 1px solid rgba(247, 241, 228, 0.12);
  border-radius: var(--em-radius);
  background: rgba(247, 241, 228, 0.06);
  padding: 2rem;
  box-shadow: var(--em-shadow);
}

.em-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr;
  gap: 2.5rem;
}

.em-footer h3 {
  margin: 0 0 1rem;
  color: var(--em-champagne);
  font-family: var(--em-body);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.em-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-footer li {
  margin-bottom: 0.8rem;
  color: rgba(247, 241, 228, 0.68);
  font-size: 0.93rem;
}

.em-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 241, 228, 0.1);
  color: rgba(247, 241, 228, 0.46);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .em-menu {
    display: none;
  }

  .em-split,
  .em-card-grid,
  .em-horse-grid,
  .em-footer-grid {
    grid-template-columns: 1fr;
  }

  .em-hero {
    min-height: 680px;
  }
}

