/* Agent-maintained adjustments. Keep empty for source-site visual parity. */

/* Stable first-frame navigation: preserve the former fully loaded geometry. */
html.hf-menu-font-pending #header .main_menu { visibility: hidden; }
#header .social-icons .nav-icon,
#header .social-icons2 .nav-icon {
    width: 24px !important; height: 24px !important;
    min-width: 24px; max-width: 24px !important;
}
@media only screen and (min-width: 768px) {
    #header.hf-stable-header #header_main > .container,
    #header.hf-stable-header .main_menu .hf-main-nav > li > a {
        height: 44px; line-height: 44px;
    }
    #header.hf-stable-header .logo a,
    #header.hf-stable-header .logo img { max-height: 44px; }
}
@media only screen and (max-width: 767px) {
    #header.hf-stable-header #header_main > .container,
    #top #header.hf-stable-header .main_menu .hf-main-nav > li > a { line-height: 40px !important; }
    #header.hf-stable-header .logo a,
    #header.hf-stable-header .logo img { max-height: 40px; }
}

/* Booking & More: original provider widget with first-party browser storage. */
.booking-widget { display: block; width: 100%; min-height: 800px; background: #fff; }

/* Match the existing title section’s desktop size and mobile spacing. */
.booking-intro :is(h1,h2:where(.hf-seo-h1)) { font-size: 4rem; }
@media only screen and (max-width: 768px) { .booking-intro :is(h1,h2:where(.hf-seo-h1)) { font-size: 3rem; line-height: 0.9; } }

/* Use the same subtitle and separator treatment as the Ratsch Stube title. */
.booking-intro h2:not(:where(.hf-seo-h1)).hf-special-heading-tag {
    font-family: "Sorts Mill Goudy", serif !important;
    font-size: 30px !important;
    margin-top: -2rem;
    color: #cc8b65 !important;
    text-transform: uppercase !important;
}
@media only screen and (max-width: 768px) {
    .booking-intro h2:not(:where(.hf-seo-h1)).hf-special-heading-tag { font-size: 1.2rem !important; margin-top: 2rem; }
}

/* Preserve the source arrival title styling inside the contact page. */
.contact-arrival :is(h1,h2:where(.hf-seo-h1)) { font-size: 4rem; margin-bottom: -1rem; }
@media only screen and (max-width: 768px) {
    .contact-arrival :is(h1,h2:where(.hf-seo-h1)) { font-size: 3rem; line-height: 0.9; margin-bottom: -3rem; }
}

/* Match the other pages' 70% header underlines without a transparent header. */
#top:has(#booking) #header .hfui-menu-fx {
    width: 70%;
    left: 15%;
    bottom: 22%;
}

/* Give the mobile booking CTA a generous, unobstructed touch target. */
#top #wrap_all #hf-burger-menu-ul .hf-menu-button-colored > a {
    padding: 10px 30px;
}
#top #wrap_all #hf-burger-menu-ul .hf-menu-button-colored > a .hfui-menu-text {
    display: block;
    text-align: center;
}

/* Keep the wider CTA in a single-row desktop menu; use the existing drawer on tablets. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    #top #header .hf-main-nav > li { display: none; }
    #top #header .hf-main-nav > .hf-burger-menu-main { display: block; }
}

/* Compact, full-colour partner marks between copyright and legal links. */
#top #socket > .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
#top #socket > .container::after { display: none; }
#top #socket .copyright, #top #socket .sub_menu_socket { float: none; margin: 0; }
#top #socket .footer-partners {
    display: flex; align-items: center; justify-content: center; gap: 24px;
}
#top #socket .footer-partners a {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 48px;
}
#top #socket .footer-partners img {
    display: block; width: auto; height: auto; max-width: 100px; max-height: 48px;
    filter: none; opacity: 1;
}
@media only screen and (max-width: 767px) {
    #top #socket > .container { flex-direction: column; gap: 16px; padding-bottom: 120px; }
    #top #socket .copyright { text-align: center; }
}
@media only screen and (min-width: 768px) {
    #top #socket .copyright { padding-left: 44px; }
}

