/* Hauptkarte */
.document-card {
    background-color: rgba(40, 48, 80, 0.9);
    transition: transform 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

/* Hover-Effekt: Inhalt zoomt leicht, Karte bleibt gleich groß */
.document-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Icons */
.document-card i {
    color: #ffc107; /* Shoenkai-Gelb */
}

/* Metadaten besser sichtbar auf dunklem Hintergrund */
.document-card .document-meta {
    color: rgba(255, 255, 255, 0.75);
}

.document-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: left;
}

.section-divider {
    font-weight: bold;
    background-color: #833f32;
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 0.7rem;
    margin: 1rem 0 1rem;
}

.folder-label {
    white-space: nowrap;
    flex-grow: 1;
}


.toggle-button {
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
}

.section-divider-wrapper {
    width: 100%;
}

.document-section {
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    opacity: 1;
    max-height: 2000px; /* groß genug für normalen Inhalt */
}

.document-section.collapsing {
    opacity: 0;
}

.document-section.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.document-card h5 {
    min-height: 3rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    word-break: break-word;
}
