@font-face {
    font-family: "poppins";
    src: url(/fonts/Poppins/Poppins-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "poppins";
    src: url(/fonts/Poppins/Poppins-Bold.ttf);
    font-weight: 700;
}

:root {
    /* Font family */
    --font-regular: "poppins", sans-serif;
    
    /* Font weights */
    --weight-regular: 400;
    --weight-bold: 700;
    
    /* Font sizes */
    --fs-rubrik: 28px;
    --fs-underrubrik: 24px;
    --fs-body: 16px;
    
    /* Colors */
    --color-text: #333;
    --color-red: #D31212;
    --color-background: #ffffff;
    /* fra Bjarke */
    --broedtekst: #000;
    --hover: #D31212;
    --footer: #EEEEEE;
    --button: #e31313;
}

/* Add background color to body */
body {
    background-color: var(--color-background);
    margin: 0;
}

p{
    font-size: var(--fs-body);
    font-family: var(--font-regular);
    font-weight: var(--weight-regular);
}
h1{
    font-size: var(--fs-rubrik);
    font-family: var(--font-regular);
    font-weight: var(--weight-bold);
}
h2{
    font-size: var(--fs-underrubrik);
    font-family: var(--font-regular);
    font-weight: var(--weight-bold);
}
.cart-icon {
    display: flex;
    align-items: center;
    padding-right: 60px;  /* Default padding for larger screens */
}

.cart-icon img {
    width: 24px;
    height: auto;
}

.nav-logo img {
    height: clamp(55px, 5vw + 30px, 60px);
    width: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    background: var(--color-background);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -1;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1);
    mix-blend-mode: multiply;
}

.nav-logo {
    margin-left: 60px;
}

.nav-links {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    /* Positioning */
    position: relative;
    display: grid;
    place-items: center;
    width: fit-content;
    
    /* Typography */
    font-family: var(--font-regular);
    font-size: 20px;
    font-weight: var(--weight-regular);
    text-decoration: none;
    
    /* Colors */
    color: var(--color-text);
    /* Transitions */
    transition: color 0.3s ease;
}

/* Create a hidden bold version that reserves space */

.cart-icon img {
    width: auto;
    height: 24px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-icon a:hover img {
    filter: invert(19%) sepia(91%) saturate(1184%) hue-rotate(354deg) brightness(85%) contrast(105%);
}


.nav-links a:hover {
    color: var(--color-red);
}

/* Active state */
.nav-links a.active {
    color: var(--color-red);
}

/* Cart icon styles */
.nav-links img {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    stroke-width: 0;
    stroke: var(--color-red);
}

.nav-links img:hover {
    filter: invert(19%) sepia(91%) saturate(1184%) hue-rotate(354deg) brightness(85%) contrast(105%);
    transform: scale(1.05);
}

.nav-logo a {
    display: inline-block;
    text-decoration: none;
}

.nav-logo img {
    display: block; /* Removes any unwanted space below the image */
}

.burger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.burger-menu div {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
    margin: 0;
    padding-top: 174px;
    padding-left: 60px;
    padding-right: 60px;
}
.hero {
    display: flex;
    align-items: flex-start; /* Changed to flex-start to better handle different content heights */
    justify-content: space-between;
    gap: 60px;
   /* margin-top: 96px;*/
    flex-wrap: wrap; 
    align-items: center;
}

.hero-text {
    flex: 1;
    min-width: 100px;
    max-width: 600px;
    height: auto;
    text-align: justify;
}

.hero-image {
    flex: 1;
    min-width: 100px;
    max-width: 658px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    
}

/* Add media query for smaller screens */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 30px;
    }

    .content-wrapper {
        padding: 174px 30px 30px 30px;
    }

    .hero-text, 
    .hero-image {
        max-width: 100%;
    }

    .navbar {
        justify-content: center;
        position: relative;
        padding: 0 20px;
        min-width: auto;
    }

    .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        position: absolute;
        left: 30px;
    }

    .nav-logo {
        margin: 0;
    }

    .nav-links a {
        margin: 0;
    }

    .cart-icon {
        position: absolute;
        right: 20px;
        padding-right: 30px; 
    }
}

/* Add additional breakpoint for very small screens */
@media screen and (max-width: 360px) {
    .nav-logo img {
        height: clamp(40px, 5vw + 15px, 45px);
    }

    .cart-icon {
        right: 10px;
    }

    .burger-menu {
        left: 10px;
    }
}

/* Content section with images and text */
.content-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    margin-top: 96px;
    flex-wrap: wrap;
    align-items: center;
}


/* Vertical stack of images */
.vertical-images {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    min-width: 300px;
    max-width: 640px;
    order: 1;
}

/* Individual vertical images */
.vertical-images img {
    width: 100%;
    aspect-ratio: 640/170;
    object-fit: cover;
    border-radius: 4px;
}

/* Right column text content */
.text-column {
    flex: 1;
    min-width: 300px;
    max-width: 608px;
    height: auto;
    order: 2;
    text-align: justify;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-regular);
    font-weight: var(--weight-regular);
    transition: color 0.3s ease;
}

nav a:hover, nav .active:hover {
    color: var(--color-red);
}

nav .active {
    color: var(--color-red);
}

.medarbejdere {
    display: grid;
    width: 100%;
    padding: 2rem 0;
    row-gap: 4rem;
    column-gap: 2rem;
    grid-template-columns: repeat(4, 230px);
    justify-content: center;
    overflow-x: hidden;
}

.image-box {
    width: 230px;
    height: 230px;
}

.image-box img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.medarbejdere-title {
    font-weight: var(--weight-bold);
    font-family: var(--font-regular);
    font-size: 28px;
    text-align: center;
    margin-top: 96px;
    margin-bottom: 32px;
}

