/*
 * Haus der Bayerischen Geschichte
 * 09.10.2018 Res Media // mhs
 */

@font-face {
  font-family: 'Museo';
  font-style: normal;
  font-weight: 300;
  src: local('Museo Sans 300'), local('Museo-Sans-300'), url(../fonts/Museo-Sans-300.woff) format('woff');
}
@font-face {
  font-family: 'Museo';
  font-style: normal;
  font-weight: 700;
  src: local('Museo Sans 700'), local('Museo-Sans-700'), url(../fonts/Museo-Sans-700.woff) format('woff');
}
@font-face {
  font-family: 'Museo';
  font-style: normal;
  font-weight: 900;
  src: local('Museo Sans 900'), local('Museo-Sans-900'), url(../fonts/Museo-Sans-900.woff) format('woff');
}
@font-face {
  font-family: 'BlackKnight';
  font-style: normal;
  font-weight: 900;
  src: local('BlackKnight'), local('BlackKnight'), url(../fonts/BlackKnightFLF.woff) format('woff');
}

/* Allgemein */
html, body {
    font-weight: normal;
}

img { max-width: 100%; }
img.img-100 { width: 100%; }

h1 {
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

h1 > small {
    display: block;
    font-size: .6em;
    line-height: .9em;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

a.btn, .pagination a { text-decoration: none; }
.p-2 { padding: 0 !important; }

.container {
    max-width: 1280px;
    padding: 0 3.5em 0 1em;
}

em {
    font-style: inherit;
    background-color: #fffabb;
}

/* Header */
header {
    padding: 1.8em 0;
}

#logo {
    float: left;
    margin-top: 6px;
}

/* Main Menü */
#main_menu .item a:hover {
    color: #C0C0C0;
}

#main_menu > ul {
    text-align: right;
}

#main_menu > ul > li {
    display: inline-block;
    background-image: url(../img/menu/active.svg);
    background-repeat: no-repeat;
}

#main_menu > ul > li:not(:hover) {
    background-color: #FFFFFF !important;
}
#main_menu > ul > li:hover {
    background-position: center bottom;
}

#main_menu > ul > li > a {
    color: inherit;
    display: block;
    font-weight: 700;
    font-size: 0.9em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
}

#main_menu.hdbg > ul > li > a {
    padding: 1.3em 2em 2em 2em;
    max-width: 200px;
}

#main_menu.bavariathek > ul > li > a {
    padding: 1.1em 2em 2em 2em;
    width: 160px;
}

/* Main Menü Items */
#main_menu .item {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 50px 0;
    z-index: 1100;
}

#main_menu .item > ul {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 768px) {

    #main_menu > ul > li > a {
        text-align: center;
    }

    #main_menu .item > ul > li:first-child {
        font-size: 2.8em;
        font-weight: 900;
        background-image: none !important;
        float: left;
        line-height: 1.3em;
        max-width: 33%;
        height: 200px;
        margin: 0;
        text-align: left;
        text-transform: uppercase;
        word-break: break-word;
        word-wrap: break-spaces;
    }

}

#main_menu .item > ul > li {
    background-image: url(../img/menu/arrow.png);
    background-repeat: no-repeat;
    background-position: right center;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 2em;
    margin: 0 0 0 34%;
    text-align: left;
    width: 25%;
}

#main_menu .item ul > li > a {
    color: #FFFFFF;
    display: block;
    text-align: left;
    text-decoration: none;
}

@media (min-width: 768px) {
    #main_menu > ul > li:hover > .item {
        display: block;
    }
}

/* Main Menü - Subitems */
#main_menu .subitem {
    display: none;
    position: absolute;
    margin: -30px 0 0 170px;
    padding: 10px 20px;
    min-width: 20%;
    border: 1px solid #FFFFFF;
}

@media (min-width: 768px) {
    #main_menu .item > ul > li:hover > .subitem {
        display: block;
    }
}

/* Menü */
#menu {
    margin-top: 10px;
}

#menu a {
    color: #5c676f;
    text-decoration: none;
}

#menu a:hover,
#menu a.active {
    color: #b40071;
    font-weight: bold;
    text-decoration: none;
}

#menu li.spacer {
    margin-top: .85em;
}

#menu > .mobile {
    display: none;
    font-size: 0.65em;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 1em 0;
    width: 20px;
}

#menu > .mobile > div {
    background-color: #5c676f;
    height: 3px;
    margin: 3px auto 0 auto;
}

#menu ul ul {
    margin-left: 1em;
}

