/* Glis Ranch – One-Pager */

@font-face { font-family: "Rye"; src: url("../fonts/rye-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --nacht: #16110d;
  --leder: #2b1f17;
  --sattel: #6b4226;
  --rost: #b5652b;
  --rost-hell: #d4894a;
  --sand: #efe6d8;
  --sand-dunkel: #e2d4bf;
  --creme: #faf6ef;
  --text: #2a211b;
  --text-leise: #6d5f53;
  --linie: rgba(43, 31, 23, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --western: "Rye", var(--serif);
  --rand: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--max), 100% - 2 * var(--rand)); margin-inline: auto; }

.marke {
  font-family: var(--western);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rost);
  display: inline-flex; align-items: center; gap: .8em;
  margin-bottom: 1.2rem;
}
.marke::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  font: 600 .88rem/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--voll { background: var(--rost); color: #fff; }
.btn--voll:hover { background: var(--rost-hell); }
.btn--linie { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--linie:hover { background: #fff; color: var(--leder); }
.btn--dunkel { border-color: var(--leder); color: var(--leder); }
.btn--dunkel:hover { background: var(--leder); color: var(--creme); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.kopf.ist-gescrollt { background: rgba(22,17,13,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kopf__logo img { height: 38px; width: auto; transition: height .35s; }
.kopf.ist-gescrollt .kopf__logo img { height: 32px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { padding: .75em 1.3em; }
.menue-knopf { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menue-knopf svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menue-knopf { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--nacht);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a { font-size: 1.1rem; }
  .kopf.menue-offen .nav { opacity: 1; pointer-events: auto; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  color: #fff; background: var(--nacht);
  overflow: hidden;
}
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: .78; transform: scale(1.04); animation: heranzoomen 14s ease-out forwards; }
@keyframes heranzoomen { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,17,13,.55) 0%, rgba(22,17,13,0) 30%, rgba(22,17,13,.35) 55%, rgba(22,17,13,.95) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 140px 0 clamp(56px, 9vh, 110px); }
.hero .marke { color: var(--rost-hell); }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6.6rem); max-width: 12ch; margin-bottom: .3em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--sand-dunkel); }
.hero__text { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 38ch; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__pfeil { position: absolute; z-index: 1; right: var(--rand); bottom: clamp(56px, 9vh, 110px); color: rgba(255,255,255,.6); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; writing-mode: vertical-rl; text-decoration: none; display: none; }
@media (min-width: 900px) { .hero__pfeil { display: block; } }

/* Fakten-Leiste */
.fakten { background: var(--leder); color: var(--sand); }
.fakten .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fakt { padding: 34px 8px; border-bottom: 1px dashed rgba(239,230,216,.2); text-align: center; }
.fakt strong { display: block; font-family: var(--western); font-weight: 400; font-size: 2.1rem; color: var(--rost-hell); line-height: 1.1; margin-bottom: .35rem; }
.fakt span { font-size: .9rem; letter-spacing: .04em; color: rgba(239,230,216,.8); }
@media (min-width: 720px) {
  .fakt { border-bottom: 0; border-right: 1px dashed rgba(239,230,216,.2); }
  .fakt:last-child { border-right: 0; }
}

/* Abschnitte */
.abschnitt { padding: clamp(80px, 12vw, 150px) 0; }

/* Über uns */
.ueber .wrap { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 900px) { .ueber .wrap { grid-template-columns: 1.05fr 1fr; } }
.ueber__bild { position: relative; }
.ueber__bild img { border-radius: 4px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; height: auto; }
.ueber__bild::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px dashed var(--sattel); border-radius: 4px; z-index: -1; opacity: .5;
}
.ueber__stempel {
  position: absolute; right: -10px; bottom: -28px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--rost); color: #fff;
  display: grid; place-content: center; text-align: center;
  font-family: var(--western); font-size: .78rem; letter-spacing: .12em; line-height: 1.35;
  box-shadow: 0 0 0 6px var(--creme), 0 0 0 7px var(--rost);
  transform: rotate(-8deg);
}
.ueber__stempel b { font-size: 1.9rem; font-weight: 400; display: block; letter-spacing: .02em; }
.ueber__lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--leder); }
.trainer { display: grid; gap: 14px; margin-top: 2rem; }
.trainer div { padding: 20px 22px; background: var(--sand); border-radius: 4px; border-left: 3px solid var(--rost); }
.trainer strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--leder); }
.trainer span { font-size: .9rem; color: var(--text-leise); line-height: 1.5; display: block; margin-top: 4px; }

/* Reitunterricht */
.unterricht { background: var(--sand); position: relative; }
.unterricht__kopf { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 70px); }
@media (min-width: 900px) { .unterricht__kopf { grid-template-columns: 1fr 1fr; align-items: end; } }
.unterricht__kopf p { color: var(--text-leise); font-size: 1.1rem; max-width: 44ch; }
.karten { display: grid; gap: 22px; }
@media (min-width: 760px) { .karten { grid-template-columns: 1fr 1fr; } }
.karte {
  position: relative; background: var(--creme);
  padding: clamp(32px, 4vw, 52px);
  border-radius: 4px;
  outline: 1px dashed rgba(107,66,38,.35); outline-offset: -12px;
  transition: transform .3s, box-shadow .3s;
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(43,31,23,.35); }
.karte__nr { font-family: var(--western); color: var(--rost); font-size: .85rem; letter-spacing: .15em; }
.karte h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .6rem 0 .4rem; }
.karte p { color: var(--text-leise); margin: 0; }
.karte__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.4rem; }
.karte__tags span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .45em .9em; border: 1px solid var(--linie); border-radius: 999px; }
.unterricht__hinweis { margin-top: 36px; text-align: center; color: var(--text-leise); }
.unterricht__hinweis a { color: var(--sattel); font-weight: 600; }

