/* ==========================================
   BBN – BÜHNENBAU NORD
   Joomla 6 / Cassiopeia
   Header und Navigation
   ========================================== */

/* Header-Hintergrund */
.container-header {
    background: #f2f2f2;
    background-image: none;
    box-shadow: none;
}

/* Logo */
.container-header .navbar-brand {
    margin: 0;
    padding: 0;
}

.container-header .navbar-brand img {
    display: block;
    width: auto;
    max-height: 80px;
}

/* Navigation: Farben */
.container-header .mod-menu,
.container-header .mod-menu a,
.container-header .mod-menu button {
    color: #333 !important;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus,
.container-header .mod-menu .active > a {
    color: #0055a4 !important;
}

/* ==========================================
   DESKTOP – ab 992 px
   ========================================== */

@media (min-width: 992px) {

    .container-header {
        display: grid;
        grid-template-columns:
            minmax(20px, 1fr)
            minmax(0, 600px)
            minmax(0, 600px)
            minmax(20px, 1fr);
        align-items: center;
        gap: 0;
        padding: 12px 0;
    }

    /* Logo-Container */
    .container-header > .grid-child:not(.container-nav) {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        justify-content: flex-start;
        align-items: center;
    }

    /* Navigations-Container */
    .container-header > .container-nav {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Menü rechtsbündig */
    .container-header .mod-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 24px;
        margin: 0;
        padding: 0;
    }

    .container-header .mod-menu > li {
        margin: 0;
        padding: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > button {
        padding: 8px 0;
    }
}

/* ==========================================
   MOBIL / TABLET – unter 992 px
   ========================================== */

@media (max-width: 991.98px) {

    .container-header {
        display: block;
        padding: 12px 20px;
    }

    .container-header > .grid-child {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .navbar-brand img {
        max-height: 65px;
    }

    .container-header .container-nav {
        margin-top: 12px;
    }

    .container-header .mod-menu {
        justify-content: flex-start;
    }
}

/* BBN – Leistungsübersicht */

.bbn-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.bbn-services h2 {
    font-size: 26px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 55px;
}

.bbn-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 45px;
}

.bbn-service h3 {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 18px;
    color: #444;
}

.bbn-service h3 i {
    color: #398ceb;
    font-size: 23px;
    width: 26px;
    flex: 0 0 26px;
    text-align: center;
}

.bbn-service p {
    font-size: 16px;
    line-height: 1.55;
    color: #777;
    margin: 0;
}

@media (max-width: 991px) {
    .bbn-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bbn-services-grid {
        grid-template-columns: 1fr;
    }

    .bbn-services {
        padding: 45px 20px;
    }
}

/* BBN – Galerie Startseite */

.bbn-gallery {
    padding: 65px 0;
    background: #f8f8f8;
}

.bbn-gallery h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    margin: 0 20px 50px;
    color: #444;
}

.bbn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.bbn-gallery-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 1;
}

.bbn-gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bbn-gallery-grid a:hover img {
    transform: scale(1.06);
}

@media (max-width: 991px) {
    .bbn-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bbn-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Galerie über die gesamte Bildschirmbreite */

.container-bottom-a:has(.bbn-gallery-module) {
    max-width: none;
    width: 100%;
    padding: 0;
}

.bbn-gallery-module,
.bbn-gallery-module .mod-custom {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.bbn-gallery {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 60px 0 0;
    background: #f8f8f8;
}

.bbn-gallery-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
}
/* Galerie: Cassiopeia-Rahmen entfernen */
.container-bottom-a:has(.bbn-gallery-module) {
    max-width: none;
    width: 100%;
    padding: 0;
}

.bbn-gallery-module.card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    margin: 0;
}

.bbn-gallery-module .card-body {
    padding: 0;
}

.bbn-gallery-module .mod-custom {
    padding: 0;
}

