@font-face {
    font-family: 'Luxia';
    src: url('../fonts/Luxia.woff2') format('woff2'),
        url('../fonts/Luxia.woff') format('woff'),
        url('../fonts/Luxia.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/static/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #c8b26a;
    overflow: hidden;
}

.dark {
    background: #111;
}

.text-gold {
    color: #c8b26a !important;
}

.text-gold-pro {
    /* color: #f0c12a !important; */
}

.border-gold {
    border-color: #c8b26a !important;
}

.border-gold:hover {
    background-color: #c8b26a !important;
}

.hero {
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-family: 'Luxia', serif;
    background-color: #f5f5f5d6;
}

.hero-title,
.section-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 6px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}

#section-2 {
    background: #e6e6e6;
}

#architecture {
    min-height: 100%;
    display: block;
    background: var(--bs-white);
}

#location {
    display: block;
}

.section-top {
    display: block;
    color: #03170e;
    font-size: 18px;
    font-weight: 800;
    padding: 1rem 0;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    background: #f6f5f1;
}

h5 {
    font-family: 'Luxia', serif;
    font-size: 26px !important;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    background-color: #efebe2;
}

.content-wrapper h2 {
    color: #41403c;
    font-size: 28px;
    margin-bottom: 0;
}

.content-wrapper h2.section-desc {
    font-size: 24px;
    font-weight: 400;
    padding: 3rem;
    margin: 0;
    text-align: justify;
}

#architecture .img-wrapper {
    text-align: center;
    height: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#architecture .img-wrapper img {
    width: 40%;
}

#architecture h2 {
    padding: 1.5rem 0;
}

#ausstattung,
#map,
#location {
    background-color: #f6f5f1;
}

#ausstattung h2,
#map h2 {
    padding: 2.5rem 0;
    letter-spacing: 1px;
}

#map {
    color: #41403c;
}

#map p {
    font-size: 22px;
}

#ausstattung .highlights {
    color: #41403c;
    font-size: 22px;
}

#ausstattung .highlights li {
    margin-bottom: 5px;
}

#carousel-wrapper {
    height: auto;
    display: block;
}

.pt-6 {
    padding-top: 6rem;
}

.scroll-indicator {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

#location .arrow {
    border-left-color: #c8b26a;
    border-bottom-color: #c8b26a;
}

#location .scroll-indicator span {
    color: #c8b26a;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hamburger-menu {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #9f8b4a;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid #c8b26a;
    border-bottom: 2px solid #c8b26a;
    transform: rotate(-45deg);
    margin: 6px auto;
    animation: bounce 1.4s infinite;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.custom-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #D4AF37;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control svg {
    width: 20px;
    height: 20px;
}

.carousel-container .img-wrapper {
    width: 100%;
    height: auto;
}

.carousel-container .img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#contact {
    height: auto !important;
    display: block;
    background-color: #efebe2;
}

#contact .section-title {
    color: #41403c;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5rem;
}

#contact .container {
    height: 100%;
    justify-items: center;
    margin-top: 8rem;
}

#contact h3 {
    color: #41403c;
    font-size: 34px !important;
    font-weight: 300;
}

.form-check .form-check-input {
    width: 2rem;
    height: 2rem;
}

#location .table {
    zoom: 80%;
}

#location .table thead tr td {
    color: var(--bs-white);
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    background: #c8b26a;
}

#location .table tbody tr td {
    border: 0;
    text-align: center;
    padding: 1.5rem;
}

.error-message {
    font-size: 0.875rem;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-message {
    font-size: 0.9rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: rotate(-45deg) translate(0, 0);
    }

    50% {
        transform: rotate(-45deg) translate(-4px, 4px);
    }
}

/* Fixed Hamburger Menu for all sections */
.fixed-hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    border-radius: 50%;
    padding: 8px;
    transition: background 0.3s ease;
}

/* Ensure the overlay is hidden by default */
.hamburger-menu-overlay {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.hamburger-menu-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu Overlay */
.hamburger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f6f5f1;
    z-index: 9999;
    display: flex;
    /* Changed from display: none */
    opacity: 0;
    visibility: hidden;
    /* Added */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    align-items: center;
    justify-content: center;
}

.hamburger-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    /* Added */
}

.overlay-content {
    text-align: center;
    width: 100%;
    padding: 2rem;
    transform: translateY(20px);
    /* Added for animation */
    transition: transform 0.3s ease 0.1s;
    /* Added */
}

.hamburger-menu-overlay.active .overlay-content {
    transform: translateY(0);
    /* Added */
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #c8b26a;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Added */
    transform: translateY(-20px);
    /* Added */
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
    /* Added */
}

.hamburger-menu-overlay.active .overlay-close {
    opacity: 1;
    /* Added */
    transform: translateY(0);
    /* Added */
}

.overlay-section-title a,
.overlay-section-title a:hover {
    font-family: 'Luxia', serif;
    font-size: 58px;
    letter-spacing: 6px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    color: #c8b26a;
    line-height: 1.4;
    margin: 0;
    opacity: 0;
    /* Added */
    transform: translateY(20px);
    /* Added */
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
    /* Added */
}

.hamburger-menu-overlay.active .overlay-section-title a {
    opacity: 1;
    /* Added */
    transform: translateY(0);
    /* Added */
}

.overlay-nav-item {
    color: #c8b26a;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.overlay-nav-item:hover {
    color: #fff;
    transform: translateX(10px);
}

.overlay-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c8b26a;
    transition: width 0.3s ease;
}

.overlay-nav-item:hover::after {
    width: 100%;
}

/* Prevent body scroll when overlay is active */
body.overlay-open {
    overflow: hidden;
}

@media (max-width: 991.88px) {
    .section {
        height: auto;
    }

    .section.hero {
        height: 100%;
    }

    .overlay-section-title {
        font-size: 48px;
    }

    #architecture .img-wrapper {
        margin-top: 50%;
    }

    #architecture .img-wrapper img {
        height: 50%;
        width: 80%;
        object-fit: cover;
    }

    #ausstattung .scroll-indicator,
    #map .scroll-indicator,
    #location .scroll-indicator {
        position: relative;
        text-align: center;
        display: inline-block;
    }

    .content-wrapper h2.section-desc {
        text-align: left;
    }

    .carousel-wrapper,
    .carousel-container .img-wrapper {
        height: 100%;
    }

    #contact .section-title {
        font-size: 28px;
    }

    #contact h3 {
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {

    .hero-title,
    .section-title {
        letter-spacing: 3px;
    }
}