/* Hauptcontainer für den Content */
.accordion {
    width: auto;
    max-width: 100%;
    min-width: 300px;
    margin: 20px auto;
    border-radius: 12px; /* Etwas weichere Ecken passend zum modernen Look */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(166, 141, 118, 0.15); /* Schatten nutzt jetzt den Header-Farbton */
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
    background: #ffffff;
}

/* Einzelne Sektion */
.section {
    border-bottom: 1px solid #eee5dd; /* Sehr feine Linie in Header-Farbe */
    background: #ffffff;
    position: relative;
    word-wrap: break-word;
}

/* Accordion Header (die klickbaren Balken) */
.header {
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    /* Nutzt den Header-Farbton, aber etwas heller für Kontrast zum echten Header */
    background-color: #f8f5f2; 
    color: #5d4b3b; /* Dunkleres Braun für Text-Lesbarkeit */
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

/* Aktiver Zustand des Headers */
.section.active .header {
    background-color: #a68d76; /* Exakter Header-Farbton im aktiven Zustand */
    color: #ffffff;
}

/* Content Bereich (wenn ausgeklappt) */
.content {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    word-wrap: break-word;
    background: #ffffff;
    color: #444;
    line-height: 1.6;
}

.section.active .content {
    max-height: 2000px;
    padding: 20px 25px;
}

/* Sektionen, die noch gesperrt sind */
.section.notReady .header {
    background-color: #f2f2f2;
    color: #b0b0b0;
    cursor: not-allowed;
    opacity: 0.8;
}

.section.notReady .header::after {
    content: " 🔒";/* FontAwesome Lock Icon, falls geladen */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover-Effekt */
.header:hover:not(.notReady) {
    background-color: #eee5dd;
}

.section.active .header:hover {
    background-color: #8e7762; /* Etwas dunkler wenn bereits aktiv */
}