
/**
 * ContentElements/BookingAppointments.css
 * ELP-22 – Online-Terminbuchung
 * Status: CREATED
 */

.ce-booking-appointments {
    container-type: inline-size;
    width: 100%;
    min-width: 0;
}

/* Grundlayout */

.ce-booking-appointments__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--elspec_bg-darkgreen);
    border-radius: 8px;
    height: 100%;
}

/* Bild */

.ce-booking-appointments__image {
    min-width: 0;
    min-height: 240px;
}

.ce-booking-appointments__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Textbereich */

.ce-booking-appointments__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(20px, 4cqw, 36px);
}

.ce-booking-appointments__subheader {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--elspec_bg-darkgreen);
    margin-bottom: 20px;
}

.ce-booking-appointments__subheader::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    background: currentColor;
    margin-top: 10px;
}

.ce-booking-appointments__title {
    font-size: clamp(1.5rem, 2.8cqw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 12px;
}

.ce-booking-appointments__description {
    line-height: 1.5;
    margin-bottom: 24px;
}

.ce-booking-appointments__description p:last-child {
    margin-bottom: 0;
}

/* Termine */

.ce-booking-appointments__items {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 200px), 1fr)
    );
    gap: 16px;
}

.ce-booking-appointments__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ce-booking-appointments__item-title {
    display: none;
}

/* Buttons */

.ce-booking-appointments__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 12px 18px;
    border: 1px solid var(--elspec_bg-darkgreen);
    border-radius: 6px;
    background: var(--elspec_bg-darkgreen);
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: opacity 0.2s ease;
}

.ce-booking-appointments__button:hover {
    opacity: 0.85;
    color: #fff;
}

/* Zweiter Button als Outline */

.ce-booking-appointments__item:nth-child(even),
.ce-booking-appointments__button {
    background: transparent;
    color: var(--elspec_bg-darkgreen);
}

/* Informationen unter den Buttons */

.ce-booking-appointments__item-date {
    margin-top: 10px;
}

.ce-booking-appointments__item-date,
.ce-booking-appointments__item-location {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Bild links bei ausreichender Containerbreite */

@container (min-width: 700px) {
    .ce-booking-appointments__layout {
        grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    }

    .ce-booking-appointments__image {
        min-height: 380px;
    }
}