/* Pferde-Band */
.band {
  position: relative; color: #fff; text-align: center;
  padding: clamp(110px, 16vw, 200px) 0;
  background: var(--nacht);
  overflow: hidden;
}
.band__bild { position: absolute; inset: 0; }
.band__bild img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(22,17,13,.25), rgba(22,17,13,.8)); }
.band .wrap { position: relative; z-index: 1; max-width: 820px; }
.band .marke { color: var(--rost-hell); }
.band .marke::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.band h2 { font-size: clamp(2rem, 5.4vw, 3.8rem); }
.band p { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }

/* Anfahrt & Kontakt */
.kontakt .wrap { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .kontakt .wrap { grid-template-columns: 1fr 1fr; } }
.kontakt__liste { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 4px; }
.kontakt__liste li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.kontakt__liste svg { width: 22px; height: 22px; color: var(--rost); margin-top: 4px; }
.kontakt__liste small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.kontakt__liste a { text-decoration: none; font-size: 1.15rem; font-weight: 600; color: var(--leder); }
.kontakt__liste a:hover { color: var(--rost); }
.kontakt__liste address { font-style: normal; font-size: 1.1rem; }
.anfahrt {
  background: var(--leder); color: var(--sand);
  border-radius: 4px; padding: clamp(32px, 4vw, 52px);
  position: relative; overflow: hidden;
}
.anfahrt h3 { color: #fff; font-size: 1.9rem; }
.anfahrt p { color: rgba(239,230,216,.82); }
.anfahrt__park { display: flex; gap: 14px; padding: 18px 20px; background: rgba(255,255,255,.06); border-radius: 4px; margin: 1.6rem 0 2rem; }
.anfahrt__park strong { color: var(--rost-hell); display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.anfahrt__park p { margin: 0; font-size: .97rem; }
.anfahrt .btn--linie { border-color: rgba(239,230,216,.5); }
.anfahrt__klein { font-size: .8rem; color: rgba(239,230,216,.55); margin: 1rem 0 0; }
.gruss { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sattel); margin-top: 2rem; }

/* Fuß */
.fuss { background: var(--nacht); color: rgba(239,230,216,.7); padding: 60px 0 40px; font-size: .9rem; }
.fuss .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.fuss img { height: 44px; width: auto; opacity: .9; }
.fuss nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.fuss a { color: inherit; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__stern { color: var(--rost); letter-spacing: 1em; font-size: .7rem; }
.fuss button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.fuss button:hover { color: #fff; }

/* Einblenden beim Scrollen */
.einblenden { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .einblenden { opacity: 1; transform: none; transition: none; }
  .hero__bild img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Cookie-Hinweis */
.cookie {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; margin-left: auto;
  background: var(--creme); color: var(--text);
  border-radius: 6px; padding: 22px 22px 20px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.45);
  border-top: 3px solid var(--rost);
  font-size: .92rem; line-height: 1.55;
  transform: translateY(20px); opacity: 0; transition: transform .4s, opacity .4s;
}
.cookie.sichtbar { transform: none; opacity: 1; }
.cookie[hidden] { display: none; }
.cookie strong { font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: .35rem; color: var(--leder); }
.cookie p { margin: 0 0 1rem; color: var(--text-leise); }
.cookie a { color: var(--sattel); }
.cookie .btn { padding: .8em 1.4em; }

/* Rechtsseiten */
.recht-kopf { background: var(--nacht); color: #fff; padding: 150px 0 60px; }
.recht-kopf h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 0; }
.recht { padding: 60px 0 100px; }
.recht .wrap { max-width: 780px; }
.recht h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.recht h3 { font-size: 1.15rem; margin-top: 1.6rem; font-family: var(--sans); font-weight: 600; }
.recht dl { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0 0 1.5rem; }
@media (min-width: 640px) { .recht dl { grid-template-columns: 230px 1fr; } }
.recht dt { font-weight: 600; color: var(--leder); }
.recht dd { margin: 0 0 .8rem; }
.recht a { color: var(--sattel); }
.platzhalter { background: #ffe9a8; padding: 0 .3em; border-radius: 3px; }
.recht-zurueck { display: inline-block; margin-top: 2rem; }

@media (max-width: 860px) {
  .nav.nav--recht { position: static; inset: auto; z-index: auto; flex-direction: row; background: none; opacity: 1; pointer-events: auto; }
  .nav.nav--recht .btn { font-size: .78rem; padding: .7em 1.1em; }
}
.recht ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.recht code { font-size: .9em; background: var(--sand); padding: .1em .35em; border-radius: 3px; }
