/* ---------------------------------------------------------------------------
   einfachisa.de – Stylesheet
   Tokens first, then base, layout, header/footer, components, page sections.
   --------------------------------------------------------------------------- */

:root {
  --ink: #1d1d1c;
  --ink-soft: #55554f;
  --paper: #ffffff;
  --paper-soft: #f2f2ef;
  --line: #e2e2dd;
  --green: #57b633;          /* handwritten accent, from the original site */
  --mint: #7ee7b0;           /* buttons, from the original site */
  --mint-deep: #4fc98d;
  --mint-ink: #0f3a25;
  --blue: #6faaea;           /* "Termin buchen", from the original site */
  --blue-deep: #4a8fdc;
  --blue-ink: #1a3c6b;
  --notice: #2f5dd9;
  --red: #d63a2f;

  --font-body: "Questrial", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Shadows Into Light", "Bradley Hand", cursive;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -16px rgba(0,0,0,.25);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px;
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
h4 { font-size: 17px; }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; hyphens: manual; }
h1.hand { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.1; }
h2.hand { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; }
.kicker { font-family: var(--font-hand); color: var(--green); font-size: clamp(22px, 2.5vw, 28px); margin: 0 0 .25em; }
.lead { font-size: 19px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.small { font-size: 14px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; }
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section--soft { background: var(--paper-soft); }
.section-title { text-align: center; margin-bottom: var(--space-4); }
.section-title p { max-width: 640px; margin-inline: auto; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--mint); color: var(--mint-ink); line-height: 1.2;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--mint-deep); }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); color: var(--blue-ink); }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--paper-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--small { padding: 9px 16px; font-size: 14px; }

/* ---- header -------------------------------------------------------------- */
.site-header { background: var(--paper-soft); border-bottom: 1px solid var(--line); }
.brands { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 72px); padding: var(--space-3) 0 var(--space-2); }
.brands a { display: block; }
.brands img { height: clamp(64px, 10vw, 140px); width: auto; object-fit: contain; transition: transform .2s; }
.brands a:hover img { transform: translateY(-2px); }

.nav-bar { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-bottom: var(--space-3); }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(8px, 2vw, 22px); }
.site-nav a {
  display: inline-block; padding: 8px 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.site-nav a:hover { border-color: var(--ink-soft); }
.site-nav a[aria-current="page"] { border-color: var(--ink); }
.booking { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.booking__note { color: var(--notice); font-size: 15px; margin: 0; }

/* ---- sub navigation (Einfach Pferdezeit pages) --------------------------- */
.subnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.subnav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; }
.subnav a { display: inline-block; padding: 6px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-soft); background: var(--paper-soft); }
.subnav a:hover { color: var(--ink); background: var(--line); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-4); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); align-items: start; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--space-2); }
.footer-hand { font-family: var(--font-hand); color: var(--green); font-size: 24px; margin-top: var(--space-3); }
.footer-contact { font-size: 17px; line-height: 1.5; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links .btn { min-width: 220px; text-align: center; }

/* ---- hero (start page) --------------------------------------------------- */
.hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: center; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -1; }
.hero__card { background: rgba(255,255,255,.94); backdrop-filter: blur(4px); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); max-width: 640px; margin: var(--space-5) 0; box-shadow: var(--shadow); }
.hero__card .hand { font-size: clamp(34px, 4.5vw, 46px); margin-bottom: .4em; }

/* ---- photo banner (subpage heroes) --------------------------------------- */
.banner { position: relative; isolation: isolate; color: var(--ink); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.12); z-index: -1; }
.banner--tall::before { display: none; }
.banner .container { padding-block: var(--space-5); }
.panel { background: rgba(255,255,255,.92); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }

/* ---- offers: image + text rows ------------------------------------------- */
.intro { max-width: 720px; margin-bottom: var(--space-5); }
.offers { display: grid; gap: var(--space-5); }
.offer { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.offer__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-soft); }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__media--contain img { object-fit: contain; }
.offer__media--natural { aspect-ratio: auto; }
.offer h3 { margin-bottom: .6em; }
.facts { margin: 1.2em 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.facts li { display: contents; }
.facts b { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .02em; }

/* ---- cards --------------------------------------------------------------- */
.cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--6 { grid-template-columns: repeat(6, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-soft); }
.card__media--square { aspect-ratio: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-2) var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.card__body h3 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.card__body p { font-size: 15px; color: var(--ink-soft); margin: 0; hyphens: auto; }
.card__price { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); margin-top: auto; padding-top: 6px; }
.card__body .btn { margin-top: auto; align-self: center; }
.card--link { text-decoration: none; }

