body {
    height: 100%;
    width: 100%;
    margin: auto;
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    flex-direction: column;
    margin: 0;
    background-color: aliceblue;
}

:root {
    /*Header*/
    --header-flow: linear-gradient(135deg,
            #c9a24b 0%,
            #f7d674c7 20%,
            #d4af37c5 45%,
            #b8870bcc 70%,
            #fff3b0c8 100%);
    --footer-flow: linear-gradient(135deg, #f7d674c7, #b8870bcc);
    --wilko_txt_color: rgb(41, 41, 41);
    --sicherheit: rgb(255, 255, 255);
    --theme_btn: rgb(29, 95, 194);
    /*Haupt Teil*/
    --main_txt: rgb(35, 34, 34);
    --main_txt_1: rgb(9, 6, 48);
    --main_1_back: #d7b653dc;
    --dienste_back: rgb(239, 232, 232);
    --dienste_txt: rgb(31, 28, 28);
    --zeiten_bg: whitesmoke;
    --boxen_bg: whitesmoke;
    --kunden_h1: wheat;
    /*Unten*/
    --footer_txt: rgb(27, 27, 27);
}

body.dark {
    background-color: #05021f;
    /*Header*/
    --header-flow: linear-gradient(135deg, #e2ad2790, rgba(128, 128, 128, 0.678));
    --wilko_txt_color: rgb(228, 228, 228);
    --sicherheit: rgb(182, 182, 182);
    --theme_btn: rgb(223, 195, 56);
    /*Haupt Teil*/
    --main_txt: rgb(234, 234, 234);
    --main_txt_1: rgb(204, 202, 228);
    --main_1_back: #181818;
    --dienste_back: rgb(32, 25, 32);
    --dienste_txt: rgb(217, 218, 198);
    --zeiten_bg: rgb(43, 41, 41);
    --zeiten_txt: rgb(230, 222, 222);
    --boxen_bg: #181818;
    --kunden_h1: rgb(43, 36, 24);
    /*Unten*/
    --footer_txt: rgb(230, 230, 230);
    --footer-flow: #000000;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 60px;
    display: flex;
    align-items: center;
    background: var(--header-flow);
    transition: all 0.4s ease;
    z-index: 1000;
    border-radius: 15px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    backdrop-filter: blur(5px);
    box-shadow:
        0 12px 40px rgba(76, 76, 76, 0.4),
        inset 0 1px 0 rgba(62, 62, 62, 0.06);
}

body.dark header {
    box-shadow:
        0 12px 40px rgba(103, 103, 103, 0.4),
        inset 0 1px 0 rgba(128, 128, 128, 0.06);
}

header.scrolled {
    top: 15px;
    width: min(900px, 92%);
    height: 55px;
    border-radius: 18px;
    background: rgba(128, 128, 128, 0.468);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 12px 40px rgba(76, 76, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    outline: 1px grey solid;
}

body.dark header.scrolled {
    background: rgba(25, 25, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 12px 40px rgba(189, 189, 189, 0.253),
        inset 0 1px 0 rgba(224, 224, 224, 0.215);
    outline: 0px rgba(128, 128, 128, 0.313) solid;
}

.logo {
    width: 150px;
    margin-left: 25px;
    transition: all 0.5s ease;
}

.wilko {
    font-size: 23px;
    margin: 0;
    margin-left: 20px;
    color: var(--wilko_txt_color);
    transition: all 0.5s ease;
    z-index: 10;
}

.sicherheit {
    color: var(--sicherheit);
    font-size: 23px;
    margin: 0;
    transition: all 0.5s ease;
}

.theme {
    margin-left: auto;
    margin-right: 10%;
    cursor: pointer;
    transition: all 0.5s ease;
    transition: transform 0.15s ease-out;
}

#theme {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--theme_btn);
    transition: color 0.3s ease;
    transition: transform 0.2s ease;
}

#theme svg {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
}

#theme:hover {
    transform: scale(1.20);
}

#theme:active svg {
    transform: scale(0.9) rotate(20deg);
}

main {
    color: var(--main_txt);
    text-align: center;
    font-size: 20px;
    animation: flyIn 1S ease-out;
    transition: all 0.5s ease;
    padding-top: 15%;
    padding-bottom: 15%;
}

.background {
    background:
        url("https://www.p-freiberger.de/bilder/pixaby_image_background1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    overflow: hidden;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    z-index: -1;
}

.background::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(var(--bg-translate, 0px));
    width: 100%;
    height: 160%;
    background-image: url("https://www.p-freiberger.de/bilder/pixaby_image_background1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

body.dark .background::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(var(--bg-translate, 0px));
    width: 100%;
    height: 160%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("https://www.p-freiberger.de/bilder/pixaby_image_background1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.main_txt {
    margin-left: 30px;
    margin-right: 30px;
}

.so_viel {
    position: relative;
    color: var(--main_txt_1);
    margin-top: 300px;
    background-color: var(--main_1_back);
    padding-top: 40px;
    padding-bottom: 40px;
    animation: flyIn 2.5s ease-out;
    transition: all 0.5s ease;
    overflow: hidden;
}

.icon-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url("bilder/safety.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: all ease 1s;
    animation: float 40s linear infinite;
}

body.dark .icon {
    filter: invert(1);
}

.i1 {
    top: 10%;
    left: 10%;
}

.i2 {
    top: 50%;
    left: 40%;
}

.i3 {
    top: 40%;
    left: 80%;
}

.i4 {
    top: 30%;
    left: -30%;
}

.i5 {
    top: 20%;
    left: 100%;
}

.i6 {
    top: 50%;
    left: -60%;
}

.i7 {
    top: 55%;
    left: -5%;
}

.i8 {
    top: 25%;
    left: 60%;
}

.split-section {
    display: flex;
    width: 100%;
    min-height: 500px;
    animation: flyIn 1s ease;
    animation-play-state: paused;
}

.split-text,
.split-image {
    width: 50%;
}

.split-text {
    background: var(--dienste_back);
    color: var(--dienste_txt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    box-sizing: border-box;
    transition: all 0.5s ease-out;
}

.split-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    animation: flyIn 0.75s ease;
    animation-play-state: paused;
}

.split-text ul {
    list-style: none;
    padding: 0;
    animation: flyIn 1.5s ease-out;
    animation-play-state: paused;
    font-size: 20px;
}

.split-text li {
    margin: 15px 0;
}

.split-text li::before {
    content: "✔";
    color: #00c853;
    margin-right: 12px;
    font-weight: bold;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: flyIn 2s ease-out;
    animation-play-state: paused;
}

.split-section2 {
    display: flex;
    width: 100%;
    min-height: 500px;
    animation: flyIn 1s ease;
    animation-play-state: paused;
}

.split-text2,
.split-image2 {
    width: 50%;
}

.split-text2 {
    background: var(--dienste_back);
    color: var(--dienste_txt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    box-sizing: border-box;
    transition: all 0.5s ease-out;
}

.split-text2 h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    animation: flyIn 0.75s ease;
    animation-play-state: paused;
}

.split-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: flyIn 2s ease-out;
    animation-play-state: paused;
}

.zeiten {
    align-items: center;
    padding-top: 100px;
    font-size: 20px;
    background-color: var(--zeiten_bg);
    padding-bottom: 100px;
    animation: flyIn 0.5s ease;
    animation-play-state: paused;
    transition: all 0.5s ease;
    color: var(--zeiten_txt);
}

.zeiten_ul {
    list-style: none;
    text-align: center;
    padding: 0;
    animation: flyIn 0.7s ease;
    animation-play-state: paused;
}

.zeiten_li {
    text-align: center;
}

.kunden {
    position: relative;
    overflow: hidden;
    padding: 60px;
    padding-bottom: 100px;
    min-height: 500px;
}


.kunden-bg {
    position: absolute;
    left: 0;
    top: -200px;
    width: 100%;
    height: calc(100% + 400px);
    object-fit: cover;
    z-index: 0;
    will-change: transform;
}

body.dark .kunden-bg {
    filter: opacity(0.6);
}

.kunden h1,
.kunden .boxen {
    position: relative;
    z-index: 1;
}

.kunden h1 {
    margin-bottom: 100px;
    background: var(--kunden_h1);
    border-radius: 20px;
    padding: 20px;
    margin-left: 30%;
    margin-right: 30%;
    transition: all 0.5s ease;
    color: var(--zeiten_txt);
    animation: flyIn 0.5s ease;
    animation-play-state: paused;
}

.boxen {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.boxen div {
    flex: 0 0 500px;
    aspect-ratio: 16 / 9;
    background: var(--boxen_bg);
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    color: var(--zeiten_txt);
    animation: flyIn 0.3s ease;
    animation-play-state: paused;
}

.boxen div:nth-child(1) {
    animation-duration: 0.4s;
}

.boxen div:nth-child(2) {
    animation-duration: 0.7s;
}

.boxen div:nth-child(3) {
    animation-duration: 1s;
}

.boxen div:nth-child(4) {
    animation-duration: 1s;
}

.boxen div:nth-child(5) {
    animation-duration: 1s;
}

footer {
    color: var(--footer_txt);
    padding: 20px;
    background: var(--footer-flow);
    transition: all 0.5s ease;
}

footer a {
    color: var(--footer_txt);
    transition: all 0.5s ease;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    position: relative;
    display: inline-block;
}

footer a:hover {
    transform: translateY(-3px);
}

footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: .3s;
}

footer a:hover::after {
    width: 100%;
}

@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateX(160dvw);
    }

    100% {
        transform: translateX(-100dvw);
    }
}

