/* =global
--------------------------------------------------------------- */
.wrapper {
	width: 94%;
	max-width: 1170px;
	margin: 0 auto;
}
@media only screen and (min-width: 48em) { /* 768 */
	.wrapper {
		width: 90%;
	}
}

/* =header
--------------------------------------------------------------- */
header {
     background-color: var(--accent-color-dark);
}
.wrapper--header {
	padding: 1.5em 0;
}

.header__block {
	margin: -1.5em 0;
	display: flex;
	justify-content: space-between;
}
.header__block > *:not(.mobilenav__bg) {
	margin: 1.5em 0;
}
.header__block:nth-child(1) {
	align-items: center;
	flex: 1 1 auto;
}
.header__block:nth-child(2) {
	display: flex;
	flex-direction: row;
}
.header__block:nth-child(2) .hamburger {
	margin-left: 1em;
}

.logo {
	max-width: 50%;
    margin-right: 1.5em;
}
.logo .primary-color,
.logo .primary-color * {
	fill: var(--accent-color-dark);
}
.logo a {
	display: block;
}
.logo svg {
	display: block;
	height: auto;
	max-width: 100%;
}
.logo .secondary-color,
.logo .secondary-color * {
	fill: var(--accent-color-light);
}
.header a {
	text-decoration: none;
}
.header a:hover,
.header a:focus {
	text-decoration: underline;
}
.govis-menu-node-item > a:hover,
.govis-menu-node-item > a:focus {
	text-decoration: none;
}
.header__block:nth-child(1) .header-nav {
    margin: 3.5em 0 1.5em;
}
.header-nav {
	margin-left: auto;
}
.metanav {
	display: flex;
	align-self: center;
	font-size: 1.4rem;
}
.tmpl--home .metanav__item--home {
    display: none;
}
.metanav a {
    color: var(--accent-color-light);
}
.metanav__link {
	margin-right: .75em;
}

.tmpl--herzensbilder .metanav a {
    color: var(--accent-color-white);
}
.tmpl--herzensbilder .metanav  a:hover,
.tmpl--herzensbilder .metanav  a:focus,
.tmpl--herzensbilder .metanav .active a {
    text-decoration: underline;
}
.tmpl--herzensbilder .metanav  a:focus-within {
    text-decoration: underline;
}
.switch {
	width: 100%;
   margin: 0 !important;
   font-family: 'Roboto Condensed', Helvetica, Arial, Geneva, sans-serif;
}
.switch__list {
	display: flex;
    flex-direction: row;
	font-size: 1.6rem;
    margin: 0;
}
.switch__link {
	margin-right: 0.75em;
}
.tmpl--herzensbilder .switch a {
    color: #fff;
}
.switch a {
    color: var(--accent-color-light);
}
.switch .switch__item--active a {
    text-decoration: underline;
}
@media only screen and (max-width: 62.5em) { /* 1000 */
    .switch__list {
        font-size: 1.4rem;
    }
}
@media only screen and (max-width: 48em) { /* 768 */
    .header__block:nth-child(2) {
        flex-wrap: wrap;
    }
    .switch__list {
        justify-content: flex-end;
    }
    .header__block:nth-child(1) .header-nav {
        display: none;
    }

}
.searchform {
	flex: 1 1 auto;
	display: flex;
	border: 2px solid var(--accent-color-light);
	border-radius: 4px;
	transition: box-shadow .2s;
    background-color: #fff;
}
.searchform:focus-within {
	outline: 0;
	border-color: var(--highlight-color);
	box-shadow: 0 0 0 5px rgba(21, 156, 228, 0.4);
}
.searchform:focus-within *:focus {
	box-shadow: none;
}
.searchform__input {
	flex: 1 1 auto;
	width: 1%;
	border: 0;
	padding: .5em .75em;
}
.searchform__submit {
	display: flex;
    align-items: center;
	border: 0;
	color: var(--accent-color-dark);
	border-radius: 0;
	transition: all .2s;
	background-color: transparent;
}
.searchform__submit:focus {
	color: #fff;
	background-color: var(--highlight-color);
}
.searchform__submit svg {
	width: 1.25em;
    height: 1.25em;
}

@media only screen and (min-width: 48em) { /* 768 */
	.wrapper--header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 2em 0;
	}
	.header__block {
		align-items: center;
	}
	.header__block:nth-child(2) {
		width: 23.076923076923077%; /* 270/1170 */
        flex-direction: column;
    	align-items: stretch;
	}
	.header-nav {
		margin-right: 1.5em;
	}
}

/* =panorama
--------------------------------------------------------------- */
@media only screen and (min-width: 37.5em) { /* 600 */
	.pano-img {
		min-height: 150px;
		height: 30vw;
		max-height: 490px;
		background-image: url(/public/upload/assets/22/headerimg.jpg);
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
	}
}

