:root {
    /* COLORS */
    --color-primary-red: #b50900;
    --color-primary: #ff0000; /* Main Red */
    --color-primary-light: #ff5733; /* Light Red */
    --color-primary-dark: #900c3f; /* Dark Red */

    --color-secondary: #ff5733; /* Main Orange */
    --color-secondary-light: #ff8c00; /* Light Orange */
    --color-secondary-dark: #c41e3a; /* Dark Orange */

    --color-text-dark: #333; /* Dark Black */
    --color-text-light: #666; /* Light Black */

    --color-bg: #f4f4f4; /* Light Gray */
    --color-white: #fff; /* White */
    --color-black: #000; /* Black */

    /* FONT SIZES */
    --font-size-title-web: 72px;
    --font-size-title-mobile: 48px;

    --font-size-subtitle-web: 24px;
    --font-size-subtitle-mobile: 18px;

    --font-size-text-web: 16px;
    --font-size-text-mobile: 14px;

    --font-size-button-web: 14px;
    --font-size-button-mobile: 12px;

    /* PADDINGS */
    --padding-page: 0px 8%;

    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow */
}

* {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* LOADING */

.hidden {
    overflow: hidden;
}

.fadeOut {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.loader__inner h2 {
    position: relative;
}

.loader__inner h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    width: 30px;
    height: 100%;
    /* background-color: var(--color-white); */
    background: linear-gradient(
        90deg,
        transparent,
        white 40%,
        white 60%,
        transparent
    );
    animation: loader 2s infinite;
    animation-delay: 1s;
}

@keyframes loader {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

.loader__inner img {
    width: 160px;
}

/* HEADER */
header {
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.2); /* Anfangszustand */
    animation: background-scroll 0.3s ease forwards;
    animation-play-state: paused;
}

@keyframes background-scroll {
    from {
        background-color: rgba(0, 0, 0, 0.2); /* Halbtransparent */
    }
    to {
        background-color: rgba(0, 0, 0, 1); /* Voll opak */
    }
}

@keyframes background-scroll-reverse {
    from {
        background-color: rgba(0, 0, 0, 1); /* Voll opak */
    }
    to {
        background-color: rgba(0, 0, 0, 0.2); /* Halbtransparent */
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--padding-page);
}

header .nav-container a {
    width: 100px;
}

header .nav-container a img {
    width: 100%;
    transform: translateY(20px);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-right: 16px;
    padding: 8px 12px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
}

nav .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-black);
    display: none;
    padding: 16px 0;
    border: 1px solid var(--color-white);
    z-index: 1;
}

nav .subnav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
}

nav .subnav ul li {
    margin-right: 0;
    width: 100%;
    padding: 4px 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav li a:hover + .subnav {
    display: block;
}

.nav li:hover .subnav {
    display: block;
}

nav .subnav ul li:hover {
    transform: translateX(4px);
}

nav .subnav ul li a {
    color: var(--color-white);
    text-decoration: none;
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
}

/* MOBILE NAVIGATION */

.menu-burger {
    position: relative;
    display: none;
    cursor: pointer;
    width: min-content;
}

.menu-burger .line {
    width: 24px;
    height: 3px;
    background-color: var(--color-white);
    margin: 4px 0;
    transition: background-color 0.3s ease;
}

.menu-burger:hover .line {
    background-color: var(--color-primary-red);
}

@media (max-width: 1080px) {
    header nav {
        display: none;
    }

    header .menu-burger {
        display: block;
    }
}

.mobile-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    transform: translateX(-100%);
    background-color: var(--color-black);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.mobile-navigation.show {
    transform: translateX(0);
}

.mobile-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
}

.mobile-navigation ul li {
    padding: 8px 16px;
    width: 100%;
    cursor: pointer;
}

.mobile-navigation ul li a {
    width: 100%;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-navigation ul li:hover a {
    color: var(--color-primary-red);
}

.mobile-navigation ul li .subnav {
    display: block;
    padding: 8px 0;
}

.mobile-navigation ul li .subnav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
}

.mobile-navigation ul li .subnav ul li {
    padding: 4px 16px;
    cursor: pointer;
}

.mobile-navigation ul li .subnav ul li a {
    color: var(--color-white);
    text-decoration: none;
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
}

.mobile-navigation a.logo {
    width: 100px !important;
    padding: 16px 0;
    text-align: center;
}

.mobile-navigation .logo img {
    width: 100%;
}

/* FOOTER SECTION */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--padding-page);
    text-align: center;
}

footer p {
    font-size: 14px;
}

footer a {
    color: var(--color-white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
}

footer .footer-content .footer-logo {
    width: 120px;
}

footer .footer-content .footer-logo img {
    width: 100%;
}

footer .footer-content .footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-items: start;
    align-items: end;
    list-style: none;
    padding: 0;
}

footer .footer-content .footer-nav ul li {
    margin-bot: 16px;
}

footer .footer-content .footer-nav ul li:last-child {
    margin-right: 0;
}

footer .footer-content .footer-social a {
    margin-right: 16px;
}

footer .footer-content .footer-social a img {
    width: 20px;
}

footer .footer-content .footer-social a:last-child {
    margin-right: 0;
}

footer .footer-content .footer-social ul {
    display: flex;
    list-style: none;
    padding: 0;
}

footer .footer-content .footer-social ul li {
    margin-right: 16px;
    width: 24px;
    height: 24px;
}

footer .footer-content .footer-social ul li:last-child {
    margin-right: 0;
}

footer .footer-content .footer-social ul li a {
    color: var(--color-white);
}

footer .footer-content .footer-social ul li a img {
    width: 20px;
}

@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        gap: 16px;
        padding: 40px 0;
    }

    footer .footer-content .footer-nav ul {
        align-items: center;
    }
}
