* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003087;
    --secondary-color: #F5F5F5;
    --text-color: #333;
    --accent-color: #0066CC;
    --white: #ffffff;
	--red: #ff0000;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header layout som flex */
header {
 background: #f4f6fb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1500;}

/* TOP ROW */
.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 1rem;
	min-height: 88px;
}

/* CENTER LOGO */
.header-center {
    display: flex;
    justify-content: center;
/*ahm    align-items: center; */
}

.logo {
    height: auto;
    max-width: 420px;
    width: min(420px, 100%);
    display: block;
}

/* RIGHT FACEBOOK ICON */
.header-right {
    display: flex;
    justify-content: flex-end;
/*ahm    align-items: center; */
}

.facebook-link svg {
    width: 28px;
    height: 28px;
    fill: #1877f2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.facebook-link:hover svg {
    transform: scale(1.1);
    opacity: 0.85;
}
/* Skub menuen helt til højre */
.navbar {
	border-top: 1px solid #e5e5e5;
    padding: 0.5rem 1rem;
    margin-left: auto;
    max-width: 1200px;
    padding: 0 2rem;
}
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    cursor: pointer;
    position: absolute; /*ahm static */
    top: 0.5rem;   /*ahm */
    right: 1.5rem;  /*ahm */
    z-index: 1101;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 48, 135, 0.1);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* Submenu Styles */
.nav-item-with-submenu {
    position: relative;
}
.nav-item-with-submenu .submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item-with-submenu.submenu-active > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
@media (min-width: 769px) {
.nav-item-with-submenu:hover > .submenu,
.nav-item-with-submenu.submenu-active > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
}

.submenu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
}

.submenu-link:hover {
    background: rgba(0, 48, 135, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.submenu-link::before {
    display: none;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #003087;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure images maintain aspect ratio */
.slide[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
}

.welcome-slide {
    background: linear-gradient(135deg, #003087 0%, #83c0fc 100%) !important;
    background-size: cover !important;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-btn {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    max-width: 90%;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.slider-dots::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.3);
}

/* ASP Content Container */
.asp-content-container {
    width: 100%;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: var(--white);
}

.asp-frame {
    width: 100%;
    min-height: calc(100vh - 250px);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    background: var(--secondary-color);
}

.content-section {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.content-section:nth-child(even) {
    background: var(--secondary-color);
}

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

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.content-section p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Landscape Orientation - Show full images */
@media (orientation: landscape) and (min-width: 769px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
        max-height: 800px;
    }
    
    .slide:not(.welcome-slide) {
        background-size: contain;
        background-position: center center;
        background-color: #003087;
    }
    
    .welcome-slide {
        background-size: cover !important;
    }
}

/* Tablet/iPad Responsive - Portrait */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        height: 50vh;
        min-height: 450px;
        max-height: 600px;
    }
    
    .slide {
        background-size: cover;
        background-position: center center;
    }
}

/* Desktop/Large Screens - Portrait */
@media (min-width: 1025px) and (orientation: portrait) {
    .hero-section {
        height: 50vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .slide {
        background-size: cover;
        background-position: center center;
    }
}

/* Desktop/Large Screens - Landscape */
@media (min-width: 1025px) and (orientation: landscape) {
    .hero-section {
        height: 60vh;
        min-height: 550px;
        max-height: 850px;
    }
    
    .slide:not(.welcome-slide) {
        background-size: contain;
        background-position: center center;
        background-color: #003087;
    }
    
    .welcome-slide {
        background-size: cover !important;
    }
}

/* Mobile Responsive */

@media (max-width: 768px) {
	.logo-container {
        padding: 0.75rem 1rem;
    }
    .header-top {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr) 54px;
        grid-template-rows: 54px;
        align-items: center;
        justify-items: center;
        padding: 0.5rem 1rem;
        min-height: 64px;
        gap: 0;
    }
    
    /* FLYT Facebook-ikonet til VENSTRE kolonne */
    .header-right {
        grid-column: 1;
        grid-row: 1;
        width: 54px;
        justify-content: center;
        align-items: center;
        height: 54px;
        padding: 0;
        margin: 0;
    }

    .header-center {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        height: 54px;
    }
    

    .logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .logo {
        max-width: 420px; /*ahm max-width: 240px;*/
        max-height: 54px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .navbar {
        padding: 0;
        margin: 0;
        max-width: none;
        border-top: none;
        min-height: 0;
    }

.nav-toggle {
   display: flex !important;
   align-items: center !important;
   justify-content: center !important;
   grid-column: 3 !important;
   place-self: center !important;  /* shorthand for align-self and justify-self */
   margin: 0 !important;
}
    .nav-toggle.active {
        transform: none;
    }
    .nav-menu,
    .nav-menu * {
        transform-style: flat;
    }
    .nav-menu {
        top: 0;
        height: 100dvh; 
        position: fixed;
        will-change: transform;
        left: 0;
        width: min(360px, 85vw);
        padding: calc(env(safe-area-inset-top) + 1rem) 1.25rem 2rem;
        background: var(--white);
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        gap: 0.75rem;
        transform: translateX(-100%);
        transition: transform 0.35s ease, opacity 0.25s ease;
        z-index: 1100;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        padding: 0.85rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-link::before {
        display: none;
    }

    .nav-item-with-submenu > .nav-link::after {
        content: '+';
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .nav-item-with-submenu.submenu-open > .nav-link::after {
        transform: rotate(45deg);
    }

    @media (max-width: 768px) {
        .submenu {
            position: static !important;
            left: auto !important;
            top: auto !important;
            transform: none !important;
    
            width: 100%;
            margin: 0;
            padding: 0.25rem 0 0.25rem 1rem;
    
            opacity: 1;
            visibility: visible;
            box-shadow: none;
            border-radius: 0;
            background: rgba(0, 48, 135, 0.05);
    
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
    }
    

    .nav-item-with-submenu.submenu-open .submenu {
        max-height: 500px;
        margin-top: 0.5rem;
    }

    .submenu-link {
        padding: 0.6rem 0.75rem 0.6rem 1.5rem;
        font-size: 0.85rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 6px;
        margin-bottom: 0.4rem;
    }

    .submenu-link:hover {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 180px;
    }
  
    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.3rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}