/**
 * Infomobil-Termine auf Gebietsseiten
 *
 * Zeigt die einem Gebiet zugeordneten Infomobil-Standorte mit ihren
 * heutigen/künftigen Terminen an. Styling harmoniert mit der bestehenden
 * Terminanzeige (termine.css) und dem Infomobil-Plugin (Orange-Akzent).
 */

.epcan-imt {
    --imt-orange: #f1800e;
    --imt-orange-dark: #d96d00;
    --imt-navy: #122538;
    --imt-bg-soft: #fff8f0;
    --imt-border: #e8e0d8;
    --imt-muted: #6b7280;
    padding: 40px 0;
}

.epcan-imt * {
    box-sizing: border-box;
}

/* ---- Kopfbereich ---- */
.epcan-imt-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.epcan-imt-title {
    margin: 0 0 12px;
    color: #626262;
    font-weight: 700;
    line-height: 1.2;
}

.epcan-imt-intro {
    margin: 0;
    color: var(--imt-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* ---- Karten-Raster ---- */
.epcan-imt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.epcan-imt-card {
    background: #fff;
    border: 1px solid var(--imt-border);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(18, 37, 56, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epcan-imt-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.epcan-imt-pin {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--imt-bg-soft);
    color: var(--imt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epcan-imt-pin svg {
    width: 22px;
    height: 22px;
}

.epcan-imt-card-title {
    margin: 0 0 4px;
    font-size: 19px;
    color: var(--imt-navy);
    line-height: 1.3;
}

.epcan-imt-adresse {
    color: var(--imt-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.15s;
}

.epcan-imt-adresse:hover {
    color: var(--imt-orange);
}

/* ---- Termine ---- */
.epcan-imt-zeiten {
    background: var(--imt-bg-soft);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: auto;
}

.epcan-imt-zeiten-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--imt-orange);
    font-weight: 700;
    margin-bottom: 8px;
}

.epcan-imt-zeiten ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.epcan-imt-zeiten li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(241, 128, 14, 0.25);
    font-size: 14px;
}

.epcan-imt-zeiten li:last-child {
    border-bottom: none;
}

.epcan-imt-datum {
    font-weight: 600;
    color: var(--imt-navy);
}

.epcan-imt-uhr {
    color: var(--imt-muted);
    white-space: nowrap;
}

/* ---- Hinweis ---- */
.epcan-imt-hinweis {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid rgba(241, 128, 14, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--imt-muted);
    line-height: 1.5;
}

.epcan-imt-hinweis svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--imt-orange);
    margin-top: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .epcan-imt {
        padding: 30px 0;
    }

    .epcan-imt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .epcan-imt-zeiten li {
        flex-direction: column;
        gap: 2px;
    }
}
