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

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

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

a {
	color: #be2929;
}

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

.linkUnderline a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
	font-weight: 600;
}

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

b,
strong {
	font-weight: 600;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

#logo img {
	max-height: 160px;
	transition: max-height 300ms;
}
.is-sticky #logo img {
	max-height: 90px;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		padding: 20px 0;
		background: #ffffff;
		box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
	}

	#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: #1a3d55;
		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 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: 5px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding: 28px 0;
		transition: box-shadow 200ms linear, background-color 200ms linear;
	}

	.is-sticky nav.horizontally {
		background-color: #fff;
		box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
	}

	nav.horizontally > .row {
		max-width: 1550px;
		width: 100%;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		max-width: 794px;
		margin: 0 auto;
		background: #ffffff;
		border-radius: 6px;
		padding: 0 12px;
	}

	.is-sticky nav.horizontally .navbar-nav {
		background: transparent;
	}

	nav.horizontally .navbar-nav ul {
		position: absolute;
		top: 100%;
		left: -30px;
		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: #333333;
	font-weight: 600;
	text-align: left;
	padding: 12px 35px 12px 15px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
}

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] + li {
		border-bottom: 1px solid rgba(46, 60, 72, 0.2);
	}
}

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

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

	nav.horizontally li.dropdownpr > a[class*="toplevel"]::before {
		content: "";
		width: 4px;
		height: 4px;
		display: block;
		position: absolute;
		left: calc(50% - 2px);
		bottom: 0;
		border-radius: 50%;
		background-color: #333333;
		transition: opacity 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) {
	color: #333333;
	background-color: transparent;
}

@media (min-width: 992px) {
	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: #ffffff;
	border-radius: 5px;
	border: 1px solid #b3b3b3;
	padding: 15px;
	hyphens: auto;
}

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

/* 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: #be2929;
	color: #ffffff;
}

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

/* #region --------------------------------- suche + select ------------------------------------- */

#controls {
	position: static;
}

#suche,
#select summary {
	width: 40px;
	height: 40px;
	position: relative;
}

@media (min-width: 992px) {
	#suche,
	#select summary {
		width: 60px;
		height: 60px;
	}
}

/* suche */

#suche {
	display: grid;
	place-items: center;
}

@media (min-width: 992px) {
	#suche::after {
		content: "";
		width: 0;
		height: 0;
		display: inline-block;
		border-radius: 50%;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		pointer-events: none;
		transition: width 200ms linear, height 200ms linear;
		background: #1a3d55;
		z-index: -1;
	}

	#suche:is(:hover, :focus)::after,
	.is-sticky #suche::after {
		width: 100%;
		height: 100%;
	}
}

/* select */

#select {
	margin-left: 15px;
	font-size: 1rem;
}

@media (max-width: 991px) {
	#select {
		margin: 0 14px;
	}

	#select div[class*="col"] {
		padding: 0px;
	}
}

#select summary {
	cursor: pointer;
	background: #1a3d55 url("../img/kontakt-icon.png") center no-repeat;
	font-size: 0 !important;
	list-style: none;
	border-radius: 6px;
}

#select summary::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 15px 15px 15px;
	border-color: transparent transparent #1a3d55 transparent;
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
}

@media (min-width: 992px) {
	#select summary::after {
		top: 65px;
	}
}

#select[open] summary::after {
	opacity: 1;
}

/* contact tab */

#contact-content {
	position: absolute;
	top: 60px;
	left: 15px;
	right: 15px;
	background: #1a3d55;
	color: #ffffff;
	border-radius: 6px;
	padding: 32px 28px;
	font-size: 1rem;
	transition: all 300ms linear;
}

@media (min-width: 992px) {
	#contact-content {
		width: 100%;
		left: unset;
		right: 15px;
		max-width: 290px;
		top: 80px;
	}
}

#contact-content :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.25rem;
	margin-bottom: 20px;
}

#contact-content :is(h1, h2, h3, h4, h5, h6, a) {
	color: inherit;
}