/* ---- team ---------------------------------------------------------------- */
.team { display: grid; gap: var(--space-4); }
.member { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.member__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: .1em; }
.member__meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 1em; }
.stars { list-style: none; padding: 0; margin: 0 0 1em; }
.stars li { padding-left: 1.5em; position: relative; margin-bottom: 4px; }
.stars li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--green); font-size: 14px; line-height: 1.8; }
.youth { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.youth figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.youth img { width: 100%; height: 100%; object-fit: cover; }
.youth figcaption { position: absolute; inset: auto 0 0; padding: 40px 12px 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; text-align: center; background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ---- horses -------------------------------------------------------------- */
.horses { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.horse { text-align: center; }
.horse__photo { width: min(100%, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto var(--space-2); box-shadow: 0 0 0 5px rgba(255,255,255,.85), var(--shadow); }
.horse__photo img { width: 100%; height: 100%; object-fit: cover; }
.horse__card { background: rgba(255,255,255,.92); border-radius: var(--radius); padding: 14px 10px; }
.horse h3 { font-size: 18px; margin-bottom: 2px; }
.horse p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

/* ---- accordion / FAQ ----------------------------------------------------- */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 14px 40px 14px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > *:not(summary) { padding-bottom: var(--space-2); }
.faq-group { background: rgba(255,255,255,.94); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-4); box-shadow: var(--shadow); }
.faq-group details { border-color: var(--line); }
.faq-group h2 { text-align: center; margin: var(--space-1) 0 var(--space-2); }
.accordion-inline summary { font-size: 15px; color: var(--ink-soft); padding-right: 32px; }
.accordion-inline { border: 0 !important; }
.accordion-inline summary::after { width: 7px; height: 7px; }

/* ---- price list images --------------------------------------------------- */
.pricelist { max-width: 560px; margin: var(--space-5) auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---- events (Termine) ---------------------------------------------------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.events li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2) var(--space-3); align-items: baseline; padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.events li:last-child { border-bottom: 1px solid var(--line); }
.events time { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.events .seats { color: var(--green); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.notice { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--red); background: rgba(214,58,47,.08); padding: 10px 18px; border-radius: 999px; }
.stand { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-soft); margin-left: .5em; }

/* ---- legal text ---------------------------------------------------------- */
.legal { font-size: 15px; line-height: 1.55; }
.legal h4 { margin-top: 1.6em; }
.legal p { margin-bottom: .8em; }

/* ---- info block with image (Hundebetreuung) ------------------------------ */
.info-block { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-4); align-items: start; }
.info-block img { border-radius: var(--radius-lg); }
.dogname { font-family: var(--font-head); font-weight: 700; margin-bottom: 0; }
.dogname--a { color: var(--red); }
.dogname--b { color: #1f9fc9; }

/* ---- small layout helpers ------------------------------------------------ */
.card__media--logo img { object-fit: contain; padding: 12%; }
.notice-row { margin: var(--space-4) 0; }
.section-heading { margin: 0 0 var(--space-4); }
.section-heading--spaced { margin: var(--space-5) 0 var(--space-4); }
.legal { margin-top: var(--space-4); }
.offer--reverse { grid-template-columns: 1fr minmax(240px, 460px); align-items: center; }
.banner--tall .container { padding-block: var(--space-6); }
.panel--right { max-width: 560px; margin-left: auto; }
@media (max-width: 820px) {
  .offer--reverse { grid-template-columns: 1fr; }
  .offer--reverse .offer__media { order: -1; }
  .panel--right { margin-left: 0; }
}

/* ---- badges -------------------------------------------------------------- */
.badges { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-3); }
.badges img { height: 110px; width: auto; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards--6 { grid-template-columns: repeat(3, 1fr); }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .horses { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-links { flex-direction: row; flex-wrap: wrap; }
  .offer, .member, .info-block { grid-template-columns: 1fr; }
  .offer__media { max-width: 420px; aspect-ratio: 4 / 3; }
  .member__photo { max-width: 320px; }
  .youth { grid-template-columns: repeat(3, 1fr); }
  .nav-bar { align-items: stretch; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; align-self: center; background: none; border: 2px solid var(--ink); border-radius: 999px;
    padding: 8px 16px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 2px; padding-block: var(--space-1); }
  .site-nav a { font-size: 18px; padding: 10px; }
  .brands { gap: 16px; }
  .brands img { height: clamp(58px, 15vw, 90px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards--6, .cards--5, .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--6 .card__body h3 { font-size: 15px; }
  .horses { grid-template-columns: repeat(2, 1fr); }
  .youth { grid-template-columns: repeat(2, 1fr); }
  .events li { grid-template-columns: 1fr; gap: 4px; }
  .hero { min-height: auto; }
  .hero__card { margin: var(--space-4) 0; }
  .badges img { height: 84px; }
  .footer-links .btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