/* Galerie auf volle Bildschirmbreite */
.bbn-gallery-module .bbn-gallery {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}
/* Neun Leistungsbereiche – Rahmen entfernen */
.container-main-bottom .card:has(.bbn-services),
.card:has(.bbn-services) {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.card:has(.bbn-services) > .card-body {
    padding: 0 !important;
}

/* Galerie – obere Trennlinie über volle Breite */
.bbn-gallery {
    border-top: 1px solid #e5e5e5;
}


/* =========================================
   BBN – TEAM
   Joomla 6 / Cassiopeia
   ========================================= */

/* Äußeren Modulrahmen entfernen */
.container-bottom-b .bottom-b.card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    margin: 0;
}

.container-bottom-b .bottom-b.card > .card-body {
    padding: 0 !important;
}

/* Gesamter Teambereich – volle Breite */
#mod-custom227 .bbn-team {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 20px 70px;
    background: #f8f8f8;
    text-align: center;
}

/* Überschrift */
#mod-custom227 .bbn-team > h2 {
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    margin: 0 !important;
}

#mod-custom227 .bbn-team h2 strong {
    font-weight: 600;
}

/* Blaue Linie */
#mod-custom227 .bbn-team-line {
    width: 80px;
    height: 2px;
    background: #398ceb;
    margin: 30px auto 40px;
}

/* Zwei Mitarbeiter nebeneinander */
#mod-custom227 .bbn-team-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 235px) !important;
    justify-content: center !important;
    align-items: start;
    gap: 25px !important;
    width: 100%;
    margin: 0 auto;
}

/* Mitarbeiterkacheln – ohne Rahmen */
#mod-custom227 .bbn-team-member {
    display: block;
    width: 235px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* Mitarbeiterbilder */
#mod-custom227 .bbn-team-member > img {
    display: block !important;
    width: 100% !important;
    height: 205px !important;
    max-width: none !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Name und Funktion */
#mod-custom227 .bbn-team-info {
    padding: 16px 10px 20px;
    text-align: center;
}

#mod-custom227 .bbn-team-info h3 {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    margin: 0 0 8px !important;
    color: #444;
}

#mod-custom227 .bbn-team-info p {
    font-size: 13px !important;
    line-height: 1.5;
    color: #777;
    margin: 0 !important;
}

/* Mobile Ansicht */
@media (max-width: 560px) {
    #mod-custom227 .bbn-team-grid {
        grid-template-columns: minmax(0, 235px) !important;
    }
}

/* BBN – Statements */

