@import url("https://fonts.verwaltungsportal.de/import/?family=Jost:400,700,400i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Lilita+One:400");

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

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

a {
	color: #881b6d;
}

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

b,
strong {
	font-weight: 700;
}

#overflow {
	overflow: hidden;
}

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

.logo {
	display: inline-block;
}

.logo img {
	display: block;
	max-width: 300px;
}

@media (max-width: 991px) {
	.logo img {
		max-width: 120px;
	}

	.logo {
		margin-bottom: 30px;
	}
}

/* #region -------------------------------- zeiten - phone -------------------------------------- */

.zeiten,
.phone {
	display: inline-block;
	color: #191919;
	line-height: 1.2;
}

.zeiten,
.phone {
	position: relative;
	padding: 12px 0 12px 40px;
}

@media (min-width: 992px) {
	.zeiten {
		border-right: 1px solid #ededed;
		padding-right: 20px;
		margin-right: 10px;
	}
}

:is(.zeiten, .phone) a {
	color: #191919;
	font-weight: 700;
}

.zeiten {
	background: url("../img/oeffnungszeiten-icon.png") center left no-repeat;
}

.phone {
	background: url("../img/telefon-icon.png") center left 5px no-repeat;
}

:is(.zeiten, .phone) a:is(:hover, :focus) {
	color: #1b5588;
}

#contactTabs {
	background-color: #ffffff;
	padding: 20px 0;
}

/* #endregion ----------------------------- zeiten - phone -------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#burgerButton {
		font-size: 0;
		border: none !important;
		position: absolute;
		z-index: 1002;
		display: block;
		width: 46px;
		height: 40px;
		border-radius: 2px;
		cursor: pointer;
		background-color: #ffffff;
		padding: 3px;
		right: 12px;
		top: 50%;
		margin-top: 15px;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #881b6d;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 2px;
		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: 11px;
	}

	#burgerButton::before {
		top: 19px;
		content: "";
	}

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

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

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0px;
		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 {
		line-height: 1;
		background-color: #ffffff;
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		z-index: 101;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
	}

	.dropdown-toggle-button-wrapper,
	.dropdown-toggle-button-wrapper2 {
		z-index: 1;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	#menu {
		background-color: rgba(255, 255, 255, 0.9);
		position: absolute;
		top: 0;
		width: 100%;
	}

	.is-sticky #menu {
		left: unset !important;
		box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
	}

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

	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: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: #191919;
	font-weight: 700;
	text-align: center;
	padding: 10px 35px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

/* toplevel-over */

nav.horizontally #menu li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.horizontally #menu li[class*="toplevel"] > a:is(:hover, :focus),
nav.horizontally #menu li[class*="toplevel"].open > a,
nav.horizontally #menu li[class*="toplevel"].open > a:is(:hover, :focus),
nav.horizontally #menu li[class*="toplevel"][class*="_over"] > a,
nav.horizontally #menu li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
	background-color: rgba(255, 255, 255, 1);
	color: #2570bb;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #2c70b3;
	box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.12);
	border-radius: 5px;
}

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

	nav.horizontally [class*="secondlevel"] > ul {
		background-color: rgba(255, 255, 255, 0.1);
	}
}

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] ul {
		padding-top: 10px;
		padding-bottom: 10px;
		box-shadow:
			0 0 4px 0 rgba(0, 0, 0, 0.2),
			inset 0 0 20px 0 rgba(0, 0, 0, 0.12);
	}

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #fff;
	text-align: center;
	padding: 6px 35px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

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

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

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

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

@media (min-width: 768px) {
	body.index #slider .nivo-directionNav a {
		top: unset;
		bottom: 10px;
		z-index: 51;
	}
}

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

	body.index #slider .nivo-directionNav a {
		bottom: 110px;
	}
}

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

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

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

	body.index #headerpic .nivo-controlNav {
		bottom: clamp(40px, 10vw, 70px);
	}
}

.slider-mask {
	display: none;
}

@media (min-width: 768px) {
	body.index .slider-mask {
		display: block;
		background: url("../img/slider-mask.png") bottom center no-repeat;
	}
}

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

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



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

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

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

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

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

h2,
.h2,
.legacy_h2 {
	font-size: clamp(2.125rem, 4vw, 2.5rem);
}

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

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

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

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

/* #region ----------------------------------- kalender ----------------------------------------- */

#kalender {
	padding: clamp(100px, 15vw, 180px) 0 10px 0;
	position: relative;
	background-image: linear-gradient(-45deg, rgba(254, 218, 21, 0.5), rgba(7, 117, 168, 0.5));
}

@media (min-width: 992px) {
	#kalender > .row > div {
		margin-bottom: -50px;
	}
}

#kalender::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 199px;
	background: url("../img/bogen-footer.png") center top no-repeat;
}

#kalender .tab {
	background: #ffffff;
	border-radius: 10px;
	padding: 15px 30px;
	position: relative;
	z-index: 2;
	border: 2px solid #3278bf;
	height: 100%;
}

.tab2 {
	background:
		url("../img/icon-veranstaltungen.png") bottom -40px left -30px no-repeat,
		#fff !important;
}

