#header {
    background-color: #4169e1;
}

#logo {
    position: relative;
    padding-bottom: 1em;
}

#logo img {
    max-width: 60%;
    height: auto;
}

#claim {
    position: absolute;
    width: auto;
    max-width: 75%;
    left: 25%;
    bottom: 2%;
    color: white;
    /*font-weight: bold;*/
}

#info {
    position: relative;
    color: white;
    text-align: right;
}

#info div {
    display: inline-block;
    margin: 0.5em;
}

#info #opening-hours {
    display: none;
    font-size: 0.8em;
    padding: 2em 1.25em 1em 1.25em;
    background-color: #666666;
    color: white;
}

#opening-hours-anchor {
    display: block;
    position: fixed;
}

#opening-hours-anchor:target + #opening-hours {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    min-width: 14em;
    z-index: +10000;
}

#opening-hours > a {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5em;
}


#disruptor a {
    display: block;
    /*position: absolute;
    top: 0;
    right: 0;*/
    width: 6em;
    height: 6em;
    border-radius: 50%;
    background-color: #fff13f;
    color: #4169e1;
    font-size: 0.6em;
    line-height: 6em;
    text-align: center;
    text-decoration: underline;
    transform: rotate(-15deg);
}

#search-box {
	display: flex;
	justify-content: flex-end;
	align-content: center;
	white-space: nowrap;
}

#search-box input,
#search-box input:invalid:not(:focus) {
	width: 1.8em;
	height: 1.8em;
	border: 1px solid #3d3d3e;;
	background-image: url(/images/search.svg);
	background-repeat: no-repeat;
    background-position: center center;
    background-size: 1.2em 1.2em;
    background-color: transparent;
    color: #3d3d3e;;
}
	
#search-box input:focus,
#search-box input:valid {
	width: calc(100% - 2.8em);
	max-width: 12em;
	height: 2em;
	margin: 0 !important;
	background-color: rgba(255,255,255,0.1);
	background-image: none !important;
}
	
#search-box button {
	display: none;
}

#search-box input:focus + button,
#search-box input:valid + button {
	display: inline-block;
	width: 2.2em;
	height: 1.8em;
	padding: 0;
	margin: 0.2em;
	font-size: 1em;
	vertical-align: baseline;
}


#language-switch {
    width: 5em;
    white-space: nowrap;
}

#footer .nav .nav-link {
    padding: 0;
}

#mainnav {
    background-color: #dcddde;
}

.pb-black,
#mainnav .nav-link {
    /*color: #f8f9fa;*/
    color: #3d3d3e;
    font-weight: bold;
}

#mainnav .dropdown-menu {
    /*background-color: #343a40;*/
    background-color: #d6d7d8;
}

#mainnav .dropdown-menu a {
    color: #3d3d3e;
}
#mainnav .dropdown-menu a:hover,
#mainnav .dropdown-menu a:focus {
    text-decoration: underline;
    background-color: #d6d7d8;
}
#mainnav .btn.dropdown-toggle {
    color: #3d3d3e;
}

#mainnav .nav-link:hover,
#mainnav .nav-link:focus {
    text-decoration: underline;
}

.bg-light {
	background-color: #ffcccc;
}

.carousel-item a {
	display: block;
	width: 100%;
}

.carousel-item a img {
	width: 100% !important;
	height: auto;
}

.event-preview,
.event-summary {
    border: 2px solid #e8ddcc;
    background-color: #f4efe7;
}

.event-preview h2 a,
.event-summary h2 a {
    color: #4169e1;
}

.exhibition-summary {
    border: 2px solid #c0c7f1;
    background-color: #e2e5f8 !important;

}

.exhibition-summary h2,
.event-summary h2 {
    font-size: 1.7em;
    line-height: 1em;
}

.exhibition-summary h2 a {
    color: #4169e1;     
}

.exhibition-summary .author {
    font-size: 1.5em;
}

