/* --------------------------------------------------------------
   FWG Termine – Archiv-Layout & Styling
   Datei: termine.css
   Zweck: Styling für archive-termine.php
   Autor: Jochen + Copilot
   -------------------------------------------------------------- */


/* --------------------------------------------------------------
   Titel der Seite im FWG-Stil (TERMINE)
   -------------------------------------------------------------- */
.post-type-archive-termine .fwg-archiv-titel.entry-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0px;
    margin-bottom: 35px;
    color: #0b3169;
}

/* Optional: Abstand zum Grid */
.post-type-archive-termine .fwg-termine-grid {
    margin-top: 10px;
}


/* --------------------------------------------------------------
   1) Grundlayout des Termin-Archivs
   -------------------------------------------------------------- */

.fwg-termine-archiv {
    padding-top:    0    !important;
    padding-left:   0px !important;
    padding-right:  0px !important;
    /* Maximalbreite für den gesamten Seiteninhalt */
    max-width: 1400px;   /* deine Wunschbreite */
    margin-left: 0px;
    margin-right: auto;    
}

.fwg-archiv-titel {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #0b3169;             /* FWG-Blau */
}

/* NUR auf Termin-Seite */
.post-type-archive-termine .inside-article,
.post-type-archive-termine .site-main,
.post-type-archive-termine .content-area {
    max-width: 100% !important;
    width: 100% !important;
}

/* --------------------------------------------------------------
   LISTEN-LAYOUT
   -------------------------------------------------------------- */
.fwg-termin {
    display: flex;
}

.fwg-termin-image-wrapper {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.fwg-termin-symbol {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fwg-termin-datum {
    display: inline-block;
    background-color: #0b3169; /* dein FWG-Blau */
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 3px;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: none; /* falls du es groß willst ? uppercase */
    
}


/* Tablet / Mobile: Bild oben, Text darunter */
@media (max-width: 1024px) {
    .fwg-termin {
        flex-direction: column;
    }

    .fwg-termin-image-wrapper {
        width: 100%;
        height: 240px; /* feste Höhe für Tablet */
    }

    .fwg-termin-symbol {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}



/* Mobile */
@media (max-width: 768px) {
    .fwg-termin {
        flex-direction: column;
    }

    .fwg-termin-symbol {
        width: 100%;
        height: 200px;
    }
}
