@import url("https://fonts.verwaltungsportal.de/import/?family=Plus+Jakarta+Sans:400,600,700,400i,600i,700i");

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

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

a {
	color: #2e4a84;
}

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

b,
strong {
	font-weight: 600;
}

:is(header, #leistungen, #termin) {
	overflow: hidden;
	position: relative;
}


/* #region ----------------------------------- language ----------------------------------------- */

#language {
    position: relative;
    font-size: 0;
    text-align: center;
    display: inline-block;
    margin-left: 10px;
}

@media (min-width: 576px) and (max-width: 991px) {
    #language {
        margin-right: 90px;
    }
}

#language>span {
    display: inline-flex;
    place-items: center;
    padding: 5px 35px 5px 15px;
    color: #223871;
    background: #fff;
    width: 90px;
    height: 35px;
    text-transform: uppercase;
    position: relative;
	border-radius: 5px;
}

#language>span::after {
    content: "";
    position: absolute;
    display: block;
    right: 15px;
    top: 50%;
    margin-top: -7px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #223871;
    border-bottom: 2px solid #223871;
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    #language>span {
        display: none;
    }
}

#chooseLanguage>a:is(:hover, :focus) {
    color: #2b2b2b;
    background: #a6b8e0;
	border-radius: 5px;
}

#chooseLanguage {
    background: #ffffff;
	border-radius: 5px;
}

@media (min-width: 992px) {
    #chooseLanguage {
        position: absolute;
        top: 0;
        padding-top: 0;
        left: 0;
        right: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms linear, top 300ms linear;
    }

    #language:is(:hover, :focus-within) #chooseLanguage {
        top: 100%;
        opacity: 1;
        pointer-events: all;
    }
}

#chooseLanguage>a {
    display: inline-flex;
    place-items: center;
    text-align: left;
    padding: 6px 35px 6px 15px;
    color: #223871;
    background: #a6b8e0;
    position: relative;
	border-radius: 5px;
    text-decoration: none;
}

@media (max-width: 991px) {
    #chooseLanguage>a {
        width: 90px;
        height: 46px;
    }
}

@media (min-width: 992px) {
    #chooseLanguage>a {
        display: block;
        transform: rotateY(90deg);
        transition: all 300ms linear;
    }

    #language:is(:hover, :focus-within) #chooseLanguage>a {
        transform: none;
    }

    #language #chooseLanguage>a:nth-child(2) {
        transition-delay: 50ms;
    }

    #language #chooseLanguage>a:nth-child(3) {
        transition-delay: 100ms;
    }

    #language #chooseLanguage>a:nth-child(4) {
        transition-delay: 150ms;
    }
}

/* #endregion -------------------------------- language ----------------------------------------- */

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
	color: #ffffff;
	padding-top: 10px;
	padding-bottom: 10px;
	background: #2e4a84;
	border-bottom: 2px solid #fff;
	position: relative;
  	z-index: 1002;
}

@media (max-width: 991px) {
	#tp3 > .row > * + * {
		margin-top: 10px;
	}
}

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

#tp3 span {
	color: #ffffff;
	font-size: 0.875rem;
	padding-right: 10px;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
	color: #000000;
	padding: 0;
	font-size: 0;
	border: unset !important;
	display: inline-block;
	text-align: center;
	width: 1.8125rem;
	height: 1.8125rem;
	font-weight: 400;
	background: #fff;
	transition: background 300ms linear;
	position: relative;
	z-index: 1;
	border-radius: 5px;
	outline: 2px solid #fff;
   outline-offset: -2px;
}

#contrast_style button:hover,
#contrast_style button:focus {
	background: #a6b8e0;
}

#contrast_style * + * {
	margin-left: 3px;
}

/* ------------------------------------------------ styler ---------------------------------------------- */

@media (min-width: 992px) {
	#style {
		margin-left: 30px;
	}
}

#style button {
	padding: 0;
	border: none;
	color: #191919;
	display: inline-block;
	min-width: 1.8125rem;
	min-height: 1.8125rem;
	font-weight: 600;
	font-size: 0.875rem;
	text-align: center;
	background: #fff;
	position: relative;
	line-height: 1;
	transition:
		color 300ms linear,
		background 300ms linear;
	border-radius: 5px;
	outline: 2px solid #fff;
   outline-offset: -2px;
}

#style button + button {
	margin-left: 3px;
}