.employee-container {
    width: 230px;
    margin: 0 auto;
}

.employee-info {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.employee-info p {
    margin: 5px 0;
    font-size: 20px;
}

.employee-info .name {
    font-weight: var(--weight-bold);
}

.employee-info .title,
.employee-info .email {
    font-weight: var(--weight-regular);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 64px;
    padding: 0 60px;
    padding-bottom: 10vw;
}

.info-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.info-box .image-box {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.info-box h3 {
    margin: 0;
    font-size: var(--fs-underrubrik);
    font-weight: var(--weight-bold);
    font-family: var(--font-regular);
}

.info-box p {
    margin: 0.25rem 0;
}


/* FOOTER */
footer{
    background-color: var(--footer);
    background-size: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    font-family: "poppins";
}

#top{
    width: 100%;
    display: flex;
    padding-left: 60px;

}
#bottom{
    width: 200px;
    display: flex;
    justify-content: space-between;
    padding-left: 60px;
}

#description{
    padding-left: 10px;
    padding-right: 40px;
}

#description_textbox{
    width: clamp(600px, 100%, 400px);
}
#description h2{
    width: 400px;
}
#description_text{
    text-align:justify;
    width: clamp(400px, 70%, 400px);
}

#de3{
    display: grid;
    grid-template-columns: repeat(3, 230px);
    row-gap: 3rem;
    column-gap: 1rem;
    justify-content: center;
    overflow-x: visible;
    text-align: left;
    width: clamp(600px,100%,1200px);
}
#adresse{
    width: 100%;
    display: block;
    justify-content: flex-start;
}
#aabningstider{
    width: 100%;
    height: 100%;
    display: block;
}

#kontakt{
    width: 100%;
    display: block;
    justify-content: center;
}


/* Add media queries for responsive layout */
@media screen and (max-width: 1024px) {
    .content-section {
        gap: 40px;
    }
   
}

@media screen and (max-width: 768px) {
    .content-section {
        flex-direction: column;
        gap: 32px;
    }
    .info-section {
        grid-template-columns: 1fr;
    }

    .vertical-images,
    .text-column {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .vertical-images {
        order: 2;
    }

    .text-column {
        order: 1;
    }

    .vertical-images img {
        height: auto;
    }
}

/* Medium screens - 2 columns */
@media screen and (max-width: 1200px) {
    .medarbejdere {
        grid-template-columns: repeat(2, 230px);
    }
    
    /* FOOTER */
    footer{
        background-size: 100%;
        width: 100%;
        height: 100%;
        font-size: 15px;
        display: grid;
    }

    #top{
        width: 100%;
        display: flex;
        text-align: center;


    }
    #bottom{
        width: 200px;
        display: block;
        justify-content: space-between;
        padding-left: 0px;
        text-align: right;
    }

    #description{
        padding-left: 10px;
        padding-right: 40px;
        text-align: center;
        display: block;
        width: clamp(600px, 100%, 400px);
    }
    #de3{
        grid-template-columns: repeat(1, 230px);
        justify-content: center;
    }

    #description_textbox{
        text-align: center;
        padding-left: 5vw;
        padding-right: 12vw;
    }
    #description h2{
        width: 400px;
    }
    #description_text{
        text-align:justify;
        width: clamp(400px, 40vw, 400px);
    }

    #adresse{
        width: 100%;
        display: block;
        justify-content: flex-start;
    }
    #aabningstider{
        width: 100%;
        height: 100%;
        display: block;
    }
}

/* Small screens - 1 column */
@media screen and (max-width: 576px) {
    .medarbejdere {
        grid-template-columns: 230px;
    }
}

/* Optional: ensure employee containers and images behave properly */
.employee-container {
    width: 100%;
}

.image-box img {
    width: 100%;
    height: auto;
    max-width: 230px;
    display: block;
    margin: 0 auto;
}

/* Add styles for mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-background);
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer .nav-links {
    flex-direction: column;
    margin: 0;
    padding: 20px;
    gap: 20px;
}

.mobile-drawer .nav-links a {
    font-size: 18px;
    width: 100%;
    text-align: left;
}

/* Overlay for when drawer is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Update media query */
@media screen and (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }

    .mobile-drawer .nav-links {
        display: flex;
    }
}

/* Burger menu animation when drawer is open */
.mobile-drawer.active ~ .navbar .burger-menu div {
    background-color: var(--color-text);
}

/* Optional hover effect */
.burger-menu:hover div {
    background-color: var(--color-red);
}

    /* FOOTER */
    footer{
        background-size: 100%;
        width: 100%;
        height: 100%;
        font-size: 15px;
        display: grid;
    }

    #top{
        width: 100%;
        display: grid;
        text-align: center;
        padding-bottom: 12vw;



    }
    #bottom{
        width: 200px;
        display: block;
        justify-content: space-between;
        padding-left: 0px;
        text-align: center;
    }
    #bottom p{
        width: 398px;
    }

    #betalingsmetoder{
        justify-content: center;
        padding-left: 12vw;
        padding-right: 12vw;
    }
    #description{
        width: 100%;
        padding-left: 10px;
        padding-right: 40px;
        text-align: center;
        display: block;
        width: clamp(600px, 100%, 400px);
    }

    #description_text{
        text-align:justify;
        width: 80vw;
        justify-content: center;
        width: clamp(400px, 40vw, 400px);
    }

    #de3{
        grid-template-columns: repeat(1, 230px);
        justify-content: center;
    }


    #adresse{
        width: 100%;
        display: block;
        justify-content: flex-start;
    }
    #aabningstider{
        width: 100%;
        height: 100%;
        display: block;
    }