:root{
    --bg:#0b1614;
}

body {
    background-color: #795217;
    background-image: url("https://www.natasense.com/wp-content/uploads/2025/10/background3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    &::before {
        content: "";
        position: fixed;
        inset: 0;
        background: inherit; /* uses same image as parent */
        filter: blur(16px) brightness(0.9) saturate(1.3); /* blur + darken */
        transform: scale(1.1); /* prevents edge blur clipping */
        z-index: 0;
    }

    &::after {
        background: #a28a4c;
    }

    * > * {
        z-index: 1;
    }

    & .background-icon {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(300%) rotate(34deg);
        z-index: -50;

        & circle {
            fill : rgba(24, 41, 37, 0.55) !important;
        }

        animation: rotateScale 120s infinite cubic-bezier(0.350, 0.505, 0.490, 1.045);
    }
}

.icon {
    width: 32px;
    height: auto;
}

@keyframes rotateScale {
    0% {
        transform: translate(-50%, -50%) rotate(34deg) scale(280%);
    }
    25% {
        transform: translate(-50%, -50%) rotate(90deg) scale(320%);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(290%);
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg) scale(310%);
    }
    100% {
        transform: translate(-50%, -50%) rotate(394deg) scale(280%);
    }
}

#home-page {
    min-height: 100vw;
    padding-top: 32px;

    & #main-logo {
        width: clamp(240px, 28vw, 360px) !important;
        height: auto;
    }

    & .section-style {
        gap: 8px;
    }

    & #website-section {
        & svg {
            padding: 4px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
        }
    }

    & .title-style {
        padding-left: clamp(8px, 3vw, 24px);

        & h1 {
            color: #272727;
            font-size: clamp(20px, 2vw, 24px);
            padding-bottom: 8px;
        }
    }

    & #main-links-section {
        & .section-style {
            min-width: 230px !important;
        }
    }

    #hours-section {
        & p, h2, h4 {
            color: #272727;
        }

        & #timetable {

            & > div {
                border-radius: 8px;

                transition: all 0.3s ease;

                &:hover {
                    background: var(--primary-container) !important;
                    outline: 1px solid var(--on-primary-container) !important;
                    z-index: 0 !important;

                    & p, h4 {
                        color: var(--on-primary-container) !important;
                    }

                    &#Sonntag {
                        background: var(--secondary) !important;
                        outline: 1px solid var(--on-secondary-container) !important;

                        & p, h4 {
                            color: var(--on-secondary) !important;
                        }
                    }
                }
            }

            & div.notActive h4 {
                font-weight: 300;
            }

            & div.active {
                z-index: 1;

                background: var(--primary);
                border: 1px solid var(--on-primary) !important;
                backdrop-filter: blur(8px);

                & #open {
                    display: block !important;
                    color: var(--on-primary);
                    font-weight: 300;
                }

                & p, h4 {
                    color: var(--on-primary);
                    font-weight: 500;
                }
            }

            & #Sonntag {
                background: var(--secondary-container);
                backdrop-filter: blur(8px);
                border: 1px solid var(--secondary);

                & p, h4 {
                    color: var(--secondary);
                }

                & #open {
                    display: none !important;
                }

                &.active {
                    background: var(--tertiary-container);
                    border: 1px solid var(--tertiary);

                    & p, h4 {
                        color: var(--tertiary);
                        font-weight: 500;
                    }
                }
            }
        }
    }

    & .section-container {
        background: rgba(248, 248, 248, 0.45);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

        border-radius: 16px;
        min-height: 40px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.67);

        max-width: 670px !important;
        width: 100%;

        & .link-button {
            min-height: 55px;
            border-radius: 8px;
            background: rgba(218, 179, 76, 0.15);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.47);
            box-shadow: none;
            min-width: 100%;

            & p {
                color: #272727;
                font-weight: 400;
            }

            & svg {
                width: 24px;
                height: 24px;
            }

            & path, & circle {
                fill: #272727;
            }

            &:hover {
                background: var(--primary-container);

                & p {
                    color: var(--on-primary-container);
                }

                & path, & circle {
                    fill: var(--on-primary-container);
                }
            }
        }
    }

    /* Smooth fade animation */
    & .fade {
        transition: opacity 0.5s ease, height 0.5s ease;
    }

    #booking-section-container,
    #general-section {
        opacity: 0;
        height: 0;
        display: none;
    }

    & .show {
        display: flex !important;
        height: auto !important;
        opacity: 1 !important;
    }



    .mode-switcher-container {
        width: fit-content;
        max-height: fit-content;
        min-height: 0;

        border-radius: 999px;

        & .switch-button {
            padding: 8px 24px 8px 16px;
            border-radius: 999px;
            background: transparent;

            height: fit-content;
            min-height: 50px;

            & p {
                color: var(--on-primary-container);
            }

            & svg {
                width: 24px;
                height: 24px;
            }

            & path {
                fill: var(--on-primary-container);
            }

            &:hover {
                background: var(--primary);

                & p {
                    color: var(--on-primary);
                }

                & path {
                    fill: var(--on-primary);
                }
            }

            &.active {
                background: var(--primary-container);
            }
        }
    }
}