#style button:hover,
#style button:focus {
	color: #191919;
	background: #a6b8e0;
}

/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
	min-height: 2.1875rem;
	display: block;
	position: relative;
	background: #fff;
	border-radius: 5px;
	overflow: hidden;
}
form [id^="search_input"].contrast_light_font  {
	background: #fff !important;
}

@media (max-width: 575px) {
	form[id^="search"] {
		display: inline-block;
	}
}

@media (min-width: 576px) {
	form[id^="search"] {
		margin-left: 30px;
	}
}

form [id^="search_input"] {
	font-size: 0.875rem;
	color: #191919;
	font-style: normal;
	background: transparent;
	padding: 0;
	border: 0;
	padding-left: 14px;
	padding-right: 54px;
	min-height: 2.1875rem;
	width: 100%;
	display: block;
}
form [id^="search_submit"] {
	width: 40px;
	background: url("../img/icon-search.png") center no-repeat;
	padding: 0;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 6px;
	bottom: 6px;
	right: 0;
	font-size: 0;
	border-left: 1px solid #2e4a84;
	transition:
		background 200ms linear,
		top 200ms linear,
		bottom 200ms linear;
}

form [id^="search_submit"].contrast_light_font  {
	background-color: #fff !important;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
	top: 0;
	bottom: 0;
	background-color: #a6b8e0;
}

[id^="search_input"]::-ms-input-placeholder {
	color: #191919 !important;
	opacity: 1;
}

[id^="search_input"]::-webkit-input-placeholder {
	color: #191919 !important;
	opacity: 1;
}

[id^="search_input"]::-moz-placeholder {
	color: #191919 !important;
	opacity: 1;
}

[id^="search_input"]:-moz-placeholder {
	color: #191919 !important;
	opacity: 1;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
	outline-offset: -3px;
}

/* #region --------------------------------- buttonStyle ---------------------------------------- */

:is(.buttonStyle, .buttonStyleNeutral) a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
	background: #a6b8e0;
	border-radius: 8px;
	color: #191919;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 16px 20px;
	transition: all 300ms;
	position: relative;
	line-height: 1.2;
	outline: 2px solid #fff;
	outline-offset: -2px;
}

#leistungen :is(.buttonStyle, .buttonStyleNeutral) a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
	background: #2e4a84;
	color: #fff;
}
#leistungen :is(.buttonStyle, .buttonStyleNeutral) a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover),
.buttonStyle a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
	background: #f6f5f7;
	color: #2e4a84;
}

#aktuelles .tab_link_mehr a,
.buttonStyleNeutral a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
	background: #ffffff;
	color: #181d4a;
}

#aktuelles .tab_link_mehr a:is(:focus, :hover),
.buttonStyleNeutral a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
	background: transparent;
	color: #ffffff;
}

/* specific buttons */

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

#termin .buttonStyleNeutral a:not(.has-image):not([rel]) {
	font-size: inherit;
}

/* border on hover */

#aktuelles .tab_link_mehr a::after,
.buttonStyleNeutral a:not(.has-image):not([rel])::after {
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	height: 100%;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transform: scale(1.2);
	transition: all 0.3s;
	width: 100%;
	z-index: 1;
}

#aktuelles .tab_link_mehr a:is(:focus, :hover)::after,
.buttonStyleNeutral a:not(.has-image):not([rel]):is(:focus, :hover)::after {
	opacity: 1;
	transform: scale(1);
}

/* #endregion ------------------------------ buttonStyle ---------------------------------------- */

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

#logo {
	display: inline-block;
}

#logo.contrast_dark_font img {
   background-color: #000 !important;
}

#logo img {
	display: block;
}

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

/* #region ----------------------------------- options ------------------------------------------ */

#options {
	font-size: 0.875rem;
	line-height: 1.2;
	gap: 20px;
   flex-wrap: wrap;
}

/* buttons */

.button1 {
	background: #ffffff;
	padding: 16px 20px 16px 45px;
	position: relative;
	box-shadow: 0 2px 6px rgba(75, 89, 227, 0.2);
	transition: all 300ms;
	border-radius: 8px;
}