@media (max-width:900px) {

    header {
        margin-left: 0;
        margin-right: 0;
    }

    .main_txt {
        padding-top: 60px;
    }

    .so_viel {
        margin-top: 200px;
    }

    .split-section {
        flex-direction: column;
    }

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

    .split-image {
        height: 400px;
    }

    .split-section2 {
        flex-direction: column-reverse;
    }

    .split-text2,
    .split-image2 {
        width: 100%;
    }

    .split-image2 {
        height: 400px;
    }

}

@media (max-width: 600px) {
    header {
        background: var(--header-flow);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 60px;
    }

    .logo {
        width: 130px;
        margin-left: 20px;
    }

    .wilko {
        display: none;
    }

    .sicherheit {
        font-size: 18px;
        display: block;
    }

    .theme {
        margin-right: 5dvb;
    }

    main {
        font-size: 10px;
    }

    .main_txt {
        margin-left: 30px;
        margin-right: 30px;
    }

    .main_1 {
        animation: flyIn 2.5s ease-out;
        font-size: 20px;
        padding-top: 25px;
        padding-bottom: 25px;
        margin-top: 100px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .split-text h2 {
        font-size: 30px;
    }

    .split-text ul {
        font-size: 20px;
    }

    .split-text2 h2 {
        font-size: 30px;
    }

    .split-text2 ul {
        font-size: 20px;
    }

    .kunden h1 {
        border-radius: 15px;
        padding: 15px;
        margin-left: 5%;
        margin-right: 5%;
        font-size: 20px;
    }

    .boxen {
        gap: 20px;
        padding-bottom: 5px;
        margin-left: -30px;
        margin-right: -30px;
    }

    .boxen div {
        flex: 0 0 300px;
        aspect-ratio: 14 / 9;
        padding: 20px;
        font-size: 15px;
    }

}