/* BERGSPORT JA V4.6.0 · Navigation, Slider, Unterseiten und Logo-Politur */
:root{--v46-radius:10px;--v46-panel:#f8f5ed;--v46-ease:cubic-bezier(.22,1,.36,1)}

/* Automatic hero image rotation */
.hero-slider{position:absolute;inset:0;overflow:hidden;background:#10110f}
.hero-slide{position:absolute!important;inset:0;opacity:0;visibility:hidden;transition:opacity 1.15s ease,visibility 1.15s ease;z-index:0;margin:0}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--slide-position,center center);transform:scale(1.025);will-change:opacity,transform}
.hero-slide.is-active img{animation:v46HeroDrift 8s ease-out both}
@keyframes v46HeroDrift{from{transform:scale(1.055)}to{transform:scale(1.015)}}
.hero-slider__controls{position:absolute;z-index:8;right:max(28px,calc((100vw - min(1320px,calc(100vw - 48px)))/2));top:26px;bottom:auto;display:flex;align-items:center;gap:9px;padding:8px 10px;background:rgba(11,12,10,.48);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(12px)}
.hero-slider__dot{width:28px;height:28px;border:0;background:transparent;display:grid;place-items:center;padding:0;color:#fff}
.hero-slider__dot:before{content:"";width:7px;height:7px;border:1px solid rgba(255,255,255,.75);border-radius:50%;transition:.25s}
.hero-slider__dot.is-active:before{width:22px;border-radius:999px;background:var(--gold);border-color:var(--gold)}
.hero-slider__toggle{border:0;border-left:1px solid rgba(255,255,255,.24);background:transparent;color:#fff;min-height:28px;padding:0 4px 0 12px;font-size:.7rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.hero-slider__toggle:hover,.hero-slider__toggle:focus-visible,.hero-slider__dot:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px}

/* Better image framing */
.team-visuals figure:first-child img{object-position:center 40%}
.team-visuals figure:last-child .team-visuals__small:first-child img{object-position:center 42%}
.team-visuals figure:last-child .team-visuals__small:last-child img{object-position:center 44%}
.page-hero__media img{object-position:var(--page-image-position,center center)!important;transform:scale(1.005)}
.page-hero--ski{--page-image-position:center 42%}.page-hero--nordic{--page-image-position:center 45%}.page-hero--snowboard{--page-image-position:center 40%}.page-hero--kids{--page-image-position:center 39%}.page-hero--groups{--page-image-position:center 43%}.page-hero--rental{--page-image-position:center 45%}.page-hero--racing{--page-image-position:center 35%}.page-hero--carriage{--page-image-position:center 54%}.page-hero--inquiry{--page-image-position:center 40%}.page-hero--hours{--page-image-position:center 52%}
.editorial-split__media img{object-position:var(--media-position,center center)}
.editorial-split__media{aspect-ratio:4/3;min-height:0}
.gallery-pair figure img,.feature-image img{object-fit:cover;object-position:center center}

/* Harmonised logos on subpages and footer */
.brand-duo{min-width:390px!important;max-width:460px!important;gap:13px!important}
.brand-duo__bergsport{width:216px!important;height:54px!important;object-fit:contain!important}
.brand-duo__dornach{width:198px!important;height:58px!important;object-fit:contain!important;background:#fff!important}
.mobile-menu__brand{display:grid;grid-template-columns:1fr;gap:8px;max-width:235px}
.mobile-menu__brand img{object-fit:contain;height:auto!important;background:transparent!important}.mobile-menu__brand img:last-child{background:#fff!important}
.footer-logo-panel{width:min(340px,100%);display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,.98fr);align-items:center;gap:13px;padding:16px 17px;background:#fff;border:1px solid rgba(165,138,79,.32);box-shadow:0 16px 42px rgba(0,0,0,.16)}
.footer-logo-panel>span{height:42px;background:#d9c79e}
.footer-logo-panel img{display:block!important;width:100%!important;height:58px!important;object-fit:contain!important;filter:none!important;opacity:1!important;background:transparent!important;padding:0!important;margin:0!important}
.footer-logo-panel img:last-child{height:62px!important}
.footer__brand .footer-claim{display:block;color:var(--gold-light);font:italic 1.08rem/1.4 Georgia,serif;margin-top:8px}
.footer__brand>span{display:none}
.footer__grid{grid-template-columns:1.3fr 1fr 1fr 1fr!important}

/* Information pages */
.info-band{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.info-band__grid{display:grid;grid-template-columns:repeat(3,1fr)}
.info-band article{padding:30px 32px;border-right:1px solid var(--line)}.info-band article:last-child{border-right:0}
.info-band small{display:block;color:var(--gold-deep);font-size:.67rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:9px}
.info-band strong{font:400 1.45rem/1.1 Georgia,serif}.info-band p{color:var(--stone);font-size:.88rem;margin:9px 0 0}
.detail-list{display:grid;gap:12px;margin:26px 0 0;padding:0;list-style:none}.detail-list li{position:relative;padding:13px 16px 13px 38px;background:#fff;border:1px solid var(--line);color:#403f38}.detail-list li:before{content:"✓";position:absolute;left:15px;color:var(--gold-deep);font-weight:900}
.info-cards{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.info-card{min-height:270px;padding:36px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.7)}
.info-card span{display:block;color:var(--gold-deep);font-size:.67rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:26px}.info-card p{color:var(--stone);margin:0}.info-card a{display:inline-block;margin-top:20px;color:var(--gold-deep);font-weight:850}
.page-note{padding:24px 26px;border-left:3px solid var(--gold);background:var(--gold-pale);color:#403f38}.page-note strong{display:block;margin-bottom:6px}.page-note p{margin:0;color:var(--stone)}
.process-grid--three{grid-template-columns:repeat(3,1fr)!important}
.service-links{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.service-links a{display:flex;justify-content:space-between;gap:20px;padding:20px 22px;border:1px solid var(--line);background:#fff;font-weight:800}.service-links a span{color:var(--gold-deep)}
.hours-page-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:34px;align-items:start}
.hours-page-grid .opening-card{padding:36px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.hours-page-grid .opening-card strong{display:block;font:400 2.25rem/1.05 Georgia,serif;margin-bottom:14px}.hours-page-grid .opening-card p{color:var(--stone)}.hours-page-grid .opening-card small{display:block;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);color:var(--gold-deep);font-weight:750}
.contact-mini{padding:34px;background:var(--black);color:#fff}.contact-mini h3{color:#fff}.contact-mini p{color:rgba(255,255,255,.63)}.contact-mini a:not(.button){display:block;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.14);color:#fff;font-weight:750}
.nav-group.is-current>.nav-trigger{color:var(--gold-deep)}

@media(max-width:1320px){.brand-duo{min-width:360px!important;max-width:410px!important}.brand-duo__bergsport{width:190px!important}.brand-duo__dornach{width:174px!important}}
@media(max-width:980px){.hero-slider__controls{right:24px;top:20px;bottom:auto}.info-band__grid,.info-cards{grid-template-columns:1fr 1fr}.info-band article:nth-child(2){border-right:0}.info-band article:nth-child(3){grid-column:1/-1;border-top:1px solid var(--line)}.hours-page-grid{grid-template-columns:1fr}.footer__grid{grid-template-columns:1fr 1fr!important}.footer__brand{grid-column:1/-1}}
@media(max-width:760px){.hero-slide img{object-position:var(--slide-position-mobile,var(--slide-position,center center))}.hero-slider__controls{left:auto;right:14px;top:14px;bottom:auto}.hero-slider__toggle{font-size:0}.hero-slider__toggle:after{content:attr(aria-label);font-size:.65rem}.info-band__grid,.info-cards,.service-links{grid-template-columns:1fr}.info-band article,.info-band article:nth-child(2){border-right:0;border-bottom:1px solid var(--line)}.info-band article:nth-child(3){grid-column:auto;border-top:0}.process-grid--three{grid-template-columns:1fr!important}.footer__grid{grid-template-columns:1fr!important}.footer__brand{grid-column:auto}.footer-logo-panel{width:min(320px,100%)}.brand-duo{min-width:0!important;max-width:calc(100vw - 88px)!important}.brand-duo__bergsport{width:145px!important;height:38px!important}.brand-duo__dornach{width:132px!important;height:40px!important}.editorial-split__media{aspect-ratio:1/1}}
@media(max-width:480px){.hero-slider__controls{top:12px;gap:4px;padding:6px}.hero-slider__dot{width:24px}.hero-slider__dot.is-active:before{width:17px}.footer-logo-panel{grid-template-columns:1fr;gap:8px}.footer-logo-panel>span{width:100%;height:1px}.footer-logo-panel img{height:46px!important}.footer-logo-panel img:last-child{height:50px!important}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}.hero-slide.is-active img{animation:none}}


/* V4.6.2 Rennsport-Video */
.rennsport__image video{display:block;width:100%;height:100%;object-fit:cover;object-position:center 52%;background:#0b0c0a}
.rennsport__image figcaption{display:grid;grid-template-columns:1fr auto;align-items:end;gap:16px}
.rennsport__image figcaption>span{grid-column:1}
.rennsport__video-toggle{grid-column:2;grid-row:1 / span 2;align-self:end;appearance:none;border:1px solid rgba(255,255,255,.55);background:rgba(10,11,9,.72);color:#fff;padding:10px 13px;font:800 .69rem/1 Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;backdrop-filter:blur(8px)}
.rennsport__video-toggle:hover,.rennsport__video-toggle:focus-visible{background:#fff;color:#171714;outline:3px solid rgba(217,199,158,.5);outline-offset:2px}
.rennsport__image.is-video-paused video{filter:saturate(.9) brightness(.88)}
@media(max-width:760px){.rennsport__image video{object-position:center 48%}.rennsport__image figcaption{left:18px;right:18px;bottom:18px}.rennsport__video-toggle{padding:9px 10px;font-size:.62rem}}
@media(prefers-reduced-motion:reduce){.rennsport__image video{animation:none!important}}


/* V4.8.2 · sichtbare Feinfixes */

/* Mobile Footer: Marken mittig und sauber untereinander */
@media(max-width:760px){
  .footer .footer__brand{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}
  .footer .footer-logo-panel{width:min(330px,100%)!important;margin-inline:auto!important;display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;align-items:center!important;gap:10px!important;padding:18px 16px!important}
  .footer .footer-logo-panel>span{width:min(250px,82%)!important;height:1px!important;margin:1px auto!important}
  .footer .footer-logo-panel>img:first-child,.footer .footer-logo-panel>a{width:min(250px,100%)!important;max-width:100%!important;margin-inline:auto!important;justify-self:center!important}
  .footer .footer-logo-panel img{width:100%!important;max-width:250px!important;height:auto!important;max-height:62px!important;margin-inline:auto!important;object-position:center!important}
  .footer .footer__brand p{margin-left:auto!important;margin-right:auto!important;text-align:center!important}
  .footer .footer-claim{text-align:center!important}
  .site-footer .footer-brand{text-align:center!important}
  .site-footer .footer-brand img{display:block!important;width:min(260px,82vw)!important;max-height:68px!important;margin:0 auto!important;object-position:center!important}
  .site-footer .footer-brand p{margin-left:auto!important;margin-right:auto!important}
}

/* Rechtseiten: Duo-Header + echter Burger */
.legal-site-header .site-header__inner{grid-template-columns:minmax(330px,430px) 1fr auto!important}
.legal-brand-duo{display:flex;align-items:center;gap:12px;min-width:0}
.legal-brand-duo>a{display:flex;align-items:center;line-height:0;min-width:0}
.legal-brand-duo>a:first-child img{display:block;width:205px;max-height:54px;object-fit:contain}
.legal-brand-duo>a:last-child img{display:block;width:185px;max-height:52px;object-fit:contain;background:transparent!important}
.legal-brand-duo>span{width:1px;height:34px;flex:0 0 1px;background:#dfdbd0}
.legal-menu-toggle{font-size:0!important;width:48px!important;height:48px!important;padding:0!important;border-radius:0!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:7px!important}
.legal-menu-toggle span{display:block;width:22px;height:1.5px;background:#171714}

@media(max-width:1180px){
  .legal-site-header .site-header__inner{grid-template-columns:minmax(300px,400px) 1fr auto!important}
  .legal-site-header .site-nav{display:none!important;position:absolute!important;left:18px!important;right:18px!important;top:calc(100% + 8px)!important;z-index:120!important;background:#fff!important;border:1px solid #dfdbd0!important;border-radius:16px!important;padding:10px 18px!important;box-shadow:0 22px 60px rgba(20,18,13,.16)!important}
  .legal-site-header .site-nav.is-open{display:grid!important}
  .legal-site-header .menu-toggle{display:flex!important}
}
@media(max-width:760px){
  .legal-site-header .site-header__inner{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;padding:10px 14px!important;min-height:72px!important}
  .legal-brand-duo{gap:7px!important;max-width:calc(100vw - 82px)!important}
  .legal-brand-duo>a:first-child img{width:min(128px,36vw)!important;height:auto!important}
  .legal-brand-duo>a:last-child img{width:min(116px,33vw)!important;height:auto!important}
  .legal-brand-duo>span{height:27px!important}
  .legal-site-header .site-nav{left:12px!important;right:12px!important;top:calc(100% + 6px)!important;max-height:calc(100dvh - 120px)!important;overflow:auto!important}
  .legal-site-header .site-nav a{font-size:15px!important;padding:13px 4px!important}
}

/* Leistungen-Slider: aktive Karte klappt sichtbar auf */
.image-story--leistungen .moment-card{border-radius:16px!important;border:1px solid rgba(255,255,255,.10)!important}
.image-story--leistungen .moment-card:after{background:linear-gradient(0deg,rgba(5,6,5,.92) 0%,rgba(5,6,5,.48) 35%,rgba(5,6,5,.05) 70%)!important}
.image-story--leistungen .moment-card__meta{left:20px!important;right:20px!important;bottom:20px!important}
.image-story--leistungen .moment-card__meta strong{max-width:28ch}
.image-story--leistungen .moment-card.is-current{border-color:rgba(201,167,95,.74)!important}
.image-story--leistungen .moment-card.is-current:before{content:"";position:absolute;z-index:3;left:20px;right:20px;top:18px;height:2px;background:linear-gradient(90deg,#c9a75f,rgba(201,167,95,.10));pointer-events:none}

@media(min-width:900px){
  .image-story--leistungen .moment-track{display:flex!important;grid-auto-flow:unset!important;grid-auto-columns:unset!important;align-items:stretch!important;gap:14px!important;overflow-x:auto!important;padding:12px 3px 22px!important;scroll-padding-inline:3px}
  .image-story--leistungen .moment-card{flex:0 0 clamp(180px,16vw,245px)!important;min-height:500px!important;transition:flex-basis .62s cubic-bezier(.22,1,.36,1),transform .58s cubic-bezier(.22,1,.36,1),opacity .45s ease,filter .45s ease,box-shadow .45s ease!important}
  .image-story--leistungen .moment-track.is-ready .moment-card.is-current{flex-basis:clamp(390px,31vw,520px)!important;transform:translateY(-5px)!important;box-shadow:0 28px 70px rgba(0,0,0,.32)!important}
  .image-story--leistungen .moment-card:not(.is-current) .moment-card__meta strong{font-size:1.05rem!important}
  .image-story--leistungen .moment-card.is-current .moment-card__meta strong{font-size:1.55rem!important;line-height:1.08!important}
}
@media(max-width:899px){.image-story--leistungen .moment-card{border-radius:14px!important}}
@media(prefers-reduced-motion:reduce){.image-story--leistungen .moment-card{transition:none!important}}


/* ============================================================
   V4.8.2.3 · Leistungen-Slider
   - gewünschte V4.8.2 Aufklapp-Animation bleibt bestehen
   - Nummerierung wird vollständig ausgeblendet
   ============================================================ */
.image-story--leistungen .moment-count,
.image-story--leistungen [data-moment-count]{
  display:none!important;
}


/* ============================================================
   V4.8.2.5 · Slider-Randfix
   Während die aktive Karte ihre Breite animiert, steuert JS den
   Track kontinuierlich. Scroll-Snap darf dabei nicht dazwischenfunken.
   ============================================================ */
.image-story--leistungen .moment-track.is-steering{
  scroll-snap-type:none!important;
  scroll-behavior:auto!important;
}
@media(min-width:900px){
  .image-story--leistungen .moment-track{
    padding-left:12px!important;
    padding-right:12px!important;
    scroll-padding-left:12px!important;
    scroll-padding-right:12px!important;
  }
}
