/*
Farbcode-Übersicht (mit Zeilennummern):
  7:  #e1eefa (html Hintergrund)
  8:  #0670b7 (Scrollbar, Links, Buttons, Überschriften, etc.)
  9:  #ffffff (Scrollbar, Body Hintergrund, Burger-Menü, etc.)
 12:  #33433b (Textfarbe)
 19:  #810e39 (Links, Burger-Menü)
 38:  #e0e0e0 (Navigation Border)
 39:  #fcf8ee (Navigation, Teaser, Footer)
 87:  #fff (Dropdown, Teaser, etc.)
 90:  #f0efee (Dropdown Border)
 99:  #108f3b (Hover-Unterstrich Navigation)
 146: #045286 (Button Hover)
 181: #282828 (Navigation, Teaser)
 222: #f9f6ea (Tab Hintergrund)
 264: #fff (Dropdown, Teaser)
 335: #fcf8ee (Footer, Teaser)
 347: #33433b (Footer Links, Bullet)
 353: #810e39 (Footer Link Hover)

Schriftgrößen-Übersicht (mit Zeilennummern):
 15:  clamp(1rem, 2vw, 1.125rem) (Body)
 63:  1.25rem (Navigation Toplevel)
 70:  1.0625rem (Button)
 157: clamp(1.25rem, 2vw, 1.375rem) (Tab)
 170: 1rem (Dropdown)
 210: 1.625rem (Teaser Headline)
 239: 1.875rem (Tabs Überschrift)
 263: clamp(1.875rem, 4vw, 2.375rem) (Tab Überschrift)
 282: clamp(1.875rem, 4vw, 2.8125rem) (h1)
 287: clamp(1.75rem, 3.5vw, 1.875rem) (h2)
 291: 1.75rem (h3)
 295: 1.625rem (h4)
 299: 1.5rem (h5)
 303: 1.375rem (h6)
 350: 1rem (Footer Links, Vernetzt)

Schriftgewichte/Schnitte-Übersicht (mit Zeilennummern):
 16:  400 (Body)
354: 400 (Vernetzt)
 23:  700 (Links, b, strong)
 62:  700 (Navigation Toplevel)
 71:  700 (Button)
 211: 700 (Teaser Headline)
 273: 700 (Überschriften h1-h6)
 282: 700 (h1)
 287: 700 (h2)
 291: 700 (h3)
 295: 700 (h4)
 299: 700 (h5)
 303: 700 (h6)
 211: 700 (Teaser Headline)
*/

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

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

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

a {
    color: #810e39;
}

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

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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    border-bottom: 5px solid #e0e0e0;
    background: #fcf8ee;
}

/* burgermenu for tablet */

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #810e39;
        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 {
        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 700ms 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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {

    .horizontally {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 53;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
    }

    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 {
        left: 100%;
        top: 0;
    }

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

    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: #282828;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px 16px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a[class*="toplevel"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0px;
    transition: all 300ms ease;
    left: 0;
    margin: auto;
    right: 0;
}


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

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

    .navbar-default .navbar-nav>li>a::after {
        bottom: -5px;
    }
}

/* 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: #0670b7;
    background-color: transparent;
}

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 {
    background: #108f3b;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background-color: #fff;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

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

@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: #fff;
    background-color: #0670b7;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 62vw, 450px);
    position: relative;
}

.index #slider {
    max-height: clamp(300px, 62vw, 700px);
}

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

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

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

.slider-mask {
    display: none;
}

/* ------------------------------------------ tab buttons --------------------------------------- */

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])) {
    color: #fff;
    background: #0670b7;
    font-size: 1.0625rem;
    font-weight: 400;
    border-radius: 4px;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
}

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
    background: #045286;
}

/* #endregion ---------------------------------- teaser ----------------------------------------- */

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

#content {
    text-align: left;
    padding-top: 30px;
    padding-bottom: 60px;
}


/* ------------------------------------------- tab, tab1 ---------------------------------------- */

#tab {
    padding: clamp(35px, 6vw, 60px) 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-size: clamp(1.25rem, 2vw, 1.375rem);
    box-shadow: inset 0 0 0 50vw rgba(249, 246, 234, 0.9);
    overflow: hidden;
}

#tab ul {
    margin: 0;
    list-style: none;
}

