body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f7;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2 {
    text-align: center;
    color: #ffffff;
    margin: 20px 0; /* Gleiche Abstände oben und unten für eine konsistentere Optik */
}

.accordion, .panel {
    width: calc(100% - 40px); /* Subtrahiert 40px von 100% der Containerbreite, um für Padding zu kompensieren */
    margin: 10px auto; /* Zentriert beide Elemente horizontal */
    padding: 18px;
    box-sizing: border-box; /* Stellt sicher, dass Padding und Border die Gesamtbreite nicht beeinflussen */
}

.accordion {
    background-color: #5a3d99;
    color: #ffffff;
    cursor: pointer;
    border: none;
    text-align: center;
    outline: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; /* Stellt die Ausrichtung von Text und Icon sicher */
    align-items: center;
}

.accordion:hover, .accordion.active {
    background-color: #6d4c9f;
}


.panel {
    display: none;
    background-color: #ffffff;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Ergänzt eine klare, leicht lesbare Schriftart */
}

.panel h2, .panel h3, .panel h4{
    color: #000; /* Schwarze Farbe für klare Sichtbarkeit */
    font-size: 24px; /* Angemessene Größe für H2 */
    font-weight: bold; /* Fettgedruckte Schrift für bessere Hervorhebung */
    margin-top: 20px; /* Fügt oben mehr Platz hinzu, besonders nach Absätzen */
    margin-bottom: 10px; /* Weniger Platz am unteren Rand, um die Sektionen zusammenzuhalten */
}

.panel p, .panel li {
    color: #444;
    font-size: 18px;
    line-height: 1.6;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.panel p:last-child, .panel li:last-child {
    border-bottom: none;
}

.panel ul {
    list-style-type: disc;
    padding-left: 40px;
}




/* Responsives Design für bessere Handhabung auf kleinen Geräten */
@media screen and (max-width: 768px) {
    .accordion, .panel {
        width: 95%; /* Leicht reduzierte Breite für bessere Randhandhabung */
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 18px;
    }

    .accordion {
        font-size: 18px;
    }

    .rule-details h2 {
        font-size: 20px;
    }
}
