@font-face {
    font-family: 'Matteo';
    src: url('../css/fonts/Matteo-Regular.woff') format('woff'), url('../css/fonts/Matteo-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Megante';
    src: url('../css/fonts/Megante.eot');
    src: url('../css/fonts/Megante.eot?#iefix') format('embedded-opentype'),
        url('../css/fonts/Megante.woff2') format('woff2'),
        url('../css/fonts/Megante.woff') format('woff'),
        url('../css/fonts/Megante.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body, .bg-beige, #smooth-content, .wrapper {
    background-color: var(--beige);
    color: var(--dark);
}

h2, p {
    color: var(--dark);
}

h1, h2 {
    font-family: 'Megante';
    font-weight: 400;
    line-height: 109%;
}

h1 {
    margin-bottom: 2rem;
    font-size: min(max(3rem, 5vw), 6rem);
}

h3, p, a {
    font-family: 'Matteo';
    font-weight: 400;
    line-height: normal;
}

h2 {
    text-transform: uppercase;
}

h3 {
    font-size: min(max(1.25rem, 2vw), 2rem);
}

.header-video h1, .header-video h3 {
    color: var(--white);
}

.heads-title {
    text-align: center;
}

#small {
    margin-left: auto;
}

.sidebar {
    border: none;
}

.sidebar .item, .sidebar img.logo-icon {
    display: none;
}

.img-ratio.super-large {
    height: 100%;
}

.img-ratio {
    background-color: transparent;
}

.contain {
    object-fit: contain;
}

img.img-cover.img-small {
    height: clamp(16rem, 20vw, 30rem);
    object-fit: cover;
}

.quote p {
    font-family: 'Megante';
    font-size: min(max(1.5rem, 2vw), 3rem);
    color: var(--el-gouna-blue);
}

.introtext p {
    font-size: min(max(1.25rem, 1.5vw), 2.5rem);
    font-family: 'Megante';
    line-height: 135%;
}

span.galerie-titel {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    padding-left: 2rem;
    color: var(--white);
    font-family: 'Matteo';
    z-index: 4;
    line-height: 1;
}

span.galerie-titel:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: var(--white);
    border-radius: 50%;
}

.galerie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(21, 21, 21, 0.20) 100%);
    z-index: 3;
}

.galerie-plus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.2);
}

.galerie-plus img {
    width: clamp(2rem, 3vw, 3rem);
    height: clamp(2rem, 3vw, 3rem);
    object-fit: contain;
    object-position: center;
}

.swiper-slide:hover .galerie-plus {
    opacity: 1;
}

.swiper-slide img {
    margin: 0;
    float: left;
}

.highlight {
    text-align: center;
}

.highlight img {
    height: clamp(4rem, 6vw, 8rem);
    width: clamp(6rem, 8vw, 10rem);
    object-fit: contain;
    object-position: center;
}

.hometext-objekte {
    position: absolute;
    bottom: 2vmin;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, 0);
    text-align: center;
}

.hometext-objekte p {
    text-transform: uppercase;
}

.galerie-image {
    height: clamp(30rem, 40vw, 50rem);
    object-fit: cover;
}

.popup-container {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--beige);
    z-index: 9999;
    overflow: hidden;
}

.popup-container.active {
    display: block;
}

.content-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.left {
    width: 50%;
    height: 100%;
}

.popup-swiper {
    height: 100%;
}

.popup-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.popup-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right {
    width: 50%;
    height: 100%;
    padding: clamp(6rem, 6vw, 10rem) clamp(4rem, 6vw, 8rem);
    overflow-y: auto;
    overflow-x: hidden;
}

img.close-popup {
    position: absolute;
    width: clamp(2rem, 3vw, 4rem);
    height: clamp(2rem, 3vw, 4rem);
    z-index: 11;
    top: 4rem;
    right: 4rem;
    cursor: pointer;
}

