@import url('https://fonts.verwaltungsportal.de/import/?family=Hanken+Grotesk:400,400i,600,600i%7CExo:400,400i,700,700i');

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

body {
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 400;
    color: #191919;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a {
    color: #d53333;
}

a:is(:hover, :focus) {
    color: #d53333;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

:is(#topbar, main, #quote, #footer) a {
    font-weight: 600;
    text-decoration: underline;
}

#overflow {
    overflow: clip;
}

hr {
    opacity: 1;
    border-color: #9db5e0;
    margin: clamp(20px, 4vw, 40px) 0 clamp(20px, 4vw, 36px) 0;
}

/* #region --------------------------------------- logo ----------------------------------------- */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

    #logo .row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* #endregion ----------------------------------- logo ------------------------------------------ */

/* #region -------------------------------------- topbar ---------------------------------------- */

#topbar {
    padding-top: 25px;
    font-size: 0.875rem;
    background-color: #ffffff;
}

@media (min-width: 992px) {
    #topbar {
        padding: 35px 0;
    }
}

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

#topbar :is(b, strong, a) {
    font-size: 1rem;
}

/* contact col */

#phone-tab,
#mail-tab {
    position: relative;
    padding-left: 48px;
    padding-top: 48px;
}

#mail-tab {
    margin-left: 50px;
}

@media (min-width: 576px) {

    #phone-tab,
    #mail-tab {
        padding-top: 0;
        padding-left: 48px;
    }
}

#phone-tab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M38.75 40.9q-5.6 0-11.25-2.875T17.3 30.6q-4.55-4.55-7.4-10.175Q7.05 14.8 7.05 9.2q0-.95.625-1.575T9.25 7h5.7q.8 0 1.35.5t.75 1.35l1.2 5.35q.1.75-.05 1.35-.15.6-.6 1l-4.7 4.6q2.85 4.8 6.375 8.275Q22.8 32.9 27.35 35.4l4.5-4.7q.5-.55 1.125-.775.625-.225 1.325-.075l4.85 1.1q.8.15 1.3.75t.5 1.45v5.5q0 .95-.625 1.6-.625.65-1.575.65Zm-27-21.8 4.1-4q.1-.1.125-.225.025-.125.025-.225L14.9 9.6q-.05-.2-.15-.275-.1-.075-.25-.075H9.6q-.15 0-.225.075Q9.3 9.4 9.3 9.55q-.05 1.95.6 4.325t1.85 5.225ZM29.5 36.45q2.05 1 4.475 1.55t4.425.65q.15 0 .225-.075.075-.075.075-.225v-4.9q0-.15-.075-.25t-.225-.15l-4.55-.9q-.1-.05-.2 0l-.2.1ZM11.75 19.1ZM29.5 36.45Z' fill='%23d53333'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

#mail-tab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M7.9 39q-1.2 0-2.05-.85Q5 37.3 5 36.1V11.9q0-1.2.85-2.05Q6.7 9 7.9 9h32.2q1.2 0 2.05.85.85.85.85 2.05v24.2q0 1.2-.85 2.05-.85.85-2.05.85ZM24 24.3 7.25 13.25V36.1q0 .3.175.475t.475.175h32.2q.3 0 .475-.175t.175-.475V13.25Zm0-2.4 16.3-10.65H7.75ZM7.25 13.25v-2V36.1q0 .3.175.475t.475.175h-.65V36.1Z' fill='%23d53333'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}


#phone-tab:hover::before {
    transform: translateY(-50%) rotate(10deg);
}

#mail-tab:hover::before {
    transform: translateY(-50%) rotate(10deg);
}

/* #endregion ----------------------------------- topbar ---------------------------------------- */

