/* ========== GRUNDLÆGGENDE STYLING ========== */
:root {
    --primary-color: #cb2d6f;
    --primary-dark: #a82458;
    --secondary-color: #162c31;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Montserrat', Arial, sans-serif; /* Modernere skrifttype */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-color);
}

main {
    padding: 40px 20px; /* Øget padding for mere luft */
    max-width: 1200px;
    margin: 0 auto; /* Centrerer indholdet */
    width: 90%; /* Sikrer margen på begge sider */
}

main a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

main a:visited {
    color: var(--primary-color);
}

main a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ========== HEADER OG NAVIGATION ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Procentvis padding for responsivitet */
    background-color: var(--secondary-color);
    color: white;
    position: sticky; /* Gør header sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtil skygge */
}

header .logo {
    text-decoration: none;
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
}

header nav .menu {
    display: flex;
    gap: 25px; /* Øget afstand mellem menupunkter */
}

header nav .menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* Understreg-animation ved hover */
header nav .menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

header nav .menu a:hover::after {
    width: 100%;
}

header nav .hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* ========== FORMULARER OG INPUT ========== */
input[type="text"], 
input[type="url"], 
input[type="email"], 
textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px; /* Lidt mere padding */
    margin: 8px 0;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fokuseffekt for input-felter */
input:focus, 
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(203, 45, 111, 0.3);
}

label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--text-color);
}

textarea {
    height: 150px; /* Lidt højere */
    resize: vertical;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
    margin-bottom: 30px; /* Mere plads efter formularer */
}

/* ========== KNAP STYLING ========== */
button, 
input[type="submit"], 
input[type="button"] {
    background-color: var(--primary-color);
    color: white;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px); /* Let hævningseffekt */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button:active,
input[type="submit"]:active, 
input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-container {
    display: flex;
    justify-content: flex-start; /* Venstrejusteret i stedet for centreret */
    margin-top: 20px;
}

/* ========== SEKTIONS-STYLING ========== */
.section {
    margin: 50px 0;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.section h2 {
    margin-top: 0;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ========== RESPONSIVITET ========== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    main {
        padding: 30px 15px;
        width: 95%;
    }
    
    header {
        padding: 12px 5%;
    }
    
    header .logo {
        font-size: 1.6em;
    }
    
    header nav .menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        background-color: var(--secondary-color);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    header nav .menu.show {
        display: flex;
    }
    
    header nav .hamburger {
        display: block;
    }
    
    /* Fjern hover-effekten på mobil, da den ikke fungerer godt */
    header nav .menu a::after {
        display: none;
    }
    
    .section {
        padding: 20px 15px;
        margin: 30px 0;
    }
}

/* ========== ANIMATIONER OG OVERGANGE ========== */
/* Fadeeffekt for sektioner ved indlæsning - kræver JavaScript */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ekstra stile til callout-bokse */
.callout {
    background-color: rgba(203, 45, 111, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}