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

html {
	max-width: 1930px;
	margin-left: auto;
	margin-right: auto;
	background: rgb(243, 246, 248);
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	scrollbar-color: #002d55 #ffffff;
	scrollbar-width: thin;
}

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

a,
a:is(:hover, :focus) {
	color: #587a1a;
}

a:is(:hover, :focus),
:is(#contact-col, #content, #footer .template-page) a {
	text-decoration: underline;
}

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

#overflow {
	overflow: clip;
	position: relative;
}

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

#topbar {
	position: relative;
}

#topbar::before {
	content: "";
	display: block;
	width: 100%;
	height: 6px;
	background: linear-gradient(90deg, rgba(184, 224, 111, 1) 0%, rgba(153, 213, 130, 1) 18%, rgba(23, 140, 214, 1) 17%, rgba(0, 157, 226, 1) 40%, rgba(196, 16, 124, 1) 40%, rgba(213, 4, 115, 1) 59%, rgba(244, 204, 28, 1) 59%, rgba(255, 200, 13, 1) 77%, rgba(191, 222, 102, 1) 77%, rgba(184, 224, 111, 1) 100%);
}

#topbar > .row {
	font-size: 1rem;
}

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

#contact-col {
	column-gap: 30px;
	flex-wrap: wrap;
	row-gap: 15px;
}

@media (max-width: 575px) {
	#contact-col {
		font-size: 0.875rem;
	}
}

@media (max-width: 767px) {
	#contact-col {
		border-top: 1px solid #016593;
		column-gap: 10px;
		padding-top: 30px;
		margin-top: 0;
		padding-bottom: 20px;
	}
}

.contact-tab {
	padding-top: 45px;
	background: center top / 35px auto no-repeat;
	min-height: 30px;
	display: grid;
	place-content: center;
	color: #444444;
}

@media (min-width: 768px) {
	.contact-tab {
		padding: 0 0 0 45px;
		background: center left / 35px auto no-repeat;
		min-height: 45px;
	}
}

@media (min-width: 992px) {
	.contact-tab {
		padding: 0 0 0 70px;
		background: center left / 53px auto no-repeat;
		min-height: 53px;
	}
}

.contact-tab.contact-phone {
	background-image: url("../img/telefon-icon.svg");
}

.contact-tab.contact-phone :is(b, strong) {
	text-transform: uppercase;
}

.contact-tab.contact-address {
	background-image: url("../img/adresse-icon.svg");
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	.sticky-wrapper {
		height: auto !important;
	}

	.sticky-wrapper nav.horizontally {
		position: static !important;
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 4px;
		padding: 6px 8px;
		cursor: pointer;
		background-color: #587a1a;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #ffffff;
		border-radius: 4px;
		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: #016593;
		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: 10px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		background: rgba(1, 101, 147, 0.85);
		transition: background-color 300ms linear;
	}

	.is-sticky nav.horizontally {
		background: rgba(1, 101, 147, 1);
	}

	nav.horizontally::before {
		content: "";
		background:
			linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) top left / 9px 1px repeat-x,
			linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) bottom left / 9px 1px repeat-x;
		position: absolute;
		top: 8px;
		right: 0;
		bottom: 8px;
		left: 0;
		pointer-events: none;
	}

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

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

	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.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(: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) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #ffffff;
	font-weight: 700;
	text-align: left;
	padding: 12px 15px 12px 20px;
	position: relative;
	font-size: 1.1875rem;
	line-height: 1.2;
	hyphens: auto;
	text-decoration: none;
	text-transform: uppercase;
}

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] + li {
		border-top: 1px solid rgba(255, 255, 255, 0.4);
	}

	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: 28px 0;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 12px;
	height: 20px;
	display: block;
	position: absolute;
	left: 0;
	bottom: calc(50% - 10px);
	border-radius: 0 10px 10px 0;
	background-color: #f4f4f4;
	opacity: 0;
	transition: opacity 300ms linear;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		width: 20px;
		height: 12px;
		left: calc(50% - 10px);
		bottom: 0;
		border-radius: 10px 10px 0 0;
	}
}

/* toplevel-over */

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;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #f4f4f4;
	box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.2);
}

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

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

	nav.horizontally [class*="toplevel"] > ul {
		border-bottom-left-radius: 4px;
		border-bottom-right-radius: 4px;
		left: 50%;
		transform: translate(-50%, 0);
	}

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		text-align: left;
	}

	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: #b8e06f;
}

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

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

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

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

	#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;
}

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

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

