/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-weight: 500;
    color: #333;
}

/* Color Variables */
:root {
    --blue: #27509B;
    --beige: #FBEBD6;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
}

/* Header */
header {
    background-color: var(--white);
    padding: 2.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 75px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--blue);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

nav a.active {
    font-weight: 800;
}

/* Link styling i main content */
main a {
    color: #27509B;
    text-decoration: underline;
}

main a:hover {
    text-decoration: none;
}

main a:visited {
    color: #27509B;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: url('header-billede.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 300;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    background-color: var(--beige);
    padding: 3rem;
    border-radius: 0px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    margin-bottom: -300px; 
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform:uppercase;
}

h3 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Info Boxes */
.info-box {
    background-color: #f0f7ff;
    padding: 1.5rem;
    margin: 2rem 0;

}

.warning-box {
    background-color: var(--beige);
    padding: 30px;
    margin: 2rem 0;
}

/* Candidate List */
.candidate-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.candidate-item {
    background-color: #f5f5f5;
    padding: 1rem;
 
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
}

.contact-card h3 {
    margin-top: 0;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin: 1rem 0;
}

/* Footer */
footer {
    position: relative;
    background-color: var(--blue);
    color: #FFFFFF;
    padding: 200px 0 40px 0;
    margin-top: 0;
}

/* Wave effect */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 175px;
    background-color: #FFFFFF;
    border-bottom-right-radius: 60% 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-logo {
    width: 80px;
    margin-top: 30px;
    height: auto;
    display: block;
}

.footer-logo-column {
    display: flex;
    align-items: flex-start;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #FFEAD3;
}

.footer-column p,
.footer-column a {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #FFEAD3;
    text-decoration: none;
}

.footer-column a {
    display: block;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column a::before {
    content: '›';
    margin-right: 8px;
    font-weight: bold;
}

.footer-email {
    color: white;
    text-decoration: none;
}

.footer-email::before {
    content: '›';
    margin-right: 8px;
}

/* Accordion (details/summary) */
.accordion {
    border-bottom: 2px solid var(--blue);
    margin-bottom: 0;
}

.accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--blue);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.accordion[open] summary::after {
    content: '\2212';
}

.accordion summary h2 {
    margin-bottom: 0;
    pointer-events: none;
}

.accordion-content {
    padding: 0 0 2rem 0;
}

.accordion-content h3:first-child {
    margin-top: 0;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Normal Tilstand (Redirect) Styling */
.normal-tilstand {
    background: white;
    padding: 60px 40px;
    border-radius: 70px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
}

.normal-tilstand h1 {
    color: var(--blue);
    margin-bottom: 20px;
    font-size: 32px;
}

.normal-tilstand p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

.redirect-info {
    background: #ffead3;
    padding: 20px;
    border-radius: 0px;
    margin: 30px 0;
    border-left: 4px solid var(--blue);
}

.redirect-info p {
    margin-bottom: 10px;
}

.redirect-info a {
    color: var(--blue);
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
}

.redirect-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        border-bottom: 1px solid #e0e0e0;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
    }

    .hero {
        height: 300px;
    }

    .hero-content {
        padding: 2rem;
        margin-bottom: -40px; 
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    main {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .candidate-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .logo {
        height: 45px;
    }

    .hero {
        height: 250px;
    }

    .hero-content {
        padding: 1.5rem;
        margin-bottom: -30px; 
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    footer::before {
        top: -30px;
        height: 30px;
    }

    /* Footer responsive */
    footer {
        padding: 60px 0 30px 0;
    }
    
    footer::before {
        height: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .footer-logo-column {
        text-align: center;
    }
    
    .footer-logo {
        width: 80px;
        margin: 0 auto;
    }
    
    .footer-column {
        text-align: left;
    }
}