/* #region ------------------------------------ navigation -------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #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: #d53333;
        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;
        content: "";
    }

    #burgerButton::after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        padding: 20px 10px;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff;
        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: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);
    }

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

    .dropdown-toggle-button-wrapper {
        top: 8px;
        right: 0;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 6px;
        right: 0;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        transition: background 300ms linear;
    }

    nav.horizontally>.row {
        background-color: rgba(255, 255, 255, 0.8);
    }


    .sticky-wrapper,
    nav.horizontally {
        position: absolute;
        left: 0;
        right: 0;
    }

    .sticky-wrapper nav.horizontally {
        top: 0;
    }

    .is-sticky nav.horizontally {
        left: auto !important;
        background: #fff;
        box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2);
    }

    nav.horizontally .navbar-nav {
        padding: 20px 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .is-sticky nav.horizontally .navbar-nav {
        border-top-color: transparent;
    }

    nav.horizontally li[class*="toplevel"] {
        flex-grow: 1;
    }

    nav.horizontally [class*="toplevel"]>ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

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

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

    nav.horizontally .navbar-nav li :is([class*="toplevel"]>ul, [class*="secondlevel"]>ul) {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: rgb(25, 25, 25);
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 5px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: border 300ms linear;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-top: 2px;
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 6px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }

    nav.horizontally li[class*="toplevel"]+li {
        border-left: 1px solid rgba(25, 25, 25, 1);
    }
}

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

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

    .is-sticky nav.horizontally a[class*="toplevel"]::after {
        background: #ff0000;
    }
}

/* 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) {
    background: url(../img/aktiv-nav.png) no-repeat right 15px top 4px;
}

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 {
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2);
}

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

@media(min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 18px 30px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 20px;
    }

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 22px;
        left: 0;
        right: 0;
        top: -22px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        width: 52px;
        top: 0;
        bottom: 0;
        left: -52px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):not(:nth-child(2)) {
    border-top: 1px solid #191919;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    padding: 11px 0;
    line-height: 1.2;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: '';
    position: absolute;
    background: url(../img/aktiv-subnav.png) no-repeat;
    width: 8px;
    height: 7px;
    opacity: 0;
    right: -9px;
    top: 11px;
}

@media(max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

/* secondlevel + thirdlevel over */

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

}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
    opacity: 1;
}

/* #endregion -------------------------------- navigation --------------------------------------- */

/* #region ------------------------------------- resp-gaps -------------------------------------- */

#topbar .row {
    row-gap: 25px;
}

:is(#headerpic, #footer)>.row {
    row-gap: 40px;
}

/* #endregion ---------------------------------- resp-gaps -------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */
#slider {
    max-height: clamp(300px, 46vw, 450px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 64vw, 800px);
    }

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

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

    #headerpic .nivo-controlNav {
        width: calc(100% - 200px);
        left: 100px;
    }

    body.index #headerpic .nivo-controlNav {
        bottom: 110px;
    }
}

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

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    #headerpic {
        background: #535353;
    }

    #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 12px;
    }
}

@media (min-width: 1200px) {
    #headerpic .nivo-directionNav a {
        bottom: 20px;
    }

    #headerpic .nivo-controlNav {
        bottom: 10px;
    }
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* ----------------------------------------------- bannerOverlay -------------------------------------------- */

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

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        z-index: 12;
        left: 0;
        right: 0;
        bottom: 135px;
    }

    #ev9 {
        pointer-events: all;
    }
}

/* ----------------------------------------------- @9ev events -------------------------------------------- */

#ev9 .tab {
    font-size: 1rem;
    color: #191919;
    padding: 35px 30px 30px 30px;
    background-color: #f9f9f9;
}

#ev9 .tabSpecial {
    margin-bottom: 20px;
}

#ev9 .tabHeadline {
    font-size: 1.25rem;
    color: #191919;
    font-weight: 700;
    margin-bottom: 0;
}

#ev9 .tab_link_entry {
    border: none !important;
    display: flex !important;
    flex-wrap: wrap;
    position: relative;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    z-index: 12;
}

#ev9 .tab_link_entry+.tab_link_entry {
    margin-top: 30px;
}

