@import url('https://fonts.verwaltungsportal.de/import/?family=Nunito:400,400i,700,700i%7COswald:700');

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #f5f5f5;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #4d4d4d #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    color: #444444;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a,
a:is(:hover, :focus) {
    color: #c31717;
}

a:is(:hover, :focus),
:is(#headerpic-overlay, #quick-access .tab, #content) a {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

b,
strong,
#content a {
    font-weight: 700;
}

@media (min-width: 1200px) {

    .row,
    #headerpic-overlay {
        width: 100%;
        max-width: 1600px
    }

    #quick-access {
        max-width: 1335px
    }
}

#over {
    overflow: clip;
    position: relative;
}

/* ------------------------------------------------- topbar ------------------------------------------------ */

#topbar {
    font-size: 0.875rem;
    color: #ffffff;
    background-color: #c31717;
}

@media (max-width: 991px) {
    #topbar {
        padding: 10px 0;
    }
}

#topbar>.row {
    row-gap: 10px;
}

.tabContact a {
    color: #ffffff;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .tabContact p {
        display: inline-block;
    }

    .tabContact p+p {
        margin-left: clamp(15px, 44vw, 50px);
    }

    .tabContact {
        padding: 10px 0;
    }
}



/* search */
#search1 {
        padding-left:30px;
        margin-left:30px;
        border-left:solid 1px rgba(255, 255, 255,0.5);
}

#search1 h2 {
color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 10px 0 0;
  width: auto;
  line-height: 0;
  text-transform: uppercase;
  align-content: center;
}


#search_input1 {
	color: #ffffff;
	font-size: 0.875rem;
	font-style: normal !important;
	background: transparent;
	border: 0;
	width: 100%;
	max-width: 180px;
	padding-left: 10px;
	padding-right: 10px;
}

#search_submit1 {
	border: none;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="48" fill="%23fff" viewBox="0 -960 960 960" width="48"><path d="M796-121 533-384q-30 26-69.959 40.5T378-329q-108.162 0-183.081-75Q120-479 120-585t75-181q75-75 181.5-75t181 75Q632-691 632-584.85 632-542 618-502q-14 40-42 75l264 262-44 44ZM377-389q81.25 0 138.125-57.5T572-585q0-81-56.875-138.5T377-781q-82.083 0-139.542 57.5Q180-666 180-585t57.458 138.5Q294.917-389 377-389Z"/></svg>') no-repeat center / 20px auto;
	padding: 0;
	cursor: pointer;
	font-size: 0;
	min-width: 34px;
	flex-shrink: 0;
	transition: background-color 300ms linear;
}

#search_submit1:is(:hover, :focus) {
	background-color: rgba(0, 0, 0, 0.15);
}

#search_input1::placeholder {
	color: #ffffff !important;
	opacity: 0.8 !important;
	font-style: italic !important;
}

/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 210px;
        width: 100%;
    }
}

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 10px 0;
        position: static !important;
        background-color: #ffffff;
        box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton:before,
    #burgerButton:after,
    #burgerButtonInner {
        background-color: #ac1616;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]:before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton:before {
        top: 24px;
    }

    #burgerButton:after {
        top: 32px;
    }

    #burgerButton:before,
    #burgerButton:after {
        content: "";
        display: block;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse.collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .dropdown-toggle-button-wrapper {
        top: 7px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #ffffff;
        box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open:focus-within, :hover)>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

