/* HOUSE 18 – ruhige, konsistente Überschriftenhierarchie */
:root{
  --h18-title-xl:clamp(3rem,5.7vw,6.25rem);
  --h18-title-lg:clamp(2.65rem,4.9vw,5.25rem);
  --h18-title-md:clamp(1.9rem,3.25vw,3.45rem);
  --h18-title-sm:clamp(1.35rem,2vw,2rem);
}

/* Inhaltsabstände: ein gemeinsamer Rhythmus ohne doppelte Leerflächen.
   section-intro ist auf Unterseiten eine Überschrift innerhalb eines bereits
   gepolsterten Abschnitts, auf der Startseite teils selbst ein Abschnitt. */
:root{
  --h18-section-space:clamp(2rem,3.2vw,3.5rem);
  --h18-heading-space:clamp(1.15rem,1.8vw,1.8rem);
}

.subpage .page-section,
main .offer-overview,
main .quick-facts,
main .opening-journey,
main .schedule,
main .team,
main .club,
main .membership,
main .events,
main .location,
main .training-icons,
main .customer-feedback,
main .home-updates,
main .waitlist,
main .countdown,
main .events-directory,
main .news-directory,
main .news-next{
  padding-block:var(--h18-section-space);
}

main .section-intro{
  padding-block:var(--h18-section-space);
}

.page-section .section-intro{
  padding-block:0;
}

/* Auch mit kurzen Abständen bleiben Sprungziele unter beiden Navigationsleisten sichtbar. */
.subpage .page-section{
  scroll-margin-top:13rem;
}

main .section-heading,
main .section-intro,
main .home-updates-head,
main .events-directory-head,
main .news-directory-head{
  margin-bottom:var(--h18-heading-space);
}

.subpage .feature-card{
  min-height:0;
  gap:1.35rem;
  padding:clamp(1.2rem,2vw,1.8rem);
}

.subpage .feature-card h3{
  margin-top:0;
}

.subpage .step{
  min-height:0;
  padding:1.4rem;
}

.subpage .step h3{
  margin-top:1.5rem;
}

.handbook-shell{
  padding-block:var(--h18-section-space);
}

.handbook-shell .chapter{
  padding:clamp(1.35rem,2.6vw,2.6rem);
}

.handbook-shell .handbook-end{
  min-height:0;
  padding:var(--h18-section-space);
}

@media(max-width:760px){
  :root{
    --h18-section-space:1.75rem;
    --h18-heading-space:1.15rem;
  }
  .subpage .page-section{
    scroll-margin-top:12rem;
  }
}

h1,h2,h3{
  text-wrap:balance;
}

/* Öffentliche Website: starke Einstiege, aber deutlich mehr Ruhe. */
.hero-copy h1,
.hero-copy h2{
  max-width:11ch;
  margin-bottom:1.15rem;
  font-size:var(--h18-title-xl);
  font-weight:690;
  line-height:.88;
  letter-spacing:-.06em;
}

.page-hero h1,
.page-hero-copy h1,
.events-page-hero h1,
.news-hero h1,
.signup-hero h1,
.handbook-hero h1{
  max-width:14ch;
  font-size:var(--h18-title-lg);
  font-weight:660;
  line-height:.9;
  letter-spacing:-.06em;
}

.intro-grid h2,
.section-heading h2,
.location h2,
.countdown h2,
.waitlist h2,
.page-copy h2,
.section-intro h2,
.events-directory-head h2,
.news-directory-head h2,
.signup-form h2,
.signup-summary h2,
.chapter header h2{
  max-width:20ch;
  font-size:var(--h18-title-md);
  font-weight:650;
  line-height:1;
  letter-spacing:-.045em;
}