/* =mainnav
--------------------------------------------------------------- */
.mainnav {
	position: relative;
	background-color: var(--accent-color-dark);
	font-family: 'Roboto Condensed', Helvetica, Arial, Geneva, sans-serif;
	font-weight: bold;
}
@media only screen and (min-width: 37.5em) { /* 600 */
	.mainnav {
		position: sticky;
		top: 0;
		z-index: 5;
	}
}
.mainnav::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 30px;
	pointer-events: none;
	background-image: linear-gradient(180deg, rgba(0,0,0,.2), transparent);
}
.mainnav__level-1 {
	display: flex;
	justify-content: center;
	width: 100%;
}
.mainnav__item {
	position: relative;
	margin-left: 0;
}
.mainnav__link {
	display: block;
	text-decoration: none;
	color: #fff;
}
.mainnav__level-1 > .mainnav__item > a {
	padding: 0.25em 1em; /* 45/30 */
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
	min-height: 0vw; /* forces safari to update fontsize on window resize  */
}
@media screen and (min-width: 600px) {
	.mainnav__level-1 > .mainnav__item > a {
		font-size: calc(20px + 10 * ((100vw - 600px) / 400));
	}
}
@media screen and (min-width: 1000px) {
	.mainnav__level-1 > .mainnav__item > a {
		font-size: 26px;
		padding: 0.25em 1em; 
	}
}

.mainnav__level-1 > .mainnav__item.folder::after {
	opacity: 0;
	bottom: 0;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(136, 183, 213, 0);
	border-bottom-color: #fff;
	border-width: 10px;
	margin-left: -10px;
    transition: 280ms all 120ms ease-out;
}
.mainnav__level-1 > .mainnav__item.folder:hover::after,
.mainnav__level-1 > .mainnav__item.folder:focus::after{
	opacity: 1;
    border-bottom-color: #fff;
}
.mainnav__level-1 > .mainnav__item.folder:focus-within::after {
	opacity: 1;
    border-bottom-color: #fff;
}
.mainnav__level-1 > .mainnav__item > a:hover,
.mainnav__level-1 > .mainnav__item > a:focus,
.mainnav__level-1 > .mainnav__item:hover > a,
.mainnav__item--active .mainnav__link {
	color: var(--accent-color-light);
}
.tmpl--herzensbilder .mainnav__level-1 > .mainnav__item > a:hover,
.tmpl--herzensbilder .mainnav__level-1 > .mainnav__item > a:focus,
.tmpl--herzensbilder .mainnav__level-1 > .mainnav__item:hover > a,
.tmpl--herzensbilder .mainnav__item--active .mainnav__link {
	color: var(--accent-color-active);
}
.mainnav__level-1 > .mainnav__item:focus-within > a {
	color: var(--accent-color-light);
}
.tmpl--herzensbilder .mainnav__level-1 > .mainnav__item:focus-within > a {
	color: var(--accent-color-active);
}
.mainnav__dropdown {
    position: absolute;
	left: 0;
	z-index: 10;
	width: 330px;
	padding: 1.875em; /* 30/16 */
	font-family: 'Roboto', Helvetica, Arial, Geneva, sans-serif;
	font-weight: normal;
	background-color: #fff;
	border-radius: 0 0 3px 3px;
	box-shadow: 0 5px 5px rgba(0,0,0,0.2);
	transform: rotateX(-90deg);
	transform-origin: top center;
	opacity: .3;
    max-height: 0;
    transition: all 280ms ease-out 120ms;
    visibility: hidden;
}
.mainnav__level-1 > .mainnav__item:nth-last-child(-n+2) .mainnav__dropdown { /* letzte 2 Elemente auswählen*/
    left: auto;
	right: 0;
}

.mainnav__item:hover > .mainnav__dropdown {
	opacity: 1;
	max-height: 1000px;
	transform: rotateX(0);
    visibility: visible;
}
.mainnav__item:focus-within > .mainnav__dropdown {
	opacity: 1;
	max-height: 1000px;
	transform: rotateX(0);
    visibility: visible;
}

/* =subnav
--------------------------------------------------------------- */
.subnav__title {
	border-bottom: 2px solid var(--accent-color-light);
	padding: 0.5em 0.714285714285714em; /* 15/21 */
	font-size: 2.1rem;
	color: var(--accent-color-dark);
	text-transform: uppercase;
	letter-spacing: 2px;
}
.subnav__lst {
	margin: 1.5em 0;
}
.subnav__lst.subnav__level-2 {
	margin-top: .75em;
}
.subnav__level-2 .subnav__link {
	margin-left: 0.9375em; /* 30/16 */
}