/* #endregion ------------------------------ suche + select ------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

@media (min-width: 576px) {
	header {
		z-index: 1;
		position: relative;
	}

	header::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		width: 49%;
		clip-path: polygon(52% 0%, 100% 0%, 100% 100%, 0% 100%);
		z-index: -1;
		box-shadow: inset 0 0 0 100vw rgba(48, 54, 58, 0.6);
	}
}

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

@media (min-width: 992px) {
	#headerpic > .row {
		max-width: 1550px;
		width: 100%;
	}
}

.bannerSideTab h2 {
	font-size: clamp(1.875rem, 6vw, 5rem);
	line-height: 1.1;
	margin-bottom: clamp(15px, 2vw, 30px);
}

.bannerSideTab h2 :is(i, em) {
	color: #be2929;
	text-transform: uppercase;
	margin-bottom: 5px;
	font-style: normal;
	display: block;
}

/* banner */

.slider-wrapper {
	border: 20px solid #ffffff;
}

@media (max-width: 767px) {
	.slider-wrapper {
		box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
	}
}

body:not(.index) .slider-wrapper {
	border-left: unset;
	border-bottom: unset;
}

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

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

#headerpic {
	margin: 0 auto;
	position: relative;
	width: 100%;
	padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 7vw, 100px) 0;
}

body:not(.index) #headerpic {
	padding: 0;
}

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

.slider-mask {
	display: none;
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* --------------------------------------------- markerTab -------------------------------------- */

#markerTab {
	background: #1a3d55;
	padding: clamp(30px, 4vw, 50px) 0;
	font-size: 1rem;
}

#markerTab > .row {
	row-gap: 15px;
}

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

#markerTab :is(h1, h2, h3, h4, h5, h6) {
	font-weight: 400;
	margin: 0;
}

/* -------------------------------------------- buttonStyle ------------------------------------- */

.buttonStyle a:not(.has-image):not([rel]) {
	display: inline-block;
	padding: 13px 20px;
	color: #ffffff;
	font-size: 1rem;
	background: #be2929;
	border-radius: 6px;
	text-decoration: none;
	outline: 2px solid transparent;
	transition: background 300ms, outline 300ms;
}

.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
	background: #1a3d55;
	outline-color: #fff;
}
:is(.bannerSideTab.buttonStyle, #infoTab .buttonStyle) a:not(.has-image):not([rel]) {
	margin-top: clamp(20px, 3vw, 40px);
}

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

#tabs {
	position: relative;
	padding-bottom: clamp(60px, 7vw, 95px);
	isolation: isolate;
}

#tabs::before {
	content: "";
	position: absolute;
	right: 0;
	height: 290px;
	bottom: 0;
	width: 59%;
	clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
	background: rgba(243, 243, 243, 1);
}

@media (min-width: 992px) {
	#tabs::after {
		content: "Beispielarbeiten";
		font-size: clamp(6.25rem, 13vw, 12.5rem);
		font-weight: 600;
		color: #f3f3f3;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		bottom: 360px;
		z-index: 1;
		line-height: 0;
	}
}

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

#tabs .tab {
	min-height: 100%;
	padding: clamp(30px, 3vw, 40px) clamp(15px, 2vw, 30px);
	border: 1px solid #b3b3b3;
	border-radius: 20px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.5);
	position: relative;
	z-index: 2;
}

#tabs .tab a::after {
	content: url(../img/arrow.png);
	margin-left: 5px;
}

#tabs .tabHeadline {
	text-transform: uppercase;
	color: #be2929;
	margin-bottom: 10px;
	hyphens: auto;
}

#tabs .tabHeadline::before {
	content: "";
	background: #1a3d55 no-repeat;
	border-radius: 6px;
	display: block;
	margin: 0 auto clamp(20px, 2vw, 30px) auto;
	width: 90px;
	height: 90px;
	background-position: center;
}

#tabs .tab1 .tabHeadline::before {
	background-image: url(../img/icon-pv-anlagen.png);
}

#tabs .tab2 .tabHeadline::before {
	background-image: url(../img/icon-blecharbeiten.png);
}

#tabs .tab3 .tabHeadline::before {
	background-image: url(../img/icon-fassaden.png);
}

#tabs .tab4 .tabHeadline::before {
	background-image: url(../img/icon-kamine.png);
}

#tabs .tab5 .tabHeadline::before {
	background-image: url(../img/icon-komplettloesungen.png);
}

#tabs .tab6 .tabHeadline::before {
	background-image: url(../img/icon-sonderwuensche.png);
}

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

/* #region -------------------------------------- infoTab --------------------------------------- */