#ev9 .tab_link_entry+.tab_link_entry::before {
    content: '';
    pointer-events: none;
    height: 1px;
    width: 100%;
    position: absolute;
    top: -15px;
    left: -30px;
    right: 0px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

#ev9 .tab_link_title a {
    color: #191919;
    font-weight: 600;
}

#ev9 .tab_link_mandat a {
    color: #191919;
}

#ev9 .tab_preview_picture,
#ev9 .vorschau,
#ev9 .tab_link .tab_link_mehr {
    display: none;
}

#ev9 .tab_link_entry .tab_spacer {
    height: 0;
}

#ev9 .tab_link_mehr {
    font-size: 0;
}

#ev9 .tab_link_mehr a {
    color: #191919;
    font-size: 1rem;
    font-weight: 600;
    padding-right: 50px;
    text-decoration: underline;
    background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23d53333'/%3E%3C/svg%3E") center right 20px / 26px auto no-repeat;
    transition: 300ms background linear;
}

#ev9 .tab_link_mehr a:hover,
#ev9 .tab_link_mehr a:focus {
    color: #d53333;
    background-position: center right 5px;
}



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

#content-area {
    text-align: left;
    padding: clamp(40px, 4vw, 60px) 0 clamp(40px, 8vw, 90px) 0;
}

@media (min-width: 992px) {
    #content-area {
        background: url(../img/deko-x-content.png) no-repeat right bottom -10px;
    }
}


/* #region ---------------------------------- h1 - h6, newslink --------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #d53333;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Exo", sans-serif;
    margin-bottom: 15px;
}

:is(#tabs-bg, #footer, #service .image-col) :is(h1, h2, h3, h4, h5, h6),
:is(#service .background-tab, #about) :is(h3, h4, h5, h6) {
    font-size: 1.25rem;
    font-weight: 700;
}

:is(#tabs-bg, #footer, #service .image-col):is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 12px;
}

h1,
.h1,
.legacy_h1,
#quote :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 6vw, 2.25rem);
}

h1,
.h1,
.legacy_h1 {
    margin-bottom: clamp(20px, 4vw, 38px);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 5.5vw, 1.875rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 5vw, 1.75rem);
}

h4,
.h4,
.legacy_h4 {
    font-size: 1.625rem;
}

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

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

/* #endregion ---------------------------------- h1 - h6, newslink ------------------------------ */
/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding: 50px 0 60px 0;
    background-color: #ececec;
}

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

    #tab1>.row>*:not(:first-child)+* {
        margin-top: 30px;
    }
}


#tab1 .bigHeader .tabHeadline {
    color: #ff0000;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}


@media (max-width: 575px) {
    #tab1>.row>*+* {
        margin-top: 30px;
    }
}


@media (max-width: 991px) {
    #tab1>.row>*:nth-child(3) {
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    #tab1>.row>*+* {
        margin-top: 30px;
    }
}

#tab1 :is(h1, h2, h3, h4, h5, h6, .tabBox) {
    color: #191919;
}

#tab1 .tabHeadline {
    font-weight: 700;
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

#tab1 .tabBox a {
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 7px 45px 7px 14px;
    color: #fff;
    background: #d53333 url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23ffff'/%3E%3C/svg%3E") center right 15px / 26px auto no-repeat;
    transition: background 300ms ease;
}

#tab1 .tabBox a:hover,
#tab1 .tabBox a:focus {
    background-color: #191919;
    background-position: center right 5px;
}

#tab1 .tabBox {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    min-height: 100%;
    min-height: 370px;
    max-width: 370px;
    perspective: 1000px;
    background: #fff;
    transition: all, 300ms;
}

#tab1 .tabBox::before {
    content: '';
    position: absolute;
    pointer-events: none;
    display: block;
    width: 46px;
    height: 35px;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 1;
    z-index: 1;
    background: url('../img/pfeil-rot.png') center no-repeat;
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
}

#tab1 .tabBox:hover::before,
#tab1 .tabBox:focus-within::before {
    opacity: 0;
}

