
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation Bar */
.nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #cc0000;
}

/* Hamburger Menu Button (initially hidden on desktop) */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay für bessere Lesbarkeit */
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    z-index: 1;
}

/* Content Sections */
section {
    background-color: #2a2a2a;
    padding: 4rem 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

section p {
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}

/* Das .content div, das Text und Bild enthält */
.content {
    max-width: 1600px;
    margin: 0 auto;
}

/* Custom Ordered List for Process Steps */
ol.process-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 2rem auto;
    padding: 0;
    max-width: 800px;
    text-align: left;
}

ol.process-list li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.2rem;
}

ol.process-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    background-color: #cc0000;
    color: #ffffff;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #cc0000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #aa0000;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Make Images Responsive */
img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

/* === Responsive Design for Mobile === */
@media (max-width: 768px) {
    .header {
        justify-content: flex-end; /* Align toggle button to the right */
    }

    .nav {
        justify-content: flex-end;
    }

    /* Show the hamburger button */
    .nav-toggle {
        display: block;
        position: relative; /* Position relative to the nav */
        z-index: 1100; /* Ensure it's above the nav list */
    }

    /* Hide the nav list by default */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.95);
        position: fixed; /* Take up the full screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        justify-content: center;
        z-index: 1050; /* Below the toggle button but above content */
    }

    /* Show the nav list when it has the .active class (toggled by JS) */
    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-item a {
        font-size: 1.5rem;
    }

    /* Adjust Font Sizes for Mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    section p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    ol.process-list li {
        font-size: 1rem;
    }
}


/* === Desktop Layout: Text und Bild nebeneinander === */
@media (min-width: 769px) {
    .content {
        display: flex;
        align-items: center;
        gap: 3rem; /* Etwas mehr Abstand für die breitere Ansicht */
        text-align: left;
    }

    /* GEÄNDERT: Die Regel .content > * wurde durch spezifischere Regeln ersetzt. */

    /* Text (Absätze und Listen) bekommt 2 Teile des verfügbaren Platzes */
    .content > p,
    .content > ol {
        flex: 2;
        margin: 0;
    }

    /* Bilder bekommen 1 Teil des verfügbaren Platzes, werden also kleiner dargestellt */
    .content > img {
        flex: 1;
        margin: 0;
        /* Stellt sicher, dass das Bild nicht breiter wird als der zugewiesene Platz */
        width: 100%;
    }
    
    /* Optional: Erzeugt ein abwechselndes Layout (Bild rechts, dann Bild links usw.) */
    section:nth-of-type(even) .content {
        flex-direction: row-reverse; /* Kehrt die Reihenfolge für jede zweite Sektion um */
    }
}


a {
    color: white;
    text-decoration: none;
}

/* === Desktop Layout: Text und Bild nebeneinander === */
@media (min-width: 769px) {
    .content {
        display: flex;
        align-items: center;
        gap: 3rem;
        text-align: left;
    }

    /* Text (Absätze und Listen) bekommt 2 Teile des verfügbaren Platzes */
    .content > p,
    .content > ol {
        flex: 2;
        margin: 0;
    }

    /* Bilder werden proportional skaliert, aber ihre maximale Größe wird begrenzt, um die visuelle Balance zu wahren */
    .content > img {
        flex: 1; /* Weist dem Bild-Container 1/3 des flexiblen Raums zu */
        width: 100%; /* Sorgt für responsives Verhalten innerhalb des Containers */
        max-width: 400px; /* Setzt eine Obergrenze, damit das Bild nicht zu dominant wird */
        height: auto; /* Behält das Seitenverhältnis bei */
        margin: 0;
    }
    
    /* Erzeugt ein abwechselndes Layout (Bild rechts, dann Bild links usw.) */
    section:nth-of-type(even) .content {
        flex-direction: row-reverse;
    }
}