nav.horizontally a[class*="toplevel"] {
    color: #444444;
    font-weight: 700;
    text-align: left;
    padding: 15px 35px 15px 15px;
    position: relative;
    font-size: 1.25rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(68, 68, 68, 0.2);
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 36px 5px 30px 5px;
        text-align: center;
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    bottom: 0;
    height: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ac1616;
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::after {
        top: 0;
        bottom: auto;
    }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #444444;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    width: 100%;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

nav.horizontally [class*="toplevel"] ul {
    background: #c31717;
}

nav.horizontally [class*="secondlevel"]>ul {
    background: #ac1616;
}

@media (max-width: 991px) {
    nav.horizontally [class*="toplevel"]>ul {
        padding: 10px;
    }
}

@media(min-width:992px) {

    nav.horizontally [class*="toplevel"] ul {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: 50%;
        transform: translate(-50%, 0);
    }

    nav.horizontally [class*="toplevel"]>ul::after {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        top: -20px;
        margin-left: -20px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 20px 20px 0 20px;
        border-color: #ffffff transparent transparent transparent;
        transition: top 150ms linear;
    }

    nav.horizontally li[class*="toplevel"]:hover>ul::after {
        top: 0;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -30px;
        margin-left: 10px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 8px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: center;
        padding: 13px 25px;
    }
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

nav.horizontally li:is([class*="secondlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #ac1616;
}

nav.horizontally li:is([class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #c31717;
}

/* -------------------------------------------- header ------------------------------------------ */

@media (max-width: 991px) {

    #headerpic-overlay,
    #headerpic-overlay>* {
        position: static;
    }
}

/* banner */

#slider {
    height: clamp(350px, 42vw, 400px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        height: clamp(400px, 65vw, 750px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #headerpic .nivo-directionNav a {
        top: unset;
        bottom: 30px;
    }
}

@media (min-width: 1200px) {
    .index #headerpic .nivo-controlNav {
        bottom: 140px;
    }
}

#headerpic {
    padding: 0;
    position: relative;
}

@media (min-width: 992px) {
    #headerpic {
        background: #333333;
    }

    #headerpic * {
        color: #ffffff;
    }
}

.slider-wrapper {
    height: 100%;
}

body:not(.index) .slider-mask {
    display: block;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0));
}

@media (min-width: 1200px) {
    .index .slider-mask {
          display: block;
        background: linear-gradient(to top, rgba(255, 255, 255, 0) 30px, #ffffff 30px, #ffffff 32px, rgba(255, 255, 255, 0) 32px);
    }
}

/* banner overlay */

#headerpic-overlay {
    padding: 30px 0;
    font-size: clamp(1.5625rem, 3vw, 2.1875rem);
}

@media (min-width: 992px) {
    #headerpic-overlay {
        padding: 0;
        position: absolute;
        top: 48px;
        bottom: 150px;
        left: 0;
        right: 0;
        z-index: 20;
        line-height: 1.2;
    }

    #headerpic-overlay>:first-child {
        margin-bottom: 30px;
    }

    #headerpic-overlay>:last-child {
        margin-top: auto;
    }
}

@media (min-width: 1200px) {
    #headerpic-overlay {
        bottom: 280px;
    }
}

/* search */

body:not(.index) #search {
    background: #ffffff;
    margin: clamp(25px, 3vw, 50px) 0 0 0;
    width: 100%;
    outline: 2px solid #55729e;
}

@media (min-width: 992px) {
    body:not(.index) #search {
        outline-color: #ffffff;
        outline-offset: 15px;
    }
}

body:not(.index) #search_input {
    color: #444444;
    font-size: clamp(0.875rem, 2vw, 1.375rem);
    font-style: normal !important;
    background: transparent;
    border: 0;
    width: 100%;
    padding: 20px clamp(10px, 3vw, 40px);
}

body:not(.index) #search_submit {
    border: none;
    background: url('../img/icon-search-blue.svg') center no-repeat;
    padding: 0;
    cursor: pointer;
    margin: 0;
    font-size: 0;
    min-width: clamp(60px, 10vw, 100px);
    flex-shrink: 0;
}

body:not(.index) #search_submit:is(:hover, :focus) {
    background-color: #e8e8e8;
}

body:not(.index) #search_input::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
    font-style: italic !important;
}

/* ----------------------------------------- quick-access --------------------------------------- */

#quick-access {
    font-size: 1rem;
    background: #c31717;
}

@media (min-width: 1200px) {
    #quick-access {
        position: relative;
        z-index: 50;
        margin-top: -125px;
        border: 2px solid #ffffff;
    }
}

#quick-access * {
    color: #ffffff;
}

#quick-access .tab {
    padding: 30px 15px;
    position: relative;
    transition: background 200ms linear, margin 200ms linear, padding 200ms linear, height 200ms linear;
}

#quick-access .tab+.tab::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transition: opacity 200ms linear, margin 200ms linear;
}

@media (min-width: 1200px) {
    #quick-access .tab {
        padding: 75px clamp(15px, 1vw, 30px);
        height: 250px;
        overflow: hidden;
        flex: 0 0 20%;
        max-width: 20%;
    }

    #quick-access .tab+.tab::after {
        top: 45px;
        bottom: 45px;
        width: 1px;
        height: unset;
    }

    #quick-access .tab:is(:hover, :focus-within)::after,
    #quick-access .tab:is(:hover, :focus-within)+.tab::after {
        opacity: 0;
    }

    #quick-access .tab:is(:hover, :focus-within) {
        background: #ac1616;
        height: 360px;
        margin: -55px 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

