/* ==================================================
   CGL – SCHRIFTGESTALTUNG
   ================================================== */

body,
p,
li,
td,
th {
    font-family: "Montserrat", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", Arial, sans-serif;
}

.navbar,
.navbar a,
#topbar,
#topbar a {
    font-family: "Montserrat", Arial, sans-serif;
}


/* ==================================================
   CGL – HAUPTNAVIGATION
   ================================================== */

#header .navbar a,
#header .navigation-onscreen a {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 500 !important;
}

#header .navigation-onscreen a::after,
#header .navigation-onscreen a::before {
    color: #ffffff !important;
    border-top-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}


/* ==================================================
   CGL – STARTSEITEN-TEASER
   ================================================== */

#start-top .teaser a {
    background: #ffffff !important;
    color: #263b58 !important;
    border: 1px solid #e0e5e9 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(20, 40, 60, 0.07) !important;

    height: 190px !important;
    min-height: 190px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 25px 12px !important;
    text-align: center !important;
}

#start-top .teaser a,
#start-top .teaser a span,
#start-top .teaser a i {
    color: #263b58 !important;
}

#start-top .teaser a i {
    display: block !important;
    font-size: 34px !important;
    margin: 0 0 18px !important;
}

#start-top .teaser a span {
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#start-top .teaser a:hover {
    background: #f5f7f9 !important;
    border-color: #c5cfd9 !important;
    box-shadow: 0 6px 20px rgba(20, 40, 60, 0.10) !important;
}


/* ==================================================
   CGL – AKTUELLES UND TERMINE
   ================================================== */

#start-top .nav-tabs {
    background: #ffffff !important;
    border-bottom: 1px solid #e1e5e9 !important;
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
}

#start-top .tab-content {
    background: #ffffff !important;
    border-radius: 0 !important;
}

#start-top .nav-tabs > li > a {
    background: #f1f3f5 !important;
    color: #344b63 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
}

#start-top .nav-tabs > li.active > a,
#start-top .nav-tabs > li.active > a:hover,
#start-top .nav-tabs > li.active > a:focus {
    background: #ffffff !important;
    color: #263b58 !important;
    border-bottom: 3px solid #263b58 !important;
}

#start-top .nav-tabs > li > a:hover {
    background: #e5e9ed !important;
    color: #263b58 !important;
}

#start-top .nav-tabs > li:first-child > a {
    border-top-left-radius: 14px !important;
}

#start-top .nav-tabs > li:last-child > a {
    border-top-right-radius: 14px !important;
}

#start-top .tab-pane,
#start-top .category-module {
    border-radius: 0 !important;
}


/* ==================================================
   CGL – AKTUELLES
   ================================================== */

#start-top #news .mod-articles-category-date {
    background: #eef1f4 !important;
    color: #263b58 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#start-top #news .mod-articles-category-date .day,
#start-top #news .mod-articles-category-date .month {
    color: #263b58 !important;
}

#start-top #news .items.clearfix {
    border-bottom: 1px solid #e5e8eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

#start-top #news .items.clearfix:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


/* ==================================================
   CGL – MODULKARTEN
   ================================================== */

#start-top .col-md-4 .moduletable {
    background: #ffffff !important;
    border: 1px solid #dce1e6 !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.09) !important;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    #start-top .col-md-4 {
        transform: translateY(25px);
    }
}


/* ==================================================
   CGL – TERMINE
   ================================================== */

#start-top #termin .events {
    padding: 21px 20px 20px 30px !important;
    margin: 0 !important;
}

#start-top #termin .event-items {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 0 0 14px !important;
    margin: 0 0 14px !important;
    border-bottom: 1px solid #e3e6e9 !important;
}

#start-top #termin .event-datebox {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    background: #eef1f4 !important;
    border-radius: 8px !important;
    text-align: center !important;
}

#start-top #termin .event-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 2px 0 0 !important;
}

#start-top #termin .event-content h4 {
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    color: #263b58 !important;
}

#start-top #termin .event-period {
    display: block !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #777777 !important;
}

#start-top #termin .event-items:last-child {
    border-bottom: none !important;
    padding-bottom: 9px !important;
    margin-bottom: 0 !important;
}

#start-top #termin .event-footer,
#start-top #termin .events-footer,
#start-top #termin .all-events,
#start-top #termin .readmore,
#start-top #termin .more-events {
    display: none !important;
}

#start-top #termin > .moduletable:has(> .custom) {
    display: none !important;
}


/* ==================================================
   CGL – PARTNERSCHAFTEN
   ================================================== */

#start-bottom .partner {
    margin-top: 35px !important;
}

