body {
    font-family: 'Arial', sans-serif; /* Eine schöne, lesbare Schriftart */
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4; /* Ein hellgrauer Hintergrund */
    color: #333; /* Dunkler Text für gute Lesbarkeit */
    text-align: center; /* Alles zentrieren */
}

header {
    background-color: #005A9C; /* Siemens-Blau als Header-Hintergrund */
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

h1 {
    color: white; /* Überschrift im Header weiß */
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Produktkarte: Bild links, Text rechts */
.product-card {
    display: flex;
    flex-direction: row; /* Standard: nebeneinander */
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    max-width: 100%; /* passt sich an main an */
    box-sizing: border-box;
}

.product-card img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 20px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card img:hover {
    transform: scale(1.05);
}

.description {
    flex: 1;
    overflow-wrap: break-word;
}


@media (max-width: 600px) {
    .product-card {
        flex-direction: column;
        align-items: center;
    }

    .product-card img {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%; /* Bild passt sich an die Kartenbreite an */
        height: auto;
    }

    .description {
        text-align: center; /* optional für bessere Optik */
    }
}


/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.lightbox.show {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}


main {
    background-color: white;
    padding: 30px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    max-width: 800px;
    margin: 0 auto; /* Zentriert den Hauptinhalt */
}

/* img {
    max-width: 100%; // Bild passt sich der Breite an
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
} */

button {
    background-color: #007bff; /* Ein freundlicher blauer Button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Sanfter Übergang beim Hover */
}

button:hover {
    background-color: #0056b3; /* Dunklerer Blauton beim Hover */
}

footer {
    margin-top: 40px;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
}

/* Styling für Fehlermeldungen */
.error-message {
    color: #dc3545; /* Ein kräftiges Rot für Fehlermeldungen */
    font-size: 0.875em; /* Etwas kleinere Schriftgröße */
    margin-top: 5px; /* Abstand nach oben */
    display: block; /* Stellt sicher, dass es eine eigene Zeile einnimmt */
}

/* Visuelle Hervorhebung von ungültigen Feldern */
.is-invalid {
    border-color: #dc3545 !important; /* Roter Rahmen für ungültige Felder */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Leichter roter Schatten */
}

/* Optional: Wenn du den Fokus-Stil auch anpassen möchtest */
.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}