#quick-access .tab :is(.row, .row>*) {
    position: static;
}

@media (min-width: 1200px) {
    #quick-access .tab .template-page {
        max-height: 0;
        opacity: 0;
        transition: opacity 200ms linear;
    }

    #quick-access .tab:is(:hover, :focus-within) .template-page {
        opacity: 1;
    }
}

#quick-access .tab a {
    font-weight: 700;
}

#quick-access .tab a::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#quick-access .tab-heading {
    text-transform: uppercase;
    font-size: 1.25rem;
    padding-top: 65px;
    background: url("../img/icon-kontakt.png") center top no-repeat;
    transition: padding 200ms linear, transform 200ms linear;
}

@media (min-width: 1200px) {
    #quick-access .tab-heading {
        margin: 0;
    }

    #quick-access .tab:is(:hover, :focus-within) .tab-heading {
        padding: 75px 0 30px 0;
        transform: scale(1.2);
    }
}

#quick-access .tab-2 .tab-heading {
    background-image: url("../img/icon-termin-buchen.png");
}

#quick-access .tab-3 .tab-heading {
    background-image: url("../img/icon-formulare.png");
}

#quick-access .tab-4 .tab-heading {
    background-image: url("../img/icon-vernstaltungen.png");
}

#quick-access .tab-5 .tab-heading {
    background-image: url("../img/icon-karriere.png");
}

/* ------------------------------------------- content ------------------------------------------ */

#content {
    text-align: left;
    padding: clamp(40px, 7vw, 100px) 0 clamp(40px, 5vw, 65px) 0;
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #44608a;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
}

:is(h1, h2) :is(i, em) {
    font-style: normal;
    color: #444444;
    font-size: 1.375rem;
    display: block;
    text-transform: uppercase;
    margin-bottom: 15px;
}

h1,
.h1,
.legacy_h1,
#headerpic-overlay .tab-headline {
    font-size: clamp(2rem, 4vw, 2.8125rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.875rem;
}

h3,
.h3,
.legacy_h3 {
    font-size: 1.75rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.375rem;
}

/* ----------------------------------------- button-style --------------------------------------- */

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]) {
    display: inline-block;
    background: #55729e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.125rem;
    padding: 11px 28px;
    outline: 1px solid #55729e;
    outline-offset: 10px;
    margin: 12px;
    transition: outline-color 200ms linear, outline-offset 200ms linear;
}

/* small */

.button-style.button-small a:not([href^="mailto:"]):not(.has-image):not([rel]) {
    padding: 7px 15px;
    outline-color: transparent;
    margin: 0;
}

/* large */

.button-style.button-large a:not([href^="mailto:"]):not(.has-image):not([rel]) {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
    padding: 14px 36px;
    color: #55729e;
    background: #ffffff;
    outline: 1px solid #ffffff;
    hyphens: auto;
}

@media (min-width: 992px) {
    .button-style.button-large a:not([href^="mailto:"]):not(.has-image):not([rel]) {
        min-width: 350px;
        width: fit-content;
        margin-left: auto;
    }
}

.button-style.button-large a:not([href^="mailto:"]):not(.has-image):not([rel])::before {
    content: "";
    width: 40px;
    height: 40px;
    display: inline-block;
    margin: -4px 15px -4px 0;
    vertical-align: bottom;
    background: url("../img/icon-buchen-rot.png") center left no-repeat;
}

/* hover */

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]):is(:hover, :focus) {
    outline-color: #55729e;
    outline-offset: 3px;
}

.button-style.button-large a:not([href^="mailto:"]):not(.has-image):not([rel]):is(:hover, :focus) {
    outline-color: #c31717;
}

/* --------------------------------------------- news ------------------------------------------- */

#news {
    padding-bottom: clamp(40px, 6vw, 80px);
}

#news>.row {
    row-gap: 30px;
}

#news .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(4, 1fr);
    }
}

#news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    padding: 225px 26px 30px 26px;
    border: 4px solid #e8e8e8 !important;
}

#news .tab_link_entry .tab_link_title a::before,
#news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: 26px;
    left: 26px;
    right: 26px;
    height: 170px;
    max-width: 320px;
    overflow: hidden;
}

#news .tab_link_entry .tab_link_title a::before {
    content: "";
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#news .tab_link_entry .tab_preview_picture {
    z-index: 1;
}

#news .tab_link_entry .tab_preview_picture img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news .tab_link_entry .tab_date {
    font-weight: 700;
    font-size: 1.3125rem;
}

#news .tab_link_entry .tab_link_title a {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 25px;
}

#news .tab_link_entry .tab_link_title a:not(:is(:hover, :focus)) {
    color: #44608a;
}

#news .tab_link_entry :is(.tab_spacer, .tab_link_mehr) {
    display: none;
}

/* -------------------------------------------- contact ----------------------------------------- */

#contact {
    padding-bottom: clamp(40px, 6vw, 80px);
}

#contact-tab :is(h1, h2, h3, h4, h5, h6),
#contact-tab :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    color: #ffffff;
}

#contact-tab {
    color: #ffffff;
    overflow: hidden;
    background: #c31717;
    padding: 55px 30px 45px 30px;
}

@media (min-width: 1200px) {
    #contact-tab {
        padding-left: clamp(80px, 8vw, 130px);
        padding-right: clamp(80px, 8vw, 130px);
    }
}

#contact-tab .row {
    align-items: center;
}

/* ---------------------------------------------- tabs ------------------------------------------ */

#tabs {
    background: linear-gradient(to top, #e8e8e8 100px, rgba(255, 255, 255, 0) 100px);
}

@media (min-width: 992px) {
    #tabs {
        background: linear-gradient(to top, #e8e8e8 50%, rgba(255, 255, 255, 0) 50%);
    }
}

#tabs>.row {
    row-gap: 30px;
}

#tabs .tab {
    hyphens: auto;
    height: 100%;
    padding: 26px;
    background: #ffffff;
    border: 4px solid #44608a;
    transition: border 200ms linear;
}

#tabs .tab:is(:hover, :focus) {
    border-color: #c31717;
}

#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    margin-bottom: 0;
}

#tabs .tab a {
    text-decoration: none;
}

#tabs .tab:not(:is(:hover, :focus-within)) :is(h1, h2, h3, h4, h5, h6, a) {
    color: #444444;
}

#tabs .tab :is(.row, .row>*) {
    position: static;
}

#tabs .tab a::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#tabs .tab-1 {
    padding: 0;
    border-color: #e8e8e8;
}

/* ----------------------------------------------- @19ev events -------------------------------------------- */

#ev19 {
    position: relative;
    padding-top: clamp(60px, 11vw, 200px);
    padding-bottom: clamp(60px, 5vw, 95px);
    background: linear-gradient(to bottom, #e8e8e8 400px, rgba(255, 255, 255, 0) 400px);
}

#ev19>.row::before {
    content: '';
    position: absolute;
    left: 150px;
    top: -90px;
    width: 575px;
    height: 470px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#ev19 .ev19Box {
    position: relative;
}

@media (min-width: 1200px) {
    #ev19 .ev19Box {
        padding-left: 70px;
    }
}

#eventsHeadline {
    text-transform: uppercase;
    position: relative;
    font-size: clamp(1.25rem, 2vw, 1.875rem);
    color: #444444;
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    line-height: 0.8;
    margin: 0 0 -3px 0;
}

#EventsDekoHeadline {
    position: relative;
    text-transform: uppercase;
    color: #44608a;
    font-weight: 700;
    line-height: 0.8;
    font-size: clamp(1.75rem, 4vw, 3.75rem);
    margin: 0;
}

#eventsBox {
    padding: 55px 70px 40px 105px;
    background-color: #f6f7f8;
    margin-top: -5px;
}

@media (max-width: 991px) {
    #eventsBox {
        padding: 30px 30px 35px 30px;
        margin-top: -2px;
    }
}

#eventsKalender #clr-events-hide,
#eventsKalender .tab_link_mehr {
    display: none;
    height: 0;
}

#eventsKalender .eventclndr-tab {
    margin-bottom: 0;
    margin-top: 16px;
}

@media (max-width: 767px) {
    #eventsKalender .eventclndr-tab {
        margin-top: 0;
        margin-bottom: 15px;
    }
}

#eventsList {
    position: relative;
    color: #444444;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

#eventsList .tab_spacer {
    height: 0;
    display: none;
}

#eventsList .tab_link_entries {
    display: grid;
    gap: clamp(20px, 2vw, 30px);
}

#eventsList .tab_link_title a {
    color: #444444;
    font-weight: 700;
}

#eventsList .tab_link_mandat a {
    color: #444444;
}

#eventsList .tab_link_mehr {
    font-size: 0;
    position: relative;
    text-align: left !important;
}

