/* ====== Grundlayout ====== */
html {
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #222;
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.no-scroll{
    overflow-y: hidden;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.overlay h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
}

.overlay h2 {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== Navbar ===== */

.nav-left,
.nav-right {
    display: flex;
    gap: 25px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-btn {
    background-color: #f1efe7;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid;
    border-width: 2px;
    min-height: 48px;
    min-width: 108px;
    padding: 0 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #554c40;
    color: white;
    transform: translateY(-2px);
}

.logo-img {
    display: block;
    height: 20vh;
    width: auto;
    transition:
        height 0.4s ease,
        transform 0.3s ease;
}

.logo-img:hover {
    transform: translateY(-6px);
}

.blur-up {
    filter: blur(20px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

.blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

.navbar.sticky {
    position: fixed;
    top: 20px;
    bottom: auto;
    padding: 15px 30px;
    width: max-content;
    max-width: calc(100vw - 40px);
    background: rgba(85, 76, 64, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    box-sizing: border-box;
}

.navbar.sticky .logo-img {
    height: 11vh;
}

.navbar.sticky .nav-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ===== Burger Menü ===== */
.burger {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 200;
    border-radius: 999px;
    border: 1px solid rgba(84, 76, 64, 0.2);
    background: rgba(241, 239, 231, 0.94);
    box-shadow: 0 10px 24px rgba(34, 34, 34, 0.08);
    backdrop-filter: blur(10px);
}

.burger span {
    position: absolute;
    height: 3px;
    width: 24px;
    background-color: #554c40;
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
    transform-origin: center;
}

.burger span:nth-child(1) {
    transform: translateY(-8px);
}

.burger span:nth-child(2) {
    transform: translateY(0);
}

.burger span:nth-child(3) {
    transform: translateY(8px);
}

.nav-links {
    display: none;
    box-sizing: border-box;
}

.nav-links .nav-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .navbar:not(.sticky) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar.sticky {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .burger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: min(320px, calc(100vw - 32px));
        background: rgba(251, 248, 242, 0.96);
        border: 1px solid rgba(84, 76, 64, 0.14);
        box-shadow: 0 18px 40px rgba(34, 34, 34, 0.14);
        padding: 14px;
        border-radius: 20px;
        gap: 10px;
        z-index: 150;
    }

    .nav-btn {
        width: auto;
        min-width: 0;
        min-height: 46px;
        padding: 10px 18px;
        margin: 0;
        text-align: center;
    }

    .logo-img {
        height: 72px;
    }
}

.burger.toggle span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.burger.toggle span:nth-child(2) {
    opacity: 0;
}
.burger.toggle span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Hintergrund Blur */
.lightbox {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Aktiv */
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Bild Container */
.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Bild selbst */
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;

    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow.left {
    left: 30px;
}

.lightbox-arrow.right {
    right: 30px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 25px;
    cursor: pointer;
    height: 25px;
    width: 25px;
    border: solid;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.3);
    border-width: 2px;
    border-radius: 30px;
    text-align: center;
    vertical-align: middle;
    line-height: 22.5px;       
    
}

.lightbox-close:hover {
    top: 18px;
}

#lightbox {
    touch-action: pan-y;
}

/* Animation */
.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Footer */

.footer {
    background-color: #ece9df;
    padding-bottom: 20px;
    padding-left: 20px;
    border-top: 1px solid #d0c9af;
    margin-top: 50px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #746658;
}

@media (max-width: 1200px) {
    .nav-left,
    .nav-right {
        gap: 14px;
    }

    .nav-btn {
        height: auto;
        width: auto;
        min-height: 46px;
        padding: 0 20px;
    }

    .logo-img {
        height: clamp(88px, 11vw, 150px);
    }
}

@media (max-width: 980px) {
    .navbar.sticky {
        top: 12px;
        padding: 12px 20px;
    }

    .navbar.sticky .nav-btn {
        min-height: 42px;
        padding: 0 16px;
    }

    .lightbox-arrow {
        font-size: 32px;
        padding: 12px 16px;
    }

    .lightbox-arrow.left {
        left: 16px;
    }

    .lightbox-arrow.right {
        right: 16px;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        width: auto;
        margin: 0;
    }

    .logo-img {
        height: 72px;
    }

    .lightbox {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .lightbox img {
        max-width: calc(100vw - 24px);
        max-height: 80vh;
    }

    .lightbox-arrow {
        font-size: 28px;
        padding: 10px 14px;
    }

    .lightbox-arrow.left {
        left: 8px;
    }

    .lightbox-arrow.right {
        right: 8px;
    }

    .footer {
        padding: 24px 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
    }
}

@media (max-width: 480px) {
    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .navbar.sticky {
        padding: 10px 14px;
    }

    .logo-img {
        height: 60px;
    }

    .nav-links.active {
        width: calc(100vw - 24px);
    }

    .lightbox-arrow {
        font-size: 24px;
        padding: 8px 12px;
    }
}
