/* Responsive refinements for tablet and mobile layouts. */

@media (max-width: 1280px) {
  .hero-header,
  .site-header {
    z-index: 60;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell > .container {
    width: 100%;
    max-width: none;
  }

  .alpine-footer-main {
    padding-inline: clamp(22px, 4vw, 56px);
  }

  .alpine-footer-inner {
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.8fr) minmax(300px, 1fr);
    column-gap: clamp(24px, 3vw, 48px);
  }

  .alpine-footer-cta-wrap {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 959px) {
  .intro-grid,
  .season-grid,
  .cta-card,
  .booking-page-grid,
  .contact-grid,
  .location-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .section-pad,
  .booking-page-section,
  .legal-wrap {
    padding-top: clamp(58px, 8vw, 86px);
    padding-bottom: clamp(58px, 8vw, 86px);
  }

  .season-copy,
  .booking-info-card,
  .contact-card {
    position: static;
    top: auto;
  }

  .experience-grid,
  .feature-grid,
  .cards-grid,
  .apartment-grid,
  .highlight-grid {
    gap: clamp(16px, 3vw, 28px);
  }
}

@media (max-width: 960px) {
  .site-header:not(.is-sticky-header) {
    position: absolute !important;
    top: clamp(16px, 4vw, 26px);
    left: clamp(16px, 4vw, 34px) !important;
    right: clamp(16px, 4vw, 34px) !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0;
    align-items: flex-start;
    transform: none;
    box-sizing: border-box;
  }

  .hero-header.is-sticky-header,
  .site-header.is-sticky-header {
    min-height: 70px;
    padding: 10px clamp(16px, 4vw, 28px);
  }

  .mobile-offcanvas {
    inset: 0;
    width: auto;
    max-width: none;
    contain: layout paint;
    transform: none;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 350ms ease;
  }

  .mobile-offcanvas.is-open {
    transform: none;
    clip-path: inset(0);
  }

  .hero,
  .booking-hero {
    min-height: clamp(640px, 92svh, 760px);
  }

  .hero-content,
  .hero-copy,
  .booking-hero-copy {
    width: min(620px, calc(100% - 40px));
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content > p:not(.eyebrow),
  .hero-copy > p,
  .booking-hero-copy > p {
    max-width: min(620px, calc(100vw - 40px));
  }

  .main-nav,
  .nav {
    min-width: 0;
  }

  .hero-header:not(.is-sticky-header) .brand,
  .site-header:not(.is-sticky-header) .brand {
    width: max-content;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .hero-header:not(.is-sticky-header) .brand-logo,
  .site-header:not(.is-sticky-header) .brand-logo,
  .hero-header:not(.is-sticky-header) .brand svg,
  .site-header:not(.is-sticky-header) .brand svg,
  .site-header:not(.is-sticky-header) .brand-mark {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-header:not(.is-sticky-header) .brand-subtitle,
  .site-header:not(.is-sticky-header) .brand-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  .hero-header .mobile-menu-toggle,
  .site-header .mobile-menu-toggle,
  .menu-toggle.mobile-menu-toggle {
    flex-direction: column;
    gap: 4px;
  }

  .hero-header .mobile-menu-toggle span,
  .site-header .mobile-menu-toggle span,
  .menu-toggle.mobile-menu-toggle span {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
  }

  .hero-header.is-sticky-header .mobile-menu-toggle span,
  .site-header.is-sticky-header .mobile-menu-toggle span,
  .is-sticky-header .menu-toggle.mobile-menu-toggle span {
    background: #5f7895 !important;
  }
}

@media (max-width: 768px) {
  .hero-content,
  .hero-copy,
  .booking-hero-copy {
    left: clamp(18px, 5vw, 34px);
    right: clamp(18px, 5vw, 34px);
  }

  .hero h1,
  .hero .hero-content h1,
  .hero .hero-copy h1,
  .hero-copy h1,
  .booking-hero .booking-hero-copy h1,
  .booking-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 13.5vw, 5rem);
    line-height: 0.94;
    overflow-wrap: normal;
  }

  .section-title,
  .section-intro h2,
  .price-card h2,
  .booking-widget-card h2,
  .booking-info-card h2,
  .cta-copy h2 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1.02;
  }

  .experience-grid,
  .feature-grid,
  .cards-grid,
  .apartment-grid,
  .highlight-grid,
  .price-meta,
  .booking-info-list,
  .booking-contact-actions {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cards-grid,
  .gallery-grid,
  .facts-image,
  .tour-section,
  .cta-card {
    width: min(100% - 32px, 1320px);
    max-width: calc(100% - 32px);
  }

  .alpine-footer {
    left: auto;
    width: 100%;
    margin-left: 0;
  }

  .experience-card,
  .experience-card--large,
  .experience-card--wide,
  .experience-card--full {
    grid-column: auto;
    min-height: clamp(210px, 54vw, 340px);
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .brand {
    min-width: 108px;
  }

  .brand-logo {
    width: clamp(104px, 30vw, 124px);
  }

  .brand-mark,
  .brand svg {
    width: clamp(48px, 15vw, 58px);
  }

  .menu-toggle,
  .hero-header .mobile-menu-toggle,
  .site-header .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .hero,
  .booking-hero {
    min-height: clamp(640px, 96svh, 760px);
  }

  .hero-content,
  .hero-copy,
  .booking-hero-copy {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
  }

  .hero-copy .eyebrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .hero-copy .eyebrow svg {
    width: 21px;
    height: 21px;
  }

  .hero h1,
  .hero-copy h1,
  .booking-hero-copy h1 {
    font-size: clamp(3rem, 13vw, 4.15rem);
    line-height: 0.96;
  }

  .hero-content > p:not(.eyebrow),
  .hero-copy > p,
  .booking-hero-copy > p,
  .section-copy,
  .section-intro p {
    font-size: clamp(1rem, 4.1vw, 1.12rem);
    line-height: 1.65;
  }

  .btn,
  .button-primary,
  .button-secondary,
  .booking-submit,
  .season-button {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
  }

  .hero-actions,
  .cta-actions,
  .booking-contact-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .booking-widget-card,
  .booking-info-card,
  .price-card,
  .contact-card,
  .legal-section {
    border-radius: 20px;
  }

  .booking-widget-card,
  .booking-info-card {
    padding: clamp(18px, 5vw, 24px);
    overflow: clip;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }


  .welcome-copy {
    text-align: center;
  }

  .welcome-copy .section-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .tour-section .section-head {
    text-align: center;
  }

  .tour-section .section-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .feature-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 16px 12px 8px;
  }

  .feature-card + .feature-card {
    border-left: 0;
  }

  .feature-icon,
  .feature-icon img {
    width: 54px;
    height: 54px;
  }

  .feature-card h3 {
    margin-bottom: 4px;
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .feature-card p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .booking-widget {
    max-width: 100%;
    overflow-x: clip;
  }

  .booking-widget *,
  .booking-widget *::before,
  .booking-widget *::after {
    box-sizing: border-box;
  }

  .alpine-footer-main {
    padding: 48px 20px 42px;
  }
}

@media (max-width: 480px) {
  .site-header:not(.is-sticky-header) {
    top: 18px;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .hero-content,
  .hero-copy,
  .booking-hero-copy {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .hero h1,
  .hero .hero-content h1,
  .hero .hero-copy h1,
  .hero-copy h1,
  .booking-hero .booking-hero-copy h1,
  .booking-hero-copy h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.7rem);
    line-height: 0.98;
  }

  .eyebrow,
  .hero-kicker,
  .section-kicker,
  .section-label {
    letter-spacing: 0.14em;
  }

  /* Offcanvas compact fit: keep the whole mobile menu inside short screens. */
  .mobile-offcanvas-shell {
    padding: clamp(12px, 3svh, 18px) 20px clamp(14px, 3svh, 24px);
  }

  .mobile-offcanvas-head {
    min-height: clamp(56px, 13svh, 92px);
    padding-top: clamp(4px, 1.5svh, 10px);
  }

  .mobile-offcanvas-logo {
    width: clamp(122px, 38vw, 150px);
  }

  .mobile-offcanvas-logo svg,
  .mobile-offcanvas-logo .brand-mark {
    width: 62px;
    height: 17px;
  }

  .mobile-offcanvas-logo img {
    width: clamp(122px, 38vw, 145px);
  }

  .mobile-offcanvas-logo .brand-subtitle {
    margin-top: 5px;
    font-size: 8px;
  }

  .mobile-offcanvas-nav {
    margin-top: clamp(4px, 1.5svh, 12px);
  }

  .mobile-offcanvas-nav a {
    min-height: clamp(38px, 7.4svh, 52px);
    gap: clamp(12px, 4vw, 18px);
    padding: 0 10px 0 12px;
    font-size: clamp(14px, 3.8vw, 16px);
  }

  .mobile-offcanvas-nav svg,
  .mobile-contact-row svg,
  .mobile-offcanvas-cta svg {
    width: 21px;
    height: 21px;
  }

  .mobile-offcanvas-contact {
    gap: clamp(7px, 2svh, 14px);
    margin-top: clamp(8px, 2svh, 14px);
    padding-top: clamp(10px, 2.4svh, 18px);
  }

  .mobile-contact-row {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: clamp(10px, 3.5vw, 16px);
    font-size: clamp(12.5px, 3.5vw, 14px);
    line-height: 1.25;
  }

  .mobile-offcanvas-cta {
    min-height: clamp(38px, 7svh, 46px);
    margin-top: clamp(8px, 2.2svh, 16px);
    font-size: clamp(13.5px, 3.7vw, 15px);
  }

  .price-card,
  .booking-widget-card,
  .booking-info-card,
  .legal-section {
    padding-inline: clamp(18px, 5vw, 24px);
  }
}

@media (max-width: 960px) and (max-height: 620px) {
  .mobile-offcanvas-shell {
    padding: 8px 16px 10px;
  }

  .mobile-offcanvas-head {
    min-height: 42px;
    padding-top: 0;
  }

  .mobile-offcanvas-logo {
    width: 112px;
  }

  .mobile-offcanvas-logo svg,
  .mobile-offcanvas-logo .brand-mark {
    width: 50px;
    height: 14px;
    margin-bottom: 0;
  }

  .mobile-offcanvas-logo img {
    width: 112px;
  }

  .mobile-offcanvas-logo .brand-subtitle {
    display: none;
  }

  .mobile-offcanvas-close {
    width: 38px;
    height: 38px;
  }

  .mobile-offcanvas-close svg {
    width: 28px;
    height: 28px;
  }

  .mobile-offcanvas-nav {
    margin-top: 4px;
  }

  .mobile-offcanvas-nav a {
    min-height: 34px;
    gap: 10px;
    padding: 0 8px 0 10px;
    font-size: 13.5px;
  }

  .mobile-offcanvas-nav a > svg:last-child {
    width: 18px;
    height: 18px;
  }

  .mobile-offcanvas-nav svg,
  .mobile-contact-row svg,
  .mobile-offcanvas-cta svg {
    width: 18px;
    height: 18px;
  }

  .mobile-offcanvas-contact {
    gap: 5px;
    margin-top: 6px;
    padding-top: 8px;
  }

  .mobile-contact-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.18;
  }

  .mobile-offcanvas-cta {
    min-height: 36px;
    margin-top: 8px;
    font-size: 13.5px;
  }
}

@media (max-width: 900px) {
  .alpine-footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .alpine-footer-brand,
  .alpine-footer-nav,
  .alpine-footer-contact,
  .alpine-footer-cta-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 0;
  }

  .alpine-footer-contact {
    grid-column: 1 / -1;
  }

  .alpine-footer-contact-row span,
  .alpine-footer-nav a span {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .alpine-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .alpine-footer-brand,
  .alpine-footer-nav,
  .alpine-footer-contact,
  .alpine-footer-cta-wrap {
    grid-column: 1;
  }

  .alpine-footer-nav a,
  .alpine-footer-contact-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 18px;
  }

  .alpine-footer-contact {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .hero h1,
  .hero .hero-content h1,
  .hero .hero-copy h1,
  .hero-copy h1,
  .booking-hero .booking-hero-copy h1,
  .booking-hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.25rem);
  }

  .hero-content > p:not(.eyebrow),
  .hero-copy > p,
  .booking-hero-copy > p {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.48rem;
  }
}