#tab1 .template-page>.row,
#tab1 .template-page {
    min-height: 100%;
}

#tab1 .flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#tab1 .flip-box:hover .flip-box-inner,
#tab1 .flip-box:focus-within .flip-box-inner {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    opacity: 1;
}

#tab1 .flip-box:hover .flip-box-inner .flip-box-front,
#tab1 .flip-box:focus-within .flip-box-inner .flip-box-front {
    opacity: 0;
    pointer-events: none;
}

#tab1 .flip-box-front,
#tab1 .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    min-height: 370px;
    flex-direction: column;
}

#tab1 .flip-box-front {
    z-index: 1;
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
}

#tab1 .flip-box-front p,
#tab1 .flip-box-front blockquote {
    display: none;
}

#tab1 .flip-box-back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

#tab1 .flip-box-back :is(p:has(img), h1, h2, h3, h4, h5, h6) {
    display: none;
}

#tab1 .flip-box-back .tabHeadline {
    position: relative;
    margin-bottom: 35px;
    display: block !important;
}

#tab1 .flip-box-back .tabHeadline::after {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 7px;
    height: 3px;
    margin: 0 auto;
    background: #191919;
}

#tab1 .flip-box-front p:has(img) {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex !important;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#tab1 p:has(img)::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: -25px;
    right: -25px;
    width: calc(100% + 50px);
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
    opacity: 0.8;
    z-index: 2;
}

#tab1 p:has(img):hover::after,
#tab1 p:has(img):focus::after {
    opacity: 0;
}

#tab1 .flip-box-front p:has(img) img {
    max-width: min-content;
    height: 100%;
}

#tab1 .flip-box-front :is(h1, h2, h3, h4, h5, h6) {
    position: absolute;
    color: #191919;
    margin-top: 70px;
    z-index: 12;
}

#tab1 .flip-box-back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    min-height: auto;
    justify-content: end;
    height: unset;
}

/* ------------------------------------------------ @28tab ----------------------------------------------- */

.dekoDown {
    background: url(../img/deco-x-footer.png) no-repeat left 25px bottom -10px;
}

#tab28 {
    padding: 80px 0 45px 0;
}

@media (max-width: 991px) {
    #tab28>.row>*:nth-child(3) {
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    #tab28>.row>*+* {
        margin-top: 30px;
    }
}

#tab28 :is(h1, h2, h3, h4, h5, h6, .tabBox) {
    color: #191919;
}

#tab28 .tabHeadline {
    font-weight: 700;
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

#tab28 .tabBox a {
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 7px 45px 7px 14px;
    color: #fff;
    background: #d53333 url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23ffff'/%3E%3C/svg%3E") center right 15px / 26px auto no-repeat;
    transition: background 300ms ease;
}

#tab28 .tabBox a:hover,
#tab28 .tabBox a:focus {
    background-color: #191919;
    background-position: center right 5px;
}

#tab28 .tabBox {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    min-height: 100%;
    min-height: 370px;
    max-width: 370px;
    perspective: 1000px;
    background: #ececec;
    transition: all, 300ms;
}

#tab28 .tabBox::before {
    content: '';
    position: absolute;
    pointer-events: none;
    display: block;
    width: 46px;
    height: 35px;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 1;
    z-index: 1;
    background: url('../img/pfeil-rot.png') center no-repeat;
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
}

#tab28 .tabBox:hover::before,
#tab28 .tabBox:focus-within::before {
    opacity: 0;
}

#tab28 .template-page>.row,
#tab28 .template-page {
    min-height: 100%;
}

#tab28 .flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#tab28 .flip-box:hover .flip-box-inner,
#tab28 .flip-box:focus-within .flip-box-inner {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    opacity: 1;
}

#tab28 .flip-box:hover .flip-box-inner .flip-box-front,
#tab28 .flip-box:focus-within .flip-box-inner .flip-box-front {
    opacity: 0;
    pointer-events: none;
}