/* CGL – Kachelgröße einstellen */
body.cgl-kacheln .items-row .item {
    min-height: 110px !important;
    height: auto !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
}
/* CGL – Bildgröße in den Kacheln einstellen */
body.cgl-kacheln .items-row .item .introimage img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain !important;
}
/* CGL – Icon links, kleinere Überschrift rechts */
body.cgl-kacheln .items-row .item .introimage {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

/* Bild bleibt links */
body.cgl-kacheln .items-row .item .introimage > a {
    flex: 0 0 auto !important;
    margin: 10px !important;
}

/* Überschrift rechts neben dem Bild */
body.cgl-kacheln .items-row .item .introimage h2 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 10px !important;
    padding: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Linktext ebenfalls verkleinern */
body.cgl-kacheln .items-row .item .introimage h2 a {
    font-size: 14px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}
/* CGL – Abstand unter jeder Kachel */
body.cgl-kacheln .items-row .item {
    margin-bottom: 18px !important;
}
/* CGL – modernes Kacheldesign */
body.cgl-kacheln .items-row .item {
    background: #f3f8fd !important;
    border: 0px solid #e2edf7 !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 12px rgba(25, 65, 110, 0.06) !important;
}

/* Überschriften dunkelblau */
body.cgl-kacheln .items-row .item .introimage h2 a {
    color: #173d68 !important;
    font-weight: 600 !important;
}

/* Dezenter Hover-Effekt */
body.cgl-kacheln .items-row .item:hover {
    background: #e8f3fc !important;
    box-shadow: 0 5px 16px rgba(25, 65, 110, 0.12) !important;
}
/* CGL – Kachel als Bezugspunkt */
body.cgl-kacheln .items-row .item {
    position: relative !important;
    padding-bottom: 42px !important;
}

/* Pfeil unten rechts im Kreis */
body.cgl-kacheln .items-row .item h2 a .fa-chevron-circle-right {
    position: absolute !important;
    right: 14px !important;
    bottom: 12px !important;

    color: #173d68 !important;
    background: transparent !important;

    border-radius: 50% !important;
    width: 25px !important;
    height: 25px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 17px !important;
}
/* CGL – Icon vergrößern, Kachelgröße beibehalten */
body.cgl-kacheln .items-row .item .introimage img {
    transform: scale(1.4) !important;
    transform-origin: center center !important;
}
/* =========================================
   CGL – MODERNES KOMPAKTES KACHELDESIGN
   Joomla-Spaltenlayout bleibt unverändert
   ========================================= */

/* Kacheln */
body.cgl-kacheln .items-row .item {
    position: relative !important;

    background: #f1f7fc !important;
    border: none !important;
    border-radius: 14px !important;

    min-height: 100px !important;
    height: auto !important;
    padding: 16px 18px 34px !important;

    margin-bottom: 18px !important;
    box-sizing: border-box !important;

    box-shadow: 0 3px 12px rgba(20, 60, 100, 0.07) !important;
}

/* Icon und Überschrift nebeneinander */
body.cgl-kacheln .items-row .item .introimage {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
}

/* Bildlink links */
body.cgl-kacheln .items-row .item .introimage > a {
    flex: 0 0 48px !important;
    width: 48px !important;
    margin: 0 !important;
}

/* Icon */
body.cgl-kacheln .items-row .item .introimage img {
    display: block !important;

    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;

    object-fit: contain !important;
    transform: none !important;
    margin: 0 !important;
}

/* Überschrift */
body.cgl-kacheln .items-row .item .introimage h2 {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

/* Linktext */
body.cgl-kacheln .items-row .item .introimage h2 a {
    color: #173d68 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

/* Pfeil unten rechts */
body.cgl-kacheln .items-row .item h2 a .fa-chevron-circle-right {
    position: absolute !important;
    right: 14px !important;
    bottom: 12px !important;

    width: 20px !important;
    height: 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 17px !important;
    color: #173d68 !important;
    background: transparent !important;
}

/* Dezenter Hover-Effekt */
body.cgl-kacheln .items-row .item:hover {
    background: #e6f2fb !important;
    box-shadow: 0 5px 16px rgba(20, 60, 100, 0.12) !important;
}
/* CGL – großes Icon ohne größere Kachel */

/* Kachel bleibt Bezugspunkt */
body.cgl-kacheln .items-row .item {
    position: relative !important;
}

/* Bildlink aus dem normalen Layout nehmen */
body.cgl-kacheln .items-row .item .introimage > a {
    position: absolute !important;
    left: 16px !important;
    top: 10px !important;
    bottom: 10px !important;

    width: 70px !important;
    height: auto !important;
    margin: 0 !important;
}

/* Bild füllt den verfügbaren Bereich */
body.cgl-kacheln .items-row .item .introimage img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
    transform: none !important;
}
/* CGL – Platz für das Icon links */
body.cgl-kacheln .items-row .item {
    position: relative !important;
    padding-bottom: 34px !important;
}

/* Überschrift rechts neben dem Icon */
body.cgl-kacheln .items-row .item .introimage h2 {
    margin-left: 80px !important;
    transform: none !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}

/* Beschreibung unter der Überschrift */
body.cgl-kacheln .items-row .item .cgl-introtext {
    margin-left: 80px !important;
    margin-top: 5px !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #64748b !important;

    max-height: 50px !important;
    overflow: hidden !important;
}

/* Pfeil bleibt unten rechts */
body.cgl-kacheln .items-row .item h2 a .fa-chevron-circle-right {
    right: 14px !important;
    bottom: 12px !important;
}
/* CGL – zweite Kachelreihe links beginnen lassen */
@media (min-width: 992px) {
    body.cgl-kacheln .items-row > div:nth-child(3n+4) {
        clear: left !important;
    }
}