#tab ul > li {
	position: relative;
	padding-left: 26px;
	min-height: 11px;
	transition: color 300ms linear;
	background: url('../img/check-icon.png') top 21px left / 18px auto no-repeat;
}

#tab ul>li::before{
    display: none;
}



@media (min-width: 992px) {
    :is(#tab, #tab1)>.row:first-child::before {
        content: "";
        position: absolute;
        pointer-events: none;
        display: block;
    }


}

#tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 2.375rem);
}



/* #region ------------------------------------- teaser ----------------------------------------- */

#teaser {
    background: #fcf8ee;
    color: #282828;
}

#teaser a:is([href*="mailto"], [href*="tel"]) {
    color: inherit;
    text-decoration: underline;
}

#teaser .tabHeadline {
    color: #0670b7;
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#teaser>.row>* {
    padding: 25px 15px;
}

@media (min-width: 1200px) {
    #teaser>.row>*:nth-child(1) {
        background: url('../img/icon-leistungsspektrum.png') top 50px left 50px no-repeat;
        padding: 50px 30px 40px 150px;
    }

    #teaser>.row>*:nth-child(2) {
        background: url('../img/icon-people.png') top 50px left 50px no-repeat #fff;
        padding: 50px 30px 40px 150px;
    }

    #teaser>.row>*:nth-child(3) {
        background: url('../img/icon-history.png') top 50px left 50px no-repeat;
        padding: 50px 30px 40px 150px;
    }
}

/* #endregion ---------------------------------- teaser ----------------------------------------- */

/* #region ------------------------------------- tabs ----------------------------------------- */

#tabs {
    padding: clamp(30px, 4vw, 60px) 0;
}

@media (max-width: 991px) {
    #tabs>.row {
        gap: 30px;
    }
}

#tabs :is(h1, h2, h3) {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin: 10px 0 0 0;
}


#tabs .tabContent:hover img {
    animation: swing-rotate 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes swing-rotate {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(15deg);
    }
    60% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* #endregion ------------------------------------- tabs ----------------------------------------- */



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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0670b7;
    font-weight: 700;
    line-height: 1.2;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 4vw, 2.8125rem);
}

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: 1.625rem;
}

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

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

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

/* ------------------------------------------- footer ------------------------------------------- */




@media (min-width: 1200px) {


    #footerTop .row,
    #footerTop .template-page .row,
    #footerTop .template-page .col-xs-12,
    #footerTop .col-xs-12 {
        padding: 0;
        margin: 0;
    }

    #footerTop>.row {
        max-width: calc(100% - calc(calc(100% - 1200px) / 2));
        width: 100%;
        margin-left: calc(calc(100% - 1200px)/2 + 15px);
        margin-right: 0;
    }

}

#footerTop .tabHeadline{
    margin-bottom: 10px;
}


#footerTop {
    background: #fcf8ee;
    overflow: clip;
}

#mapsCol,
#mapsCol iframe,
#mapsCol .raw-html-embed,
#mapsCol .row,
#mapsCol .template-page,
#mapsCol .iframe-wrapper-manual-enabling{
    min-height: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    #footerTop .contactElement {
        padding: 30px 15px 30px 60px;
    }
}

#footerTop .contactElement a{
    text-decoration: underline;
}

@media (max-width: 767px) {

    #footerTop {
        padding: 30px 0;
    }

    #footerBottom>.row,
    #footerTop>.row {
        gap: 30px;
    }
}

#footerTop>.row::before {
    content: '';
    position: absolute;
    pointer-events: none;
    display: block;
    top: 120px;
    left: -316px;
    background: url(../img/logo-go-therapie-footer.png) no-repeat center;
    width: 274px;
    height: 147px;
}

#footerBottom {
    padding: 30px 0;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #33433b;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    border-radius: 2px;
    padding: 2px 4px;
}

#innerfooter ul a:is(:hover, :focus) {
    color: #810e39;
}

@media (min-width: 576px) {
    #innerfooter ul li {
        display: inline-block;
    }

    #innerfooter ul li+li::before {
        content: "•";
        margin: 0 clamp(10px, 2vw, 20px);
        color: #33433b;
    }
}

/* --------------------------------------------- vernetzt --------------------------------------- */

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 1rem;
    color: #33433b;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    color: #0670b7;
}