.subnav__item.folder-active > a {
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik00NDEuOSAxNjcuM2wtMTkuOC0xOS44Yy00LjctNC43LTEyLjMtNC43LTE3IDBMMjI0IDMyOC4yIDQyLjkgMTQ3LjVjLTQuNy00LjctMTIuMy00LjctMTcgMEw2LjEgMTY3LjNjLTQuNyA0LjctNC43IDEyLjMgMCAxN2wyMDkuNCAyMDkuNGM0LjcgNC43IDEyLjMgNC43IDE3IDBsMjA5LjQtMjA5LjRjNC43LTQuNyA0LjctMTIuMyAwLTE3eiI+PC9wYXRoPjwvc3ZnPg==');
	background-repeat: no-repeat;
	background-position: right .75em top 50%;
	background-size: .75em auto;
}

/* =main & subnav hover-, focus and active-styles
--------------------------------------------------------------- */
.mainnav__link:hover,
.mainnav__link:focus,
.subnav__link:hover,
.subnav__link:focus {
	color: var(--highlight-color);
}
.mainnav__dropdown .mainnav__link,
.subnav__link {
	position: relative;
	display: block;
	text-decoration: none;
	line-height: 1.4;
	color: var(--accent-color-dark);
	padding: 0.4em 0.9375em; /* 15/16 */
}
.mainnav__dropdown .mainnav__link::after,
.subnav__link::after {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--light-color);
	border-radius: 2px;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity .5s, transform .5s;
}
.mainnav__dropdown .mainnav__link:hover::after,
.mainnav__dropdown .mainnav__link:focus::after,
.mainnav__dropdown .mainnav__item--current > a::after,
.subnav__link:hover::after,
.subnav__link:focus::after,
.subnav__item--current > a::after {
	opacity: 1;
	transform: translateY(0);
}
.mainnav__dropdown .mainnav__link--active,
.subnav__link--active {
	font-weight: bold;
}

/* =content
--------------------------------------------------------------- */
.maincontainer {
	padding: 1em 0;
}
@media only screen and (min-width: 37.5em) { /* 600 */
    .maincontainer {
        padding: 2em 0;
    }
}

.main__title {
	font-size: 30px;
	min-height: 0vw; /* forces safari to update fontsize on window resize  */
}
@media screen and (min-width: 600px) {
	.main__title {
		font-size: calc(30px + 6 * ((100vw - 600px) / 400));
	}
}
@media screen and (min-width: 1000px) {
	.main__title {
		font-size: 36px;
	}
}

