/* =========================================
   💣 ISOLATION
========================================= */
.termine-fix {
    width: 100%;
    max-width: 100%;
}

.termine-widget {
    width: 100%;
    max-width: 100%;
}


/* =========================================
   CONTAINER
========================================= */
.termine-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   GRID
========================================= */
.termine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================================
   KARTE (FIX ALIGNMENT!)
========================================= */
.termin-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 🔥 FIX */

    background: #eeeeee;
    border-bottom: 4px solid #8b2e2e;
    padding: 20px;

    min-height: 140px;
    cursor: pointer;
}

/* Inhalt sauber */
.termin-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Pfeil nach rechts */
.termin-arrow {
    margin-left: auto;
    font-size: 24px;
    color: #3b5998;
}

/* =========================================
   DATUM
========================================= */
.termin-date {
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.termin-day,
.termin-year {
    color: #8b2e2e;
}

.termin-day {
    font-size: 32px;
    font-weight: bold;
}

.termin-month {
    font-size: 14px;
    letter-spacing: 2px;
    margin: 2px 0;
}

.termin-year {
    font-size: 14px;
}

/* =========================================
   CONTENT
========================================= */
.termin-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #8b2e2e;
}

.termin-category {
    font-size: 12px;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 10px;
}

.termin-time {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

/* =========================================
   MODAL BASIS
========================================= */
.termin-modal {
    display: none;

    position: fixed;
    z-index: 99999;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);
}

/* =========================================
   MODAL ZENTRIERUNG
========================================= */
.termin-modal-content {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #fff;
    width: 90%;
    max-width: 700px;

    padding: 25px;
    border-radius: 10px;

    max-height: 90vh;
    overflow-y: auto;

    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* =========================================
   CLOSE BUTTON
========================================= */
.termin-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* =========================================
   MODAL GRID
========================================= */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.modal-left {
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.modal-right {
    padding-left: 20px;
}

/* =========================================
   MODAL DESIGN
========================================= */
.modal-datum {
    font-size: 22px;
    font-weight: bold;
    color: #8b2e2e;
    margin-bottom: 15px;
}

.modal-right h2 {
    font-size: 26px;
    color: #8b2e2e;
    margin-bottom: 15px;
}

.modal-block {
    margin-bottom: 15px;
}

.modal-block strong {
    display: block;
    margin-bottom: 3px;
}

.modal-intern {
    color: #c40000;
    font-weight: bold;
}

/* =========================================
   📱 MOBILE
========================================= */
@media (max-width: 768px) {

    .termin-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-left {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .modal-right {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .termine-container {
        padding: 0 10px;
    }
}