#infoTab {
	position: relative;
	padding: clamp(60px, 7vw, 100px) 0;
}

@media (min-width: 768px) {
	#infoTab {
		padding-bottom: clamp(190px, 20vw, 230px);
	}
}

#infoTab::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 41%;
	clip-path: polygon(0 0, 100% 0%, 58% 100%, 0% 100%);
	box-shadow: inset 0 0 0 100vw rgba(48, 54, 58, 0.6);
}

#infoTab h2 {
	line-height: 1.1;
	margin-bottom: clamp(15px, 2vw, 30px);
}

#infoTab h2 :is(i, em) {
	color: #be2929;
	text-transform: uppercase;
	margin-bottom: 5px;
	font-style: normal;
	display: block;
}

#infoTab .banner {
	border: 20px solid #ffffff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
	#infoTab .template-page {
		background: #ffffff;
		padding: 10px 20px 30px 20px;
		box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
	}
}

@media (min-width: 768px) {
	#infoTab .banner {
		height: 100%;
		border-right: none;
		box-shadow: none;
	}
}

#infoTab .banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* #endregion ----------------------------------- infoTab --------------------------------------- */

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

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

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

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

:is(.bannerSideTab, #infoTab) h2 :is(i, em) {
	font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

#infoTab h2,
h1,
.h1,
.legacy_h1 {
	font-size: clamp(1.875rem, 4vw, 3.125rem);
}

h2,
.h2,
.legacy_h2,
:is(#markerTab, #tabs .tabHeadline, footer .tabHeadline) :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.75rem, 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.4rem;
}

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

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

footer {
	font-size: 1rem;
	position: relative;
	isolation: isolate;
}

@media (min-width: 992px) {
	body.index footer::after {
		content: "";
		position: absolute;
		background: url(../img/dachdecker-footer.png);
		width: 32.8646vw;
		height: 23.0208vw;
		max-width: 631px;
		max-height: 442px;
		bottom: 0;
		right: 0;
		z-index: -1;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: bottom right;
	}
}

footer,
footer > .row {
	background: #1a3d55;
}

@media (min-width: 768px) {
	.index footer {
		background: none;
	}
}

footer > .row {
	padding: clamp(40px, 4vw, 60px) clamp(15px, 3vw, 45px);
}

@media (max-width: 767px) {
	footer .row > * + * {
		border-top: 1px solid rgba(255, 255, 255, 0.3);
		margin-top: 25px;
		padding-top: 25px;
	}
}

@media (min-width: 768px) {
	footer > .row {
		max-width: 1170px;
		width: 100%;
	}

	footer > .row > * + * {
		border-left: 1px solid rgba(255, 255, 255, 0.3);
	}

	.index footer {
		margin-top: -130px;
	}

	footer > .row > *:nth-child(2) {
		padding-left: 30px;
	}
}

@media (min-width: 992px) {
	footer > .row > *:nth-child(1) {
		padding-right: 30px;
	}

	footer > .row > *:nth-child(2) {
		padding-left: 60px;
	}
}

@media (min-width: 1200px) {
	.index footer {
		padding-bottom: 100px;
	}
}

footer > .row,
footer :is(h1, h2, h3, h4, h5, h6, a) {
	color: #ffffff;
}

footer .tabHeadline {
	margin-bottom: 25px;
}

footer .template-page a {
	text-decoration: underline;
}

#innerfooter ul {
	padding: 0;
}

@media (min-width: 768px) {
	#innerfooter ul {
		margin-top: 30px;
		display: flex;
		justify-content: space-between;
		row-gap: 15px;
		flex-wrap: wrap;
	}

	#innerfooter li:not(:first-child) {
		flex-grow: 1;
		display: flex;
		justify-content: space-between;
	}

	#innerfooter li + li::before {
		content: "•";
		color: #ffffff;
		flex-grow: 1;
		margin: 0 10px;
	}
}

#innerfooter a {
	color: #ffffff;
	display: inline-block;
	font-weight: 600;
}

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

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

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

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

@media (max-width: 991px) {
	#vernetzt {
		text-align: center;
	}
}

#vernetzt span span {
	display: block;
}

#vernetzt img {
	display: block;
	margin-left: auto;
	margin-bottom: 15px;
}

@media (max-width: 991px) {
	#vernetzt img {
		margin-right: auto;
	}
}