@media (max-width: 767px) {
	#kalender .tab {
		padding-bottom: 30px;
	}
}

#kalender .tab > .row,
#kalender .tab > .row > div {
	position: static;
}

#kalender .tabHeadline {
	padding: 10px 0 15px 0;
   font-size: 30px;
   text-transform: uppercase;
}

.tab2 .tabHeadline {
	padding: 10px 70px;
}

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

.tab_link_mandat a {
	color: #191919;
}

.tab_link_mehr {
	color: transparent;
	font-size: 0;
}

.tab_link_mehr a {
	padding-top: 35px;
	padding-left: 40px;
	text-align: left;
	display: block;
	color: #ffffff;
	font-weight: 500;
	font-family: "Khand", sans-serif;
	font-size: 1.1875rem;
	width: 99px;
	height: 89px;
	clip-path: polygon(100% 0, 0 56%, 77% 100%);
	background: #3278bf;
	position: absolute;
	right: -14px;
	bottom: -60px;
	text-decoration: none;
}

@media (min-width: 768px) {
	.tab_link_mehr a {
		right: -35px;
		bottom: 15px;
	}
}

.tab_link_mehr a:is(:hover, :focus) {
	background: #feda15;
	color: #191919;
}

#kalender .tab_link_entries {
	padding-left: 70px;
	min-height: 50px;
	background: url("../img/icon-info.png") center left no-repeat;
}

@media (min-width: 992px) {
	#kalender .tab_link_entries {
		padding-right: 55px;
	}
}

#kalender .tab_link_entries > div:last-child .tab_spacer {
	height: 0;
}

/* #endregion -------------------------------- kalender ----------------------------------------- */

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

@media (min-width: 992px) {
	footer {
		font-size: 1.0625rem;
	}
}

#footerBG {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

#footerWhite {
	background: rgba(255, 255, 255, 0.85);
	padding-top: 40px;
}

#footer {
	padding: 40px 0;
}

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

/* -------------------------------------------- social ------------------------------------------ */

#social {
	line-height: 1.2;
}

#social :is(img + img, img + a, a + a, a + img) {
	margin-left: 10px;
}

/* --------------------------------------------- suche ------------------------------------------ */

#search {
	display: flex;
	max-width: 300px;
	width: 100%;
}

@media (max-width: 767px) {
	#search {
		margin: 0 auto 20px auto;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	#search {
		max-width: 170px;
	}
}

#search_input {
	color: #191919;
	font-size: 1.0625rem;
	font-style: normal;
	background: transparent;
	padding: 0 5px 0 0;
	border: 0;
	width: 100%;
}

#search_submit {
	width: 30px;
	flex-shrink: 0;
	background: url("../img/suche-icon.png") center right no-repeat;
	padding: 0;
	cursor: pointer;
	border: none;
	font-size: 0;
}

#search_input::placeholder {
	color: #191919 !important;
	opacity: 1 !important;
	font-style: normal !important;
}

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

#innerfooter {
	font-size: 1.0625rem;
	padding: 4px 0;
}

@media (min-width: 768px) {
	* + #innerfooter {
		margin-left: 25px;
		padding-left: 25px;
		border-left: 1px rgba(0, 0, 0, 0.3) solid;
	}
}

#innerfooter a {
	color: #191919;
	text-decoration: none;
	display: inline-block;
}

#innerfooter a:is(:hover, :focus) {
	color: #881b6d;
}

#innerfooter a + a {
	margin-left: clamp(15px, 2vw, 22px);
}

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

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

#contact > .row {
	row-gap: 30px;
	position: relative;
	z-index: 1;
}

#contact > .row::after {
	content: "";
	display: block;
	position: absolute;
	top: -20px;
	left: -350px;
	width: 426px;
	height: 243px;
	background: url("../img/logo-schulfoerderverein-pfefferberg-in-biesenthal-footer-v2.png") no-repeat;
	z-index: -1;
}

#contact::before {
	content: "";
	display: block;
	margin: 0 auto clamp(40px, 4vw, 60px) auto;
	max-width: 1170px;
	height: 1px;
	opacity: 0.1;
	background: #000000;
}

#contact .footerTab2 a:not(:is([href*="mailto"], [href*="tel"])) {
	color: #191919;
	border-radius: 3px;
	background: #feda15;
	display: inline-block;
	font-weight: 400;
	padding: 6px clamp(25px, 2vw, 40px) 4px clamp(25px, 2vw, 40px);
	font-size: 1.1875rem;
	border: 1px solid #a6a6a6;
	font-family: "Lilita One", sans-serif;
}

.footerTab h2 {
	font-size: 1.875rem;
}

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

#vernetzt {
	display: inline-block;
	font-size: 0.875rem;
	color: #fff;
	line-height: 1.3;
   text-align: left;
	text-decoration: none;
}

#vernetzt span {
	display: block;
}

#vernetzt span + span {
	color: #fff;
}

#vernetzt img {
	margin-right: 8px;
}

#vernetztWrap {
   background: #2b70b3;
   padding: 20px 0;
}