/* =========================================================
   Brand-farver — Molslinjen palette (2026-05-19)
   Brug `var(--color-*)` overalt for at lette fremtidige skift.
   ========================================================= */
:root {
    /* Dyb Havblå — primær mørk: til tekst, baggrunde, surfaces */
    --color-dyb-havblaa: #002547;        /* 100% — Pantone 295 C */
    --color-dyb-havblaa-80: #33516c;     /* 80% over hvid */
    --color-dyb-havblaa-60: #667c91;     /* 60% over hvid */
    --color-dyb-havblaa-40: #99a8b5;     /* 40% over hvid */

    /* Havskum — hvid */
    --color-havskum: #ffffff;

    /* Havblå — sekundær medium blå (Pantone 2144 C) */
    --color-havblaa: #005ba9;

    /* Den smarte vej / CTA — lys blå (Pantone 298) */
    --color-cta: #00b5ed;
    --color-cta-hover: #33c4f0;          /* Lysere på hover */

    /* Lavpris — orange (kun til lavpris-elementer) */
    --color-lavpris: #f18700;
    --color-lavpris-hover: #ffa733;
}

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

body {
    background-color: var(--color-dyb-havblaa);
    font-family: korolev, sans-serif;
    font-weight: 500; /* Korolev Medium til brødtekst */
    color: var(--color-dyb-havblaa); /* Default tekst-farve på hvid baggrund */
}

/* =========================================================
   Korolev typografi (2026-05-19 brand-guide)
   - Overskrifter (h1, h2): Bold italic, versaler
   - Underoverskrifter (h3, h4): Medium, minuskler
   - Brødtekst: Medium (500) eller Light (300)
   - Tekst på hvid baggrund: var(--color-dyb-havblaa) (Dyb Havblå)
   ========================================================= */
h1, h2 {
    font-family: korolev, sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
}

h3, h4 {
    font-family: korolev, sans-serif;
    font-weight: 500;
    text-transform: none;
}

p {
    font-family: korolev, sans-serif;
    font-weight: 500;
}

/* Navigation */
.navbar {
    background-color: var(--color-dyb-havblaa);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-padding {
    padding: 1rem 2rem 1rem 2rem;
}

.logo {
    width: 10rem;
}

.button {
    padding: 0.5rem 1rem;
    background-color: var(--color-cta);
    color: var(--color-havskum);
    border: none;
    font-family: korolev, sans-serif;
    font-weight: 600;
    border-radius: 99rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: var(--color-cta-hover);
}

/* =========================================================
   Knap-hierarki
   - .cta / .button (lyseblå #00b5ed): PRIMÆR — kun til "Book billet"
   - .btn-secondary (outline): SEKUNDÆR — til alle andre actions
   ========================================================= */
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-dyb-havblaa);
    border: 2px solid var(--color-dyb-havblaa);
    border-radius: 99rem;
    padding: 0.9rem 1.8rem;
    font-family: korolev, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-dyb-havblaa);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 95svh; /* Adjust the height as needed */
    display: flex;
    justify-content: center;
    align-items: top;
}

.hero-section .vimeo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero video: ensure full-bleed cover regardless of viewport aspect ratio.
   The wrapper's padding-top: 62.5% gives a 16:10 box wider than tall;
   for tall viewports this still letterboxes top/bottom, so force min-height. */
.hero-section .vimeo-bg__iframe-wrapper {
    min-height: 100%;
}

.hero-section .vimeo-bg__placeholder {
    object-fit: cover;
}

.hero-section::before {
    content: ''; /* Necessary for pseudo-elements */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* Adjust the alpha value (0.5) to control the darkness */
    z-index: 1; /* Ensure it's above the video but below the content */
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 17%;
    width: 100%;
    text-align: center;
    z-index: 2; /* Ensure it's above the video */
}