.govis-image-captioned:not([class*="align"]) {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.govis-image-captioned:not([class*="align"]) figcaption {
    padding-right: 3%;
    padding-left: 3%;
}
@media screen and (min-width: 600px) {
    .govis-image-captioned:not([class*="align"]) {
        width: auto;
        position: static;
        margin-left: 0;
        margin-right: 0;
    }
    .govis-image-captioned:not([class*="align"]) figcaption {
        padding-right: 0;
        padding-left: 0;
    }
}

/* =layout-logic
--------------------------------------------------------------- */
.mainnav,
.subnav,
.mobilenav {
	display: none;
}
.searchform,
.hamburger {
    z-index: 5;
}
@media only screen and (max-width: 48em) {
    details .govis-image-captioned:not([class*="align"]) {
    width: 100%;
    position: inherit;
    margin-left: 0;
    margin-right: 0;
}
}
@media only screen and (min-width: 48em) { /* 768 */

	.mainnav {
		display: block;
	}
	.mobilenav,
    .hamburger,
    .mobilenav__bg {
		display: none !important;
	}
	.subnav {
		display: block;
		float: left;
		width: 31.623931623931624%; /* 370/1170 */
	}
	.main {
		float: left;
		width: 65.811965811965812%; /* 770/1170 */
		margin-left: 34.188034188034188%; /* 400/1170 */
        scroll-margin-top: 90px;
	}
    .subnav + .main {
        margin-left: 2.564102564102564%; /* 30/1170 */
    }
    
}
@media only screen and (min-width: 62.5em) { /* 1000 */
	.main {
		width: 57.264957264957265%; /* 670/1170 */
	}
}

@supports (grid-template-columns: minmax(0, 0)) {

	@media only screen and (min-width: 37.5em) { /* 600 */
		.wrapper--maincontainer {
			display: grid;
			grid-template-columns: repeat(12, minmax(0, 1fr));
			gap: 2.564102564102564%; /* 30/1170 */
		}
		.subnav {
			grid-column: span 4;
		}
		.main {
            grid-column: 5 / -1;
		}
        .subnav + .main {
            margin-left: 0;
        }
		.subnav, .main { /* overwrites the fallback */
			width: auto;
			margin-left: 0;
		}
	}

	@media only screen and (min-width: 62.5em) { /* 1000 */
		.main {
            grid-column: 5 / -2;
		}
	}
}

/* =home
--------------------------------------------------------------- */
.tmpl--home .wrapper--maincontainer {
	display: block;
}
.tmpl--home .maincontainer {
    padding: 0;
}
.tmpl--home main {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #fff;
}
.home-col {
	z-index: 1;
    width: 100%;
    margin-bottom: 3.5em;
    margin-left: 0;
}
.home-col a {
	display: block;
    text-decoration: none;
}
.home-col a:focus {
    text-decoration: underline;
}
.home-col h2 {
	margin-bottom: 1.5em;
    border-bottom: 3px solid var(--accent-color-light);
    padding-right: 10px;
    padding-bottom: 0.5em;
    padding-left: 10px;
    font-size: 1.3125em; /* 21/16 */
}

.tmpl--home .mod-entry {
    padding-right: 10px;
    padding-left: 10px;
}
.tmpl--home .mod-entry-title {
	margin-bottom: 0;
    font-size: 1.3125em; /* 21/16 */
}
.tmpl--home .mod-entry-desc {
	margin-top: 0.5em;
    font-size: 0.875em; /* 14/16 */
}
.tmpl--home .mod-no-entry {
    padding: 10px;
    font-size: 0.875em; /* 14/16 */
}
a.showmore {
	align-self: flex-start;
	display: inline-block;
	margin-top: auto;
	border: 1px solid var(--accent-color-light);
    padding: 0.25em 1.25em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto Condensed', Helvetica, Arial, Geneva, sans-serif;
    font-size: 0.8125em; /* 13/16 */
}
a.showmore:hover,
a.showmore:focus {
	border-color: var(--accent-color-dark);
}
.home-col--intro p,
.home-col--intro ul,
.home-col--intro ol {
    font-size: 0.875em; /* 14/16 */
}

@media only screen and (min-width: 37.5em) { /* 600 */
    .tmpl--home main {
       /* margin-top: -10vw;*/
    	padding: 3.931623931623932%; /* 46/1170 */
    }

    .home-col--news,
    .home-col--events,
    .home-col--intro {
        width: 47.866419294990724%; /* 516/1078 */
        display: flex;
        flex-direction: column;
    }
    .home-col--events {
        margin-left: 4.267161410018553%; /* 46/1078 */
    }
}

@media only screen and (min-width: 62.5em) { /* 1000 */
    .home-col {
    	margin-bottom: 0;
    }
    .home-col--news,
    .home-col--events,
    .home-col--intro {
        width: 31.168831168831169%; /* 336/1078 */
    }
    .home-col--events {
    	margin-right: auto;
    }
    .home-col--toplinks {
        width: 24.582560296846011%; /* 265/1078 */
    }
}

.home-col--toplinks {
	margin-bottom: 0;
}
.mod-link__lst {
    font-size: 1.125em; /* 18/16 */
    line-height: 1.2;
    font-weight: bold;
    column-gap: 2em;
    columns: 2 12em; /* max. columns, max width */
	font-family: 'Roboto Condensed', Helvetica, Arial, Geneva, sans-serif;
}
.mod-link__item {
	position: relative;
    z-index: 0;
    margin-bottom: 8px;
    background-color: var(--light-color);
    break-inside: avoid-column;
}
.mod-link__link.hover-effect {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.mod-link__link.mod-link__link:hover,
.mod-link__link.mod-link__link:focus {
	color: var(--light-color);
    text-decoration: none;
}
.mod-link__link.hover-effect::before {
	content: "";
    background-color: var(--accent-color-dark);
}
.mod-link__link > span {
    padding: .5em 10px;
}
.mod-link__icon {
	flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
    border-left: 8px solid #fff;
}
.mod-link__icon > [aria-hidden="true"] { /* .fa-fw */
    width: 1.28571429em;
    text-align: center;
}

/* =footer
--------------------------------------------------------------- */
.footer {
	clear: both;
	padding: 2em 0 0;
	color: #fff;
	background-color: var(--accent-color-dark);
}
.footer h2,
.footer caption {
	color: var(--accent-color-light);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.125em;
}
.tmpl--herzensbilder .footer h2,
.tmpl---herzensbilder .footer caption {
	color: var(--accent-color-white);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.125em;
}
.footer p {
	margin-bottom: 0.75em;
}
.footer a {
	color: #fff;
	text-decoration: none;
}
.footer a:hover,
.footer a:focus {
	text-decoration: underline;
}
.footer li:not(:last-child) {
	margin-bottom: 0.25em;
}
.footer li > a {
    display: block;
}
.footer__copyright {
	padding: 0.75em 0;
	text-align: right;
	background-color: rgba(0,0,0,0.5);
}
.footer__businesshours-tbl {

}
@media screen and (max-width: 37.5em) { /* 600 */
	.footer__businesshours-tbl span {
		display: none;
	}
}




