/* =========================================================
   GLOBAL BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #004494;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #666666;
    --accent-purple: #667eea;
    --accent-purple-dark: #764ba2;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-disabled {
    display: block;
    padding: 0.6rem 1rem;
    color: #9e9e9e;
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    gap: 1rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}



.ekstra {
    font-style: italic;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    justify-content: center; /* center punkt-linjen */
    flex-grow: 1; /* gør midterfeltet fleksibelt */
    gap: 1rem;
    list-style: none;      /* Fjern prikker */
    padding-left: 0;       /* Fjern indrykning */
}


.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.95rem;
    
}

.nav-menu a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}
.nav-menu li {
    display: flex;
    align-items: center;   /* Centrerer vertikalt */
}
.nav-menu li a {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid var(--light-gray);
}

.mobile-auth-section {
    display: none;
}

.adminDashboardLink {
    display: none;
}

.auth-section .user-name {
    color: var(--dark-gray);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.auth-section .user-name:hover {
    color: var(--primary-blue);
}

.auth-section a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.auth-section a:hover {
    color: var(--primary-blue);
}

.auth-section button {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}

.auth-section button:hover {
    background: #c82333;
}

.admin-link {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 5px 0;
    transition: 0.3s;
}
/* Dropdown wrapper */
.nav-menu .dropdown {
    position: relative;
    list-style: none;

}

/* Dropdown toggle skal ligne et normalt link */
.nav-menu .dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: #1f4d1f;
    white-space: nowrap;
    display: block;
    background: #d9f7d9;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
}

.nav-menu .dropdown-toggle:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Dropdown menu */
.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;

    flex-direction: column;
    min-width: 180px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2000;
}

.nav-menu .dropdown-menu li {
    list-style: none;
}

.nav-menu .dropdown-menu a {
    padding: 0.6rem 1rem;
    display: block;
    color: var(--dark-gray);
    border-bottom: none;
}

/* Sikrer at ALLE punkter i dropdown står ens */
.nav-menu .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}


.nav-menu .dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* Hover aktivering på desktop */
@media (min-width: 768px) {
    .nav-menu .dropdown:hover .dropdown-menu {
        display: flex;
    }
}

/* Mobil – klik i stedet for hover */
@media (max-width: 768px) {
    .nav-menu .dropdown-menu {
        position: relative;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .nav-menu .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/* =========================================================
   HERO (fælles for alle sider)
========================================================= */

.hero {
    height: 90vh; /* Fuld skærmhøjde */
    background-image: url("../billeder/toon.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top; /* Start: top */
    color: var(--white);
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrer tekst vertikalt */
    align-items: center;     /* Centrer tekst horisontalt */

    position: relative;
    overflow: hidden;
    transition: background-position 0.2s ease-out;
}




.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(35deg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================================================
   GENEREL WRAPPER / KORT / SEKTIONER
========================================================= */

.wrapper {
    max-width: 900px;
    margin: 60px auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.section {
    padding: 30px 20px;
}

.section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-purple);
    padding-bottom: 6px;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 5px solid var(--accent-purple);
    padding: 20px;
    border-radius: 8px;
    
    
}.sub-list {
    margin-top: 10px;
    margin-left: 25px;
}
.sub-list2 {
    margin-top: 5px;
    margin-left: 55px;
}


/* =========================================================
   CTA BOXES + BUTTONS
========================================================= */

.cta-box {
    margin-top: 40px;
    background: #f8f9fa;
    border-left: 5px solid var(--accent-purple);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cta-box h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cta-button,
.btn,
.button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover,
.btn:hover,
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 20px 2rem;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

/* =========================================================
   RESPONSIVE
========================================================= */
/* Cookie Policy - Premium knapper med animationer */
.cookie-policy .btn-primary,
.cookie-policy .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.cookie-policy .btn-primary::before,
.cookie-policy .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-policy .btn-primary:hover::before,
.cookie-policy .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-policy .btn-primary {
    background: linear-gradient(135deg, #004494 0%, #0066cc 100%);
    color: white;
}

.cookie-policy .btn-primary:hover {
    background: linear-gradient(135deg, #003366 0%, #004494 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,68,148,0.4);
}

.cookie-policy .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,68,148,0.3);
}

.cookie-policy .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.cookie-policy .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.cookie-policy .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108,117,125,0.3);
}

/* Consent buttons container */
.consent-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.consent-buttons button {
    flex: 1;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

/* Loading animation når der klikkes */
.cookie-policy button:active {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .consent-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .consent-buttons button {
        width: 100%;
        min-width: auto;
    }
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    padding: 1.5rem;
    z-index: 9999;
    border-top: 3px solid #004494;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    color: #004494;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.cookie-text a {
    color: #004494;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-actions .btn-primary,
.cookie-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .auth-section {
        display: none;
    }

    .mobile-auth-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--light-gray);
        width: 100%;
    }

    .mobile-auth-section button {
        padding: 0.5rem 1rem;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .wrapper {
        margin: 30px 15px;
        padding: 25px;
    }

    .section {
        padding: 40px 15px;
    }
}/* Gør dropdown synlig når JS tilføjer .show */
.nav-menu .dropdown-menu.show {
    display: flex !important;
}
