/* - Allgemein - - - - - - - - */

/* Max. Content-Breite */
@media all and (min-width: 1922px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1185px !important;
    }
}

/* - Seitennavigation - - - - - - - */
.seitennavigation {
    width: 100%;
    max-width: 200px;
    float: right;
    padding: 10px 20px;
    margin-left: 60px;
    margin-top: 5px;
    border-radius: var(--dav-border-radius);
    background: var(--bg-primary-extra-light);
}

.seitennavigation h4 {
    color: #fff;
    padding: 5px 20px;
    margin: -10px -20px 20px -20px;
    background: var(--primary);
    border-radius: var(--dav-border-radius) var(--dav-border-radius) 0 0;
}

.seitennavigation a {
    color: #000;
}

.seitennavigation a:hover {
    color: var(--primary);
    text-decoration: none;
}

.seitennavigation a.active {
    font-weight: bold;
    color: var(--primary);
}

@media all and (max-width: 960px) {
    .seitennavigation {
        max-width: none;
        float: none;
    	margin-left: 0;
    }
    
    .seitennavigation p {
    	display: inline-block;
    	margin-right: 20px;
    }
    
    #subnavi {
        /*display: none;*/
    }
}

/* Unterseiten-Navigation (Termine/Berichte) */
#subpages {
    background: transparent;
    margin-top: 20px;
}

#subpages a {
    display: flex;
}

#subpages i,
#subpages a:before {
    font-family: dav-icons!important;
    font-size: 24px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    margin-right: 10px;
}

#subpages a.nav-termine:before {
    content: '\e912';
}

#subpages a.nav-berichte:before {
    content: '\e9d5';
}


/* Kontakt - Seite */
.kontaktseite .row.person-list {
    margin-bottom: 40px !important;    
}

.kontaktseite .row.person-list .mb-5 {
    margin-bottom: 0 !important;    
}

.kontaktseite .person-list__rounded, 
.kontaktseite .person-list__badge-container {
    display: none;
}


/* - Hero Teaser - - - - - - - */
.no-gradient .hero-teaser-slider .hero-teaser:after, /* --> Workaround */
.hero-teaser-slider.no-gradient .hero-teaser:after {
    background: transparent;
}

/* - Galerie Slider - - - - - - - */
div.gallery-carousel-app .gallery-carousel-standard {
    max-width: unset;
}

div.gallery-carousel-app .gallery-carousel-beside-copyright {
    width: 100%;
    text-align: center;
}

.gallery-carousel-standard .slick-slider,
.gallery-carousel-slider .slick-slider {
    z-index: 999;
}


/* - Renderlets - - - - - - - */
.renderlet .person {
    padding: 0;
}

/* - Buttons - - - - - - - */
.btn-primary {
    margin-right: 10px;
}

.btn-primary:hover {
    opacity: 0.75;
}

/* - Events - - - - - - - - - */
.event-list-content .row.custom-click {
  cursor: pointer;
} 

.event-list-content .row.custom-click:hover {
  filter: brightness(0.9);
}

div#event-item-detail .detail-page .description-container.tour-description {
  min-height: unset;
}


/* - Partner Logos - - - - - */
#partner-logos {
  padding: 40px 0;
  background: var(--bg-primary-light);
}

#partner-logos .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#partner-logos a:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* - Tabellen  - - - - - - - */
table.responsive {
    width: 100%;
    height: auto !important;
	margin: 0;
	padding: 0;
    border-collapse: collapse;
    border-spacing: 0;

}

table.responsive tbody tr:nth-child(odd) {
	background: transparent;
}

table.responsive tbody tr:nth-child(even) {
	background: var(--bg-primary-extra-light);
}
	
table.responsive th {
    width: auto !important;
    height: auto !important;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: #ffffff;
	text-align: left;
	padding: 15px 10px;
	background: var(--primary);
	border: 1px solid var(--primary);
}

table.responsive th:not(:last-child) {
    border-right: 1px solid var(--bg-primary-light);
}

table.responsive td {
    width: auto !important;
    height: auto !important;
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	padding: 15px 10px;
	vertical-align: top;
	border: 1px solid var(--primary);
}

@media not print {
    @media all and (max-width: 768px) {
    	table.responsive,
    	table.responsive thead,
    	table.responsive tbody,
    	table.responsive th,
    	table.responsive td,
    	table.responsive tr {
    		display: block;
    	}
    
    	table.responsive {
    	    display: flex;
    		position: relative;
    		padding-bottom: 0;
    		border: none;
    	}
    
        table.responsive:after {
    		content: '';
    		position: absolute;
            top: 0;
    		right: 0;
    		width: 30px;
    		height: 100%;
    		border-right: 1px solid var(--primary);
    		box-shadow: -20px 0 20px -20px rgba(0,0,0, 0.2) inset;
    	}
    	
    	table.responsive thead {
    		float: left;
    		display: flex;
    		white-space: nowrap;
    	}
    
    	table.responsive tbody {
    		overflow-x: auto;
    		overflow-y: hidden;
    		position: relative;
    		white-space: nowrap;
    		overscroll-behavior: none;
    	}
    
    	table.responsive tr {
            display: flex;
    		flex-direction: column;
    		vertical-align: top;
    		height: auto !important;
    	}
    
    	table.responsive th {
    		color: var(--black);
    		line-height: 24px;
    		text-align: right;
    		background: var(--bg-primary-light);
    		border-left: 1px solid var(--primary);
    		border-right: 1px solid var(--primary) !important;
    	}
    
    	table.responsive th:not(:first-child) {
    	    border-top-color: transparent;
    	}
    
    	table.responsive th:last-child {
    	    height: 100%;
    	}
    
    	table.responsive tbody {
    		display: flex;
    	}
    
    	table.responsive td {
    		min-width: 50vw;
    		max-width: 80vw;
    		text-align: left;
    		white-space: normal;
    		border-left: 0 !important;
    	}
    	
    	table.responsive td:not(:first-child) {
    	    border-top-color: transparent;
    	}
    
    	table.responsive th:last-child,
    	table.responsive td:last-child {
    	    height: 100%;
    	}
    }
}

@media print {
    #subnavi,
    #subpages {
        display: none;
    }
}


/* - Teaser-Tags verbergen (temporär) - - - - */
.mb-4:has(.teaser-tag) {
    display: none;
}
