:root {
    --mv-blue-dark: #224358;
    --mv-blue-light: #3D789D;
    --mv-red: #8b064e;
    /* Letzte 2 Ziffern sind Transparenz*/
    --mv-red-transparent: #8b064e55;
    --white-background: #fefefe;
    --text-color: var(--mv-blue-dark);
    --text-color-light: #fefefe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white-background);
    display: flex;
    flex-direction: column;
}

/* Ensure the body takes up the full height */
html,
body {
    height: 100%;
    margin: 0;
}

header {
    background-color: var(--white-background);
    position: fixed;
    z-index: 999;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 80px;
}

header.scrolled {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
}

.header-right {
    display: flex;
    align-items: center;
}

footer {
    background-color: var(--mv-blue-dark);
    color: var(--text-color-light);
    height: 60px;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.footer-center {
    flex: 0;
}

.footer-right {
    flex: 1;
    justify-content: flex-end;
}

.footer-left p {
    margin: 0;
    /* Adjust spacing if needed */
}

.footer-left a {
    color: var(--text-color-light);
    text-decoration: none;
    margin-left: 15px;
}

.footer-left a:hover {
    color: #ddd;
}

/* Social media icons styling */
.footer-center a {
    margin: 0 10px;
    color: var(--text-color-light);
    font-size: 20px;
}

.footer-center a:hover {
    color: #ddd;
}

/* Footer right links and separator styling */
.footer-right a,
.footer-right .separator {
    color: var(--text-color-light);
    text-decoration: none;
    margin: 0 5px;
}

.footer-right a:hover {
    color: #ddd;
}

.social-media-small {
    display: none;
}

.company-name-full {
    display: inline;
}

.company-name-short {
    display: none;
}

.logo {
    height: 100%;
    max-height: 80px;
    padding-top: 6px;
}

.logo img {
    height: 100%;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
}

nav {
    position: relative;
}

main {
    padding: 96px 16px 16px;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    flex: 1 0 auto;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 5px;
    display: block;
    font-weight: bold;
    font-size: 0.9em;
    -webkit-tap-highlight-color: transparent;
}

.menu li a.active {
    background-color: var(--mv-red);
    color: var(--text-color-light);
    border-radius: 5px;
}

.submenu {
    list-style: none;
    display: none;
}

.has-submenu.open .submenu {
    display: block;
}

.support-button {
    text-decoration: none;
    color: var(--mv-red);
    border: 2px solid var(--mv-red);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 20px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9em;
}

.support-button:hover {
    background-color: var(--mv-red);
    color: var(--text-color-light);
}

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #333;
}

.blue-container {
    background-color: var(--mv-blue-light);
    border-radius: 8px;
    padding: 16px 8px;
    color: var(--text-color-light);
    /*max-width: 75%;*/
}

/* Row styling */
.blue-container .row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.blue-container .row:last-child {
    margin-bottom: 0;
}

/* Column styling */
.blue-container .column {
    /* Common styles for all columns */
}

.blue-container .icon-column {
    width: 48px;
    text-align: center;
}

.blue-container .bold-text-column {
    width: 70px;
}

.blue-container .normal-text-column {
    /* Take up remaining space */
    flex: 1;
}

.blue-container .icon-column i {
    font-size: 24px;
}

/******************************************** Desktop Styles ********************************************/
@media (min-width: 851px) {
    .menu {
        display: flex;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
        border-radius: 5px;
        min-width: 180px;
        z-index: 10;
    }

    .submenu li a {
        padding: 8px 15px;
        font-size: 0.85em;
        color: #333;
    }

    /* Hover effects */
    @media (hover: hover) and (pointer: fine) {
        .menu li a:not(.active):hover {
            color: var(--mv-red);
        }

        .has-submenu:hover .submenu {
            display: block;
        }
    }
}

/******************************************** Mobile Styles ********************************************/
@media (max-width: 850px) {
    .footer-right {
        flex-direction: column;
        align-items: flex-end;
        max-width: 100px;
    }

    .footer-center {
        order: 2;
        display: none;
    }

    .footer-right a {
        margin: 5px 0;
    }

    .footer-right .separator {
        display: none;
    }

    .social-media-small {
        display: inline;
    }

    .company-name-full {
        display: none;
    }

    .company-name-short {
        display: inline;
    }

    .burger-menu {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: var(--mv-blue-dark);
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .menu.active {
        display: flex;
    }

    .menu li a {
        color: var(--text-color-light);
        padding: 15px;
    }

    .submenu {
        padding-left: 20px;
    }

    .submenu li a {
        padding-left: 30px;
    }

    /* Remove hover effects on mobile */
    .menu li a:hover {
        color: var(--text-color-light);
    }

    /* Burger menu animation */
    .burger-menu.active .line:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .burger-menu.active .line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    /* Submenu toggling */
    .has-submenu.open>a {
        background-color: var(--mv-red);
    }
}

/******************************************** Slideshow ********************************************/

/* Container holding the slideshow */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

/* Each slide */
.slideshow-slide {
    display: none;
    position: relative;
}

.slideshow-slide img {
    width: 100%;
    display: block;
}

/* Caption text on each slide */
.slideshow-slide .slideshow-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
}

/* Navigation arrows */
.slideshow-prev,
.slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.slideshow-prev {
    left: 0;
}

.slideshow-next {
    right: 0;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Pagination dots */
.slideshow-dot-container {
    text-align: center;
    padding: 10px;
    background: #ddd;
}

.slideshow-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.slideshow-active,
.slideshow-dot:hover {
    background-color: #717171;
}

/********************************************  ********************************************/