/* Dropdown Animation 
 ========================================================================== */
.uk-open > .uk-dropdown-navbar {
  -webkit-animation: uk-fade 0.1s ease-in-out;
  animation: uk-fade 0.1s ease-in-out;
}
@media only screen and (min-width: 768px) {
  .uk-navbar-toggle {display:none}
}
/* --- Presse Accordion Testmodul --- */

.presse-accordion.category-module {
    list-style: none;
    margin: 0;
    padding: 0;
}

.presse-accordion.category-module > li {
    margin: 0 0 2px 0;
    padding: 0;
}

.presse-accordion .mod-articles-category-title {
    display: block;
    position: relative;
    padding: 7px 24px 7px 8px;
    background: #eeeeee;
    color: inherit;
    text-decoration: none;
    line-height: 1.25;
}

.presse-accordion .mod-articles-category-title::after {
    content: "+";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.presse-accordion .mod-articles-category-introtext {
    margin: 0;
    padding: 8px;
}


.presse-accordion.category-module > li.is-open > .mod-articles-category-title::after {
    content: "−";
}


/* --- Presse Accordion Feinschliff --- */

.presse-accordion .mod-articles-category-title {
    padding: 7px 24px 7px 8px;
    line-height: 1.25;
}

.presse-accordion .mod-articles-category-introtext {
    margin: 0;
    padding: 6px 8px 9px 8px;
    line-height: 1.3;
}

.presse-accordion .presse-original-link {
    font-size: 13px;
    text-decoration: none;
}

.presse-accordion .presse-original-link:hover {
    text-decoration: underline;
}

/* DPCalendar – Modul 224 "Die nächsten Termine" */
.mod-dpcalendar-upcoming-224 .gymbo-termine {
    margin: 0;
    padding: 0;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin {
    display: flex;
    align-items: flex-start;
    border-left: 5px solid #999;
    border-bottom: 1px solid #e3e3e3;
    padding: 9px 8px 9px 10px;
    line-height: 1.35;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin-datum {
    flex: 0 0 92px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin-titel {
    flex: 1;
    color: #3c5396;
    text-decoration: none;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin-titel:hover {
    text-decoration: underline;
}

/* Modulüberschriften in der rechten Sidebar kompakter */
.tm-sidebar-b .uk-panel-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px;
}



/* Termine: schmaler Farbbalken je Wochentag */
.mod-dpcalendar-upcoming-224 .gymbo-termin {
    display: flex;
    align-items: flex-start;
    border-left: 5px solid #999;
    border-bottom: 1px solid #e3e3e3;
    padding: 9px 8px 9px 10px;
    line-height: 1.35;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-mo { border-left-color: #3c5396; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-di { border-left-color: #d8892b; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-mi { border-left-color: #57945a; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-do { border-left-color: #7b5b9e; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-fr { border-left-color: #b94a48; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-sa { border-left-color: #777; }
.mod-dpcalendar-upcoming-224 .gymbo-termin.weekday-so { border-left-color: #333; }

.mod-dpcalendar-upcoming-224 .gymbo-termin-datum {
    flex: 0 0 92px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin-titel {
    flex: 1;
    color: #3c5396;
    text-decoration: none;
}

/* Uhrzeit bei Terminen */
.mod-dpcalendar-upcoming-224 .gymbo-termin-zeit {
    display: block;
    margin-top: 2px;
    font-weight: normal;
    font-size: 0.9em;
    color: #777;
}

/* DPCalendar responsive Sidebar */
.mod-dpcalendar-upcoming-224 .gymbo-termin {
    min-width: 0;
}

.mod-dpcalendar-upcoming-224 .gymbo-termin-titel {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 900px) {
    .mod-dpcalendar-upcoming-224 .gymbo-termin {
        gap: 6px;
        padding: 8px 5px 8px 8px;
    }

    .mod-dpcalendar-upcoming-224 .gymbo-termin-datum {
        flex: 0 0 78px;
        font-size: 0.92em;
    }

    .mod-dpcalendar-upcoming-224 .gymbo-termin-zeit {
        font-size: 0.85em;
    }

    .mod-dpcalendar-upcoming-224 .gymbo-termin-titel {
        flex: 1 1 auto;
    }
}

/* Responsive Hauptbereich: sidebar-b unter Content auf Tablet und kleiner */
@media (max-width: 1100px) {

    .tm-middle > .tm-main,
    .tm-middle > .tm-sidebar-b {
        width: 100% !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        position: relative;
    }

    .tm-middle > .tm-sidebar-b {
        margin-top: 25px;
    }

    /* Frühere DPCalendar-Notlösung zurücknehmen */
    .mod-dpcalendar-upcoming-224 .gymbo-termin-titel {
        overflow-wrap: normal;
        word-break: normal;
    }

    .mod-dpcalendar-upcoming-224 .gymbo-termin-datum {
        flex: 0 0 92px;
        font-size: inherit;
    }
}

/* Footer-Links auf weißem Hintergrund sichtbar machen */
.footer-outer a,
.footer-outer a:visited {
    color: #555 !important;
}

.footer-outer a:hover,
.footer-outer a:focus {
    color: #111 !important;
    text-decoration: underline;
}

/* =========================================================
   Responsive Navigation ab Tabletbreite
   ========================================================= */
@media (max-width: 1100px) {

    /* Desktop-Menü ausblenden */
    #menu-outer .menu-style {
        display: none !important;
    }

    /* vorhandenen Offcanvas/Hamburger-Schalter anzeigen */
    #menu-outer .uk-navbar-toggle {
        display: block !important;
        visibility: visible !important;
    }

    /* Navbar sauber in einer Zeile halten */
    #menu-outer .tm-navbar {
        min-height: 50px;
    }
}


/* =========================================================
   Footer: dunkle Schrift/Links auf hellem Hintergrund
   ========================================================= */
.footer-outer,
.footer-outer p,
.footer-outer li,
.footer-outer span {
    color: #222 !important;
}

.footer-outer a,
.footer-outer a:visited {
    color: #222 !important;
}

.footer-outer a:hover,
.footer-outer a:focus {
    color: #000 !important;
    text-decoration: underline;
}


/* Footer-Menü darf bei geringerer Breite sauber umbrechen */
.footer-outer .uk-subnav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


/* Einheitliche Kachelflaeche fuer Unterrichtsfaecher */
.uk-article img[src^="/images/Faecher/"] {
    width: 120px !important;
    height: 115px !important;
    object-fit: contain;
    display: block;
    background: #fff;
}

/* STABILES FAECHERGRID */
.faecherseite h2 {
    margin: 0 0 45px;
    padding: 10px;
    background: #f5f5f5;
    color: #3c5396;
    font-size: 18px;
    font-weight: 700;
}

.faecherseite section {
    margin-bottom: 48px;
}

.faecherseite h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.faecher-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 18px 14px;
    align-items: start;
}

.fachkachel {
    display: flex;
    width: 120px;
    min-height: 115px;
    flex-direction: column;
    align-items: center;
    color: #3c5369;
    text-align: center;
    text-decoration: none;
}

.fachkachel img {
    display: block;
    width: 120px !important;
    height: 115px !important;
    margin: 0;
    background: #fff;
    object-fit: contain;
}

.fachkachel span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

a.fachkachel:hover,
a.fachkachel:focus {
    opacity: .82;
    text-decoration: none;
}

@media (max-width: 480px) {
    .faecher-kacheln {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .fachkachel {
        width: 100%;
    }
}

/* FAECHERKACHELN OBEN AUSRICHTEN */
.faecherseite .fachkachel {
    justify-content: flex-start;
    vertical-align: top;
}

.faecherseite .fachkachel img {
    object-position: center top;
}
