.accordion {
    width: auto;           /* passt sich dem Inhalt an */
    max-width: 100%;       /* darf nie breiter als Bildschirm */
    min-width: 300px;      /* optional, verhindert zu kleine Breite */
    margin: auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    font-family: sans-serif;
    box-sizing: border-box;
}

/* Jede Section */
.section {
    border-bottom: 1px solid #ccc;
    background: white;
    position: relative;
    word-wrap: break-word; /* lange Wörter umbrechen */
}

/* Header */
.header {
    padding: 15px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #1f2a38, #2e3b4e);
    color: #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
    word-wrap: break-word;
}

/* Content */
.content {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    word-wrap: break-word;
}

/* Aktive Section */
.section.active .content {
    max-height: 2000px;
    padding: 15px;
}

/* ================== */
/* NotReady Sections   */
/* ================== */

.section.notReady .header {
    background: linear-gradient(135deg, #3a4656, #4b5b6b);
    color: #a0aab7;
    cursor: not-allowed;
    opacity: 0.7;
}

.section.notReady .header::after {
    content: " 🔒";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.section.notReady .content {
    pointer-events: none;
}

.section.notReady .header:hover {
    filter: brightness(1.0);
}

/* Hover Effekt für normale Sections */
.header:hover:not(.notReady) {
    filter: brightness(1.1);
}