#tab28 .flip-box-front,
#tab28 .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    min-height: 370px;
    flex-direction: column;
}

#tab28 .flip-box-front {
    z-index: 1;
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
}

#tab28 .flip-box-front p,
#tab28 .flip-box-front blockquote {
    display: none;
}

#tab28 .flip-box-back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

#tab28 .flip-box-back :is(p:has(img), h1, h2, h3, h4, h5, h6) {
    display: none;
}

#tab28 .flip-box-back .tabHeadline {
    position: relative;
    margin-bottom: 35px;
    display: block !important;
}

#tab28 .flip-box-back .tabHeadline::after {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 7px;
    height: 3px;
    margin: 0 auto;
    background: #191919;
}

#tab28 .flip-box-front p:has(img) {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex !important;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#tab28 p:has(img)::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: -25px;
    right: -25px;
    width: calc(100% + 50px);
    -webkit-transition: opacity 0.4s 0s ease;
    -moz-transition: opacity 0.4s 0s ease;
    -o-transition: opacity 0.4s 0s ease;
    transition: opacity 0.4s 0s ease;
    opacity: 0.8;
    z-index: 2;
}

#tab28 p:has(img):hover::after,
#tab28 p:has(img):focus::after {
    opacity: 0;
}

#tab28 .flip-box-front p:has(img) img {
    max-width: min-content;
    height: 100%;
}

#tab28 .flip-box-front :is(h1, h2, h3, h4, h5, h6) {
    position: absolute;
    color: #191919;
    margin-top: 70px;
    z-index: 12;
}

#tab28 .flip-box-back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    min-height: auto;
    justify-content: end;
    height: unset;
}




/* --------------------------------------------- newsletterBox -------------------------------------------- */

.newsletterTab {
    padding: 20px;
    margin-bottom: 35px;
    background: #ececec;
}

@media (min-width: 992px) {
    .newsletterTab {
        padding: 25px 40px 15px 40px;
    }
}

.newsletterTab .tabHeadline {
    color: #191919;
    font-size: 1.875rem !important;
    font-weight: 700;
    margin-bottom: 5px !important;
}

#newsletter label {
    font-size: clamp(1rem, 1vw, 1.125rem);
    display: block;
    font-weight: 400;
    margin-bottom: 8px;
}

#newsletterInputs {
    height: 36px;
    display: flex;
    position: relative;
    border-radius: 2px;
    margin-left: auto;
    max-width: 340px;
    background: #d53333;
}

#newsletter_input {
    color: #ffffff;
    font-size: 16px;
    font-style: normal !important;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 36px;
    padding-left: 15px;
    padding-right: 43px;
    height: 32px;
    width: 100%;
}

#newsletter_submit {
    width: 36px;
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="22px" viewBox="0 -960 960 960" width="22px" fill="%23ffffff"><path d="M145.09-145.87q-32.51 0-55.87-23.35-23.35-23.36-23.35-55.87v-509.82q0-32.74 23.35-56.26 23.36-23.53 55.87-23.53h669.82q32.74 0 56.26 23.53 23.53 23.52 23.53 56.26v509.82q0 32.51-23.53 55.87-23.52 23.35-56.26 23.35H145.09ZM480-443.91l-334.91-223v441.82h669.82v-441.82L480-443.91Zm0-73 330.91-218H150.09l329.91 218Zm-334.91-150v-68 509.82-441.82Z"/></svg>') center no-repeat, transparent;
    padding: 0;
    cursor: pointer;
    line-height: 36px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    transition: background-color 300ms linear;
}

#newsletter_submit:hover,
#newsletter_submit:focus {
    background-color: #191919;
}

#newsletter_input::-ms-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-webkit-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-moz-placeholder {
    color: #ffffff !important;
    opacity: 1;
}

#newsletter_input:-moz-placeholder {
    color: #ffffff !important;
    opacity: 1;
}

/* #region --------------------------------------- footer --------------------------------------- */

footer {
    font-size: 1rem;
}


