/* CASA PILATES – Stylesheet
   Farben und Schrift aus dem Corporate-Design-Manual. Montserrat für alles, Logo nur als SVG. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso: #2C2219;
  --terra: #803010;
  --terra-deep: #6B270C;
  --off: #F5F1EC;
  --sand: #E9E1D7;
  --sage: #9FA86F;
  --olive: #495318;
  --line: rgba(233, 225, 215, .22);
  --muted: rgba(233, 225, 215, .78);
  --gutter: 20px;
  --sec: 72px;
  --head: 64px;
}
@media (min-width: 900px) {
  :root { --gutter: 48px; --sec: 128px; --head: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--terra);
  color: var(--sand);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--sand); color: var(--terra); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* Typografie */
h1, h2, h3 { margin: 0; font-weight: 500; text-transform: uppercase; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 7.4vw, 68px); letter-spacing: .06em; }
h2 { font-size: clamp(24px, 5.2vw, 44px); letter-spacing: .07em; }
h3 { font-size: clamp(17px, 2.4vw, 21px); letter-spacing: .12em; line-height: 1.35; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; max-width: 46ch; }
.muted { color: var(--muted); }
.num { font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  background: var(--sand); color: var(--terra);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--sand); border-radius: 0; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--off); border-color: var(--off); }
.btn--ghost { background: transparent; color: var(--sand); border-color: rgba(233, 225, 215, .6); }
.btn--ghost:hover { background: var(--sand); color: var(--terra); border-color: var(--sand); }
.btn { white-space: nowrap; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 11px; letter-spacing: .18em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link:hover { color: var(--off); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  display: flex; align-items: center;
  background: linear-gradient(rgba(44, 34, 25, .55), rgba(44, 34, 25, 0));
  transition: background-color .3s ease;
}
.header.is-solid, .nav-open .header { background: var(--espresso); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 148px; }
@media (min-width: 900px) { .logo img { width: 190px; } }
.header__right { display: flex; align-items: center; gap: 10px; }
.nav { display: none; }
.burger {
  width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--sand); cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--head) 0 0 0; z-index: 49; background: var(--espresso);
  padding: 32px var(--gutter) 40px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.nav-open .menu { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.menu a.menu__link { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.menu__meta { font-size: 14px; color: var(--muted); }
.menu__meta a { text-decoration: none; }

@media (min-width: 1000px) {
  .burger, .menu { display: none; }
  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sand); }
  .header__right { gap: 30px; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--espresso); overflow: hidden; }
.hero--page { min-height: 62svh; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44, 34, 25, .35) 0%, rgba(44, 34, 25, .05) 35%, rgba(44, 34, 25, .78) 100%); }
.hero__body { position: relative; width: 100%; padding-block: calc(var(--head) + 40px) 48px; }
@media (min-width: 900px) { .hero__body { padding-bottom: 88px; } }
.hero h1 { max-width: 14ch; }
@media (min-width: 900px) { .hero h1 { max-width: 22ch; } .hero__media::after { background: linear-gradient(180deg, rgba(44, 34, 25, .35) 0%, rgba(44, 34, 25, .05) 30%, rgba(44, 34, 25, .85) 100%); } }
.hero .lead { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: drift 24s ease-out both; }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* Sektionen */
.sec { padding-block: var(--sec); }
.sec--espresso { background: var(--espresso); }
.sec--terra { background: var(--terra); }
.sec__head { margin-bottom: 44px; max-width: 760px; }
@media (min-width: 900px) { .sec__head { margin-bottom: 72px; } }
.sec__head p { margin-top: 20px; }

