@charset "utf-8";

/* TODO */
.artikeldetail_tabset {
    display: flex;
}
.artikeldetail_tabset ul.nav.nav-tabs {
    display: flex;
    flex-direction: column;
}

.artikeldetail_tabset ul.nav.nav-tabs li {
    padding: 20px;
}
.knt__detail-row {
    display: flex;
    margin-bottom: 100px;
}
.nutzer__titel {
    font-size: 28px;
    text-transform: uppercase;
}
.nutzer__name {
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 700;
    color: #0080D7;
    margin-bottom: 20px;
}
.row.adresse {
    display: flex;
}
.kontakt {
    display: flex;
}
.kontakt__info {
    display: flex;
    flex-direction: column;
}
.kontakt__info-info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-grow: 1;
}
.form-horizontal .form-group {
    margin-right: 0;
    margin-left: 0;
}
.form-horizontal .control-label {
    text-align: left;
    margin-bottom: 20px;
}
.form-control {
    background-color: #fafafa;
}
.breadcrumb {
    background-color: transparent;
    text-align: center;
}

.text-center {
    text-align: center;
}

.modal-content {
    margin-top: 150px;
}
div.galbild_vorsch-gal img {
    object-fit: cover;
}
.artikeldetail_tabset ul li.artikeldetail_tab {
    display: flex !important;
    justify-content: space-between;
}
.artikeldetail_tabset ul li.artikeldetail_tab a,
.artikeldetail_tabset ul li.artikeldetail_tab.active a {
    font-size: 16px;
    font-weight: 600;
}

.artikeldetail_tabset .artikeldetail_tab.active:after {
    content: url("../images/polygon.png");
}
/*.adrlist {
    padding-top: 10px;
    padding-bottom: 10px;
}*/

/*
*
* Extra Small (XS)
*/

@media (max-width: 767px) {
    a, p, span {
        color: #333;
        font-family: Poppins,sans-serif;
        font-size: 14px;
    }
    .knt__detail-row {
        flex-direction: column;
    }
    .artikeldetail_tabset {
        flex-direction: column;
    }
    .artikeldetail_tabset ul.nav.nav-tabs {
        flex-direction: row;
    }
    .row.adresse {
        flex-direction: column;
    }
    div.galbild_vorsch img {
        position: relative;
    }
    .kontakt {
        flex-direction: column;
    }
    .kontakt__info {
        margin-bottom: 20px;
    }
    .home .home__img h2,
    .home .home__img h2 span{
        color: #fff;
        text-transform: none;
    }
    .home .home__img h2 {
        font-size: 18px;
        line-height: 28px;
    }
    .home .home__img h2 span {
        font-size: 20px;
        line-height: 32px;
    }
    .xxx--portal-mod--headline {
        color: #494949;
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
    }
}


/*
*
* Small (SM)
*/

@media (min-width: 768px) and (max-width: 991px) {
    .knt__detail-row {
        flex-direction: column;
    }
}


/*
*
* Medium (MD)
*/

@media (min-width: 992px) and (max-width: 1199px) {

}


/*
*
* Large (LG)
*/

@media (min-width: 1200px) {

}


/* Galerie Referenzen Startseite
.text-center > img {
    width: 100%;
    height: 50vh;
    object-fit: contain;
    object-position: center;
    background: #fff;
    display: block;
}*/


/***********************/

/* Galerie Grid Fix - Optimierte Version */

/* Container für die Galerie */
.gallist.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid-Container */
.gal_list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