#footer {
    padding: clamp(40px, 8vw, 80px) 0;
    background: #ececec;
}

@media (min-width: 992px) {
    #footer>.row>*+*:not(:last-child) {
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    #footer>.row>*:nth-child(1) {
        padding-right: 60px;
    }

    #footer>.row>*:nth-child(2) {
        padding-left: 60px;
    }
}

#footer .contact a[href^="mailto:"],
#footer .contact a:is(:hover, :focus) {
    color: rgb(202, 7, 7);
    ;
    text-decoration: underline;
    background: none;
    padding: 0;
    font-weight: 400;
}

#footer .contact a:not([href^="mailto:"]) {
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 45px 8px 14px;
    color: #fff;
    background: #d53333 url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23ffff'/%3E%3C/svg%3E") center right 15px / 26px auto no-repeat;
    transition: background 300ms ease;
}

#footer .contact a:not([href^="mailto:"]):hover,
#footer .contact a:not([href^="mailto:"]):focus {
    background-color: #191919;
    color: #fff;
    text-decoration: none;
    background-position: center right 5px;
}

#footer a:hover,
#footer a:focus {
    text-decoration: none;
}

#footer a,
#footer a {
    text-decoration: none;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
    color: #d53333;
    margin-bottom: 20px;
}

#map-tab {
    z-index: 1;
}

@media (min-width: 768px) {
    body:not(.index) footer {
        margin-top: 105px;
    }

    #map-tab .banner {
        position: absolute;
        right: 0;
        bottom: -146px;
        left: 0;
        display: block;
        height: calc(100% + clamp(40px, 15vw, 160px) + calc(clamp(40px, 8vw, 80px) + 92px)) !important;
        max-height: unset;
    }
}

@media (min-width: 992px) {
    #map-tab .banner {
        right: calc((clamp(992px, 100vw, 1199px) - 992px) / -2);
        width: calc(100% + (clamp(992px, 100vw, 1199px) - 992px) / 2) !important;
    }

    #map-tab .banner::after {
        content: "";
        display: block;
        position: absolute;
        z-index: -1;
        left: -20px;
        top: calc(clamp(-21px, -15vw, -51px));
        width: 100px;
        height: 100px;
        background: #d53333;
    }

    footer:is(:hover, :focus) #map-tab .banner::after {
        animation: shake 1s ease-in-out;
    }
}

@media (min-width: 1200px) {
    #map-tab .banner {
        right: calc((clamp(1200px, 100vw, 1930px) - 1190px) / -2);
        width: calc(100% + (clamp(1200px, 100vw, 1930px) - 1190px) / 2) !important;
    }
}

#map-tab .template-page :is(.row, .row>*) {
    position: static !important;
}

#innerfooter {
    font-size: 0.9375rem;
    padding: 35px 0;
}

#innerfooter ul {
    padding: 0;
}

@media (min-width: 576px) {
    #innerfooter li+li::before {
        color: #191919;
        content: "•";
        margin: 0 clamp(15px, 2vw, 22px);
    }

    #innerfooter li {
        display: inline-block;
    }
}

#innerfooter li a {
    color: #191919;
    font-size: 0.9375rem;
    text-decoration: none;
}

@media (max-width: 575px) {
    #innerfooter li a {
        padding: 4px;
        display: inline-block;
    }
}

#innerfooter li a:is(:hover, :focus) {
    color: #d53333;
    text-decoration: underline;
}

/* #endregion ------------------------------------ footer --------------------------------------- */

/* #region -------------------------------------- vernetzt -------------------------------------- */

#footer #vernetzt {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 400;
    color: #191919;
    line-height: 1.3;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

#footer #vernetzt span {
    display: block;
}

#footer #vernetzt img {
    display: block;
    margin-bottom: 8px;
}

#footer #vernetzt b {
    font-weight: 600;
    color: rgb(202, 7, 7);
}

/* #endregion -------------------------------- vernetzt ----------------------------------------- */