/* GRUNDLÆGGENDE OPSÆTNING */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #607b90; /* Farven matcher din videos baggrund */
    overflow-x: hidden;
}


/* 3. STICKY HEADER & MENU */
.header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 0;
    text-align: center;
    z-index: 100;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 1. TOPSCROLL EFFEKT (FIXERET I BAGGRUNDEN) */
.topscroll-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    z-index: 1;
    display: flex;
    justify-content: center;
    background: #607b90;
}

.topscroll-ad video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Viser hele videoen uden beskæring */
}

/* 2. CONTENT WRAPPER (Glider over videoen) */
.main-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 600px; /* Samme højde som topscroll-ad */
    background: #f0f0f0;
    min-height: 100vh;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

/* 3. STICKY HEADER */
.header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    text-align: center;
    z-index: 100;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #0031A7;
}

/* 4. LAYOUT MED SIDEBARS */
.layout {
    display: grid;
    max-width: 1600px; /* Gør siden bredere */
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    margin: 0 auto;
    padding: 20px;
    align-items: start; /* Nødvendigt for sticky effekt */
}

/* 5. SIDEBARS (Sticky effekt) */
.sidebar {
    position: sticky;
    top: 100px; /* Afstand fra toppen når man scroller */
    z-index: 10;
}

.sidebar video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 6. MIDTERBOKSEN */
.content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    min-height: 1000px;
}

.top-ad-placeholder {
    margin-bottom: 30px;
    text-align: center;
}

.top-ad-placeholder video {
    max-width: 100%;
    height: auto;
}

.footer {
    text-align: center;
    padding: 40px;
    background: #333;
    color: white;
}

/* RESPONSIV TIL MOBIL */
@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Skjuler sidebannere på små skærme */
    }
    .topscroll-ad {
        height: 300px;
    }
    .main-wrapper {
        margin-top: 300px;
    }
}