/* ------------------------------------------------------------------- */
/* FAQ Accordion Sektion
/* ------------------------------------------------------------------- */

.faq-container {
    width: 100%;
    max-width: 800px; /* Begrenzt die Breite für bessere Lesbarkeit */
    margin: 0 auto;
    text-align: left;
}

.search-box {
    margin-bottom: 2em;
}

/* Einzelnes FAQ-Element */
.faq-item {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); /* Heller Trennstrich */
}

.faq-item:last-child {
    border-bottom: none;
}

/* Die klickbare Frage */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Leichter Hover-Effekt auf der Frage */
.faq-question:hover {
    /*background-color: rgba(255, 255, 255, 0.05);*/
    border: 1px solid #bde9ff;
    border-radius: 5px;
}

.faq-question span {
    font-size: 1.1em;
    font-weight: 600; /* Hebt die Frage hervor */
    color: #ffffff; /* Passt zur hellen Schrift des Templates */
}

/* Das + / - Icon */
.faq-icon {
    font-size: 2em;
    font-weight: 200;
    line-height: 1;
    color: #bde9ff; /* Akzentfarbe Ihrer Seite */
    transition: transform 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

/* Der Antwort-Container (standardmäßig versteckt) */
.faq-answer {
    max-height: 0; /* Versteckt die Antwort */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5em;
    font-size: 0.95em;
    line-height: 1.6;
}

.faq-answer p, 
.faq-answer ul {
    margin-bottom: 1em;
}

/* * Aktiver Status (wird per JavaScript hinzugefügt) 
 */

/* Rotiert das + zu einem x */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Zeigt die Antwort an */
.faq-item.active .faq-answer {
    max-height: 500px; /* Setzt eine maximale Höhe (wird animiert) */
    padding: 1em 1.5em 1.5em 1.5em;
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

/* Stil für die Frage, wenn sie offen ist */
.faq-item.active .faq-question {
    /*background-color: rgba(189, 233, 255, 0.1);*/
    border: 1px solid #bde9ff;
    border-radius: 5px;;
}