@media (max-width: 640px) {
  .hero-header:not(.is-sticky-header) {
    position: absolute !important;
    top: clamp(16px, 4vw, 26px);
    left: clamp(16px, 4vw, 34px) !important;
    right: clamp(16px, 4vw, 34px) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 18px;
  }

  .hero-grid {
    min-height: calc(100svh - 40px);
    padding-top: clamp(14px, 5svh, 34px);
    align-items: start;
  }

  .hero-copy {
    justify-self: center;
    width: min(100%, 350px);
    max-width: 350px;
    margin-top: clamp(34px, 6svh, 58px);
    padding: 14px 14px 13px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 252, 247, 0.38);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.18) !important;
    box-shadow: 0 12px 30px rgba(28, 42, 52, 0.08);
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 17vw, 4.4rem);
    line-height: 0.88;
    margin-bottom: 20px;
  }

  .hero-copy .subtitle {
    margin-bottom: 12px;
    font-size: clamp(1rem, 4.8vw, 1.18rem);
    line-height: 1.45;
    letter-spacing: 0.18em;
  }

  .hero-copy .eyebrow {
    max-width: 310px;
    margin: 0 auto;
    font-size: clamp(1rem, 4.8vw, 1.12rem);
    line-height: 1.42;
    letter-spacing: 0.1em;
  }

  .booking-bar {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(6px, 2svh, 14px);
    transform: translateX(-50%);
    width: min(calc(100% - 36px), 330px);
    margin: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    border-radius: 24px;
    background: #fffcf7;
    box-shadow: 0 18px 42px rgba(28, 42, 52, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .booking-field,
  .booking-field:last-of-type {
    min-height: 48px;
    padding: 6px 10px;
    border-right: 0;
    border-radius: 16px;
    background: #fffdf8;
    gap: 10px;
  }

  .booking-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #f4efe6;
    color: rgba(53, 80, 96, 0.72);
  }

  .booking-icon svg {
    width: 16px;
    height: 16px;
  }

  .booking-label {
    margin-bottom: 2px;
    color: rgba(79, 71, 58, 0.48);
    font-size: 0.68rem;
  }

  .booking-field input,
  .booking-field select {
    min-height: 22px;
    color: rgba(48, 61, 66, 0.56);
    font-size: 0.98rem;
  }

  .booking-submit {
    min-height: 46px;
    min-width: 0;
    margin-left: 0;
    padding: 12px 18px;
    border-radius: 18px;
    background: #609bb8;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 100svh;
    min-height: 640px;
    max-height: 760px;
    overflow: hidden;
  }

  .hero-grid {
    min-height: calc(100svh - 40px);
    padding-top: clamp(14px, 8svh, 80px);
    align-items: start;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .alpine-footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    text-align: left;
  }

  .alpine-footer-brand,
  .alpine-footer-nav,
  .alpine-footer-contact {
    padding-right: 0;
  }

  .alpine-footer-brand {
    align-items: center;
    text-align: center;
  }

  .alpine-footer-logo {
    margin-inline: auto;
  }

  .alpine-footer-claim {
    white-space: normal;
  }

  .alpine-footer-nav {
    gap: 16px;
  }

  .alpine-footer-nav a,
  .alpine-footer-contact-row {
    grid-template-columns: 32px 1fr;
    gap: 18px;
  }

  .alpine-footer-contact {
    grid-column: auto;
    padding-top: 0;
  }

  .alpine-footer-contact-head {
    text-align: center;
  }

  .alpine-footer-script-ornament {
    margin-inline: auto;
  }

  .alpine-footer-cta-wrap {
    grid-column: auto;
    justify-content: stretch;
  }

  .alpine-footer-cta {
    width: 100%;
    min-width: 0;
  }
}