.card:has(.bbn-testimonials) {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.card:has(.bbn-testimonials) > .card-body {
    padding: 0 !important;
}

.bbn-testimonials {
    padding: 65px 20px 75px;
    text-align: center;
    background: #fff;
}

.bbn-testimonials h2 {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 45px;
    color: #444;
}

.bbn-testimonial-text {
    max-width: 900px;
    margin: 0 auto 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #777;
}

.bbn-testimonial-stars {
    color: #398ceb;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.bbn-testimonial-image {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.bbn-testimonial-name {
    font-size: 14px;
    color: #777;
    margin-bottom: 4px;
}

.bbn-testimonial-role {
    font-size: 14px;
    color: #777;
}

.bbn-testimonial-role a {
    color: #398ceb;
    text-decoration: none;
}

/* Team und Statements untereinander */
.container-bottom-b {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
}

/* Beide Module volle Breite */
.container-bottom-b > .bottom-b.card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Modul-Innenabstände entfernen */
.container-bottom-b > .bottom-b.card > .card-body {
    padding: 0 !important;
}

/* Statement über gesamte Bildschirmbreite */
.bbn-testimonials {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

/* =========================================
   BBN – FAKTEN
   ========================================= */

/* Joomla-Modulrahmen entfernen */
.card:has(.bbn-facts) {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.card:has(.bbn-facts) > .card-body {
    padding: 0 !important;
}

/* Faktenbereich über volle Bildschirmbreite */
.bbn-facts {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    padding: 65px 20px;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url('/images/bbn/bg/bbn-bg-3.jpg')
        center center / cover no-repeat;
}

/* Vier Kennzahlen */
.bbn-facts-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

/* Icons */
.bbn-fact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

/* Zahlen */
.bbn-fact-number {
    color: #fff;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
}

/* Beschriftungen */
.bbn-fact-label {
    color: #fff;
    font-size: 17px;
    margin-top: 5px;
}

/* Tablet */
@media (max-width: 991px) {
    .bbn-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .bbn-facts-grid {
        grid-template-columns: 1fr;
    }

    .bbn-facts {
        padding: 50px 20px;
    }
}


/* =========================================
   BBN – LATEST NEWS
   ========================================= */

/* Äußeren Modulrahmen entfernen */
.container-bottom-b .bottom-b.card:has(.mod-articles-items) {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 60px 0 70px !important;
}

/* Modulüberschrift */
.container-bottom-b .card:has(.mod-articles-items) > .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 30px !important;
    font-size: 24px;
    font-weight: 400;
    color: #444;
}

/* Innenabstände */
.container-bottom-b .card:has(.mod-articles-items) > .card-body {
    padding: 0 !important;
}

/* Drei Beiträge mit Abstand */
.container-bottom-b .mod-articles-items.mod-articles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px !important;
    row-gap: 30px !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Einzelne Beiträge */
.container-bottom-b .mod-articles-items > li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Überschriften */
.container-bottom-b .mod-articles-title {
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    margin: 0 0 15px;
}

.container-bottom-b .mod-articles-link {
    color: #444 !important;
    text-decoration: none;
}

.container-bottom-b .mod-articles-link:hover {
    color: #398ceb !important;
}

/* Bilder */
.container-bottom-b .mod-articles-image {
    margin: 0;
}

.container-bottom-b .mod-articles-image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Tablet */
@media (max-width: 991px) {
    .container-bottom-b .mod-articles-items.mod-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .container-bottom-b .mod-articles-items.mod-articles-grid {
        grid-template-columns: 1fr;
    }

    .container-bottom-b .mod-articles-image img {
        height: auto;
    }
}

/* BBN Footer */

.container-footer {
    background: #20345a;
    background-image: none;
    padding: 35px 20px;
    color: #fff;
}

.container-footer > .grid-child {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Menü horizontal ausrichten */
.container-footer #mod-menu231 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.container-footer #mod-menu231 > li {
    width: auto;
    margin: 0;
    padding: 0;
}

.container-footer #mod-menu231 a {
    color: #fff;
    text-decoration: none;
}

.container-footer #mod-menu231 a:hover {
    color: #a9c9ff;
}

/* Hero-Text über dem Slider */

.bbn-hero-content {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 55%;
    transform: translateY(-50%);
    width: 400px;
    max-width: 40%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

.bbn-hero-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 25px;
}

.bbn-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.bbn-hero-button {
    display: inline-block;
    padding: 14px 25px;
    background: #398ceb;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    text-shadow: none;
}

.bbn-hero-button:hover {
    background: #1764bc;
    color: #fff;
}

@media (max-width: 767px) {
    .bbn-hero-content {
        left: 8%;
        width: 84%;
        max-width: 84%;
    }

    .bbn-hero-content h1 {
        font-size: 25px;
    }

    .bbn-hero-content p {
        font-size: 15px;
    }
}
/* Hero-Slider mit Textüberlagerung */
.container-banner {
    position: relative;
}

/* Textmodul über dem Slider positionieren */
.container-banner:has(.bbn-hero-content) .mod-custom:has(.bbn-hero-content) {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

/* Text und Button anklickbar halten */
.container-banner .bbn-hero-content {
    pointer-events: auto;
}

/* Galerie innerhalb eines Joomla-Beitrags */

.bbn-article-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.bbn-article-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
}

.bbn-article-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.bbn-article-gallery a:hover img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .bbn-article-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Galerie-Seite – Kontaktbox */

.card:has(.bbn-contact-box) {
    border: 0 !important;
    box-shadow: none !important;
}

.card:has(.bbn-contact-box) > .card-body {
    padding: 0 !important;
}

.bbn-contact-box {
    background: #398ceb;
    color: #fff;
    padding: 22px;
}

.bbn-contact-box h3 {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.bbn-contact-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbn-contact-box li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.bbn-contact-box li i {
    width: 16px;
    flex-shrink: 0;
}

.bbn-contact-box a {
    color: #fff;
    text-decoration: none;
}

.bbn-contact-box a:hover {
    text-decoration: underline;
}
