.termine-page {
    padding: 7.5rem 0 4rem;
    color: var(--kgv-text, #1f2a24);
}

.termine-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: clamp(2rem, 4vw, 4rem);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(18, 68, 39, 0.92), rgba(18, 68, 39, 0.68)),
        url("../img/bg/sommer.jpg") center / cover;
    box-shadow: 0 18px 45px rgba(15, 45, 26, 0.18);
}

.termine-hero-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 700;
}

.termine-hero h1 {
    max-width: 780px;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.termine-hero p {
    max-width: 860px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.termine-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

.termine-info-card {
    position: relative;
    display: block;
    border-left: 5px solid #e5b122;
    border-radius: 8px;
    padding: 1.2rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 70, 40, 0.09);
}

.termine-filter-card {
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.termine-filter-card:hover,
.termine-filter-card:focus {
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(20, 70, 40, 0.16);
}

.termine-filter-card.active {
    border-left-color: #164b2d;
    outline: 3px solid rgba(229, 177, 34, 0.36);
    background: #fffdf4;
}

.filter-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: #164b2d;
    color: #ffffff;
    font-weight: 800;
}

.termine-info-card h2 {
    padding-right: 2.7rem;
    margin: 0 0 0.45rem;
    color: #164b2d;
    font-size: 1.15rem;
}

.termine-info-card p {
    margin: 0;
    line-height: 1.6;
}

.termine-section {
    margin-top: 2.5rem;
}

.termine-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(22, 75, 45, 0.12);
    padding-bottom: 0.75rem;
}

.termine-section-header h2 {
    margin: 0;
    color: #164b2d;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.termine-section-header span {
    color: #6b745f;
    font-weight: 700;
}

.termine-section-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #7a846f;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.termine-section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
}

.termine-section-actions a {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    background: #164b2d;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.termine-section-actions a:hover,
.termine-section-actions a:focus {
    background: #0f3620;
    color: #ffffff;
}

.termin-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.termin-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    overflow: hidden;
    border: 1px solid rgba(22, 75, 45, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(20, 70, 40, 0.08);
}

.termin-date {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    padding: 1rem;
    background: #164b2d;
    color: #ffffff;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
}

.termin-content {
    padding: 1.15rem 1.25rem;
}

.termin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.termin-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #f3c331;
    color: #17351f;
    font-size: 0.82rem;
    font-weight: 800;
}

.termin-content h3 {
    margin: 0 0 0.65rem;
    color: #164b2d;
    font-size: 1.18rem;
}

.termin-content p {
    margin: 0;
    color: #3f4c43;
    line-height: 1.65;
}

.termine-note {
    margin-top: 2.5rem;
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
    background: #eef7ef;
    color: #24362a;
    line-height: 1.65;
}

.termine-note strong {
    color: #164b2d;
}

.termine-empty {
    border-radius: 8px;
    padding: 1.25rem;
    background: #ffffff;
    color: #3f4c43;
    box-shadow: 0 10px 28px rgba(20, 70, 40, 0.08);
}

@media (max-width: 991px) {
    .termine-info,
    .termin-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .termine-page {
        padding-top: 6.25rem;
    }

    .termin-card {
        grid-template-columns: 1fr;
    }

    .termin-date {
        justify-content: flex-start;
        min-height: auto;
    }

    .termine-section-header {
        display: block;
    }

    .termine-section-actions {
        justify-content: flex-start;
        margin-top: 0.65rem;
    }

    .termine-section-header span {
        display: block;
        margin-top: 0.35rem;
    }
}
