/* Karten-Komponente */

.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Ausklappbare Karte (details/summary) */
.card > summary.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    list-style: none;
    gap: 1rem;
}

.card > summary.card-header::-webkit-details-marker {
    display: none;
}

.card > summary.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    margin-right: auto;
}

.card > summary.card-header::after {
    content: '−';
    font-size: 1.8em;
    font-weight: bold;
    color: #343a40;
    transition: transform 0.2s;
    line-height: 1;
}

.card:not([open]) > summary.card-header::after {
    content: '+';
}

/* Statischer Karten-Header (kein details/summary) */
.card > .card-header-static {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Einheitliche h3-Größe für alle Card-Header-Typen (summary, div, static) */
.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
}

.card > .card-header-static h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
}

.card-body {
    padding: 1.5rem;
    padding-top: 0.5rem;
}

.card-body p.text-muted {
    margin: 0;
    padding-top: 1rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
    .card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding: 1.25rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    .card > summary.card-header,
    .card > .card-header-static {
        padding: 1rem !important;
    }
    .card-body {
        padding: 1rem !important;
        padding-top: 0.5rem !important;
    }
}