/* Grid-Items */
.galeriepic {
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Responsive Grid-Größen */
/* Mobile - 1 Spalte */
@media (max-width: 575px) {
    .galeriepic {
        width: 100%;
        flex: 0 0 100%;

    }
}

/* Small - 2 Spalten */
@media (min-width: 576px) {
    .galeriepic {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* Medium - 3 Spalten */
@media (min-width: 768px) {
    .galeriepic {
        width: 33.333333%;
        flex: 0 0 33.333333%;
    }
}

/* Large - 4 Spalten (Standard) */
@media (min-width: 992px) {
    .galeriepic {
        width: 25%;
        flex: 0 0 25%;
    }

    /* Anpassung für konfigurierte Spaltenanzahl */
    .galeriepic.col-lg-12 {
        width: 100%;
        flex: 0 0 100%;
    }

    .galeriepic.col-lg-6 {
        width: 50%;
        flex: 0 0 50%;
    }

    .galeriepic.col-lg-4 {
        width: 33.333333%;
        flex: 0 0 33.333333%;
    }

    .galeriepic.col-lg-3 {
        width: 25%;
        flex: 0 0 25%;
    }
}

/* Entfernt Standardabstände */
.galerie_imgg {
    width: 100%;
    margin: 0;
}

.galspace {
    padding: 0;
    margin: 0;
    display: block;
}

/* Bild-Container */
.galbild_vorsch-gal,
.galbild_vorsch {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Bilder auf Mobile - Natürliche Größe */
.galbild_vorsch-gal img,
.galbild_vorsch img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Desktop - Einheitliche Höhe ab Small Breakpoint */
@media (min-width: 576px) {
    .galbild_vorsch-gal,
    .galbild_vorsch {
        padding-bottom: 66.67%; /* 3:2 Seitenverhältnis */
        height: 0 !important;
    }

    .galbild_vorsch-gal img,
    .galbild_vorsch img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
    }
}

/* Hover-Effekte
.galbild_vorsch-gal:hover,
.galbild_vorsch:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.galbild_vorsch-gal:hover img,
.galbild_vorsch:hover img {
    transform: scale(1.05);
}*/

/* Link-Wrapper */
.galbild_vorsch-gal a,
.galbild_vorsch a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Bildunterschriften - Optimiert für variable Textlängen */
.galerie_caption,
.xxx--gallery--image-notation,
.row.galerie_caption {
    padding: 8px 5px 10px 5px; /* Mehr Padding unten für Unterlängen */
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5; /* Erhöhte Zeilenhöhe */
    color: #333;
    /* Begrenzung der Textlänge */
    /*overflow: hidden;*/
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maximal 2 Zeilen */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: auto;
}

/* Hover-Effekt für vollständigen Text
.galerie_caption:hover,
.xxx--gallery--image-notation:hover,
.row.galerie_caption:hover {
    overflow: visible;
    -webkit-line-clamp: unset;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    position: relative;
    z-index: 10;
    padding: 10px;
    margin-top: -5px;
}*/

/* Desktop-Optimierung */
@media (min-width: 576px) {
    .galerie_caption,
    .xxx--gallery--image-notation,
    .row.galerie_caption {
        min-height: 50px; /* Etwas mehr Höhe für Unterlängen */
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-line-clamp: 2;
        line-height: 1.5; /* Konsistente Zeilenhöhe */
    }
}

/* Spezifisch für die xxx--gallery--image-notation */
.xxx--gallery--image-notation.xxx---mt-3 {
    margin-top: 8px !important; /* Überschreibt Bootstrap Utility */
}

.xxx--gallery--image-notation.xxx---mb-5 {
    margin-bottom: 10px !important; /* Reduziert den unteren Abstand */
}

/* Clear Float für ältere Browser */
.gal_list::after {
    content: "";
    display: table;
    clear: both;
}

/* Bootstrap-Overrides für Mobile */
@media (max-width: 767px) {
    .galeriepic.hidden-xs {
        display: block !important;
    }

    /* Mobile Carousel ausblenden wenn Grid aktiv */
    .gal_list + .hidden-sm.hidden-md.hidden-lg {
        display: none !important;
    }
}

/* Titel-Styling */
.gallist h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.gallist h3,
.gallist h4 {
    margin: 20px 0 15px;
    color: #666;
}

/* Teaser-Text */
.teasertext {
    margin-bottom: 20px;
    padding: 0 10px;
    color: #666;
    line-height: 1.6;
}

/* ENTFERNT - Die Regeln zum Verstecken von Items waren zu aggressiv */
/* Stattdessen empfehle ich eine Lösung direkt im Template oder via JavaScript */

/* Galerie-Item Container für gleichmäßige Höhen */
.galeriepic {
    display: flex;
    flex-direction: column;
}

.galeriepic .row.galerie_imgg {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Wrapper für Bild und Text zusammen */
.galspace {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Trennung zwischen Galerie-Items */
.galeriepic {
    padding: 0 10px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.galerie_caption:contains("Mehrzweckhalle Tschernitz ") {
    display: none !important;
}
#App > div.row.xxx---mlr-0.ng-scope > main > div:nth-child(6) > div > div > div.xxx--portal-mod.ng-scope.xxx--portal-mod-1-4.container.home-galerie-leistungen > div.xxx--portal-mod--block.xxx--portal-mod--block-gallery.home__leistungen.ng-scope > div.gallist.ng-scope > div > div > div > div > div:nth-child(21) {
    display: none !important;
}

.galerie_referenzen {
    margin: 10px !important;
}

/**** Kategorien ****/
/* Flex-Container für Kategorien */
.kategorie-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Kategorie-Vorschau Items - Einheitliche Breite */
.kategorie-container .galerie0vorschau {
    flex: 0 0 calc(50% - 10px); /* 2 Spalten auf Mobile */
}

@media (min-width: 768px) {
    .kategorie-container .galerie0vorschau {
        flex: 0 0 calc(33.333% - 14px); /* 3 Spalten auf Tablet */
    }
}

@media (min-width: 992px) {
    .kategorie-container .galerie0vorschau {
        flex: 0 0 calc(25% - 15px); /* 4 Spalten auf Desktop */
    }
}

/* Bild-Container mit festem Seitenverhältnis */
.kategorie-container .galerie0bild {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 Seitenverhältnis */
    overflow: hidden;
}

/* Bilder einheitlich positionieren */
.kategorie-container .galerie0bild img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== FIX FÜR EINZELBILDER IN DER GALERIE ========== */
/* Wenn nur ein Bild in der Galerie-Ansicht */
.gal_list .galeriepic:only-child {
    max-width: 600px; /* Maximale Breite für Einzelbilder */
    margin: 0 auto 20px; /* Zentriert das Einzelbild */
}

/* Alternative für sehr kleine Galerien (1-2 Bilder) */
.gal_list:has(.galeriepic:only-child),
.gal_list:has(.galeriepic:nth-child(2):last-child) {
    justify-content: center; /* Zentriert kleine Galerien */
}

/* Spezifisch für Einzelbilder auf Desktop */
@media (min-width: 992px) {
    .gal_list .galeriepic:only-child {
        width: 50%; /* Halbe Breite auf Desktop */
        flex: 0 0 50%;
    }
}