/* ==========================================================================
   1. KOMPAKT LAYOUT (HEADER & HERO)
   ========================================================================== */

.dropdown-menu .dropdown-item {
    background-color: transparent; /* Sæt lys baggrund på selve linket for læsbarhed */
    color: #000;
    padding-left: 10px;
    padding-right: 1rem;
    margin-top: -10px;
    padding-top: 0px;
}

.navbar-nav > .dropdown > .dropdown-menu {
    background-color: transparent; /* Containeren er transparent */
    border: none;
    margin-top: 0;
    left: 0 !important;
}

/* Dropend/hover for nested submenu (level >= 1) */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: .1rem;
        margin-right: .1rem;
        background-color: transparent;
        border: none;
    }

/* Stil for Level 0 */
.navbar-nav > .nav-item > .nav-link {
    color: #000000;
    font-size: large;
}

/* Stil for aktive links */
.dropdown-item.active, .nav-link.active {
    font-weight: 600;
}

/* Valgfri: Hover/klik funktionalitet for desktop */
@@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu .dropend:hover .dropdown-menu {
        display: block;
    }
}
/* Hoved-header (den hvide bar med logo) */
.header {
    height: 80px;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.logo-image {
    max-height: 30px !important;
    width: auto;
    display: block;
}

/* Top Image / Hero Sektion */
.section--header {
    width: 100%;
    height: 100px; /* Halveret højde */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

    .section--header h1 {
        margin: 0;
        font-size: 1.5rem !important; /* Tilpasset den lave højde */
        font-weight: 800;
        color: white;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        text-align: center;
    }

    .section--header p {
        font-size: 0.9rem !important;
        color: white;
        margin: 0;
    }

/* ==========================================================================
   2. MOBIL NAVIGATION & HAMBURGER
   ========================================================================== */

.mobile-nav {
    display: none; /* Skjules som standard, aktiveres via JS */
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-nav-handler {
    display: flex;
    align-items: center;
    height: 100%;
}

.hamburger {
    width: 25px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

    .hamburger span,
    .hamburger::before,
    .hamburger::after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000;
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: 0;
    }

    .hamburger span {
        top: 8px;
    }

    .hamburger::after {
        bottom: 0;
    }

/* ==========================================================================
   3. RESET & BASIS (OPRYDDET)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Source+Sans+Pro:400,700|Lato:400,900|Roboto+Mono');

*, :after, :before {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

img {
    border: 0;
    max-width: 100%;
}

/* ==========================================================================
   4. TEMAER (SAMLET DEFINITION)
   ========================================================================== */

/* Water Theme */
body.theme-color-water .section--themed,
body.theme-color-water .mobile-nav {
    background-color: #362bdc;
    color: #fff;
}

body.theme-color-water .nav-link:hover {
    border-color: #fff;
}

/* Sun Theme */
body.theme-color-sun .section--themed,
body.theme-color-sun .mobile-nav {
    background-color: #f8ea88;
    color: #000;
}

/* Earth Theme */
body.theme-color-earth .section--themed,
body.theme-color-earth .mobile-nav {
    background-color: #0d7cb4;
    color: #000;
}

/* ==========================================================================
   5. GRID SYSTEM (BOOTSTRAP FALLBACK)
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.text-center {
    text-align: center;
}
