* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 255, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(0, 120, 255, 0.08),
            transparent 30%
        ),
        #050505;

    color: #fff;

    line-height: 1.7;

    overflow-x: hidden;
}


/* =========================================
   ANIMIERTER HINTERGRUND
========================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(0, 255, 255, 0.025) 50%,
            transparent 100%
        );

    background-size: 200% 200%;

    animation:
        backgroundMove 10s ease-in-out infinite;

    z-index: -2;
}

@keyframes backgroundMove {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================================
   PARTIKEL
========================================= */

.particles {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -1;
}

.particle {
    position: absolute;

    bottom: -10px;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #ff00ffde;

    box-shadow:
        0 0 8px #00ffff,
        0 0 18px #00ffff;

    opacity: 0;

    animation:
        floatParticle linear infinite;
}

.particle:nth-child(1) {
    left: 5%;
    animation-duration: 13s;
}

.particle:nth-child(2) {
    left: 17%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 29%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 42%;
    animation-duration: 19s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 5s;
}

.particle:nth-child(6) {
    left: 68%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.particle:nth-child(7) {
    left: 78%;
    animation-duration: 16s;
    animation-delay: 7s;
}

.particle:nth-child(8) {
    left: 87%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.particle:nth-child(9) {
    left: 93%;
    animation-duration: 15s;
    animation-delay: 6s;
}

.particle:nth-child(10) {
    left: 50%;
    animation-duration: 21s;
    animation-delay: 9s;
}

@keyframes floatParticle {

    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateX(50px);
    }

    90% {
        opacity: 0.5;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-40px);
    }
}


/* =========================================
   SCROLL-BALKEN
========================================= */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 0%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #f8f9fa,
            #f700ff,
            #f1f1f1
        );

    box-shadow:
        0 0 10px #f5f7f7,
        0 0 20px #f5f8f8;

    z-index: 9999;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: 90%;

    max-width: 1000px;

    margin: 60px auto 40px;
}


/* =========================================
   HEADER
========================================= */

.header {
    text-align: center;

    margin-bottom: 50px;

    animation:
        headerAppear 1s ease-out;
}

@keyframes headerAppear {

    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    margin: 0 0 8px;

    color: #00ffff;

    font-size: 42px;

    letter-spacing: 3px;

    text-shadow:
        0 0 10px #00e1ff,
        0 0 30px #00ffff,
        0 0 60px rgba(0, 255, 255, 0.5);

    animation:
        titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px #00ffff,
            0 0 30px #00ffff;
    }

    50% {
        text-shadow:
            0 0 15px #00ffff,
            0 0 45px #00ffff,
            0 0 80px rgba(0, 255, 255, 0.6);
    }
}

.header p {
    margin: 0;

    color: #888;

    font-size: 15px;

    letter-spacing: 1px;
}


/* =========================================
   HEADER-LINIEN
========================================= */

.header-line {
    width: 180px;

    height: 1px;

    margin: 15px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            #f7f8f8,
            transparent
        );

    box-shadow:
        0 0 8px #f7f8f8;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 20, 0.95),
            rgba(8, 8, 8, 0.95)
        );

    border: 1px solid #222;

    border-radius: 15px;

    padding: 30px;

    margin-bottom: 25px;

    overflow: hidden;

    opacity: 0;

    transform:
        translateY(35px);

    animation:
        sectionAppear 0.8s ease forwards;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.section:nth-of-type(2) {
    animation-delay: 0.15s;
}

.section:nth-of-type(3) {
    animation-delay: 0.3s;
}

.section:nth-of-type(4) {
    animation-delay: 0.45s;
}

.section:nth-of-type(5) {
    animation-delay: 0.6s;
}

@keyframes sectionAppear {

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================
   ANIMIERTE LINIE AUF BOX
========================================= */

.section::before {
    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 60%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #f7f5f5,
            transparent
        );

    animation:
        scanLine 5s linear infinite;
}

@keyframes scanLine {

    0% {
        left: -100%;
    }

    50% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}


/* =========================================
   SECTION HOVER
========================================= */

.section:hover {

    border-color:
        rgba(0, 255, 255, 0.4);

    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.08),
        inset 0 0 25px rgba(0, 255, 255, 0.02);
}


/* =========================================
   NUMMER
========================================= */

.section-number {
    position: absolute;

    top: 15px;

    right: 20px;

    color: rgba(0, 255, 255, 0.25);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* =========================================
   ÜBERSCHRIFTEN
========================================= */

.section h2 {

    margin-top: 0;

    color: #f7f7f7;

    font-size: 25px;

    letter-spacing: 1px;

    text-shadow:
        0 0 8px #867b14,
        0 0 20px rgba(0, 255, 255, 0.4);
}

.section h3 {

    margin-top: 25px;

    color: #fff;

    font-size: 17px;

    transition:
        color 0.3s;
}

.section h3:hover {
    color: #00ffff;
}


/* =========================================
   TEXT
========================================= */

.section p,
.section li {
    color: #ccc;
}

.section p {
    margin-bottom: 15px;
}


/* =========================================
   LISTEN
========================================= */

.section ul {

    padding-left: 25px;

    color: #ccc;
}

.section li {

    margin-bottom: 5px;

    transition:
        transform 0.2s,
        color 0.2s;
}

.section li:hover {

    color: #00ffff;

    transform:
        translateX(5px);
}


/* =========================================
   ZURÜCK BUTTON
========================================= */

.back-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: fit-content;

    margin: 45px auto;

    padding: 12px 25px;

    color: #00ffff;

    border:
        1px solid #567070;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    background:
        rgba(0, 255, 255, 0.03);

    transition:
        0.3s ease;
}

.back-button:hover {

    background: #00ffff80;

    color: #000;

    transform:
        translateY(-3px);

    box-shadow:
        0 0 10px #00ffff,
        0 0 30px #00ffff,
        0 0 60px rgba(0, 255, 255, 0.4);
}

.back-button:active {

    transform:
        scale(0.95);
}

.back-button span {

    transition:
        transform 0.3s;
}

.back-button:hover span {

    transform:
        translateX(-5px);
}


/* =========================================
   FOOTER
========================================= */

footer {

    text-align: center;

    color: #555;

    padding: 25px;

    font-size: 13px;

    border-top:
        1px solid #151515;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {

        width: 94%;

        margin:
            35px auto 25px;
    }

    .header {

        margin-bottom: 30px;
    }

    .header h1 {

        font-size: 29px;

        letter-spacing: 1px;
    }

    .header p {

        font-size: 13px;
    }

    .header-line {

        width: 120px;
    }

    .section {

        padding: 20px;

        border-radius: 12px;
    }

    .section h2 {

        font-size: 21px;
    }

    .section h3 {

        font-size: 16px;
    }

    .section p,
    .section li {

        font-size: 14px;
    }

    .section-number {

        right: 15px;

        font-size: 10px;
    }

    .back-button {

        font-size: 14px;

        padding:
            10px 18px;
    }
}


/* =========================================
   REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }
}