:root {
  --ink: #171512;
  --ink-soft: #2b2822;
  --forest: #1f4038;
  --sage: #6f826e;
  --sage-soft: #dce5d5;
  --copper: #b66a32;
  --copper-dark: #7d442b;
  --gold: #e1b86f;
  --paper: #fbf7ef;
  --sand: #eee2cf;
  --smoke: #f6f2ea;
  --steel: #2f4c63;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(23, 21, 18, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 21, 18, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(238px, 32vw, 390px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #f7efe1;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  padding: 0.55rem 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: clamp(640px, calc(86vh - 78px), 860px);
  display: grid;
  align-items: center;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 12, 10, 0.93) 0%, rgba(23, 21, 18, 0.76) 46%, rgba(23, 21, 18, 0.28) 100%),
    var(--hero-image);
  background-position: center, right center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.hero-home {
  --hero-image: url("../images/startseitenbanner-levelworker-pferde.jpg");
}

.hero-content {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) 0;
}

.hero-content > * {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

h1 {
  max-width: 790px;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 1.1rem;
  color: #f3e8d7;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  overflow-wrap: anywhere;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f0ca82;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(23, 21, 18, 0.35);
  color: var(--ink);
}

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

.section.compact {
  padding: clamp(3rem, 6vw, 4.8rem) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-forest {
  background: var(--forest);
  color: var(--white);
}

.section-smoke {
  background: var(--smoke);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head p {
  margin-top: 1rem;
  color: #675d52;
  font-size: 1.08rem;
}

.section-dark .section-head p,
.section-forest .section-head p {
  color: #d7d0c6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.stat {
  min-height: 126px;
  padding: 1.4rem;
  background: var(--ink-soft);
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.55rem;
  color: #e9decf;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.text-flow > * + * {
  margin-top: 1rem;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.image-frame.small img {
  min-height: 310px;
}

.badge-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 220px;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(23, 21, 18, 0.88);
  color: var(--white);
  box-shadow: var(--shadow);
}

.badge-panel strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.service-grid,
.package-grid,
.coach-grid,
.testimonial-grid,
.value-grid {
  display: grid;
  gap: 1.2rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid,
.testimonial-grid,
.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid rgba(23, 21, 18, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 21, 18, 0.08);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.card-image.wide {
  aspect-ratio: 16 / 9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.card:hover .card-image img {
  transform: scale(1.035);
}

.card-body {
  padding: 1.35rem;
}

.card-body p {
  margin-top: 0.75rem;
  color: #62594e;
}

.card-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--copper-dark);
  font-weight: 800;
  text-decoration: none;
}

.icon-card {
  padding: 1.45rem;
  border-left: 4px solid var(--copper);
}

.icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(225, 184, 111, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.quote {
  min-height: 100%;
  padding: 1.35rem;
}

.quote p {
  color: #51483f;
}

.quote strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
}

.price {
  margin: 1rem 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.55rem;
}

.feature-list li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
}

.cta-band {
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.92), rgba(31, 64, 56, 0.78)),
    url("../images/pferde-weide-wolken.jpg") center / cover no-repeat;
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-band p {
  max-width: 620px;
  margin-top: 1rem;
  color: #eadfce;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(15, 14, 12, 0.86), rgba(23, 21, 18, 0.44)),
    var(--page-image);
  background-position: center, center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.page-about {
  --page-image: url("../images/pferd-liegend-ranch.jpg");
}

.page-services {
  --page-image: url("../images/westernreiten-indoor.jpg");
}

.page-courses {
  --page-image: url("../images/rinderarbeit-reithalle.jpg");
}

.page-contact {
  --page-image: url("../images/startseitenbanner-levelworker-pferde.jpg");
}

.page-hero .section-inner {
  padding: 5.5rem 0 4rem;
}

.page-hero p {
  max-width: 720px;
  margin-top: 1rem;
  color: #f2e7d6;
  font-size: 1.15rem;
}

.page-hero h1 {
  max-width: 930px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.contact-panel h2,
.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23, 21, 18, 0.2);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.9rem;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-panel {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.contact-panel a {
  color: var(--gold);
  font-weight: 800;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.notice {
  padding: 1rem;
  border-left: 4px solid var(--copper);
  background: #fff4df;
}

.site-footer {
  background: var(--ink);
  color: #f5eddf;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(150px, 0.5fr));
  gap: 2rem;
  padding: 3.5rem 0;
}

.footer-logo {
  width: min(270px, 100%);
}

.footer-col h3 {
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: #e8dac7;
  text-decoration: none;
}

.footer-col a + a {
  margin-top: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding: 1rem 0;
  color: #bfb4a6;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    flex: 0 0 44px;
    position: relative;
    z-index: 3;
    border-color: rgba(255, 255, 255, 0.42);
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(23, 21, 18, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .split,
  .split.reverse,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .stats,
  .service-grid,
  .package-grid,
  .testimonial-grid,
  .value-grid,
  .coach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(318px, calc(100vw - 32px));
    min-height: 70px;
    gap: 0.75rem;
  }

  .brand img {
    width: 238px;
  }

  .site-nav {
    top: 70px;
  }

  .hero {
    min-height: 720px;
    background-image:
      linear-gradient(180deg, rgba(12, 12, 10, 0.9) 0%, rgba(23, 21, 18, 0.72) 54%, rgba(23, 21, 18, 0.18) 100%),
      var(--hero-image);
    background-position: center, 63% center;
    background-size: auto, cover;
    background-repeat: no-repeat;
  }

  .hero-content {
    padding: 4.4rem 0;
  }

  .hero .lead {
    max-width: min(30ch, calc(100vw - 32px));
  }

  .stats,
  .service-grid,
  .package-grid,
  .testimonial-grid,
  .value-grid,
  .coach-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  .hero .eyebrow::before,
  .page-hero .eyebrow::before {
    display: none;
  }

  .image-frame img {
    min-height: 300px;
  }

  .badge-panel {
    position: static;
    max-width: none;
    border-radius: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
