/* =========================
   VARIABLER & RESET
   ========================= */
:root {
    /* Farvepalette */
    --primary-color: #004d99;      /* Dyb blå */
    --secondary-color: #e6f2ff;    /* Lys blå baggrund */
    --accent-color: #ff6600;       /* Orange (CTA) */
    --accent-hover: #e65c00;       /* Mørkere orange */
    --text-color: #333333;         /* Mørkegrå tekst */
    --bg-color: #f4f7f9;           /* Sidelayout baggrund */
    --white: #ffffff;
    
    /* Layout */
    --max-width: 1000px;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth; /* Glidende scroll når man trykker på links */
}

*, *::before, *::after {
    box-sizing: border-box; /* Sikrer korrekt padding/bredde beregning */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* =========================
   LAYOUT UTILITIES
   ========================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

header h1 { margin: 0; font-size: 2rem; }
.tagline { margin: 5px 0 0; opacity: 0.9; font-size: 0.9rem; }

header nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

header nav ul li { display: inline; margin: 0 15px; }

header nav ul li a { 
    color: var(--white); 
    font-weight: 600; 
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active { 
    border-bottom-color: var(--accent-color); 
}

/* Gør aktivt link ekstra synligt (bruges på undersider) */
nav ul li a.active {
    color: var(--accent-color) !important;
}

/* =========================
   HERO SEKTION
   ========================= */
.hero {
    text-align: center;
    padding: 60px 0;
    background-color: var(--secondary-color);
    border-bottom: 4px solid var(--primary-color);
}

.hero h2 { color: var(--primary-color); margin-top: 0; font-size: 2.2rem; }
.hero p { max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}
.cta-button.small { padding: 10px 20px; font-size: 1rem; }

/* =========================
   TRUSSELSBILLEDET (INFO GRID)
   ========================= */
.info-grid-section { background-color: var(--white); padding: 50px 0; }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background-color: #f9fcff;
    border: 1px solid #e1e8ed;
    padding: 25px;
    border-radius: var(--border-radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.outro-text {
    text-align: center;
    font-style: italic;
    background-color: #eee;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

/* =========================
   IDENTITET & ADFÆRD SEKTION
   ========================= */
.identity-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.identity-section h2 { color: var(--white); text-align: center; margin-top: 0; }
.identity-section .section-intro {
    color: #d1e8ff;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.identity-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.icon-header { font-size: 3rem; margin-bottom: 15px; }
.identity-card h3 { margin-top: 0; color: var(--accent-color); }

.example-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-color);
}

.example-box strong { color: #fff; display: block; margin-bottom: 5px; }
.example-box small { display: block; margin-top: 10px; color: #ccc; font-style: italic; }

/* =========================
   FAQ SEKTION
   ========================= */
.faq-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+'; 
    font-size: 1.5em;
    font-weight: normal;
    color: var(--accent-color);
}

.faq-item[open] summary::after { content: '-'; }

.faq-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

.faq-item summary:hover { background-color: #f9f9f9; }

/* =========================
   OM OS & FOOTER
   ========================= */
.content-preview article {
    background-color: var(--white);
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 40px 0;
    background-color: #eaeff2;
    color: #666;
    margin-top: 40px;
    font-size: 0.9rem;
}

footer a { color: #555; text-decoration: underline; }

/* =========================
   TEKSTSIDER (Disclaimer, Artikler, Begreber)
   ========================= */
.text-page-section, .article-section, .glossary-section {
    background-color: var(--white);
    padding: 60px 0;
    min-height: 80vh; 
}

/* Specifikt for begreber/leksikon */
.glossary-section { background-color: var(--bg-color); }
.glossary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.glossary-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.glossary-item:target {
    border-left-color: var(--accent-color);
    background-color: #fff9f0;
    animation: highlight 2s ease;
}
.glossary-item h3 {
    margin-top: 0; color: var(--primary-color);
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.glossary-item p { margin-bottom: 0; color: #444; }
.glossary-item a { color: var(--accent-color); text-decoration: underline; }

/* Specifikt for tekstsider */
.text-content, .article-container {
    max-width: 800px;
    margin: 0 auto;
}
.text-content h1, .article-title { color: var(--primary-color); margin-bottom: 5px; }
.last-updated, .meta-info, .breadcrumbs { color: #888; font-size: 0.9rem; margin-bottom: 20px; }
.text-content hr, .article-section hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }
.text-content article { margin-bottom: 40px; }
.text-content h2, .article-section h2 {
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px; margin-top: 40px;
}
.text-content ul { margin-left: 20px; margin-bottom: 20px; }
.text-content li { margin-bottom: 10px; }

/* Søgefelt (Dummy) */
.search-box-dummy { margin-bottom: 40px; text-align: center; }
.search-box-dummy input {
    width: 100%; max-width: 500px; padding: 15px;
    border: 1px solid #ddd; border-radius: 30px;
    font-size: 1rem; background-color: #f9f9f9;
    cursor: not-allowed;
}

/* Call-to-Action i artikler */
.article-cta {
    background-color: #eef6ff;
    border: 2px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 40px 0; text-align: center;
}
.article-cta h3 { margin-top: 0; color: var(--primary-color); }

/* Animationer */
@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* =========================
   PRODUKT SEKTION (CSS bevaret selvom HTML er skjult)
   ========================= */
.product-section { padding: 50px 0; }
.product-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.product-card {
    background: var(--white); padding: 30px;
    border: 1px solid #ddd; border-radius: var(--border-radius);
    text-align: center; position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.badge {
    position: absolute; top: -10px; right: 20px;
    background-color: var(--accent-color); color: white;
    padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold;
}
.product-link {
    display: inline-block; background-color: #28a745; color: white;
    padding: 10px 20px; border-radius: 4px; margin-top: 15px;
    font-weight: bold; transition: background-color 0.3s;
}
.product-link:hover { background-color: #218838; }

/* =========================
   RESPONSIVE (TABLET & DESKTOP)
   ========================= */
@media (min-width: 768px) {
    .info-grid, .product-grid, .glossary-list { grid-template-columns: 1fr 1fr; }
    .identity-grid { grid-template-columns: 1fr 1fr 1fr; }
    .glossary-list { align-items: start; }
    
    header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header nav ul { margin: 0; }
}