:root {
  --bg: #f7f3ee;
  --bg-soft: #fcf8f3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #2a241f;
  --text-soft: #5f564f;
  --primary: #6f4e37;
  --primary-dark: #533929;
  --accent: #d9b38c;
  --accent-soft: #f3e2d1;
  --line: rgba(111, 78, 55, 0.12);
  --shadow: 0 12px 35px rgba(42, 36, 31, 0.10);
  --shadow-soft: 0 6px 18px rgba(42, 36, 31, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --header-height: 88px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behaviour: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 179, 140, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf8f4 0%, var(--bg) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

main {
  min-height: calc(100vh - var(--header-height));
}

section {
  scroll-margin-top: 110px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

/* ---------- Layout Helfer ---------- */

.container,
.contact-section > *:not(iframe),
.horse-section > *,
main > h1,
main > ul,
main > div {
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.page-section {
  padding: 5rem 0;
}

.page-intro {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--primary-dark);
}

.page-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* ---------- Header / Navigation ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  width: min(1240px, calc(100% - 1rem));
  margin: 0.75rem auto 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.nav .logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav li {
  margin: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(111, 78, 55, 0.08);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-dark);
}

/* ---------- Buttons ---------- */

.btn,
.contact-form button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(83, 57, 41, 0.18);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.btn:hover,
.contact-form button:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(83, 57, 41, 0.22);
}

.btn:active,
.contact-form button:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 3rem) 1.25rem 4rem;
  background:
    linear-gradient(rgba(28, 21, 16, 0.42), rgba(28, 21, 16, 0.30)),
    url("../images/hero-image.jpg") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: 2rem;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(20, 14, 11, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.hero-text h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  color: #fff;
}

.hero-text p {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Allgemeine Inhaltsbereiche ---------- */

.contact-section,
.horse-section {
  position: relative;
  padding: 5rem 0;
}

.contact-section:nth-of-type(odd),
.horse-section {
  background: transparent;
}

.contact-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.34);
}

.contact-section h2,
.horse-section h1,
main h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-dark);
}

.contact-section > p,
.horse-section > p,
main > div > p,
main > p {
  max-width: 760px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
}

.contact-section a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Kontaktformular ---------- */

.contact-form {
  margin: 2rem auto;
  max-width: 720px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(111, 78, 55, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 179, 140, 0.18);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Karten / Angebot / allgemeine Content-Boxen ---------- */

.card-grid,
.horse-grid {
  width: min(1200px, calc(100% - 2rem));
  margin: 2.2rem auto 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.horse-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover,
.horse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(42, 36, 31, 0.14);
}

.card-content,
.horse-card > div,
.horse-card {
  padding: 1.1rem;
}

.card img,
.horse-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.card h3,
.horse-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.card p,
.horse-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* ---------- Listen / einfache Contentseiten ---------- */

main ul {
  max-width: 840px;
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
}

main ul li {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

main ul li strong {
  color: var(--primary-dark);
}

main > div {
  max-width: 860px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-soft);
}

main > div p {
  color: var(--text-soft);
  text-align: left;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 3rem;
  padding: 1.4rem 1rem 2rem;
  text-align: center;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.45));
}

/* ---------- Hilfsklassen ---------- */

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .card-grid,
  .horse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    width: calc(100% - 1rem);
    border-radius: 24px;
  }

  .nav .logo {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 78px;
  }

  .nav {
    position: relative;
    padding: 0.75rem 0.85rem;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav ul {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.65rem;
    border-radius: 22px;
    background: rgba(255, 248, 241, 0.98);
    border: 1px solid rgba(111, 78, 55, 0.12);
    box-shadow: var(--shadow);
  }

  .nav ul.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
  }

  .hero {
    min-height: 88svh;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-text {
    padding: 1.4rem;
    border-radius: 22px;
  }

  .contact-section,
  .horse-section,
  .page-section {
    padding: 4rem 0;
  }

  .card-grid,
  .horse-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-form,
  main > div {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  .container,
  .contact-section > *:not(iframe),
  .horse-section > *,
  main > h1,
  main > ul,
  main > div {
    width: min(100% - 1rem, 1100px);
  }

  .hero-text h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn,
  .contact-form button,
  button[type="submit"] {
    width: 100%;
  }

  .nav .logo {
    max-width: 70%;
    line-height: 1.2;
    white-space: normal;
  }

  .nav a.active {
    background: rgba(111, 78, 55, 0.18);
    color: var(--primary-dark);
    font-weight: 700;
  }
}

/* ---------- Pferde: klickbare Karten ---------- */

.horse-card {
  cursor: pointer;
}

.horse-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.horse-facts {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.horse-short {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.horse-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid var(--line);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  transition:
    max-height 300ms ease,
    opacity 220ms ease,
    margin-top 220ms ease,
    padding-top 220ms ease,
    border-top-width 220ms ease;
}

.horse-card.open .horse-more {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

/* ---------- Unterseiten ---------- */

.subpage-main {
  padding-top: 0;
}

.narrow-text {
  max-width: 820px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.narrow-text p {
  text-align: left;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

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

/* ---------- Preise ---------- */

.price-list {
  width: min(950px, 100%);
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}

.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.price-main h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--primary-dark);
}

.price-main p {
  margin: 0;
  color: var(--text-soft);
}

.price-note {
  margin-top: 0.45rem !important;
  font-size: 0.92rem;
}

.price-value {
  align-self: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  padding-left: 1rem;
}

/* ---------- Standort ---------- */

.standort-hinweis {
  max-width: 820px;
  margin: 1.5rem auto 0;
  text-align: left;
  color: var(--text-soft);
}

.standort-hinweis p {
  margin-bottom: 1rem;
}

.standort-hinweis a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Über mich ---------- */

.about-section {
  padding: 2rem 0 5rem;
}

.about-container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-text {
  padding: 0.5rem 0;
}

.about-text h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary-dark);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  text-align: left;
}

/* ---------- Responsive Ergänzungen ---------- */

@media (max-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .price-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .price-value {
    padding-left: 0;
    align-self: start;
    white-space: normal;
  }

  .about-section {
    padding: 1rem 0 4rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-image img {
    height: 340px;
  }

}

.map-placeholder {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.map-placeholder p {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.contact-section a.btn,
.map-placeholder a.btn {
  color: #fff;
}
.contact-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.email-btn {
  background-color: #2f3e46;
  color: #fff;
}

.instagram-btn {
  background-color: #c13584;
  color: #fff;
}

.contact-details p {
  margin: 0.4rem 0;
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
}