.button1:is(:hover, :focus-within) {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.button1 a {
	text-decoration: underline;
}

.button1::before {
	content: "";
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232e4a84 " height="48" viewBox="0 -960 960 960" width="48"><path d="M777-487q-5-121.325-89.291-205.551Q603.418-776.778 482-781.778V-842q73 2 136.5 30.5T730-735q48 48 76.5 111.5T837-487h-60Zm-170 0q-5-50-40-84.5T482-611v-60q75 5 127.5 57T667-487h-60Zm188 367q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19 13-32t32-13h140q14 0 24 10t14 25l27 126q2 14-.5 25.5T359-634L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23-15t26-2l119 26q15 4 25 16t10 27v135q0 19-13 32t-32 13Z"/></svg>') center / 24px auto no-repeat;
	display: block;
	left: 0;
	position: absolute;
	top: 2px;
	bottom: 0;
	width: 50px;
}

.button1:is(:hover, :focus-within)::before {
	animation: shake 1s ease 1;
}

/* #endregion -------------------------------- options ------------------------------------------ */

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

nav.horizontally {
	padding: 20px 0;
	background: #2e4a84;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

nav.horizontally > .row {
	row-gap: 20px;
}

/* 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: 8px;
		padding: 6px 8px;
		cursor: pointer;
		background-color: #2e4a84;
	}

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

	#burgerButton.contrast_light_font::before,
	#burgerButton.contrast_light_font::after,
	#burgerButtonInner.contrast_light_font {
		background-color: #ffffff !important;
	}

	#burgerButton.contrast_dark_font::before,
	#burgerButton.contrast_dark_font::after,
	#burgerButtonInner.contrast_dark_font {
		background-color: #000 !important;
	}

	#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: #2e4a84;
		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;
		right: 15px;
		top: 15px;
		z-index: 101;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding: 20px 0 25px 0;
		transition: padding 200ms linear;
	}

	.is-sticky nav.horizontally {
		padding: 10px 0 10px 0;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		row-gap: 2px;
		margin-top: 26px;
		transition: margin-top 200ms linear;
	}

	.is-sticky nav.horizontally .navbar-nav {
		margin-top: 12px;
	}

	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: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: #fff;
	font-weight: normal;
	padding: 12px 15px;
	position: relative;
	text-align: left;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition:
		outline-color 300ms linear,
		background 300ms linear,
		color 300ms linear;
      hyphens: auto;
}

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

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

	nav.horizontally li[class*="toplevel"] + li {
		margin-left: 5px;
	}

	nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
		content: "";
		border-bottom: 1px solid currentColor;
		border-left: 1px solid currentColor;
		border-radius: 1px;
		display: block;
		position: absolute;
		right: 13px;
		top: calc(50% - 5px);
		transform: rotate(-45deg);
		height: 6px;
		width: 6px;
		transition: border 300ms linear;
	}
}

/* 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: #a6b8e0;
	color: #181d4a;
	outline-color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background: #ffffff;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	padding: 15px;
	border-radius: 10px;
}

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

	nav.horizontally [class*="secondlevel"] > ul {
		padding: 15px;
	}
}

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #181d4a;
	font-weight: normal;
	text-align: left;
	padding: 9px 15px;
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 8px;
}

@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) {
	background: #2e4a84;
	color: #fff;
}

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

/* #region ------------------------------------ banner ------------------------------------------ */

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

@media (min-width: 768px) {
	body.index #headerpic .nivo-controlNav {
		bottom: 70px;
	}
}

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

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

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

#headerpic {
	padding: 30px 0 clamp(40px, 6vw, 80px) 0;
	z-index: 2;
	background: #f6f5f7;
}

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

#headerpic > .row:first-child {
	max-width: 1400px;
	width: 100%;
}

#headerpic > .row:not(#bannerTabs)::before,
#headerpic > .row:not(#bannerTabs)::after {
	content: "";
	background: url(../img/dekor-logo.png) no-repeat center / contain;
	display: block;
	position: absolute;
	z-index: -1;
}

#headerpic > .row:not(#bannerTabs)::before {
	border-width: 50px;
	bottom: -125px;
	left: -167px;
	height: 246px;
	width: 280px;
}

#headerpic > .row:not(#bannerTabs)::after {
	right: -193px;
	top: -13px;
	height: 260px;
	width: 268px;
}

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

.slider-mask {
	display: none;
}

/* Banner-Tabs */

#bannerTabs {
	margin-top: 30px;
}

@media (min-width: 768px) {
	#bannerTabs {
		margin-top: -60px;
	}
}

#bannerTabs,
#bannerTabs .tab1 > .row {
	row-gap: 30px;
}