.linking-btn {
    text-transform: uppercase;
    color: var(--dark);
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.btn {
    height: 2rem;
    width: 2rem;
    border: 1px solid var(--el-gouna-blue);
    background-color: var(--el-gouna-blue);
    border-radius: 50%;
}

.btn:before {
    background-color: var(--beige);
}

.btn .arrow {
    height: 12px;
}

.btn .arrow:before {
    background-image: url('/static/images/btn-arrow-el-gouna.svg');
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(143deg) brightness(104%) contrast(102%);
}

.btn .arrow:after {
    background-image: url('/static/images/btn-arrow-el-gouna.svg');
    filter: invert(24%) sepia(69%) saturate(519%) hue-rotate(140deg) brightness(96%) contrast(94%);
}

ul.quick-nav {
    display: flex;
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 2rem;
    list-style: none;
    gap: 2rem;
    background-blend-mode: plus-lighter;
    backdrop-filter: blur(10px);
    padding: 0.25rem 1.5rem;
    border-radius: 3rem;
    z-index: 99;
}

.quick-nav li {
    white-space: nowrap;
}

ul.quick-nav li a {
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.5s ease;
}

ul.quick-nav li a:hover {
    color: var(--gold);
}

/* Prevent default anchor jumping */
a.anchorlink {
    scroll-behavior: auto !important;
}
    
img.muster-links {
    height: clamp(25rem, 35vw, 45rem);
    width: auto;
    position: absolute;
    left: 0;
    transform: rotate(180deg);
    top: -10rem;
    z-index: -1;
}

img.muster-rechts {
    height: clamp(25rem, 35vw, 45rem);
    width: auto;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

img.footer-muster-links {
    height: auto;
    width: clamp(10rem, 20vw, 24rem);
    position: absolute;
    left: 0;
    transform: rotate(180deg);
    z-index: -1;
}

img.footer-muster-rechts {
    width: clamp(10rem, 24vw, 34rem);
    position: absolute;
    right: 0;
    bottom: 0;
    transform: scaleX(-1);
    z-index: -1;
}

.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: auto;
    width: 2rem;
    height: 2rem;
    bottom: 2rem;
    right: 2rem;
    margin-top: 0;
    background-color: var(--el-gouna-blue);
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
    content: '';
    background-image: url('/static/images/btn-arrow-el-gouna.svg');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(143deg) brightness(104%) contrast(102%);
}

.swiper-button-prev {
    transform: rotate(180deg);
    left: auto; 
    right: 2rem;
    margin-right: 2.5rem;
}

ul.list {
    width: auto;
    float: left;
    min-width: 40%;
}

ul.list li {
    list-style-type: none;
    font-size: 1rem;
    border-bottom: solid 1px var(--dark);
    font-family: 'Matteo';
    padding: 0.25rem 0;
    line-height: 1.5;
}

ul.list li:last-child {
    border-bottom: none;
}

.transform-multiple {
    clip-path: polygon(20% 0%, 80% 0%, 80% 100%, 20% 100%);
    will-change: clip-path;
    height: clamp(40rem, 50vw, 60rem);
    display: flex;
  }
  
  .transform-multiple img {
    object-fit: cover;
  }

  .grow {
    transform: scale(0.8);
    object-fit: cover;
    height: 100%;
  }

.grundriss {
    float: left;
    width: 50%;
    display: flex;
    flex-direction: column;
    clear: both;
}

.grundriss-image {
    position: relative;
    height: clamp(10rem, 14vw, 18rem);
}

.grundriss-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    float: left;
    margin: 0;
}

.grundriss-image:hover .galerie-plus {
    opacity: 1;
}

.info-bar {
    font-family: 'Matteo';
    color: var(--white);
    width: 100%;
    padding: 1rem 1.5rem;
    background: #C7B1A3;
    line-height: 1;
    font-size: 1rem;
}

footer {
    background-color: var(--beige);
}

/* Utility class to prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
    height: 100vh;
}

body.popup-open #smooth-wrapper,
body.popup-open #smooth-content {
    overflow: hidden;
    height: 100vh;
}

footer p, footer a {
    color: var(--dark);
}

footer h3 {
    color: var(--dark);
    font-family: 'Megante';
    font-size: min(max(1.25rem, 2vw), 2.5rem);
}

.footer-logos {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3vw, 4rem);
    align-items: center;
}

img.logo-tuban {
    max-width: 25%;
}

img.logos-footer {
    max-width: 50%;
}


@media (prefers-color-scheme: dark) {
    body, .bg-beige, #smooth-content {
        background-color: var(--beige);
        color: var(--dark);
    }

    h2, p {
        color: var(--dark);
    }

    footer h2 {
        color: var(--white);
    }

    footer {
        background-color: var(--beige);
    }
}

@media (max-width: 1500px) {
    .swiper-button-prev, .swiper-button-next {
        padding: 0;
    }
}

@media screen and (max-width : 900px)  {
    .popup-container {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .content-container {
        flex-direction: column-reverse;
        min-height: 100vh;
        align-items: stretch;
        height: auto;
    }

    .left {
        width: 100%;
        height: auto;
        min-height: 50vh;
    }

    .right {
        width: 100%;
        padding: 5rem 1rem 3rem;
        overflow-y: visible;
        overflow-x: hidden;
        height: auto;
    }

    img.close-popup {
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 12;
    }

    .grundriss {
        width: 100%;
    }

    .popup-swiper .swiper-slide img {
        height: clamp(25rem, 35vw, 35rem);
    }
}

@media (max-width: 700px) {

    .highlights p {
        max-width: 50%;
        margin: 0 auto;
    }
}