/* --- DESIGN SYSTEM START --- */
:root {
    --primary: #0F172A; /* Deep Navy - Autoritet */
    --secondary: #334155; /* Slate - Tekst */
    --accent: #0EA5E9; /* Sky Blue - Handling */
    --accent-hover: #0284C7;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --danger: #EF4444; 
    --warning: #F97316;
    --border-radius: 8px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); background: var(--bg-light); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 4rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.flex { display: flex; gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } 
.mb-2 { margin-bottom: 2rem; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; line-height: 1.2; }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--secondary); }

.subtitle { font-size: 1.25rem; opacity: 0.95; max-width: 650px; margin-bottom: 2rem; font-weight: 400; color: rgba(255,255,255,0.95); }
.text-red { color: var(--danger); font-weight: 600; }
.text-orange { color: var(--warning); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--accent); color: var(--white); border-radius: 6px; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; text-align: center; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* Hotline Knap (Grøn) */
.btn-hotline { 
    background: #22c55e; color: white !important; padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; border: none;
}
.btn-hotline:hover { background: #16a34a; transform: translateY(-1px); }

/* Header & Nav */
header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; height: 75px; display: flex; align-items: center; }
.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn-hotline) { font-weight: 500; font-size: 0.95rem; color: var(--secondary); position: relative; }
.nav-links a:not(.btn-hotline):hover, .nav-links a.active { color: var(--accent); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* Hero Section (Med Video Support) */
.hero {
    background: #0F172A; /* Fallback farve */
    position: relative;
    padding: 6rem 0 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden; /* Holder videoen inde */
}
.hero h1, .hero p { color: var(--white); }

/* Video Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Overlay for at gøre videoen mørkere */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: 1;
}

/* Cards & Dashboard */
.dashboard-grid { margin-top: -5rem; position: relative; z-index: 10; padding-bottom: 2rem; }
.card { 
    background: var(--white); padding: 2rem; border-radius: 12px; 
    box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(0,0,0,0.04); 
    display: flex; flex-direction: column; height: 100%; justify-content: space-between; 
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.icon-box { 
    width: 56px; height: 56px; background: #F0F9FF; color: var(--accent); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 1.25rem; transition: 0.3s; font-size: 1.5rem;
}
.card:hover .icon-box { background: var(--accent); color: white; }
.card svg { width: 28px; height: 28px; stroke-width: 1.5; }

.link-text { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: auto; display: flex; align-items: center; gap: 4px; }
.card:hover .link-text { gap: 8px; }

/* Vejledning Tables & Sidebar */
.guide-layout { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.guide-sidebar { position: sticky; top: 90px; height: fit-content; background: var(--white); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--white); font-size: 0.9rem; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.data-table th { background: #f1f5f9; font-weight: 600; color: var(--primary); }

/* Formular Styles */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.form-input, .form-textarea { width: 100%; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: 0.2s; background: #fff; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
.form-textarea { min-height: 150px; resize: vertical; }

/* Status Messages (Alerts) */
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; font-weight: 500; text-align: left; }
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
footer { background: var(--primary); color: #94a3b8; padding: 4rem 0 2rem; margin-top: auto; font-size: 0.9rem; }
footer h4 { color: white; margin-bottom: 1rem; }
footer a { color: #cbd5e1; border-bottom: 1px dotted rgba(255,255,255,0.3); }
footer a:hover { color: white; border-bottom-style: solid; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 75px; left: 0; right: 0; background: var(--white); padding: 2rem; box-shadow: var(--shadow-md); align-items: flex-start; }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; padding: 0.5rem 0; }
    .hamburger { display: block; }
    
    .hero { padding: 4rem 0 6rem; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
    .hero h1 { font-size: 2rem; }
    
    .dashboard-grid { margin-top: -3rem; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-sidebar { position: relative; top: 0; margin-bottom: 2rem; }
    
    .flex { flex-wrap: wrap; }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }