/*
Theme Name: De Stribede
Theme URI: https://destribede.dk
Author: Thomas & Senior Udvikler
Description: Skræddersyet, lynhurtigt og moderne tema til Odense Boldklubs Officielle Fanklub.
Version: 1.0
Text Domain: destribede
*/

:root {
    --hovedfarve-blaa: #0066FF; 
    --hovedfarve-blaa-moerk: #00479A;
    --baggrund-lys: #f4f6f8;
    --tekst-moerk: #222;
}

body {
    background-color: var(--baggrund-lys);
    color: var(--tekst-moerk);
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; }

/* --- KNAPPER --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-blaa { background: var(--hovedfarve-blaa); color: white; }
.btn-blaa:hover { background: var(--hovedfarve-blaa-moerk); }

/* --- HERO SEKTION --- */
.hero-sektion {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: white;
}
.hero-sektion::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 30, 70, 0.7); 
}
.hero-indhold {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}
.hero-indhold h1 { font-size: 3.5em; margin-bottom: 5px; color: white; text-transform: uppercase;}
.hero-subtitle { font-size: 1.5em; margin-top: 0; margin-bottom: 30px; font-weight: 300;}

/* --- INDHOLD WRAPPER --- */
.indhold-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* --- BUSTURE BOKS --- */
.bus-oversigt {
    background: white;
    border: 3px solid var(--hovedfarve-blaa);
    border-radius: 8px;
    margin-top: -80px; 
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}
.bus-header {
    background: var(--hovedfarve-blaa);
    color: white;
    padding: 15px;
    text-align: center;
}
.bus-header h2 { margin: 0; font-size: 1.5em; color: white; }
.bus-liste { padding: 20px; }
.bus-kort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.bus-kort:last-child { border-bottom: none; }
.bus-info-wrap { display: flex; align-items: center; gap: 20px; }
.bus-ikon { font-size: 2em; }
.bus-info h3 { margin: 0; color: var(--hovedfarve-blaa-moerk); font-size: 1.2em; }
.bus-info p { margin: 5px 0 0; color: #666; font-size: 0.9em; }
.bus-koeb { text-align: right; }
.bus-koeb .pris { display: block; font-weight: bold; margin-bottom: 5px; color: var(--hovedfarve-blaa-moerk);}

/* --- NYHEDS GITTER --- */
.nyheds-oversigt h2 { text-transform: uppercase; color: var(--hovedfarve-blaa-moerk); text-align: center; margin-bottom: 30px; }
.nyheds-gitter {
    display: grid;
    /* Opdateret til 250px for at skabe plads til 4 nyheder side om side på store skærme */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.nyheds-kort {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.nyheds-kort:hover { transform: translateY(-5px); }
.nyheds-billede { position: relative; height: 200px; }
.nyheds-billede img { width: 100%; height: 100%; object-fit: cover; }

/* Badges */
.badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 5px 10px;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
}
.badge-offentlig { background: #28a745; }
.badge-medlem { background: var(--hovedfarve-blaa); }

.nyheds-tekst { padding: 20px; }
.nyheds-tekst h3 { margin: 0 0 10px; font-size: 1.2em; color: var(--hovedfarve-blaa-moerk); line-height: 1.3;}
.dato { font-size: 0.8em; color: #888; margin-bottom: 10px; }
.laes-mere { color: var(--hovedfarve-blaa); font-weight: bold; text-decoration: none; }

/* --- SPONSOR SEKTION --- */
.sponsor-oversigt {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #ddd;
    text-align: center;
}
.sponsor-oversigt h2 { text-transform: uppercase; color: var(--hovedfarve-blaa-moerk); margin-bottom: 30px; }
.sponsor-gitter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}
.sponsor-logo {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #999;
    font-weight: bold;
}


/* ==========================================================================
   MOBIL DESIGN (Media Queries for skærme under 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Gør teksten i hero-banneret mindre */
    .hero-sektion { padding: 80px 15px; }
    .hero-indhold h1 { font-size: 2.2em; }
    .hero-subtitle { font-size: 1.1em; }
    
    /* Ret bustur-boksen, så knapper og tekst står under hinanden */
    .bus-oversigt { margin-top: -30px; }
    .bus-kort {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .bus-info-wrap {
        flex-direction: column;
        gap: 10px;
    }
    .bus-koeb { text-align: center; }

    /* Sponsorerne stables pænt 2 og 2 på mobil */
    .sponsor-gitter {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Skjul den 4. nyhed på mobilskærme, så siden holdes kort */
    .nyheds-kort:nth-child(4) {
        display: none;
    }
}