/* Paired language segments after the social icons; same style in the drawer. */
#top #header .language-choice > a { padding-left: 0; padding-right: 0; }
#top #header .language-de > a { margin-left: 14px; }
#top .language-choice > a .hfui-menu-text {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: 44px; height: 34px; padding: 0; margin: 0;
    background: #07363c; color: #fff !important;
    border: 1px solid #cc8b65; font-size: 12px; line-height: 1;
    font-weight: 600; letter-spacing: 0.08em;
    vertical-align: middle; transition: background-color 160ms ease, color 160ms ease;
}
#top .language-de > a .hfui-menu-text { border-radius: 18px 0 0 18px; border-right: 0; }
#top .language-en > a .hfui-menu-text { border-radius: 0 18px 18px 0; }
#top .language-choice > a[aria-current="true"] .hfui-menu-text {
    background: #cc8b65; color: #ffffff !important;
}
#top .language-choice > a:hover .hfui-menu-text { background: #355159; }
#top .language-choice > a[aria-current="true"]:hover .hfui-menu-text { background: #dca785; }
#top .language-choice > a:focus-visible { outline: none; }
#top .language-choice > a:focus-visible .hfui-menu-text {
    outline: 2px solid #cc8b65; outline-offset: 3px;
}
#top #wrap_all #hf-burger-menu-ul .language-choice {
    display: inline-block; width: auto; vertical-align: top; border: 0;
}
#top #wrap_all #hf-burger-menu-ul .language-choice > a {
    padding: 12px 0; border: 0; background: transparent;
}
#top #wrap_all #hf-burger-menu-ul .language-de > a { margin-left: 20px; }
#top #wrap_all #hf-burger-menu-ul .language-choice > a .hfui-menu-text {
    width: 54px; height: 42px; padding: 0;
}
@media (prefers-reduced-motion: reduce) {
    #top .language-choice > a .hfui-menu-text { transition: none; }
}

/* Offcanvas navigation covers the complete, dynamically sized viewport. */
#top .hf-burger-overlay {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}
html.html_hf-overlay-side #top .hf-burger-overlay-scroll {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}
html.html_hf-overlay-side.hf-burger-overlay-active-delayed #top .hf-burger-overlay-scroll {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
#top .hf-burger-overlay-inner,
#top .hf-burger-overlay-bg {
    min-height: 0;
    height: 100%;
}

/* Single-column navigation: all 15 links stay visible within the viewport. */
#top #wrap_all .hf-burger-overlay-inner { display: block; }
#top #wrap_all #hf-burger-menu-ul {
    --menu-row: clamp(16px, calc((100vh - 76px) / 15), 44px);
    --menu-row: clamp(16px, calc((100dvh - 76px) / 15), 44px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    box-sizing: border-box;
    height: 100%;
    padding: 64px 20px 12px;
    margin: 0;
    gap: 0;
}
#top #wrap_all #hf-burger-menu-ul li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    flex: none;
}
#top #wrap_all #hf-burger-menu-ul li a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--menu-row);
    min-height: 0;
    padding: 0 12px;
    margin: 0;
    line-height: clamp(14px, calc(var(--menu-row) - 4px), 20px);
    font-size: clamp(12px, calc(var(--menu-row) - 4px), 14px);
}
#top #wrap_all #hf-burger-menu-ul > li > ul {
    display: block;
    margin: 0;
    padding: 0;
}
#top #wrap_all #hf-burger-menu-ul li li a { padding-left: 24px; }
#top #wrap_all #hf-burger-menu-ul .hfui-bullet { display: none; }
#top #wrap_all #hf-burger-menu-ul > :is(.social-icons, .social-icons2, .language-choice) > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--menu-row);
    padding: 0;
    margin: 0;
    border: 0;
}
#top #wrap_all #hf-burger-menu-ul :is(.social-icons, .social-icons2) img {
    width: clamp(14px, calc(var(--menu-row) - 2px), 24px) !important;
    height: clamp(14px, calc(var(--menu-row) - 2px), 24px) !important;
    min-width: 0; max-width: none !important;
    object-fit: contain;
}
#top #wrap_all #hf-burger-menu-ul .language-choice > a .hfui-menu-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: clamp(14px, calc(var(--menu-row) - 2px), 36px);
    padding: 0;
    margin: 0;
    border: 1px solid #cc8b65;
    border-radius: 18px;
    font-size: clamp(10px, calc(var(--menu-row) - 4px), 12px);
}
#top #wrap_all #hf-burger-menu-ul .hf-menu-button > a .hfui-menu-text {
    margin: 0; padding: 0; width: 100%; line-height: inherit;
}
html.hf-burger-overlay-active #top #contact-chat-button { visibility: hidden; }