/* Campaign badge ("Også på ferie" tag below hero H1) — Havblå badge, hvid italic tekst */
.campaign-badge {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.7rem 2rem;
    background: var(--color-havblaa);
    color: #fff;
    border-radius: 0.5rem;
    font-family: korolev, sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .campaign-badge {
        font-size: 1.05rem;
        padding: 0.55rem 1.4rem;
    }
}

/* H1 i hero-sektionen (CoreRhino65 - Bold) */
.hero-section h1 {
    font-family: korolev, sans-serif;
    font-weight: 600; /* Bruger CoreRhino65 */
    font-size: 5.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 5rem;
    margin-top: 0px !important;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtil skygge */
}

/* H2 i hero-sektionen (CoreRhino45 - Regular) */
.hero-section h2 {
    font-family: korolev, sans-serif;
    font-weight: 600; /* Bruger CoreRhino45 */
    font-size: 2.7rem;
    color: #fff;
    text-align: center;
    line-height: 3.5rem;
	 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtil skygge */
}


.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    background-color: var(--color-cta);
    background-image: url(/assets/ui_icons/icon-play.svg);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: 55% center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3; /* Ensure the play button is on top */
    
    /* Pulse Animation */
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1); /* Normal size */
    }
    30% {
        transform: translate(-50%, -50%) scale(1.15); /* Larger size */
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05); /* Slightly smaller */
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1); /* Slightly larger again */
    }
    100% {
        transform: translate(-50%, -50%) scale(1); /* Back to normal */
    }
}




.subheading-content {
    position: absolute;
    top: 68%; /* Position below the play button */
    width: 100%;
    text-align: center;
    z-index: 2; /* Ensure it's above the video */
	padding: 0.5rem;
}



/* Video Overlay for YouTube */
.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 3;
}

/* Scroll Icon */
.scroll-icon_wrapper {
    position: relative;
}

.scroll-down-icon {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-havblaa);
    background-image: url(/assets/ui_icons/chevron.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    cursor: pointer;
    z-index: 5;
}

/* Hide mobile video by default and only show it on smaller screens */
.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

.button-e45 {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    font-family: korolev, sans-serif;
    font-weight: 600;
    border-radius: 99rem;
    font-size: 1rem;
    cursor: pointer;
}

.button-e45:hover {
    background-color: #fff;
    color: var(--color-dyb-havblaa);
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.button-wrapper-nav {
    display: flex;
    gap: 1rem;
}

/* Desktop YouTube Video */
@media (min-width: 769px) {
    #youtube-video {
        height: 450px;
        width: 900px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .button-e45{
        display: none;
    }

    .hero-section {
        height: 87svh;
    }

    .hero-content {
        top: 10%; /* Adjust as needed */
    }

    .hero-section h1 {
        font-size: 3rem;
        line-height: 3.5rem;
        margin-top: 0; /* Keep this consistent */
    }

    .play-button {
        top: 45%; /* Slightly adjust for mobile layout */
        width: 4rem;
        height: 4rem;
        background-size: 35%; /* Adjust button size */
    }

    .subheading-content {
        top: 72vh;
    }

    .hero-section h2 {
        font-size: 2rem; /* Smaller subheading font */
        line-height: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {


    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 3rem;
        margin-top: 0; /* Keep this consistent */
    }
	
	 .hero-content {
        top: 5%; /* Adjust as needed */
    }
	
	  .play-button {
        top: 50%; /* Slightly adjust for mobile layout */
        width: 3.5rem;
        height: 3.5rem;
        background-size: 25%; /* Adjust button size */
    }


    .subheading-content {
        top: 75%;
    }

    .hero-section h2 {
        font-size: 1.6rem; /* Smaller subheading font */
        line-height: 1.5rem;
    }
	
	.nav-padding {
    padding: 1rem 0.5rem;
    }

    .nav-content {
        align-items: center;
    }
    
    .button-wrapper-nav {
        display: flex;
        align-items: center;
        padding: 8px 12.8px;
        gap: 0.50rem;
    }
}


/* =========================================================
   Split section — image + text, generisk genbrugeligt modul
   ========================================================= */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    /* Aligner med hero/nav: 1480px max content + 20px gutter. */
    padding: 96px max(20px, calc((100% - 1480px) / 2));
    background-color: #fff;
}

.split-section-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--color-dyb-havblaa);
}