#bannerTabs a {
	text-decoration: underline;
}

#bannerTabs .tab {
	border-radius: 20px;
	font-size: 1rem;
	line-height: 1.75;
	min-height: 100%;
	padding: 40px 50px 30px 30px;
	position: relative;
	z-index: 12;
}

#bannerTabs .tab1 {
	background: #ffffff;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
	#bannerTabs .tab1 > .row > *:not(:last-child) {
		padding-right: 30px;
	}

	#bannerTabs .tab1 > .row > * + * {
		border-left: 1px solid rgba(0, 0, 0, 0.2);
		padding-left: 30px;
	}
}

#bannerTabs .tab2 {
	background: #2e4a84;
	color: #ffffff;
}

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

/* Banner-Tabs icon */

#bannerTabs .tab::before {
	content: "";
	display: block;
	height: 40px;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 40px;
}

#bannerTabs .tab:is(:hover, :focus-within)::before {
	animation: shake 1s ease 1;
}

#bannerTabs .tab1::before {
	background: url(../img/logo-allgemeinarzt-Praxis-Dr-Barbara-Scharnagl-blau-v2.png) no-repeat;
}

#bannerTabs .tab2::before {
	background: url(../img/logo-white.png) no-repeat;
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* ------------------------------------------ ICONS Shake --------------------------------------- */

@keyframes shake {
	40%,
	60% {
		transform: rotate(-5deg);
	}

	50% {
		transform: rotate(5deg);
	}

	70% {
		transform: rotate(0deg);
	}

	100% {
		transform: scale(1);
	}
}

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

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

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

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

h1,
.h1,
.legacy_h1,
:is(#leistungen, #termin) :is(h1, h2) {
	font-size: clamp(1.75rem, 4vw, 2rem);
}

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

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

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

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

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

#bannerTabs .tab .tabHeadline,
#footer :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.125rem;
}

main :is(h1, h2) {
	margin-bottom: 25px;
}

:is(h1, h2, h3) :is(i, em) {
	color: #181d4a;
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 8px;
	font-style: normal;
	display: block;
}

:is(#termin .tab, #aktuelles .tabHeadline) :is(h1, h2, h3) :is(i, em) {
	color: #ffffff;
}

/* #region ---------------------------------- leistungen ---------------------------------------- */

#leistungen {
	padding-bottom: clamp(40px, 7vw, 100px);
	position: relative;
	z-index: 1;
}

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

#leistungen > .row::before {
	content: "";
	background: url(../img/dekor-logo.png) no-repeat center / contain;
	width: 261px;
	height: 276px;
	display: block;
	left: -225px;
	position: absolute;
	top: 72px;
	z-index: -1;
}

@media (min-width: 992px) {
	#leistungen > .row > *:last-child {
		padding-top: clamp(40px, 4vw, 60px);
		padding-bottom: clamp(40px, 4vw, 60px);
	}
}

/* list */

#leistungen ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

#leistungen ul li {
	background: transparent;
	padding: 5px 0 5px 22px;
	position: relative;
}

#leistungen ul li::before {
	content: "";
	background: transparent;
	border: 2px solid #2e4a84;
	display: block;
	height: 6px;
	left: 0;
	position: absolute;
	top: 15px;
	width: 6px;
}

/* banner */

@media (min-width: 992px) {
	#leistungen .picture {
		min-height: 400px;
	}
}

#leistungen .picture {
	min-height: 400px;
}

#leistungen .picture .banner {
	border-radius: 20px;
	overflow: hidden;
	width: 100%;
}

#leistungen .picture .banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#leistungen .picture .banner:nth-child(1) {
	max-width: 470px;
	height: clamp(350px, 87%, 544px);
	margin-left: -100px;
	background: #2e4a84;
	margin-bottom: clamp(30px, 5vw, 70px);
}

#leistungen .picture .banner:nth-child(1) img {
	opacity: 0.15;
}

#leistungen .picture .banner:nth-child(2) {
	max-width: 440px;
	width: calc(100% - 30px);
	height: clamp(250px, 55%, 335px);
	background: #edeefc;
	position: absolute;
	z-index: 2;
	left: 15px;
	bottom: 0;
}

/* #endregion ------------------------------- leistungen ---------------------------------------- */

/* aktuelles */

#aktuelles {
	background: #4350cc;
	border-radius: 20px;
	max-width: 370px;
	position: relative;
	z-index: 1;
}