/* Restore the joined DE/EN control; all other entries remain single-column. */
#top #wrap_all #hf-burger-menu-ul > li { grid-column: span 2; }
#top #wrap_all #hf-burger-menu-ul > .language-choice { grid-column: span 1; }
#top #wrap_all #hf-burger-menu-ul .language-de > a { justify-content: flex-end; }
#top #wrap_all #hf-burger-menu-ul .language-en > a { justify-content: flex-start; }
#top #wrap_all #hf-burger-menu-ul .language-de > a .hfui-menu-text {
    border-radius: 18px 0 0 18px; border-right: 0;
}
#top #wrap_all #hf-burger-menu-ul .language-en > a .hfui-menu-text { border-radius: 0 18px 18px 0; }

/* Center the mobile burger glyph in the existing logo-height click target. */
@media only screen and (max-width: 767px) {
    #top #wrap_all #header.hf-stable-header .hf-burger-menu-main > a {
        display: flex;
        align-items: center;
    }
}

/* Branded offcanvas header, separated from the single-column menu links. */
#top #header .offcanvas-brand {
    position: absolute;
    z-index: 12;
    top: 25px;
    left: 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 56px;
    padding: 8px 12px;
    background: #07363c;
    border-radius: 4px;
}
#top #header .offcanvas-brand img {
    display: block;
    width: auto;
    height: 40px;
    max-width: min(180px, calc(100vw - 128px));
    object-fit: contain;
}
#top #wrap_all #hf-burger-menu-ul {
    --menu-row: clamp(16px, calc((100vh - 96px) / 15), 44px);
    --menu-row: clamp(16px, calc((100dvh - 96px) / 15), 44px);
    padding: 84px 20px 12px !important;
}
@media only screen and (min-width: 768px) {
    #top #header .offcanvas-brand { top: 7px; }
}

/* Center the legal links as a group in the mobile footer. */
@media only screen and (max-width: 767px) {
    #top #socket .sub_menu_socket ul {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        margin: 6px 0 0;
    }
    #top #socket .sub_menu_socket li { float: none; padding-left: 10px; padding-right: 10px; }
    #top #socket > .container { padding-bottom: 152px; }
}

/* Pair the social links; align the centered brand band with their outer edges. */
#top #wrap_all #hf-burger-menu-ul > :is(.social-icons, .social-icons2) {
    grid-column: span 1;
}
#top #header .offcanvas-brand {
    left: 20px;
    width: calc(100% - 40px);
    justify-content: center;
}
/* Keep the close control legible over the full-width dark brand band. */
html.hf-burger-overlay-active #top #header .hf-hamburger-inner,
html.hf-burger-overlay-active #top #header .hf-hamburger-inner::before,
html.hf-burger-overlay-active #top #header .hf-hamburger-inner::after {
    background-color: #fff !important;
}

/* Full-width booking CTA, taller than the paired social row. */
#top #wrap_all #hf-burger-menu-ul > .hf-menu-button-colored > a {
    width: 100%;
    height: calc(var(--menu-row) * 1.25);
    padding: 0;
}
#top #wrap_all #hf-burger-menu-ul > .hf-menu-button-colored > a .hfui-menu-text {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 12px;
}

/* Keep the mobile header visible while preserving its original content offset. */
@media only screen and (max-width: 767px) {
    html.responsive #top #wrap_all #header.hf-stable-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
    html.responsive #top #wrap_all #main {
        padding-top: 106px !important;
    }
}

/* Edge-to-edge offcanvas brand header: no white border around logo and close. */
#top #header .offcanvas-brand {
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    border-radius: 0;
}
@media only screen and (max-width: 767px) {
    #top #header .offcanvas-brand { height: 106px; }
    #top #wrap_all #hf-burger-menu-ul {
        --menu-row: clamp(15px, calc((100vh - 118px) / 15), 44px);
        --menu-row: clamp(15px, calc((100dvh - 118px) / 15), 44px);
        padding-top: 106px !important;
    }
}
