/* --- styles.css --- */

/* --- GRUNDLÆGGENDE SETUP --- */
:root {
    --primary-color: #223a5e; /* Dyb, rolig mørkeblå */
    --secondary-color: #4a90e2; /* Klarere blå til accenter og links */
    --text-color: #333;
    --bg-light: #f5f7fa; /* Meget lys grå-blå baggrund */
    --bg-white: #ffffff;
    --container-width: 1100px; /* Lidt bredere for det nye layout */
    --border-radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    padding-top: 80px; /* Plads til fixed header */
}

/* Typografi */
h1, h2, h3, h4 { color: var(--primary-color); line-height: 1.3; font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 3rem; }
h3 { font-size: 1.4rem; margin-top: 1.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; }
ul { list-style-position: outside; margin-left: 1.5rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }
a { text-decoration: none; color: var(--secondary-color); transition: color 0.2s ease; }
a:hover { color: var(--primary-color); text-decoration: underline; }
strong { font-weight: 700; color: var(--primary-color); }
em { font-style: italic; }

/* Genbrugelige Klasser */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 25px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.lead-text { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 2rem; font-weight: 500; }
.cta-text { font-weight: 600; color: var(--secondary-color); margin-top: auto; padding-top: 1.5rem; font-style: italic; display: block;}

.btn {
    display: inline-block; padding: 12px 30px; background-color: var(--secondary-color); color: white;
    border-radius: 4px; font-weight: 600; border: none; cursor: pointer; transition: background-color 0.2s ease;
}
.btn:hover { background-color: var(--primary-color); color: white; text-decoration: none; }
.btn-primary { background-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--secondary-color); }


/* --- HEADER & NAVIGATION --- */
header { background: rgba(255,255,255,0.98); box-shadow: 0 1px 10px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 25px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: -0.5px; text-decoration: none !important; }
nav ul { display: flex; list-style: none; margin: 0; }
nav ul li { margin-left: 30px; margin-bottom: 0; }
nav ul li a { color: var(--primary-color); font-weight: 600; font-size: 1rem; position: relative; }
nav ul li a.active { color: var(--secondary-color); }
nav ul li a:hover { text-decoration: none; color: var(--secondary-color); }


/* --- STANDARD HERO SECTION (Brugt på Forside etc.) --- */
.standard-hero {
    /* HUSK AT INDSÆTTE DIT HERO BILLEDE HER */
    background: linear-gradient(rgba(34, 58, 94, 0.85), rgba(34, 58, 94, 0.85)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 100px; text-align: center;
}
.standard-hero h1, .standard-hero h2 { color: white; margin-bottom: 1.5rem; }
.standard-hero p { color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto 2rem auto; font-size: 1.2rem; }


/* --- NYT LAYOUT (KAASTRUP-STIL) TIL YDELSER --- */
.hero-offset-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.hero-bg-block {
    /* Den mørke baggrund øverst */
    background-color: var(--primary-color);
    height: 400px; /* Juster højden efter behov */
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.offset-content-container {
    display: flex;
    gap: 40px;
    padding-top: 60px; /* Skubber indholdet ned over den mørke baggrund */
}

.main-content-overlap {
    flex: 2;
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.sidebar-box {
    flex: 1;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px; /* Gør at den følger med når man scroller */
    border-top: 5px solid var(--secondary-color);
}

.contact-person-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary-color);
}


/* --- SERVICES GRID (Brugt på Ydelser) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.service-icon { width: 60px; height: 60px; margin-bottom: 25px; fill: var(--secondary-color); }


/* --- FOREDRAG GRID --- */
.talk-section-header { border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 30px; margin-top: 60px; }
.talk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.talk-card { background: var(--bg-white); padding: 0 0 30px 0; border-radius: var(--border-radius); border: 1px solid #eee; overflow: hidden; display: flex; flex-direction: column; }
.talk-card-content { padding: 0 30px; flex-grow: 1; }
.talk-card h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.talk-img { width: 100%; height: 220px; object-fit: cover; background-color: #ddd; border-bottom: 3px solid var(--secondary-color); }


/* --- DIVERSE SEKTIONER --- */
.bg-light { background-color: var(--bg-light); }
.about-grid { display: flex; gap: 50px; align-items: flex-start; }
.about-text-col { flex: 2; }
.about-cv-col { flex: 1; background: var(--bg-white); padding: 30px; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.problem-box { background: var(--bg-white); padding: 40px; border-radius: var(--border-radius); border-left: 5px solid var(--secondary-color); margin-top: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- FOOTER --- */
footer { background: var(--primary-color); color: rgba(255,255,255,0.7); text-align: center; padding: 40px 0; font-size: 0.9rem; margin-top: 80px;}
footer a { color: white; text-decoration: underline; }

/* --- RESPONSIVT DESIGN --- */
@media (max-width: 900px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.7rem; }
    header .container { flex-direction: column; padding: 15px; }
    nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 10px 15px; }
    
    .offset-content-container { flex-direction: column; }
    .sidebar-box { position: static; width: 100%; }
    .hero-bg-block { height: 300px; }
    .main-content-overlap { padding: 30px; }

    .about-grid { flex-direction: column; gap: 30px; }
}