/* Pitztal feature grid always two columns */
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 641px) {
/* Pitztal experience grids always two columns */
.experience-grid,
.experience-grid--summer {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(210px, auto) !important;
  overflow: visible !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
}

.experience-card,
.experience-card--large,
.experience-card--wide,
.experience-card--full {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  flex: initial !important;
  scroll-snap-align: unset !important;
}
}

@media (min-width: 960px) and (max-width: 1280px) {
  .alpine-footer .alpine-footer-contact {
    grid-column: 3;
    grid-row: 1;
    padding-bottom: 76px;
  }

  .alpine-footer .alpine-footer-cta-wrap {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    justify-content: flex-start;
    min-height: auto;
    padding-left: 58px;
  }
}

/* Offcanvas final compact overrides: keep menu content visible across mobile sizes. */
@media (max-width: 960px) {
  .mobile-offcanvas-shell {
    padding: clamp(12px, 3svh, 18px) 20px clamp(14px, 3svh, 24px) !important;
  }

  .mobile-offcanvas-head {
    min-height: clamp(56px, 13svh, 92px) !important;
    padding-top: clamp(4px, 1.5svh, 10px) !important;
  }

  .mobile-offcanvas-logo {
    width: clamp(122px, 38vw, 150px) !important;
  }

  .mobile-offcanvas-logo img {
    width: clamp(122px, 38vw, 145px) !important;
  }

  .mobile-offcanvas-logo .brand-subtitle {
    margin-top: 5px !important;
    font-size: 8px !important;
  }

  .mobile-offcanvas-nav {
    margin-top: clamp(4px, 1.5svh, 12px) !important;
  }

  .mobile-offcanvas-nav a {
    min-height: clamp(38px, 7.4svh, 52px) !important;
    gap: clamp(12px, 4vw, 18px) !important;
    padding: 0 10px 0 12px !important;
    font-size: clamp(14px, 3.8vw, 16px) !important;
  }

  .mobile-offcanvas-contact {
    gap: clamp(7px, 2svh, 14px) !important;
    margin-top: clamp(8px, 2svh, 14px) !important;
    padding-top: clamp(10px, 2.4svh, 18px) !important;
  }

  .mobile-contact-row {
    gap: clamp(10px, 3.5vw, 16px) !important;
    font-size: clamp(12.5px, 3.5vw, 14px) !important;
    line-height: 1.25 !important;
  }

  .mobile-offcanvas-cta {
    min-height: clamp(38px, 7svh, 46px) !important;
    margin-top: clamp(8px, 2.2svh, 16px) !important;
    font-size: clamp(13.5px, 3.7vw, 15px) !important;
  }
}

@media (max-width: 960px) and (max-height: 620px) {
  .mobile-offcanvas-shell {
    padding: 8px 16px 10px !important;
  }

  .mobile-offcanvas-head {
    min-height: 42px !important;
    padding-top: 0 !important;
  }

  .mobile-offcanvas-logo,
  .mobile-offcanvas-logo img {
    width: 112px !important;
  }

  .mobile-offcanvas-logo .brand-subtitle {
    display: none !important;
  }

  .mobile-offcanvas-close {
    width: 38px !important;
    height: 38px !important;
  }

  .mobile-offcanvas-close svg {
    width: 28px !important;
    height: 28px !important;
  }

  .mobile-offcanvas-nav {
    margin-top: 4px !important;
  }

  .mobile-offcanvas-nav a {
    min-height: 34px !important;
    gap: 10px !important;
    padding: 0 8px 0 10px !important;
    font-size: 13.5px !important;
  }

  .mobile-offcanvas-contact {
    gap: 5px !important;
    margin-top: 6px !important;
    padding-top: 8px !important;
  }

  .mobile-contact-row {
    gap: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.18 !important;
  }

  .mobile-offcanvas-cta {
    min-height: 36px !important;
    margin-top: 8px !important;
    font-size: 13.5px !important;
  }
}