/* Sidebar */
#sidebar {
    position: fixed;
    background-color: #25b9cd;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    z-index: 1000;
    padding-top: 70px;
}

#sidebar img {
    width: 100%;
}

#sidebar a {
    display: block;
}

#sidebar .icon { position: absolute; }
#sidebar .print  { bottom: 5px; }
#sidebar .top  { bottom: 45px; }

/* Footer */
footer {
    color: #FFFFFF;
    background-color: #25b9cd;
    padding: 0 0 20px 0;
}

footer.fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
}

footer ul.block {
    list-style-type: none;
    float: left;
    margin: 2rem 0 0 0;
    padding: 0;
    width: 18.3%;
}

footer ul.list {
    list-style-type: none;
    padding: 3rem 0 2.5rem 0;
}

footer ul.list > li {
    float: left;
}

footer ul.list > li:after {
    content: "|";
    margin-right: 1rem;
}

footer ul.list > li:last-child:after {
    content: "";
}

footer ul.list > li > a {
    margin-right: 1rem;
}

footer hr {
    border: none;
    border-top: 1px solid #EEEEEE;
    margin: 1.5rem 0;
    opacity: 0.5;
}

footer .stmwk {
    float: right;
}

footer .title {
    text-transform: uppercase;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: bold;
    height: 1.5rem;
}

footer .version {
    font-size: 0.5em;
}

/* Elemente */
#title {
    color: #b40071;
    font-size: 3.8em;
    font-weight: 900;
    line-height: .8em;
    /*margin-top: 2.5rem;*/
    text-transform: uppercase;
    word-wrap: break-word;
}

#title > small {
    font-size: 0.72em;
    font-weight: 900;
}

.clear {
    clear: both;
}

.content {
    padding: 1rem 0;
}

.img_copyright {
    color: #808080;
    font-size: 0.6em;
    text-align: right;
}

.img_copyright > div {
    margin: .3rem 0;
}

/* Tabelle */
table {
    border: 1px solid #808080;
    margin-bottom: 1rem;
}

table thead {
    background-color: #C0C0C0;
    color: #FFFFFF;
}

table th, table td {
    padding: .5rem .85rem;
}

table tbody > tr:nth-child(even) {
    background-color: #EEEEEE;
}

/* Pagination */
ul.pagination {
    margin-top: 1rem;
}

li.page-item.active .page-link {
    background-color: #1f9cad;
    cursor: default;
    font-weight: bold;
    pointer-events: none;
}

/* Image Popup */
.img-thumbnail.popup p {
    color: #808080;
    padding: .2rem;
    font-size: .7em;
    margin: .25rem 0 0 0;
}

.img-thumbnail.popup.left {
    margin: .5rem 1rem .5rem 0;
    float: left;
}

.img-thumbnail.popup.right {
    margin: .5rem 0 .5rem 1rem;
    float: right;
}

.img-thumbnail.popup > .w120f img {
    height: 120px;
    width: 120px;
}

.img-thumbnail.popup > .w200f img {
    height: 200px;
    width: 200px;
}

.images:after {
    clear: both;
    content: '';
    display: block;
}

.highslide img {
    border: none !important;
}

/* Tabs */
a.nav-link {
    text-decoration: none;
}

.tab-pane {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    margin-bottom: 2rem;
}

.tab-pane h2 {
    font-size: 1.1em;
    font-weight: bold;
}

.tab-pane > p:last-child,
.tab-pane > .section:last-child {
    margin-bottom: 0;
}

/* Drop Down */
.dropdown-menu {
    font-size: .9em;
}

/* Captcha */
.input-group-captcha {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #ced4da;
    border-radius: 0;
}

/* Karte */
.map {
    border: none;
    margin-bottom: 2rem;
}

/* Videos */
.embed-video {
    padding: 1em 0;
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section > p:last-child {
    margin-bottom: 0;
}

/* Transistions */
.fade-enter-active, .fade-leave-active {
    transition: opacity .5s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* HTML Ausgabe */
.html > p {
    margin-bottom: 0;
}

/* Medien */
a.media > svg {
    margin-right: .25em;
}

.media-gallery {
    border: 1px solid #C0C0C0;
    padding: .5rem;
}

.media-gallery > a {
    display: block;
}

.media-gallery > p {
    color: #808080;
    padding: .2rem;
    font-size: .7em;
    margin: .25rem 0 0 0;
}

.media-gallery > .img-thumbnail.popup {
    margin-top: 0;
}