@import url("https://fonts.verwaltungsportal.de/import/?family=DM+Sans:400,400i,500,500i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Crimson+Text:400,400i");

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

body {
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	color: #616161;
	background: #f6f1ee;
	font-size: clamp(1rem, 2vw, 1.125rem);
	/* 1rem = 16px */
	line-height: 1.5;
	hyphens: auto;
}

a {
	color: #856732;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
	text-decoration-color: transparent;
}

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

b,
strong {
	font-weight: 600;
}

.rowGap {
	row-gap: 30px;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

@media (min-width: 992px) {
	#logo {
		position: absolute;
		top: 0;
		transform-origin: top center;
		transition: scale 300ms;
	}
	.is-sticky #logo {
		scale: 0.75;
	}
}

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

/* 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;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #636959;
		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: #f6f1ee;
		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: 7px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		background-color: #f6f1ee;
		border-bottom: 10px solid #f6f1ee;
		outline: 2px solid transparent;
		transition: outline-color 300ms;
	}

	.is-sticky nav.horizontally {
		outline-color: #e9e6df;
		left: auto !important;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		padding-top: 40px;
		transition: padding 300ms;
	}
	.is-sticky nav.horizontally .navbar-nav {
		padding-top: 20px;
	}

	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 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 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: #616161;
	font-weight: 600;
	text-align: left;
	padding: 10px 15px 15px 15px;
	text-transform: uppercase;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

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

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"] + li {
		margin-left: 20px;
	}

	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 18px 0;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 20px;
	height: 9px;
	display: block;
	position: absolute;
	left: 30px;
	bottom: 0;
	background-color: #ffffff;
	opacity: 0;
	transition:
		opacity 300ms,
		width 300ms;
	background: url(../img/deko-line.jpg);
	width: 0;
	height: 4px;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		left: 50%;
		transform: translateX(-50%);
	}
}

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

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::before,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open > a::before,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::before {
	opacity: 1;
	width: 70px;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		height: 20px;
		left: 0;
		right: 0;
		top: -20px;
	}

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

/* secondlevel + thirdlevel */

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

@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: #e9e6df;
	color: #616161;
}

/* ------------------------------------------------ topTab ----------------------------------------------- */

#topTab {
	padding-block: clamp(45px, 7vw, 100px) clamp(45px, 7vw, 70px);
}

body:not(.index) #topTab .banner {
	max-width: 450px;
	margin-left: auto;
}

#topTab :is(h1, h2, h3, h4, h5, h6) {
	position: relative;
	margin-bottom: 30px;
}

#topTab :is(h1, h2, h3, h4, h5, h6)::after {
	content: "";
	display: block;
	background: url(../img/deko-line.jpg);
	width: 70px;
	height: 4px;
	position: absolute;
	margin-top: 10px;
}

/* ------------------------------------------------ about ----------------------------------------------- */

#about {
	background: #e9e6df;
}

@media (max-width: 991px) {
	#about {
		padding-top: clamp(45px, 7vw, 70px);
	}
}

#about .tab {
	padding-block: 30px;
}

#about .banner {
	height: 100%;
	width: 100%;
}

#about .banner img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 130px 130px 0 0;
}

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

#content {
	text-align: left;
	padding-block: clamp(45px, 5vw, 70px);
}

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

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

.hUnderline:is(h1, h2, h3, h4, h5, h6)::after {
	content: "";
	display: block;
	background: url(../img/deko-line.jpg);
	width: 70px;
	height: 4px;
	margin-top: 15px;
}

.xs-text-center .hUnderline:is(h1, h2, h3, h4, h5, h6)::after {
	margin-inline: auto;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#angebot .tab :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.5rem, 4vw, 1.5625rem);
}

h5,
.h5,
.legacy_h5,
#footerTabs :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.375rem, 3.5vw, 1.4375rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.25rem, 3vw, 1.375rem);
}

.buttonStyle a {
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 500;
	color: #636959;
	display: inline-block;
	padding: 8px 30px;
	border: 1px solid #636959;
	border-radius: 20px;
	margin-top: 20px;
	text-decoration: none;
	position: relative;
}

.buttonStyle.buttonArrow a {
	padding-right: 45px;
}

.buttonStyle.buttonArrow a::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: url(../img/icon-pfeil.png);
	width: 17px;
	height: 13px;
	right: 20px;
	transition: filter 300ms;
}

.buttonStyle.buttonArrow a:is(:hover, :focus)::after {
	filter: brightness(5);
}

.buttonStyle a:is(:hover, :focus) {
	background: #636959;
	color: #fff;
}

/* ----------------------------------------------- angebot ----------------------------------------------- */

#angebot {
	padding-bottom: clamp(45px, 5vw, 70px);
	font-size: 1rem;
}

#angebot .tab .tabHeadline::before {
	content: "";
	display: block;
	background: url(../img/icon-psychotherapie.png);
	width: 80px;
	height: 80px;
	margin-inline: auto;
	margin-bottom: 25px;
	background-repeat: no-repeat;
	background-position: center;
}

#angebot .tab.tab2 .tabHeadline::before {
	background-image: url(../img/icon-paartherapie.png);
}

#angebot .tab.tab3 .tabHeadline::before {
	background-image: url(../img/icon-coaching.png);
}

#angebot .tab.tab4 .tabHeadline::before {
	background-image: url(../img/icon-workshops.png);
}

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

footer {
	background-color: #6b7160;
	color: #ffffff;
	font-size: 0.9375rem;
}

#footerTabs {
	padding-block: clamp(45px, 5vw, 70px);
}

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

#footerTabs address {
	width: fit-content;
	padding-left: 35px;
	background: url(../img/icon-standort.png);
	min-height: 32px;
	align-content: center;
	background-repeat: no-repeat;
	background-position: top 3px left;
}

@media (max-width: 991px) {
   #footerTabs address {
      margin-inline: auto;
}
}

#footerTabs address.phone {
	background-image: url(../img/icon-telefon.png);
}

#footerTabs address.mail {
	background-image: url(../img/icon-mail.png);
}

#footerTabs address.socials {
	background-image: url(../img/icon-instagram-white.png);
}

#f5 > .row {
	padding-block: 30px;
	border-top: 1px solid rgba(246, 241, 238, 0.3);
}

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
	color: #ffffff;
	text-decoration: underline;
}

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

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

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

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