/* ======================================================================
 * KGA – Arbeitseinsätze: modernes Portal-Design (Version 2.0)
 * abgestimmt auf "Meine Einsätze & Stunden"
 * ====================================================================== */
/* Außenhülle für die ganze Arbeitseinsätze-Seite */
.kga-ae-main {
    padding: 40px 0 80px;
    /* Sattes Grün – wie bei "Meine Einsätze" */
    background: radial-gradient(circle at top left, #16a34a 0, #166534 45%, #14532d 100%);
}
/* Hülle */
.kga-ae {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 40px 1.5rem 80px;

    /* Grüner Hintergrund wie bei "Meine Einsätze" */
    background: radial-gradient(circle at top left, #16a34a 0, #166534 45%, #14532d 100%);
}



/* Hinweis oben */
.kga-ae__hint {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

/* === Toolbar (Suche + Filter) === */
.kga-ae__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
}

.kga-ae__search {
    flex: 1 1 240px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.95rem;
}

.kga-ae__search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Dropdown */
.kga-ae__toolbar select {
    padding: 0.55rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Checkbox „freie Plätze“ */
.kga-ae__free {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

/* === Grid – Karten-Layout === */
.kga-ae__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2.2rem;
    align-items: stretch;
}

/* === Einzelne Karte === */
.kga-ae__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: #fdfdfd;
    color: #222;

    border-radius: 26px;
    padding: 1.8rem 1.7rem 1.5rem;

    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Kopf */
.kga-ae__head {
    margin-bottom: 0.75rem;
}

.kga-ae__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

/* Meta: Datum, Zeit, Ort */
.kga-ae__meta {
    display: grid;
    row-gap: 0.22rem;
    font-size: 0.94rem;
}

.kga-ae__meta-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.kga-ae__meta-icon {
    font-size: 1.0rem;
}

/* Beschreibung */
.kga-ae__body {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Automatisch generierten Satz ausblenden */
.kga-ae__body p:nth-of-type(2),
.kga-ae__item p:nth-of-type(2) {
    display: none !important;
}

/* --- Footer (Button) --- */
.kga-ae__footer {
    margin-top: 1.4rem;
    display: flex;
    justify-content: flex-start;
}

.kga-ae__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

/* Primärer Button */
.kga-ae__button--primary {
    background: #2a8b3f;
    color: #fff;
}

.kga-ae__button--primary:hover {
    background: #256f35;
}

/* === Zusammenfassung (falls vorhanden) === */
.kga-ae__summary {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* === Responsiv === */
@media (max-width: 640px) {
    .kga-ae {
        padding: 0 1rem 2.5rem;
    }
    .kga-ae__item {
        padding: 1.4rem 1.3rem 1.2rem;
        border-radius: 22px;
    }
}