.home-updates-head h2,
.training-icons-heading h2{
  max-width:15ch;
  font-size:clamp(2.1rem,3.8vw,4rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.event-row h2,
.contact-panel h2,
.split-link h2,
.founding-heading h2,
.news-cta h2,
.split-feature-copy h2{
  max-width:18ch;
  font-size:clamp(1.8rem,2.8vw,3rem);
  line-height:1;
  letter-spacing:-.045em;
}

.pillar h3,
.team-page-card h3,
.home-news-body h3,
.floor-detail h3,
.person-card h3{
  font-size:var(--h18-title-sm);
  line-height:1.08;
  letter-spacing:-.035em;
}

.eyebrow,
.page-hero .eyebrow,
.chapter header>p{
  margin-bottom:.85rem;
  font-size:.68rem;
  letter-spacing:.13em;
}

.section-heading,
.section-intro{
  gap:clamp(1.5rem,5vw,5rem);
  margin-bottom:clamp(1.9rem,3.2vw,3rem);
}

.chapter header{
  margin-bottom:2rem;
}

/* Club-Management: Seitentitel klar von Panel- und Kartentiteln trennen. */
.admin-topbar h1{
  font-size:1.4rem;
  line-height:1.1;
}

.view-head h2{
  margin-bottom:.45rem;
  font-size:clamp(1.5rem,2.2vw,2.15rem);
  font-weight:750;
  line-height:1.08;
  letter-spacing:-.04em;
}

.panel-head h3,
.training-panel>header h3,
.team-section-head h3,
.trainer-overview-panel>header h3{
  font-size:clamp(.9rem,1.25vw,1.15rem);
  line-height:1.2;
  letter-spacing:-.015em;
}

.admin-dialog h2,
.training-dialog h3{
  font-size:1.25rem;
  line-height:1.15;
  letter-spacing:-.025em;
}

.metric strong,
.training-metric strong{
  font-size:2.1rem;
  letter-spacing:-.055em;
}

/* Mitgliederportal: gleiche Abstufung wie im Club-Management. */
.portal-main header h1,
.portal-header-title h1{
  font-size:1.4rem;
  line-height:1.08;
}

.portal-section-head h2{
  font-size:clamp(1.65rem,2.6vw,2.65rem);
  font-weight:750;
  line-height:1.02;
  letter-spacing:-.045em;
}

.welcome-copy h2,
.member-hero-copy h2{
  max-width:15ch;
  font-size:clamp(2.15rem,3.8vw,3.85rem);
  line-height:.94;
  letter-spacing:-.055em;
}

.membership-hero h2,
.activity-overview>header h2,
.membership-payment h3{
  font-size:clamp(1.55rem,2.35vw,2.35rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.login-visual-copy>h1,
.login-visual h1{
  max-width:10ch;
  font-size:clamp(3.1rem,5.7vw,6.1rem);
  line-height:.86;
  letter-spacing:-.06em;
}

.login-intro h2,
.login-panel h2{
  font-size:clamp(1.9rem,3vw,2.8rem);
  line-height:1;
  letter-spacing:-.045em;
}

@media(max-width:760px){
  :root{
    --h18-title-xl:clamp(2.45rem,10.5vw,4rem);
    --h18-title-lg:clamp(2.3rem,10vw,3.75rem);
    --h18-title-md:clamp(1.75rem,7.8vw,2.7rem);
    --h18-title-sm:clamp(1.25rem,5.2vw,1.75rem);
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .page-hero-copy h1,
  .events-page-hero h1,
  .news-hero h1,
  .signup-hero h1,
  .handbook-hero h1{
    max-width:13ch;
    line-height:.92;
  }

  .home-updates-head h2,
  .training-icons-heading h2{
    font-size:clamp(1.9rem,8.5vw,2.85rem);
  }

  .team-section .section-intro h2,
  .chapter header h2{
    font-size:var(--h18-title-md);
  }

  .section-heading,
  .section-intro{
    gap:1rem;
    margin-bottom:1.8rem;
  }

  .view-head h2,
  .portal-section-head h2{
    font-size:1.75rem;
  }

  .welcome-copy h2,
  .member-hero-copy h2{
    font-size:clamp(2rem,9vw,3rem);
  }

  .login-visual-copy>h1,
  .login-visual h1{
    font-size:clamp(2.65rem,12vw,4rem);
  }

  .login-intro h2,
  .login-panel h2{
    font-size:2.1rem;
  }
}

/* Einheitliche Galeriebedienung für News, Recovery, Club und Startseite. */
:root{--h18-gallery-arrow-size:3.35rem;--h18-gallery-inset:1rem}
body :is(.story-slider-controls button,.recovery-gallery-arrow,.club-gallery-arrow,.hero-controls button){
  position:absolute;z-index:3;top:50%;bottom:auto;display:grid;
  width:var(--h18-gallery-arrow-size);height:var(--h18-gallery-arrow-size);
  min-height:0;padding:0;place-items:center;border:1px solid rgba(255,255,255,.55);
  border-radius:0;background:#110f0d;color:#fff;box-shadow:none;
  font-family:Inter,Arial,sans-serif;font-size:2rem;font-weight:400;line-height:1;
  transform:translateY(-50%);cursor:pointer;pointer-events:auto;
  transition:background-color .18s ease,border-color .18s ease;
}
body :is(.story-slider-controls button,.recovery-gallery-arrow,.club-gallery-arrow,.hero-controls button):is(:hover,:focus-visible){
  background:#b86f4d;border-color:#b86f4d;color:#fff;outline:0;
}
body :is(.story-slider-controls button,.recovery-gallery-arrow,.club-gallery-arrow,.hero-controls button):focus-visible{outline:2px solid #fff;outline-offset:2px}
body :is(.story-slider-controls button,.recovery-gallery-arrow,.club-gallery-arrow,.hero-controls button)[hidden]{display:none}
body :is(.story-slider-controls button>span){font:inherit;line-height:inherit;transform:none}
body :is(.story-slider-controls button:first-child,.recovery-gallery-previous,.club-gallery-arrow--previous,.hero-controls [data-slide-prev]){left:var(--h18-gallery-inset);right:auto}
body :is(.story-slider-controls button:last-child,.recovery-gallery-next,.club-gallery-arrow--next,.hero-controls [data-slide-next]){right:var(--h18-gallery-inset);left:auto}
body :is(.story-slider-controls>span,.recovery-gallery-counter,.club-gallery-count,.hero-controls p){
  position:absolute;z-index:3;top:auto;bottom:var(--h18-gallery-inset);left:50%;right:auto;
  display:flex;align-items:center;justify-content:center;gap:.3rem;min-width:4.5rem;
  margin:0;padding:.45rem .75rem;transform:translateX(-50%);
  background:#110f0d;color:#fff;font-family:Inter,Arial,sans-serif;
  font-size:.72rem;font-weight:760;line-height:1.3;letter-spacing:.08em;pointer-events:none;
}
body :is(.club-gallery-count,.hero-controls p)>:is(b,strong,span){font:inherit;color:inherit}
body .club-gallery-stage figcaption{bottom:4.5rem;padding-right:0}
body .hero>.hero-controls{position:absolute;inset:0;width:auto;height:auto;margin:0;display:block;transform:none;pointer-events:none}
body .hero-controls .hero-progress{display:none}
body .hero-controls[hidden]{display:none}
@media(max-width:760px){:root{--h18-gallery-arrow-size:3rem;--h18-gallery-inset:.75rem}}
@media(prefers-reduced-motion:reduce){body :is(.story-slider-controls button,.recovery-gallery-arrow,.club-gallery-arrow,.hero-controls button){transition:none}}

/* Anklickbare Schaltflächen zeigen überall den Handzeiger. */
body :is(button,[role="button"],.button,.btn):not(:disabled):not([aria-disabled="true"]),
body input:is([type="button"],[type="submit"],[type="reset"]):not(:disabled):not([aria-disabled="true"]){cursor:pointer}
body :is(button,[role="button"],.button,.btn):not(:disabled):not([aria-disabled="true"]) *{cursor:inherit}

/* Terrakotta für Textlinks, Schwarz für Menü-Kacheln. */
body :is(.text-link,.pillar>a,.main-nav>a,.header-direct>a,.utility-link,.course-grid a,.team-email,.contact-panel address a,.footer-main nav a,.footer-bottom nav a,.nav-dropdown-lead .nav-dropdown-overview):is(:hover,:focus-visible){
  color:#b86f4d;border-bottom-color:currentColor;
}
body .nav-dropdown-grid>a{
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
body .nav-dropdown-grid>a:is(:hover,:focus-visible){
  background:#110f0d;color:#fff;border-color:#110f0d!important;
}
body .nav-dropdown-grid>a:is(:hover,:focus-visible) :is(strong,small,.nav-dropdown-icon){color:#fff}
body .nav-dropdown-grid>a:is(:hover,:focus-visible) .nav-dropdown-icon{
  border-color:rgba(255,255,255,.55);background:transparent;
}

/* Gemeinsame öffentliche Überschriften: Referenz ist die 10er-Karte.
   Verwaltungsoberflächen und Dialoge behalten ihre kompakte Bedienhierarchie. */
body:is(.home-page,.subpage,.handbook-page){
 --website-h1:clamp(2.65rem,4.9vw,5.25rem);
 --website-h2:clamp(1.9rem,3.25vw,3.45rem);
 --website-h3:clamp(1.35rem,2vw,2rem);
 --website-h4:clamp(1.05rem,1.4vw,1.35rem);
}
body:is(.home-page,.subpage,.handbook-page) main :is(h1,h2,h3,h4):not(:where(dialog *,[role=dialog] *)){
 font-family:Inter,Arial,sans-serif!important;font-weight:650!important;
 text-wrap:balance;overflow-wrap:break-word;
}
body:is(.home-page,.subpage,.handbook-page) main h1:not(:where(dialog *,[role=dialog] *)),
body.home-page main .hero-copy h2{
 margin:0;font-size:var(--website-h1)!important;line-height:.95!important;letter-spacing:-.055em!important;
}
body:is(.home-page,.subpage,.handbook-page) main h2:not(:where(dialog *,[role=dialog] *,.hero-copy h2)){
 margin:0;font-size:var(--website-h2)!important;line-height:1!important;letter-spacing:-.045em!important;
}
body:is(.home-page,.subpage,.handbook-page) main h3:not(:where(dialog *,[role=dialog] *)){
 margin:0 0 .75rem;font-size:var(--website-h3)!important;line-height:1.12!important;letter-spacing:-.03em!important;
}
body:is(.home-page,.subpage,.handbook-page) main h4:not(:where(dialog *,[role=dialog] *)){
 margin:0 0 .6rem;font-size:var(--website-h4)!important;line-height:1.2!important;letter-spacing:-.015em!important;
}
body:is(.home-page,.subpage,.handbook-page) main .eyebrow:not(:where(dialog *,[role=dialog] *)){
 display:inline-flex;align-items:center;width:fit-content;max-width:100%;box-sizing:border-box;
 margin:0 0 1rem!important;padding:0!important;
 border:0!important;border-radius:0;
 background:transparent!important;color:var(--clay,#b86f4d)!important;
 font-family:Inter,Arial,sans-serif!important;font-size:.75rem!important;font-weight:820!important;
 line-height:1.55!important;letter-spacing:.11em!important;text-transform:uppercase;
}
body:is(.home-page,.subpage,.handbook-page) main :is(.hero,.page-hero,.events-page-hero,.news-hero,.handbook-hero,.page-section--moss,.page-section--dark,.page-section--taupe,.section-heading.light,.split-feature-copy) .eyebrow:not(:where(dialog *,[role=dialog] *)){
 background:transparent!important;color:var(--clay,#b86f4d)!important;
}
@media(max-width:760px){
 body:is(.home-page,.subpage,.handbook-page){
  --website-h1:clamp(2.3rem,10vw,3.75rem);
  --website-h2:clamp(1.75rem,7.8vw,2.7rem);
  --website-h3:clamp(1.25rem,5.2vw,1.75rem);
  --website-h4:clamp(1rem,4.2vw,1.2rem);
 }
 body:is(.home-page,.subpage,.handbook-page) main .eyebrow:not(:where(dialog *,[role=dialog] *)){font-size:.7rem!important;padding:0!important}
}