#tabs {
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: #444444;
	font-size: 1.125rem;
   background: #e0e5ea;
}

@media (min-width: 992px) {
	#tabs {
		background: #e0e5ea url("../img/bg-tabbereich.png") center / cover no-repeat;
	}
}

#tabs > .row {
	row-gap: 30px;
	padding: clamp(40px, 5vw, 50px) 0;
}

@media (min-width: 1200px) {
	#tabs > .row::before {
		content: "";
		display: block;
		background: url("../img/Marker.png") center no-repeat;
		width: 199px;
		height: 175px;
		position: absolute;
		left: -80px;
		bottom: -25px;
		z-index: 10;
	}

	#tabs > .row::after {
		content: "";
		display: block;
		background: url("../img/schere.png") center no-repeat;
		width: 260px;
		height: 215px;
		position: absolute;
		right: -135px;
		bottom: -20px;
		z-index: 10;
	}
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 5px;
	font-weight: 700;
	font-size: 1.4375rem !important;
}

#tabs .tab::before {
	content: "";
	display: block;
	width: 100px !important;
	height: 100px !important;
	background: #b8e06f url("../img/icon-schulprogramm.png") center no-repeat;
	border-radius: 50%;
	margin: 0 auto 15px auto;
}

#tabs .tab.tab-2::before {
	background: #b8e06f url("../img/icon-ganztagskonzept.png") center no-repeat;
}

#tabs .tab.tab-3::before {
	background-image: url("../img/icon-wie-wird-gelernt.png") center no-repeat;
}

#tabs a:not(.has-image) {
	font-size: 1.25rem;
	display: inline-block;
	border-radius: 4px;
	color: #ffffff;
	background: #002d55;
	padding: 2px 13px 3px 13px;
	text-decoration: none;
	line-height: 1.2;
	margin-top: 20px;
}

#tabs a:not(.has-image):is(:hover, :focus) {
	color: #b8e06f;
}

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

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

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

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

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

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

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.8rem, 3.25vw, 2rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4,
#tabs :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.7rem, 3vw, 1.875rem);
}

h5,
.h5,
   .legacy_h5 {
	font-size: clamp(1.6rem, 2.5vw, 1.75rem);
}

h6,
.h6,
.legacy_h6,
#footer .template-page :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.5rem, 2vw, 1.625rem)
}

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

footer {
	font-size: clamp(1rem, 2vw, 1.125rem);
	background: #016593;
}

footer,
footer * {
	color: #ffffff;
}

.footer-tab strong,
.footer-tab b {
	font-size: 1.375rem;
	line-height: 1.3;
}

.footer-tab {
	font-size: 1.125rem;
}

.tabLogo {
	background-color: #fff;
}

.tabLogo img {
	align-items: center;
	align-content: center;
	justify-content: center;
	display: flex;
	margin: 0 auto;
	padding: 10px 0;
}

#footer {
	position: relative;
	background: center / cover no-repeat;
	padding: 37px 0;
	box-shadow: inset 0 0 0 100vw rgba(1, 101, 147, 0.85);
}

@media (max-width: 991px) {
   #footer {
      background: #016593 !important;
   }
}

#footer::before {
	content: "";
	background:
		linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) top left / 9px 1px repeat-x,
		linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) bottom left / 9px 1px repeat-x;
	position: absolute;
	top: 10px;
	right: 0;
	bottom: 10px;
	left: 0;
	pointer-events: none;
}

@media (min-width: 1200px) {
	#footer::after {
		content: "";
		display: block;
		background: url("../img/buch.png") center no-repeat;
		width: 142px;
		height: 155px;
		position: absolute;
		left: calc(58% - 116px);
		bottom: 35px;
	}
}

@media (min-width: 992px) {
	#footer::after {
		left: calc(58.5% - 20px);
	}
}

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

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

@media (min-width: 768px) {
	.footer-tab {
		min-height: 80px;
		background-position: left 15px center;
	}
}

#innerfooter {
	padding-top: 17px;
	padding-bottom: 17px;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: block;
}

#innerfooter a {
	color: inherit;
	text-decoration: none;
	font-weight: 400;
}

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

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

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

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

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

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

#vernetzt {
	gap: 13px;
	text-align: right;
	font-size: 0.875rem;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

#vernetzt strong {
	font-weight: inherit;
	color: #d2eca2;
}
