/* Pferdephysiotherapie Nina Oppenborn – Farben aus dem Logo */
:root {
  --olive: #787866;
  --olive-dark: #5d5d4e;
  --olive-deep: #44443a;
  --taupe: #b4aea2;
  --taupe-light: #d8d3ca;
  --cream: #f6f4ef;
  --sand: #ecebe6;
  --white: #fffefb;
  --ink: #3a3a32;
  --muted: #77756b;
  --ok: #5f7a55;
  --error: #9b4a3c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 58, 50, .06), 0 10px 30px -12px rgba(60, 58, 50, .18);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive-dark); text-underline-offset: 3px; }
a:hover { color: var(--olive-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--olive-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--olive); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--olive); margin-bottom: .9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--olive); color: var(--white); border: 1px solid var(--olive);
  padding: .85em 1.6em; border-radius: 999px; font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--olive-dark); color: var(--white); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--olive-dark); }
.btn-ghost:hover { background: var(--olive); color: var(--white); }
.btn-small { padding: .65em 1.2em; font-size: .88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--taupe-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; color: var(--olive-deep); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--olive); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-badge {
  position: absolute; left: -36px; bottom: 28px; width: 136px; height: 136px;
  background: var(--white); border-radius: 50%; padding: 4px;
  box-shadow: 0 12px 28px -8px rgba(60, 58, 50, .35);
}

/* Foto-Platzhalter */
.photo {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, var(--taupe-light), var(--taupe) 70%, #a39c8f);
  color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
}
.photo span { border: 1px solid rgba(255,255,255,.6); padding: .5em 1em; border-radius: 999px; }
.photo-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.photo-portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* Fakten */
.facts { padding-bottom: 20px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
.fact { display: flex; gap: 14px; align-items: center; }
.fact svg { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  background: var(--sand); border-radius: 50%; padding: 7px; }
.fact strong { display: block; color: var(--olive-deep); }
.fact span { font-size: .9rem; color: var(--muted); }

/* Sektionen */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse { grid-template-columns: 1.1fr .9fr; }
.placeholder-note {
  display: inline-block; font-size: .78rem; color: var(--error); background: #f4e6e1;
  padding: 2px 10px; border-radius: 999px;
}
.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg);
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-top: 3px solid var(--taupe-light);
}
.card-featured { border-top-color: var(--olive); }
.card-meta { font-size: .85rem; color: var(--olive); letter-spacing: .04em; margin-bottom: .8em; }
.card p:not(.card-meta):not(.price) { color: var(--muted); font-size: .97rem; }
.price { margin: auto 0 0; font-family: var(--serif); font-size: 1.9rem; color: var(--olive-deep); }
.methods { margin-top: 44px; }
.methods h3 { font-size: 1.1rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1px solid var(--taupe-light); border-radius: 999px; padding: .35em 1em; font-size: .9rem; }
.tags-light li { background: var(--sand); border-color: transparent; }
.note-box { margin-top: 36px; background: var(--white); border-left: 4px solid var(--olive); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.note-box p:last-child { margin: 0; }

/* Karte */
.map { margin: 0; background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.map svg { width: 100%; height: auto; }
.map-places circle { fill: var(--taupe); }
.map-places text { font: 13px var(--sans); fill: var(--muted); }
.map-center circle { fill: var(--olive); stroke: var(--white); stroke-width: 3; }
.map-center text { font: 600 15px var(--sans); fill: var(--olive-deep); }
.map-scale { font: 12px var(--sans); fill: var(--olive); letter-spacing: .1em; text-transform: uppercase; }
.map figcaption { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px; }
.step-no {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--olive); color: var(--olive); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Buchung */
.booking { background: var(--white); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 40px); }
.booking-status { text-align: center; color: var(--muted); padding: 10px; }
.booking-status:empty { display: none; }
.booking-status.demo { background: #f4efe2; color: #7a6a3e; border-radius: 12px; font-size: .9rem; margin-bottom: 20px; }
.booking-status.err { color: var(--error); }
.booking[data-state="loading"] .booking-body { opacity: .4; pointer-events: none; }
.booking-body { display: grid; grid-template-columns: .8fr 1.1fr 1.3fr; gap: clamp(20px, 3vw, 36px); }
.booking-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.booking-step legend, .legend {
  display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem;
  color: var(--olive-deep); margin-bottom: 16px; padding: 0;
}
.step-pill { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--olive); color: var(--white); font: 600 .85rem var(--sans); }

.service-list { display: grid; gap: 10px; }
.service {
  display: block; text-align: left; width: 100%; background: var(--cream); border: 1.5px solid transparent;
  border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, background .2s;
}
.service:hover { border-color: var(--taupe); }
.service[aria-pressed="true"] { border-color: var(--olive); background: var(--white); box-shadow: 0 0 0 3px rgba(120,120,102,.12); }
.service strong { display: block; color: var(--olive-deep); font-weight: 600; font-size: .98rem; }
.service span { font-size: .85rem; color: var(--muted); }

.cal { background: var(--cream); border-radius: 16px; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--olive-deep); }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--taupe-light); background: var(--white); cursor: pointer; font-size: 1.2rem; color: var(--olive-dark); line-height: 1; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .92rem;
  color: #b9b5ab; cursor: default; position: relative;
}
.cal-day.avail { background: var(--white); color: var(--olive-deep); font-weight: 600; cursor: pointer; }
.cal-day.avail::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--olive); }
.cal-day.avail:hover { background: var(--sand); }
.cal-day.selected { background: var(--olive); color: var(--white); }
.cal-day.selected::after { background: var(--white); }
.cal-day.today { outline: 1px dashed var(--taupe); }

