/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Allgemeine Styling für Kursinhalte */
.kurs-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Formatierung für den Inhalt-Bereich */
.accordion-content {
    max-height: 0; /* Standardmäßig geschlossen */
    white-space: pre-wrap; /* Bewahrt Whitespace und Zeilenumbrüche */
    word-wrap: break-word; /* Verhindert horizontales Scrollen */
    overflow: hidden; /* Versteckt überflüssigen Inhalt */
    transition: max-height 0.3s ease-in-out;
    padding: 0 15px; /* Horizontales Padding beibehalten, vertikales auf 0 setzen */
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    font-size: 14px;
}

/* Aktiver Zustand für Accordion-Content */
.accordion-content.active {
    max-height: 2000px; /* Großzügiger Wert für lange Inhalte */
    padding: 15px; /* Padding wiederherstellen, wenn geöffnet */
    margin-top: 10px; /* Abstand nach oben hinzugefügt */
    overflow: visible;
}

/* Verbesserte Darstellung von Listenelementen */
.inhalt-liste {
    margin-left: 0;
    padding-left: 20px;
}

.inhalt-liste li {
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: normal; /* Normaler Textfluss für Listen */
}

.inhalt-liste .section-header {
    margin-top: 5px; /* Reduzierter Abstand für Abschnittsüberschriften */
    font-weight: bold;
}

.section-title {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.inhalt-liste .sub-item {
    padding-left: 20px;
}

/* Verbesserte Formatierung für Accordion-Container */
.accordion-item {
    border-bottom: 1px solid #ddd;
    overflow: visible; /* Verhindert das Abschneiden von Inhalten */
    margin-bottom: 10px;
}

/* Zusätzliche Formatierung für Listen und Texte in Accordion-Inhalten */
.accordion-content div, 
.accordion-content p,
.accordion-content ul,
.accordion-content ol {
    white-space: pre-wrap;
    margin-bottom: 15px;
}

/* Verbesserte Darstellung für den Detailtext */
.accordion-content > div {
    white-space: pre-wrap;
}