.exhibition-summary-image,
.event-summary-image,
.activity-summary-image {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: rgba(0,0,0,0.1);
}


.exhibition-summary-image a, 
.event-summary-image a,
.activity-summary-image { 
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.exhibition-summary-image img, 
.event-summary-image img,
.activity-summary-image {
    position: relative;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: auto;
    top: 50%;
    transform:translateY(-50%);
}

.sortable {
}

.sortable-image {

}

.sortable legend,
.sortable input {
    display: block;
    max-width: 100%;
}

.exhibition-images,
.activity-images {
    display: flex;
    height: auto;
    min-height: 15em;
    margin: 3em 0;
    overflow-x: auto;
    overflow-y: visible;
}

.exhibition-image,
.activity-image {
    display: block;
    position: relative;
    margin-right: 1em;
    /*width: 12em;
    height: 12em;*/
}

.exhibition-image:last-of-type,
.activity-image:last-of-type {
    margin-right: 0;
}

.exhibition-image img,
.activity-image img {
    width: auto;
    height: 12em;
}

.exhibition-image div,
.activity-image div {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
}
 
.exhibition-image span,
.event-image span, 
#event-image span,
.activity-image span {
    display: block;
    width: 100%;
    height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.666em;
    background-color: #efefef;
}

.lightbox-caption {
    position: fixed !important;
    font-size: 0.8em !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.museum {
    border: 2px solid #93a1e9;
    background-color: #c0c7f1 !important;
}

.kabinett {
}

.promotion {
    font-size: 1.5em; 
    font-style: italic;
    color: #4169e1;
}

.legends {
    font-size: 0.9em;
}

.legends div {
    display: flex;
    margin: 0 1em;
}

.event-image,
.activity-image {
    width:100%;
    height: auto;
}

h2 {
	margin: 1.5em 0em 0.5em 0em;
	font-size: 1.5em;
	font-weight: normal;
	color: #4169e1 !important;
}

main h3 {
	font-size: 1.2em;
	font-weight: bold;
}


#scroll-prev,
#scroll-next {
    position: relative;
}

#scroll-next .spinner,
#scroll-prev .spinner {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-color: white;
    text-align: center;
}

#scroll-next img,
#scroll-prev img {
    width: 4em;
    height: auto;
    margin: auto;
    transform: translateX(-25%);
}

.delimiter {
    width: 40%;
    height: 0;
    margin: 1em auto;
    border-bottom: 1px solid #999999;
}

.content-table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.content-table td {
    padding: 0.25em;
    border: none;
}

.content-image {
    float: left;
    width: 50%;
    margin: 1em 1em 1em 0;
}

.content-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.content-image.stretched {
    float: none;
    width: 100%;
    height: auto;
}

.content-image.stretched img {
    max-width: none;
    width: 100%;
    height: auto;
}

.content-image img.with-border {
    border: 1px solid black;
}

.content-image.with-background {
    float: none;
    background-color: #efefef;
    text-align: center;
}

.content-image.with-background img {
    max-width: 100%;
    margin: auto;
}
@media screen and (max-width: 768px) {

    #claim {
        font-size: 0.8em;
    }
    
    #info div {
        display: block;
    }
    
    .content-image {
        float: none;
        width: 100%;
    }
}

@media screen and (min-width: 768px) {
    #disruptor a {
        position: absolute;
        top: 50%;
        right: 0;
        transform: rotate(-15deg) translateY(-50%);
    }
}

@media screen and (min-width: 992px) {
    #logo img {
        max-width: 100%;
    }
    
    #disruptor a {
        font-size: 1em;
    }
    
    .index-left {
    	float: left;
    	clear: none;
    	width: 67%;
    }
    
    .index-right {
    	float: right;
    	clear: right;
    	width: 30%;
    	margin-top: 0;
    }
    
    .index-clear {
    	clear: both;
    }

}
    
