/* Allgemeine Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}
a {
    color: inherit; /* Normale Farbe */
    text-decoration: none;
}
a:hover {
    color: grey; /* Hover-Farbe gleich der normalen Farbe */
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

img {
    border-radius: 4px; /* Ecken auf 5px abrunden */
}

/* Navigation */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 4px 2px -2px gray;
}

.menu-toggle {
    display: flex;
    justify-content: flex-end;
}

.menu {
    list-style: none;
    display: flex; /* Immer sichtbar */
    flex-direction: column; /* Standardmäßig vertikal */
    padding: 0;
    margin: 0;
    background-color: white;
    font-size: 0.75em; /* Schriftgröße für kleine Bildschirme */
}

.menu li {
    border-bottom: 1px solid #ccc;
}

.menu li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
}

.menu li a:hover {
    background-color: #f4f4f4;
}

.menu-icon {
    cursor: pointer;
    font-size: 30px;
}

@media(min-width: 768px) {
    .menu {
        flex-direction: row; /* Horizontal auf größeren Bildschirmen */
        font-size: 1em; /* Schriftgröße für größere Bildschirme */
        
    }

    .menu li {
        border: 1px; /* Border für das horizontale Menü */
    }

    .menu li a {
        padding: 15px 20px; /* Padding für die horizontalen Links */
    }

    .menu-icon {
        display: none; /* Hamburger-Icon nicht anzeigen bei größeren Bildschirmen */
    }
}





/* Hero Bereich */
.hero {
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}
.hero-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Money Bereich */
.money {
    background-image: url('sparen.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}

.money-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Dyness Bereich */
.dyn {
    background-image: url('dyn_comp.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}

.dyn-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* von PORSCH ESS Bereich */
.vpess {
    background-image: url('vpess.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}

.vpess-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Katalog Bereich */
.kat {
    background-image: url('kata.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}

.kat-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Solar Bereich */
.sol {
    background-image: url('sol_pv.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: dark-grey;
    text-align: left;
}

.sol-text {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
}



/* Logo */
.logo img {
    width: 225px;
    height: auto;
}

/* Über uns Bereich */
.about {
    padding: 60px 0;
    text-align: center;
}

/* Dienstleistungen Bereich */
.services {
    padding: 60px 0;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #FAFAFA;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

@media (max-width: 768px) {
    .service-item {
        flex: 1 1 100%;
    }
}

/* Produkt Bereich */
.product {
    padding: 60px 0;
}

.product-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%; /* Stellt sicher, dass der Container die gesamte Bildschirmbreite einnimmt */
}

.product-image {
    flex: 1 1 30%;
    width: 100%; /* Bild wird innerhalb des Containers auf 100% beschränkt */
}

.product-description {
    flex: 1 1 65%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center; /* Zentriert den Inhalt auf kleinen Bildschirmen */
    }

    .product-image {
        max-width: 90%; /* Maximal 90% der Breite des Containers */
        width: 100%; /* Stellt sicher, dass das Bild die gesamte Breite des Containers ausnutzt */
    }

    .product-description {
        flex: 1 1 100%;
    }
}


/* Chance Bereich */
.chance {
    background-color: #585858;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.chance h2 {
    color: white;
}

.chance p {
    font-size: 1.2em;
}

/* Impressum Bereich */
.impressum {
    background-color: #800000;
    color: white;
    padding: 40px 0;
}

.impressum-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.impressum-item {
    flex: 1 1 calc(17% - 20px);
}

.impressum-item h4 {
    margin-bottom: 10px;
}

.impressum-item p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .impressum-item {
        flex: 1 1 100%;
    }
}

.slider {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 75px;
}

.slider-track {
    display: flex;
    width: calc(240px * 28); /* Gesamtlänge der doppelten Bildreihe */
    animation: scroll 25s linear infinite;
}

.slide {
    min-width: 240px;
    height: 100%;
}

.slide img {
    width: 120px;
    height: auto;
    filter: grayscale(100%);
}

/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-240px * 14)); /* Hälfte der gesamten Bildreihe scrollen */
    }
}

    form {
        display: flex;
        flex-direction: column;
        font-size: 0.8em;
    }

    .form-group {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }

    label {
        margin-bottom: 5px;
        color: #333;
        font-weight: bold;
    }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.8em;
    width: 100%;
    box-sizing: border-box; /* Sicherstellen, dass Padding/Border in die Breite zählen */
    max-width: 100%; /* Verhindert, dass die Felder den Container überschreiten */
}

/* Textarea für Nachrichten */
textarea {
    resize: vertical;
    min-height: 100px;
}



/* Button Style */
button {
    padding: 10px 15px;
    background-color: #f44336; /* Rot */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    width: 100%; /* Button volle Breite */
    box-sizing: border-box;
}

/* Button Hover Effekt */
button:hover {
    background-color: #d32f2f;
}

/* Checkbox Gruppe */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.85em;
}

.checkbox-group label {
    width: 40%; /* Stellt sicher, dass 3 Checkboxen in eine Zeile passen */
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.timeline-container {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    min-width: 450px;
}

.timeline {
    padding: 30px 40px;
    position: center;
    width: 80%; /* Weniger Platz auf beiden Seiten */
}

.timeline.right {
    left: 25%; /* Position weiter nach rechts verschoben */
}
.timeline.left {
    left: 25%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -10px;
    z-index: 1; /* Stellt sicher, dass der Balken im Hintergrund bleibt */
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    z-index: 2; /* Stellt sicher, dass der Text vor dem Balken bleibt */
}

.timeline.left .timeline-content {
    margin-right: 10px; /* Mehr Abstand nach rechts, um dem Balken auszuweichen */
}

.timeline.right .timeline-content {
    margin-left: 10px; /* Mehr Abstand nach links, um dem Balken auszuweichen */
}


        .auswahl-container {
            display: flex;
            flex-direction: column;
            align-items: center; /* Zentriert den Inhalt horizontal */
            justify-content: center; /* Zentriert den Inhalt vertikal */
            max-width: 800px;
            padding: 20px;
            margin: auto; /* Macht den Container zentriert */
        }





        .optionen {
            display: flex;
            gap: 20px;
        }

        .option {
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            padding: 30px;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .option:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        h2 {
            font-size: 1.5em;
            color: #333;
            margin-bottom: 10px;
        }
        h1 {
            font-size: 1.9em;
            margin-bottom: 10px;
        }

        .option p {
            color: #555;
            font-size: 1em;
            text-align: center;
            margin-bottom: 20px;
        }

        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #800000;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .button:hover {
            background-color: #5c0000;
        }