* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #ffffff; 
    color: #333333;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important; /* Tvinger hvid baggrund frem */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); 
    z-index: 9999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #544e48;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #bba06b; 
}

.nav-btn {
    background-color: #332f2b;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: background 0.2s ease !important;
}

.nav-btn:hover {
    background-color: #544e48;
}

.hero-section, .page-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 60px 20px;
    background-color: #ffffff;
}

.linktree-card {
    background-color: #332f2b; 
    width: 100%;
    max-width: 580px;
    padding: 50px 40px;
    border-radius: 40px; 
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.profile-logo-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.page-title {
    color: #bba06b; 
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-desc {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
}

.cta-button {
    display: block;
    background-color: #ffffff;
    color: #332f2b;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background-color: #e5dfd5;
    transform: translateY(-1px);
}

.contrast-oval {
    background-color: #544e48; 
    border-radius: 50px;
    padding: 16px 30px;
    margin-top: 15px;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.contrast-oval:hover {
    background-color: #635c55;
}

.accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.3s ease-out; 
    overflow: hidden;
}

.contrast-oval.active + .accordion-wrapper {
    grid-template-rows: 1fr;
}

.accordion-content {
    min-height: 0;
    padding: 0 30px;
    color: #ffffff;
    opacity: 0;
    line-height: 1.6;
    text-align: left;
    transition: opacity 0.2s ease, padding 0.3s ease;
}

.contrast-oval.active + .accordion-wrapper .accordion-content {
    opacity: 0.9;
    padding: 15px 30px 20px 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #544e48;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.9rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; 
    background-color: #544e48;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form textarea {
    border-radius: 20px; 
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #bba06b;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 10000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #332f2b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MOBIL OPTIMERING & BURGERMENU (Fejlsikret)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; 
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 0; 
        padding: 0; 
        overflow: hidden;
        visibility: hidden; /* Gør menuen helt usynlig og umulig at klikke på i lukket tilstand */
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, visibility 0.3s;
        z-index: 9998;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 30px 0; 
        visibility: visible; /* Gør menuen aktiv og klikbar, når burgermenuen åbnes */
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    .nav-links li:first-child {
        margin-left: 0;
    }

    .nav-btn {
        display: inline-block;
        width: auto;
        padding: 12px 40px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .linktree-card {
        padding: 40px 25px;
    }
}