#aktuelles::after {
	content: "";
	border: 60px solid #2e4a84;
	border-radius: 50%;
	display: block;
	height: 230px;
	opacity: 0.1;
	position: absolute;
	right: -50%;
	top: 50%;
	transform: translateY(-50%);
	width: 230px;
	z-index: -1;
}

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

#aktuelles :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
}

#aktuelles .tabHeadline {
	background: #2e4a84;
	border-radius: 20px 20px 0 0;
	padding: 35px 30px;
	position: relative;
}

#aktuelles .tabHeadline::before {
	content: "";
	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="M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h462l198 198v462q0 24-18 42t-42 18H180Zm0-60h600v-428.571H609V-780H180v600Zm99-111h402v-60H279v60Zm0-318h201v-60H279v60Zm0 159h402v-60H279v60Zm-99-330v171.429V-780v600-600Z"/></svg>') no-repeat center / 38px auto;
	display: block;
	position: absolute;
	right: 18px;
	top: 18px;
	height: 33px;
	width: 32px;
}

#aktuelles .tabHeadline:is(:hover, :focus-within)::before {
	animation: shake 1s ease 1;
}

#aktuelles .tabHeadline a {
	text-decoration: underline;
}

#aktuelles .tabContent {
	padding: 35px 30px 30px 30px;
}

#aktuelles .tab_spacer {
	height: 25px;
}

#aktuelles .tab_link_title a {
	font-weight: 700;
}

#aktuelles .tab_link_date {
	font-size: 1rem;
}

/* #endregion ---------------------------------- team ------------------------------------------- */

/* #region ------------------------------------- termin ----------------------------------------- */

#termin {
	z-index: 1;
	background: linear-gradient(to bottom, #fff 50%, #fbfbfb 50%);
	padding: 0 15px;
}

#termin > .row {
	background: #2e4a84 url(../img/muster-termin.png) bottom -20px left -70px repeat-x;
	border-radius: 20px;
}

@media (min-width: 768px) {
	#termin > .row::before {
		content: "";
		display: block;
		position: absolute;
		left: 50%;
		top: 0;
		right: 0;
		bottom: 0;
		width: 50%;
		background: center / cover no-repeat;
		border-top-right-radius: 20px;
		border-bottom-right-radius: 20px;
	}
}

@media (min-width: 1200px) {
	#termin > .row {
		max-width: 1170px;
		width: 100%;
	}
}

#termin .tab {
	padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px) clamp(40px, 7vw, 100px) clamp(30px, 4vw, 60px);
}

#termin .tab,
#termin .tab :is(h1, h2, h3, h4, h5, h6) {
	color: #ffffff;
}

#tabImg {
	background: center / cover no-repeat;
}

/* #endregion ---------------------------------- termin ----------------------------------------- */

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

#footer {
	font-size: 1rem;
	padding: clamp(40px, 6vw, 80px) 0;
	background: #fbfbfb;
}

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

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

#footer .footerTab a {
	text-decoration: underline;
}

#footer hr {
	background: rgba(0, 0, 0, 0.2);
	margin: clamp(30px, 3vw, 38px) 0;
	opacity: 1;
}

#footer .iframeTab {
	min-height: 250px;
}

#footer .iframeTab :is(.row, .row > *) {
	position: static !important;
}

#footer :is(.iframe-wrapper-manual-enabling, iframe) {
	width: 100% !important;
	min-width: 100% !important;
	border-radius: 20px;
}

@media (min-width: 768px) {
	#footer :is(.iframe-wrapper-manual-enabling, iframe) {
		position: absolute;
		top: 0;
		right: 15px;
		bottom: 0;
		left: 15px;
		height: 100% !important;
		width: calc(100% - 30px) !important;
		min-width: calc(100% - 30px) !important;
	}
}

@media (min-width: 992px) {
	#innerfooter {
		margin-top: 20px;
	}
}

#innerfooter ul {
	padding: 0;
}

#innerfooter ul a {
	color: inherit;
	text-decoration: none;
}

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

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

	#innerfooter li + li::before {
		color: #2e4a84;
		content: "•";
		margin: 0 15px;
	}
}

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

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

#footer #vernetzt {
	gap: 15px;
	text-align: left;
	font-size: 0.875rem;
	color: #333333;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#footer #vernetzt span span {
	display: block;
}