/* Spejlet variant: billede til højre, tekst til venstre */
.split-section--reverse .split-section-image {
    grid-column: 2;
    grid-row: 1;
}

.split-section--reverse .split-section-text {
    grid-column: 1;
    grid-row: 1;
}

.split-section-image img,
.split-section-image > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video-variant af split-section-image (BTS-modul i test2) */
.split-section-image.split-section-video {
    background: var(--color-dyb-havblaa);
}
.split-section-image.split-section-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Vimeo-baggrundsembed: kildevideoen er KVADRATISK (1:1). Iframes kan ikke
   object-fit, så vi gør iframen kvadratisk (matcher kilden → ingen letterbox
   inde i playeren) og lader den dække 4:3-tile'en. Bredden spænder tile'en,
   højden overflyder og klippes af container'ens overflow: hidden = cover. */
.split-section-image.split-section-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    display: block;
}
.split-section-playbtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 99rem;
    background: var(--color-cta);
    color: var(--color-dyb-havblaa);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 37, 71, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}
.split-section-playbtn:hover {
    background: var(--color-cta-hover);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Vimeo-bg inside a split-section-image fylder containeren ligesom et img */
.split-section-image .vimeo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.split-section-image .vimeo-bg__before {
    display: none;
}

.split-section-image .vimeo-bg__iframe-wrapper {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 0;
}

.split-section-image .vimeo-bg__iframe {
    /* 16:9 video covers et 4:3 container: iframe ~133% bred, centreret, overflow klippes */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 133.33%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.split-section-text {
    color: var(--color-dyb-havblaa);
}

.split-section-text h2 {
    font-family: korolev, sans-serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.15;
    color: var(--color-dyb-havblaa);
    margin: 0 0 1.8rem;
}

.split-section-text p {
    font-family: korolev, sans-serif;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--color-dyb-havblaa);
    margin: 0 0 2.2rem;
}

/* Wrapper til flere CTAs i en split-section */
.split-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    align-items: center;
}

.split-section-text .cta {
    display: inline-block;
    width: auto;
    max-width: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 50px 20px;
    }
    /* Nulstil reverse-placeringen så billede + tekst stacker i kildeorden
       (billede øverst) i stedet for at sidde i en implicit 2. kolonne. */
    .split-section--reverse .split-section-image,
    .split-section--reverse .split-section-text {
        grid-column: 1;
        grid-row: auto;
    }
    .split-section-image {
        aspect-ratio: 16 / 10;
    }
    .split-section-text h2 {
        font-size: 1.7rem;
    }
}


/* =========================================================
   Video grid section (6 videos)
   ========================================================= */
.video-grid-section {
    background-color: #fff;
    padding: 60px 20px 80px;
}

.video-grid-container {
    max-width: 1480px;
    margin: 0 auto;
}

.video-grid-heading {
    font-family: korolev, sans-serif;
    font-weight: 600;
    text-align: center;
    color: var(--color-dyb-havblaa);
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 2.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-grid-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-dyb-havblaa);
    transition: box-shadow 0.25s ease;
}

.video-grid-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.video-grid-item .vimeo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Grid er 4:3, kilde-video er 16:9 → iframe ~133% bred, centreret, overflow klippes */
.video-grid-item .vimeo-bg__before {
    display: none;
}

.video-grid-item .vimeo-bg__iframe-wrapper {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 0;
}

.video-grid-item .vimeo-bg__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 133.33%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.video-grid-item .vimeo-bg__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-grid-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (max-width: 991px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .video-grid-heading {
        font-size: 1.7rem;
    }
}

@media (max-width: 540px) {
    .video-grid-section {
        padding: 40px 16px 60px;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 360px;
        margin: 0 auto;
    }
}
