/* Globale Stile und Typografie */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: #f4f4f4; */
    color: #333;
    /*font-size: 1.0em;*/
    font-size: 18px;
}

h1 {
    font-size: 2.0em;
    color: #000;
}

h2 {
    font-size: 1.8em;
    color: #444;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-top: 20px;
}

h3 {
    font-size: 1.5em;
    color: #555;
    margin-top: 15px;
}

p {
    margin: 5px 0;
    line-height: 1.4;
}

strong {
    font-weight: bold;
}

/* Haupt-Container */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Sektions-Container */
.section-container {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Produktübergreifende Auslegung (oben) */
.kupplungskonfigurator-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
}

.kupplungskonfigurator-box .text-content {
    flex: 1;
}

.konfigurator-tag {
    background-color: #ff9900;
    color: white;
    padding: 2px 5px;
    font-size: 0.8em;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

.konfigurator-image {
    max-width: 100%; /* Bild soll sich anpassen */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Produktspezifische Auslegung (unten) - Flex-Layout für die Gruppen */
.coupling-group {
    margin-bottom: 30px;
    padding: 10px;
    border: 1px solid #eee; /* Optische Trennung der Gruppen */
    border-radius: 5px;
}

/* Flex-Container für die Kupplungselemente */
.coupling-list {
    display: flex;
    flex-wrap: wrap; /* Wichtig für den Zeilenumbruch */
    gap: 20px;
    justify-content: flex-start; /* Elemente linksbündig */
    padding-top: 10px;
}

/* Einzelnes Kupplungselement */
.coupling-item {
    flex: 1 1 200px; /* Flex-Basis von 200px, wächst und schrumpft */
    min-width: 200px; /* Mindestbreite */
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Padding und Border werden in die Breite eingerechnet */
}

.coupling-image {
    /*
    max-width: 100%;
    height: auto;
    */
    width: 172px;
    height: 90px;

    display: block;
    margin: 0 auto 10px auto;
    border-radius: 3px;
}

.coupling-item .name {
    font-size: 1.1em;
    margin-bottom: 3px;
    color: #333;
}

.coupling-item .description {
    font-size: 0.9em;
    color: #666;
    height: 60px; /* Feste Höhe, um Layout-Sprünge zu vermeiden */
}

.coupling-item .range {
    font-weight: bold;
    color: #cc0000;
    margin: 10px 0;
}

/* Button-Styling */
.button {
    display: block;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #e68a00;
}

.small-button {
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.8em;
    padding: 5px 10px;
    border: 1px solid #ccc;
}

.small-button:hover {
    background-color: #e0e0e0;
}

/* ---------------------------------------------------------------------- */
/* MEDIA QUERIES für Responsivität */
/* ---------------------------------------------------------------------- */

/* Bei schmalen Bildschirmen (z.B. Mobilgeräte bis ca. 768px) */
@media (max-width: 768px) {
    main {
        padding: 0 10px;
    }

    /* Konfigurator-Box: Bild und Text untereinander */
    .kupplungskonfigurator-box {
        flex-direction: column;
        text-align: center;
    }

    /* Kupplungselemente: Mindestbreite reduzieren, damit nur 1 oder 2 pro Zeile passen */
    .coupling-item {
        flex: 1 1 100%; /* Auf sehr kleinen Bildschirmen nimmt jedes Element die volle Breite ein */
        min-width: 150px; /* Ein bisschen Platz zum atmen */
        margin-bottom: 15px;
    }

    .coupling-list {
        justify-content: center; /* Zentrieren, wenn nur wenige Elemente pro Reihe */
    }

    /* Auf Bildschirmen zwischen 480px und 768px könnten 2 Spalten nebeneinander stehen */
    @media (min-width: 480px) and (max-width: 768px) {
        .coupling-item {
            flex: 1 1 calc(50% - 30px); /* 2 pro Reihe minus Gap */
        }

    }
}

/* Bei noch kleineren Bildschirmen (z.B. Hochformat Smartphone) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
    .coupling-item {
        flex: 1 1 100%; /* Nur ein Element pro Reihe */
    }

}
