
/* 1. Forebyg layoutproblemer */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #DAC098;
    font-family: 'montserrat', sans-serif;
}


.navbar {
    background-color: #b18d5c !important;
    padding: 0;
}

.navbar .nav-link,
.navbar-brand {
    color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #f0f0f0 !important; /* Lidt lysere hvid – for fin effekt */
}

/* Skrift-størrelser, og tekstplacering */
h1,h2,h3,h4,h5,h6, p {text-align: center;}
h1 {font-size: 50px;}
h2 {font-size: 30px;}
h3 {font-size: 40px;}
h4 {font-size: 30px;}
.hvad-tilbyder-vi {font-size: 20px;
margin-top: -20px;}

p {
    font-size: 20px;
    margin-top: -10px;
}

h5 {
    color: white;
    font-weight: bold;
    font-size: 25px;
    background-color: #87451f;
    border-radius: 10px;
}


/* Standard: Mobil-visning */
.Top-salat {
    width: 100%;
    height: 100vh; /*Elementets højde sættes til 100% af viewport højden */
    object-fit: cover;
    display: block;
}

/* Desktop: Gør billedet mindre */
@media (min-width: 992px) {
    .Top-salat {
        height: 75vh; /* eller fx b70vh eller 60vh */
    }
}


.Top-salat-wrapper {
    position: relative; /* elementet bliver positioneret i forhold til sin normale position i dokumentflowet.*/
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.Top-salat-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.bestil-knap, .bestil-knap2 {
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: #83430E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bestil-knap:hover, .bestil-knap2:hover {
    opacity: 0.9;
}

.bestil-knap:active, .bestil-knap2:active {
    opacity: 0.7;
}

.fed {
    font-weight: bold;
}

.bestil-knap2 {font-size: 25px;}
.bestil-knap2-container {text-align: center;
    margin-top: 20px;
margin-bottom: -50px;}

.greenmeals-beskrivelse {
    margin-top: -130px; /* Tættere på billedet på desktop */
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: center;
}

/* Dette media query gælder kun for skærme med en bredde på mindre end 767px (typisk mobiltelefoner) */
@media (max-width: 767px) {
    .greenmeals-beskrivelse {
        margin-top: 20px; /* Mere afstand til billedet på mobil */
    }
}

.stop-madspild-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

@media (min-width: 992px) {
    .stop-madspild {
        height: 100vh;
        margin-top: 80px;
    }
}

.stop-madspild-wrapper {
    display: flex; /* gør, at et element bliver en flex container, som automatisk ændrer, hvordan dets børn (child elements) opfører sig. */
    justify-content: center;  /* Centrerer horisontalt */
    align-items: center;      /* Centrerer vertikalt */
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: -30px;
}



.navbar .nav-link,
.navbar-brand {
    color: #ffffff !important; /* Hvid tekst */
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #f0f0f0 !important; /* Lidt lysere hvid – for fin effekt */
}

.nav-item.nav-link {
    color: white !important;
}

/*FOOTER*/
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #b18d5c;
    color: #2c2c2c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 100px;
}

.footer-left h2 {
    margin: 0;
    font-size: 20px;
    color: #2c2c2c;
}

.footer-left p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #2c2c2c;
}

.footer-right img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* gør hvide ikoner lidt blødere */
    transition: transform 0.2s ease;
}

.footer-right img:hover
{
    transform: scale(1.1);
}

.Ugens-madplan {
    margin-top: 50px;
    letter-spacing: 2px;
}




.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* gør pilen hvid */
    width: 25px;
    height: 25px;
}

@media (min-width: 768px) {
    .carousel-inner {
        height: 450px; /* Juster denne højde som du vil */
    }

    .carousel-inner .carousel-item img {
        height: 100%;
        width: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
}

@media (min-width: 768px) {
    .carousel-inner {
        height: auto; /* Gør højden automatisk, så den følger billedets proportioner */
        max-height: 500px; /* Max højde du ønsker */
    }

    .carousel-inner .carousel-item img {
        max-height: 500px; /* Samme max højde */
        width: auto;       /* Bredden justeres automatisk */
        height: auto;      /* Højden justeres automatisk */
        object-fit: contain; /* Sørger for hele billedet vises uden beskæring */
        margin: 0 auto;
        display: block;
    }
}
