/*
Theme Name: Broermann Hotels Child Theme Atlantic
Theme URI: https://gitlab.com/nldx/broermann-hotels-child-atlantic
Description: This is a child theme for Broermann Hotels Atlantic Hamburg
Author: NLDX / Homepage Helden
Author URI: https://www.nldx.com
Template: broermann-hotels
Version: 1.0
Text Domain: broermann-hotels
*/

html {
    /* Background Image Overlays */
    .block-teaser-package.bg-image .has-bg-image {
        position: relative;

        > div {
            z-index: 2;
        }
    }

    @media (prefers-reduced-motion) {
      .swiper-wrapper {
        /* transition-duration: 0.001s !important; */
      }
    }

    button.swiper-button {
      background-color: transparent;
      border: none;
    }

    #scroll-up {
        right: 2rem;
        bottom: 2rem;
        .icon-arrow-up {
            width: 52px;
            height: 52px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        @media screen and (max-width: 576px) {
            right: 0;
        }
    }

    #content-header picture:after,
    .block-teaser-package.bg-image .has-bg-image:after {
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 1;
    }

    .brlbs-cmpnt-preferences-link:focus-visible, .brlbs-cmpnt-btn:focus-visible, .brlbs-cmpnt-close-button:focus-visible {
        border: 2px solid #000;
    }

    /* Video Controls */
    video.autoplay[muted=muted] + .btn-control-video {
        bottom: 2rem;
        display: inline-block !important;
        height: 52px;
        left: 2rem;
        opacity: 1;
        top: auto;
        transform: none;
        width: 52px;
        border-radius: 0;
        
    }
    .btn-control-video {
        background-image: url('img/play.svg');
        background-size: 110%;
    }
    video.playing+.btn-control-video {
        background-image: url('img/pause.svg');
        background-size: 100%;
    }

    /* Accessibility Toolbar */
    .at-accessibility-wrapper {
        backface-visibility: hidden;
        position: fixed;
        left: 2rem;
        bottom: 2rem;
        transition: right 0.3s ease;
        will-change: transform;
        z-index: 999;
        -webkit-backface-visibility: hidden;
    }

    /* High Contrast Mode */
    .high-contrast {
        #content-header.has-headlines .video-container:after,
        #content-header picture::after,
        .block-teaser-package.bg-image .has-bg-image:after {
            background-color: var(--theme-color-scheme-accent-3);
            opacity: 0.7;
        }

        .icon-arrow-up {
            background-color: var(--theme-color-scheme-accent-3);
            padding: 10px;
        }

        .booking-form input.form-control {
            border: 1px solid var(--theme-color-scheme-accent-3);
        }
        button.swiper-button {
          background-color: #fff;
          border: 2px solid #000;
        }
        .swiper-pagination .number {
          background-color: var(--theme-color-scheme-accent-3);
          border-radius: 50%;
        }
        .bg-scheme-accent-1 {
          background-color: #000;
        }
    }

    .sticky-sidenav-open.active + .at-accessibility-wrapper {
        right: 300px;
    }

    .at-accessibility-btn {
        align-items: center;
        background: var(--theme-color-scheme-accent-3);
        border: none;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        height: 52px;
        justify-content: center;
        padding: 0;
        pointer-events: all;
        position: relative;
        transition: 1s all ease-in-out;
        width: 52px;
    }

    .at-accessibility-btn-close {
        background: var(--theme-color-scheme-accent-3);
        background-size: 100%;
        border: 0;
        border-radius: 0;
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        height: auto !important;
        letter-spacing: 3px;
        line-height: 1 !important;
        min-height: 68px !important;
        padding: 14px 20px;
        position: absolute;
        right: 0;
        text-transform: uppercase;
        top: 0;
        transition: var(--baseTransition);
    }

    .accesibility_title {
        font-family: "SangBleu Sunrise Regular", serif;
        font-weight: 400;
        margin-bottom: 20px;
        position: relative;
        top: -12px;
        z-index: -1;
    }

    .at-accessibility-btn:hover,
    .at-accessibility-btn:focus-within,
    .at-accessibility-btn-close:hover,
    .at-accessibility-btn-close:focus-within {
        background-size: 300%;
    }

    .at-accessibility-btn .at-icon {
        font-size: 24px;
        line-height: 1;
    }

    .at-accessibility-toolbar {
        background-color: #ffffff;
        box-shadow: 0px 9px 45px 10px rgba(0, 0, 0, 0.06);
        max-height: 50vh;
        min-width: 350px;
        opacity: 0;
        overflow-y: auto;
        padding: 30px;
        position: absolute;
        left: 0;
        bottom: 0;
        transition: all 0.3s ease;
        visibility: hidden;
        will-change: transform, opacity, visibility;
    }

    .at-accessibility-toolbar:not([aria-hidden="true"]) {
        opacity: 1;
        visibility: visible;
    }

    .at-toolbar-items {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .at-toolbar-item {
        margin: 0;
    }

    .at-toolbar-link {
        align-items: center;
        background: none;
        border: 1px solid var(--theme-color-scheme-accent-3);
        border-radius: 0;
        color: var(--fontColor);
        cursor: pointer;
        display: flex;
        font-size: 12px;
        gap: 12px;
        justify-content: flex-start;
        letter-spacing: 3px;
        padding: 12px;
        text-transform: uppercase;
        transition: all 0.2s ease;
        width: 100%;

        .text {
            margin-top: 3px;
        }
    }

    .at-toolbar-link .at-icon {
        font-size: 18px;
        line-height: 1;
    }

    /* Reset Button */
    .reset_all button {
        align-items: center;
        background: transparent;
        border: 2px solid var(--theme-color-scheme-accent-3);
        border-radius: 0;
        color: var(--theme-color-scheme-accent-3);
        cursor: pointer;
        display: flex;
        font-weight: 600;
        gap: 10px;
        line-height: inherit;
        margin-top: 20px;
        overflow: hidden;
        position: relative;
        transition: var(--baseTransition);
        z-index: 1;
    }

    .reset_all button:before {
        background: var(--theme-color-scheme-accent-3);
        content: "";
        height: 100%;
        left: 0;
        opacity: 0;
        position: absolute;
        top: 0;
        transition: var(--baseTransition);
        width: 100%;
        z-index: -1;
    }

    .reset_all button svg {
        margin-top: 1px;
        width: 16px;
    }

    .reset_all button:hover {
        background: transparent;
        color: #fff;
    }

    .reset_all button:hover:before {
        background: var(--theme-color-scheme-accent-3);
        opacity: 1;
    }

    .reset_all button:hover svg {
        filter: brightness(0) invert(1);
    }

    /* Accessibility Features */
    .grayscale #header,
    .grayscale #content,
    .grayscale #footer {
        filter: grayscale(100%) !important;
    }

    .underline-links a {
        text-decoration: underline !important;
    }

    .underline-links .block a:not(.btn) {
        border-bottom: none;
    }

    /* Responsive Design */
    @media screen and (max-width: 576px) {
        .at-accessibility-wrapper {
            z-index: 99;
            left: 0;
        }

        .at-accessibility-btn {

        }

        .at-accessibility-btn svg {
            width: 27px;
        }

        .at-accessibility-toolbar {
            bottom: 0;
            max-height: 65vh;
            min-width: 320px;
            padding: 20px;
            top: auto;
        }
    }

    /* Focus Styles */
    .at-accessibility-btn:focus-within,
    .at-toolbar-link:focus-within {
        outline: 2px solid var(--secondColor);
        outline-offset: 2px;
    }

    /* Active States */
    .at-toolbar-link[aria-pressed="true"],
    .at-toolbar-link:hover {
        background-color: var(--theme-color-scheme-accent-3);
        color: #ffffff;
    }

    .at-toolbar-link[aria-pressed="true"] svg,
    .at-toolbar-link:hover svg {
        filter: brightness(0) invert(1);
    }

    /* Screen Reader Only */
    .sr-only {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    /* Focus Visible Styles */
    .swiper-slide a:focus-visible,
    a:has(i):focus-visible {
        outline: auto !important;
        outline-offset: 1px;
        box-shadow: none !important;
    }
}