.times { margin-top: 16px; }
.times h4 { margin: 0 0 10px; font-weight: 600; font-size: .95rem; color: var(--olive-deep); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time {
  border: 1.5px solid var(--taupe-light); background: var(--white); border-radius: 10px; padding: .55em 0;
  font: 600 .92rem var(--sans); color: var(--olive-deep); cursor: pointer; transition: all .15s;
}
.time:hover { border-color: var(--olive); }
.time[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--white); }

.selection { background: var(--sand); border-radius: 12px; padding: 10px 14px; font-size: .93rem; color: var(--muted); }
.selection.chosen { color: var(--olive-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--olive-deep); }
.span-2 { grid-column: span 2; }
input, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--cream); border: 1.5px solid transparent;
  border-radius: 10px; padding: .65em .8em; width: 100%; transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--olive); background: var(--white); }
input.invalid, textarea.invalid { border-color: var(--error); }
textarea { resize: vertical; }
.form-grid label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--olive); }
.hp { position: absolute !important; left: -9999px !important; }
.turnstile { margin-top: 14px; }
.form-error { color: var(--error); font-size: .9rem; min-height: 1.2em; margin: 10px 0; }
.booking-done { text-align: center; padding: 30px 10px; }
.booking-done svg { width: 64px; height: 64px; fill: none; stroke: var(--ok); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; }
.booking.done .booking-body, .booking.done .booking-status { display: none; }

/* FAQ */
.faq details { background: var(--white); border-radius: 14px; margin-bottom: 10px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--olive-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 300 1.6rem var(--sans); color: var(--olive); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Kontakt & Footer */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.contact-card {
  font-style: normal; display: flex; flex-direction: column; gap: 4px; background: var(--olive); color: var(--sand);
  border-radius: var(--radius); padding: 30px 32px;
}
.contact-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.contact-card a { color: var(--white); margin-top: 10px; }
.site-footer { background: var(--olive-deep); color: var(--taupe-light); font-size: .88rem; padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--taupe-light); }

/* Rechtstexte */
.legal { padding: 60px 0 90px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal .todo { background: #f4e6e1; color: var(--error); padding: 2px 6px; border-radius: 4px; }

/* Bestätigungsseite */
.confirm-card { background: var(--white); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); text-align: center; }
.confirm-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.confirm-card form { margin: 24px 0 18px; }
.confirm-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; text-align: left; background: var(--cream); border-radius: 14px; padding: 18px 22px; margin: 22px auto; max-width: 520px; }
.confirm-details dt { color: var(--muted); font-size: .9rem; }
.confirm-details dd { margin: 0; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; position: relative; }
.confirm-icon.ok { background: #e3eadf; }
.confirm-icon.ok::after { content: ""; position: absolute; left: 22px; top: 18px; width: 18px; height: 28px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.confirm-icon.warn { background: #f4e6e1; }
.confirm-icon.warn::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--error); font: 600 2rem var(--serif); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Responsiv */
@media (max-width: 1020px) {
  .booking-body { grid-template-columns: 1fr 1fr; }
  .booking-form { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--olive-deep); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--taupe-light); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--sand); }
  .nav .btn { margin-top: 14px; }
  .hero-grid, .split, .split-reverse, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-badge { left: -8px; width: 104px; height: 104px; }
  .split .photo-portrait { max-width: 420px; }
  .facts-grid, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .booking-body { grid-template-columns: 1fr; }
  .booking-form { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .brand-name { font-size: 1.05rem; }
}