#eventsList .tab_link_mehr a {
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 20px;
    background-color: #55729e;
}

#eventsList .tab_link_mehr a:hover,
#eventsList .tab_link_mehr a:focus {
    background-color: #c31717;
}

/* --------------------------------------------- footerKontakt -------------------------------------------- */

#footerKontakt {
    hyphens: auto;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #ffffff;
    padding-top: clamp(30px, 3vw, 40px);
    padding-bottom: clamp(30px, 4vw, 50px);
    background-color: #c31717;
}

@media (min-width: 1200px) {
    #footerKontakt {
        background: url('../img/skyline-geisenfeld.png') bottom left calc(100% - 0px) no-repeat, #c31717;
    }
}

#footerKontakt :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#footerKontakt .tabHeadline {
    font-size: 1.5625rem;
}

#footerKontakt .tab a {
    text-decoration: underline;
}

#footerKontakt>.row {
    row-gap: 30px;
}

#footerKontakt .iframetab iframe,
#footerKontakt .iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

/*  buttonFooter  */

.buttonFooter a {
    text-decoration: none;
    display: block;
    position: relative;
    color: #c31717 !important;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    line-height: 1.2;
    padding: 13px 50px 12px 20px;
    background-color: #ffffff;
}

@media (min-width: 992px) {
    .buttonFooter a {
        width: fit-content;
        min-width: 318px;
    }
}

.buttonFooter a::after {
    content: '\2192';
    right: 20px;
    top: calc(50% - 7px);
    transition: all 200ms linear;
    position: absolute;
    line-height: 1;
}

.buttonFooter a:is(:hover, :focus)::after {
    right: 15px;
}

.buttonFooter :is(a+a, .tiny_p+.tiny_p) {
    margin-top: clamp(15px, 2vw, 30px);
}

/* scrollTopBtn */

#scrollTopBtn {
    margin-bottom: clamp(15px, 2vw, 30px);
}

#scrollTopBtn::after {
    content: "\2191";
    right: 20px;
}

#scrollTopBtn:is(:hover, :focus)::after {
    top: calc(50% - 13px);
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #ffffff;
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #ac1616;
}

#f5>.row {
    row-gap: 12px;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding: 7px 15px 6px 15px;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #ffffff;
    background: #c31717;
}

#innerfooter li+li::before {
    content: "∙";
    margin: 0 6px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 20px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

/* ------------------------------------------ decoration ---------------------------------------- */

:is( #contact) h2 :is(i, em) {
    position: relative;
}


:is(:is( #contact) h2 :is(i, em))::after {
    content: "";
    display: block;
    position: absolute;
    background: #c31717;
}


/* contact */

:is(:is(#contact) h2 :is(i, em))::after {
    background: #ffffff;
}

#contact h2 :is(i, em)::after {
    bottom: -10px;
    left: -180px;
    right: calc(100% - 145px);
    height: 2px;
}

/* ------------------------------------------- contrast ----------------------------------------- */

:is(.contrast_dark, .contrast_light) :is(#news, #events) .tab_link_entry .tab_link_title a::before {
    display: none;
}

.contrast_dark_font #headerpic-overlay>*,
.contrast_dark_font #footerKontakt,
.contrast_light_font .buttonFooter a,
.contrast_light_font #logo img,
.contrast_dark #burgerButton,
.contrast_dark #events .slick-button,
.contrast_dark #events .slick-dots .slick-active button,
.contrast_dark #events .slick-dots button:is(:hover, :focus) {
    background-color: #ffffff !important;
}

.contrast_light #burgerButton::before,
.contrast_light #burgerButton::after,
.contrast_light #burgerButtonInner {
    background: #333333 !important;
}

.contrast_light nav.burger .dropdown-toggle-button::before {
    color: #000000;
}

@media (min-width: 1200px) {
    .contrast_light #quick-access .tab:is(:hover, :focus-within) {
        background: #ffffff;
    }
}

.contrast_light #events .slick-dots .slick-active button,
.contrast_light #events .slick-dots button:is(:hover, :focus) {
    background-color: #000000 !important;
}

.contrast_dark_font .button-style a:not([href^="mailto:"]):not(.has-image):not([rel]),
.contrast_dark_font .buttonFooter a {
    border: 1px solid #000000;
}

.contrast_dark_font #quick-access .tab-heading {
    backdrop-filter: invert(80%);
    color: #ffffff !important;
}