/* Schnellzugriff */
.quick { background: var(--espresso); border-bottom: 1px solid var(--line); }
.quick__grid { display: grid; }
.quick a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; text-decoration: none; border-top: 1px solid var(--line); }
.quick a:first-child { border-top: 0; }
.quick strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.quick span span { display: block; font-size: 14px; color: var(--muted); }
.arrow { flex: none; width: 22px; height: 22px; transition: transform .25s ease; }
a:hover > .arrow { transform: translateX(4px); }
@media (min-width: 900px) {
  .quick__grid { grid-template-columns: repeat(3, 1fr); }
  .quick a { padding: 30px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .quick a:first-child { border-left: 0; padding-left: 0; }
  .quick a:last-child { padding-right: 0; }
}

/* Raster */
.grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 56px 72px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 56px 40px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
.item { border-top: 1px solid var(--line); padding-top: 22px; }
.item h3 { margin: 12px 0 12px; }
.item p { color: var(--muted); font-size: 15px; }

/* Bildband */
.band img { width: 100%; height: 56svh; min-height: 320px; max-height: 720px; object-fit: cover; }

/* Bild + Text */
.split { display: grid; gap: 36px; align-items: center; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split--flip .split__img { order: 2; }
}
.split__txt h2 { margin-bottom: 24px; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 500; }

/* Classes – Liste (Startseite) */
.clist { border-top: 1px solid var(--line); }
.clist a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.clist h3 { grid-column: 1; }
.clist .meta { grid-column: 1; }
.clist .arrow { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 900px) {
  .clist a { grid-template-columns: 1.2fr 1fr auto; padding: 28px 0; }
  .clist .meta { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .clist .arrow { grid-column: 3; grid-row: 1; margin-left: 32px; }
}

/* Level + Dauer */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 9px; }
.meta svg { width: 16px; height: 16px; flex: none; }
.lvl { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.lvl i { display: block; width: 4px; background: rgba(233, 225, 215, .3); }
.lvl i:nth-child(1) { height: 6px; } .lvl i:nth-child(2) { height: 10px; } .lvl i:nth-child(3) { height: 14px; }
.lvl[data-l="1"] i:nth-child(-n+1), .lvl[data-l="2"] i:nth-child(-n+2), .lvl[data-l="3"] i { background: var(--sand); }
/* Alle Niveaus: drei gleich hohe Balken statt einer Treppe – bewusst anders als „Advanced“ */
.lvl[data-l="all"] { align-items: center; }
.lvl[data-l="all"] i { height: 8px !important; background: var(--sand); }

/* Classes – Detail */
.class { display: grid; gap: 28px; padding-block: 48px; border-top: 1px solid var(--line); }
.class:last-child { border-bottom: 1px solid var(--line); }
.class h2 { font-size: clamp(24px, 4.4vw, 36px); margin-bottom: 16px; }
.class__claim { font-size: 17px; font-weight: 500; color: var(--sand); }
.class__body p { color: var(--muted); }
.class__note { margin-top: 20px; font-size: 14px; }
@media (min-width: 900px) {
  .class { grid-template-columns: 5fr 7fr; gap: 72px; padding-block: 72px; }
}

/* Preise */
.prices { display: grid; gap: 20px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.price { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 32px 26px; }
@media (min-width: 900px) { .price { padding: 44px 36px; } }
.price__amt { margin: 22px 0 6px; font-size: clamp(44px, 7vw, 60px); font-weight: 500; line-height: 1; letter-spacing: .02em; }
.price__amt small { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.price__next { margin: 22px 0 0; padding: 12px 14px; border: 1px solid rgba(233, 225, 215, .55); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.price ul { margin: 14px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.price li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price .btn { width: 100%; }

/* Polaroid */
.polaroids { display: grid; gap: 40px; justify-items: center; }
@media (min-width: 700px) { .polaroids { grid-template-columns: repeat(2, 1fr); gap: 56px; max-width: 760px; } }
.polaroid { width: min(100%, 320px); margin: 0; background: var(--off); color: var(--espresso); padding: 14px 14px 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(1.6deg); }
.polaroid__img { aspect-ratio: 1 / 1; background: var(--terra); display: grid; place-items: center; overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) contrast(1.06) saturate(.92); }
.polaroid__img img.ph { width: 34%; height: auto; object-fit: contain; filter: none; opacity: .9; }
.polaroid figcaption { padding-top: 16px; text-align: center; }
.polaroid figcaption strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.polaroid figcaption span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Fließtext */
.prose h2 { font-size: clamp(20px, 3.4vw, 28px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose h1, .prose h2 { overflow-wrap: break-word; hyphens: auto; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1em; }
.prose a { color: var(--sand); }
.prose strong { color: var(--sand); font-weight: 600; }
.quote { font-size: clamp(22px, 4vw, 34px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }

/* Policies */
.rules { border-top: 1px solid var(--line); }
.rule { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rule p { color: var(--muted); }
@media (min-width: 900px) { .rule { grid-template-columns: 80px 1fr 1.6fr; gap: 32px; padding: 34px 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }
.faq__group { margin: 56px 0 16px; }
.faq__group:first-child { margin-top: 0; }

/* Buchung */
.bookbox { border: 1px solid var(--line); padding: 40px 24px; text-align: center; }
.bookbox p { max-width: 48ch; margin-inline: auto; color: var(--muted); }

.bookwidget { background: var(--off); color: var(--espresso); padding: 12px; min-height: 420px; }
@media (min-width: 900px) { .bookwidget { padding: 28px; } }

/* bsport-Buchungsdialog: Seite dahinter festhalten, Dialog über die ganze Höhe */
html.bs-open, html.bs-open body { overflow: hidden !important; overscroll-behavior: none; }
html.bs-open body { position: fixed; left: 0; right: 0; width: 100%; }
html.bs-open .header { display: none; }
.bsport-user-interaction-modal__container { height: 100dvh !important; overscroll-behavior: contain; }

.notice { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line); font-weight: 500; }
.cta__more { font-size: 14px; }
.cta__more a { color: var(--sand); }

/* CTA */
.cta { text-align: center; }
.cta img.mark { width: 54px; margin: 0 auto 28px; }
.cta p { max-width: 46ch; margin: 20px auto 0; color: var(--muted); }
.cta .btn-row { justify-content: center; }

/* Footer */
.footer { background: var(--espresso); padding-block: 64px 40px; font-size: 14px; }
.footer__grid { display: grid; gap: 40px; }
.footer__logo { width: 170px; margin-bottom: 20px; }
.footer h4 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer li { padding: 4px 0; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; } }

/* Dezente Einblendung */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
