/* GENERAL */
:root {
	--margins: min(1rem, 5vw) 0;
	--sans-serif: "Barlow Semi Condensed", sans-serif;
	--headline: "Montserrat", sans-serif;
	--background: #FFF;
	--black: #000;
	--contrast: #CD1316;
	--contrast-grey: #888;
	--text: #000;
}

* {
	transition: all 0.25s ease-in-out;
}
html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}
html, body {
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--sans-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--headline);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	word-break: break-word;
	-ms-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}
:is(h1, h2, h3, h4, h5, h6) > mark {
	font-weight: 300;
	color: var(--contrast);
	letter-spacing: -.25rem;
	word-spacing: .75rem;
}
h1 {
	font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem);
	font-weight: 600;
}
h2 {
	font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
	font-weight: 500;
}
:is(h2) > mark {
  letter-spacing: -.125rem;
}
a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
}
section a {
	border-bottom: 2px solid transparent;
}
section a:not(.wp-block-button__link):hover {
	border-bottom: 2px solid var(--contrast);
}
strong {
	font-weight: 500;
	opacity: 0.85;
}
section {
	position: relative;
	display: inline-block;
	margin: 5rem 0;
	width: 100%;
}
.section h3 {
	font-size: clamp(1rem, 0.75rem + 2vw, 1.5rem);
	line-height: 1.25;
	margin: min(6vh, 3rem) 0 min(5vh, 1.5rem);
}
.container {
	width: min(900px, 90%);
	margin: 0 auto;
	padding: min(1rem, 5vw) 0;
	z-index: 2;
	position: relative;
	color: var(--text);
}

/* HEADER */

header {
	position: relative;
	font-family: var(--sans-serif);
	font-weight: 300;
	z-index: 5;
}
header .container {
	display: flex;
	align-items: center;
	padding: 0;
}
header .logo {
	position: relative;
	font-size: clamp(1.5rem, 1.25rem + 3vw, 2.5rem);
	line-height: 1;
	padding: .5rem 0;
	text-transform: uppercase;
}
header .logo a i {
	color: var(--contrast);
	font-style: normal;
}
header .logo .custom-logo-link {
	position: relative;
	display: block;
	width: fit-content;
}
header .logo::before {
	/*content: "";*/
	width: 110%;
	height: 100%;
	background: #FFF;
	position: absolute;
	top: 0;
	left: 0;
	padding: 1rem 0;
	margin: -1rem 0 0;
	transform: skewX(-10deg);
	transition: all .5s ease-in-out;
}
header .logo::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	background: #FFF7;
	z-index: -1;
	margin: -.5rem 0 0 calc(-99vw + 1rem + 100%);
	padding: .5rem 0;
	transform: skewX(-18deg);
	transition: all .5s ease-in-out;
}
header.active .logo::after, 
header:hover .logo::after {
	background: #FFF;
	width: 200vw;
}
header .logo img {
	display: block;
	height: 40px;
	width: auto;
}
header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
header ul li {
	display: inline-block;
}
header .topline ul li {
	margin: 0 0 0 .5rem;
}
header .nav_toggle {
	grid-area: navtoggle;
	position: relative;
	display: flex;
	margin: 0 0 0 auto;
	padding: .15rem .25rem .25rem;
	border-radius: 50%;
	cursor: pointer;
	transform: translateY(.6rem);
	z-index: 9;
}
header .nav_toggle .bars {
	align-self: center;
}
header .nav_toggle .bars .bar {
	display: block;
	width: 2rem;
	height: 2px;
	margin: 6px 0;
	background: var(--text);
}
header .nav_toggle.active .bars .bar:nth-of-type(1) {
	transform: rotate(45deg) translateX(5px) translateY(5px);
}
header .nav_toggle.active .bars .bar:nth-of-type(2) {
	opacity: 0;
}
header .nav_toggle.active .bars .bar:nth-of-type(3) {
	transform: rotate(-45deg) translateX(6px) translateY(-6px);
}
header .main-navigation {
	position: absolute;
	top: 0;
	left: 0;
	margin: 4rem 0 0 -5vw;
	padding: 0 5vw;
	overflow: hidden;
	font-size: 1.125rem;
	opacity: 0;
	scrollbar-width: thin;
	visibility: hidden;
	z-index: 8;
	text-align: center;
	max-height: 0;
	width: 100%;
	background: #FFF;
}
header .main-navigation.active {
	opacity: 1;
	visibility: visible;
	max-height: 600px;
}
header .main-navigation ul li {
	position: relative;
	display: block;
	padding: 1rem;
}
header .main-navigation ul li a {
	font-weight: 500;
	text-transform: uppercase;
	white-space: nowrap;
}
header .main-navigation ul li.current-menu-item a, 
header .main-navigation ul li a:hover {
	color: var(--contrast);
}
header .main-navigation ul li .submenu_trigger {
	display: none;
}
header .main-navigation ul li.menu-item-has-children > div.submenu_trigger {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	width: 1rem;
	height: calc(100% - .8rem);
	padding: .8rem 1.5rem 0 .5rem;
	cursor: pointer;
	font-size: 1.4rem;
}
header .main-navigation ul li .submenu_trigger i {
	display: inline-block;
}
header .main-navigation ul li .submenu_trigger.active i {
	transform: rotate(90deg);
}
header .main-navigation ul li ul {
	max-height: 0;
	overflow: hidden;
}
header .main-navigation ul li:last-of-type ul {
	margin-bottom: 10vh;
}
header .main-navigation ul li ul li {
	margin: .75rem 0;
	width: calc(100% - .75rem);
	border-top: 1px dashed transparent;
	font-size: 90%;
	padding: 0 0 0 .75rem;
	display: inline-block;
}
header .main-navigation ul li ul li a {
	color: #444;
	font-weight: 300;
}
header .main-navigation ul li ul li:first-of-type {
	margin-top: 1.25rem;
}
header .main-navigation ul li ul li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	margin: -2px 0 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #444;
}
header .main-navigation ul li ul li:hover {
	background: #F8F8F8;
}


/* HERO */
#hero {
	display: block;
	margin: -3.5rem auto -3rem;
	width: min(100%, 1080px);
	height: 60vh;
	overflow: hidden;
}
.hero_gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 10rem;
	background: linear-gradient(to bottom, rgb(255, 255, 255) 0%,rgba(255,255,255,0.9) 20%,rgba(255,255,255,0.6) 60%,rgba(255,255,255,0.1) 90%,rgba(255,255,255,0) 100%);
}
#hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}


/* SINGLE POST */

.single .wp-block-media-text {
	grid-column-gap: 3rem;
	margin: 0 0 min(5vh, 3rem);
}
.single .wp-block-media-text .wp-block-media-text__content {
	padding: 0;
}


/* QUICK CALL */

.quick_call {
	position: sticky;
	top: 1rem;
	left: calc(85% - 13vw);
	width: 26vw;
	height: 26vw;
	margin: 0 0 calc(-3rem - 13vw);
	border-radius: 50%;
	cursor: pointer;
	overflow: hidden;
	z-index: 4;
}
#hero + .quick_call {
	margin-top: -13vw;
}
.quick_call img {
	width: 100%;
	height: auto;
	filter: hue-rotate(100deg);
}


/* PAGE */

.page #main ul {
	padding: 0;
}
.page #main ul li {
	margin-left: 1rem;
}


/* ERROR 404 */

.error404 .content {
	width: min(90%, 700px);
	margin: 0 auto;
}
.error404 .content a {
	font-weight: 500;
}


/* ARCHIVE */

.archive h1 {
	margin: 3rem 0;
	font-size: clamp(1.6rem, 1.4rem + 5vw, 4rem);
	font-style: italic;
	font-weight: 300;
	text-align: center;
}
.page h1, 
.single article h1 {
	line-height: 1.1;
	margin: 0 0 2rem;
}
.single article h2 {
	font-size: clamp(1.25rem, 1rem + 2vw, 1.75rem);
	line-height: 1.25;
	margin: min(10vh, 3rem) 0 min(5vh, 1.5rem);
}
.single article .wp-block-image:not(.artikelbild) figcaption {
	padding: 0;
	margin: .25rem 0 0;
	text-align: center;
}
.single #main ul {
	margin: 0;
	padding: .5rem 0 0 1rem;
}
.single article :is(h2, h3, h4) {
	font-family: var(--sans-serif);
}
article figcaption {
	font-family: var(--sans-serif);
	font-size: 0.8125rem;
	line-height: 1.125;
	margin: 0;
	padding: 0 5%;
	opacity: 0.75;
}
article p a, 
article figcaption a {
	font-weight: 500;
}
.single article .wp-block-image.size-large {
	display: inline-block;
	margin: 3rem 0;
}


/* BUTTONS */

.wp-block-buttons.is-content-justification-center {
	text-align: center;
}
.wp-block-buttons > .wp-block-button {
	background-color: var(--contrast);
	color: var(--background);
	border: 2px solid var(--background);
	outline: 2px solid var(--contrast);
	padding: 0;
	font-family: var(--sans-serif);
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 0;
	transform: skewX(-10deg);
}
.wp-block-buttons > .wp-block-button::after {
	content: "";
	width: 0;
	height: 100%;
	background: var(--black);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	transition: all .25s ease-in-out;
}
.wp-block-buttons > .wp-block-button:hover::after {
	width: 100%;
}
.wp-block-button__link {
	padding: .4rem 1rem .4rem .6rem;
	color: var(--background);
	transform: skewX(10deg);
}
a.wp-block-button__link[href^="tel:"] {
	padding-left: 3.4rem;
}
.wp-block-button__link::before {
	content: "\eab8";
	font-family: "Icofont";
}
a.wp-block-button__link[href^="tel:"]::before {
	content: "\efbb";
	margin: 0 .25rem 0 -2.8rem;
	position: absolute;
	font-size: 200%;
}


/* COLUMNS */

.wp-block-columns {
	gap: 1rem;
	margin-bottom: 0;
}
.wp-block-columns + p {
	margin-top: 0;
}


/* PARTNER SECTION */

#partner {
	background: #e8e8e8;
	margin: 0;
	padding: min(1rem, 5vw) 0;
}
.partner_columns {
	display: flex;
	align-items: center;
	flex-direction: column;
}
.partner_columns > div {
	width: 100%;
}
.partner_link {
	display: flex;
	align-items: center;
}
.partner_link .icofont-arrow-right {
	font-size: 150%;
	margin-right: .5rem;
}
.partner_columns > .partner_logo {
	margin: 0 auto 0 0;
	max-width: min(300px, 75%);
}
section#partner .partner_logo a:not(.wp-block-button__link):hover {
	border: 0;
}
.partner_logo img {
	max-width: 100%;
	height: auto;
}


/* FOOTER */

footer {
	background-color: var(--black);
	font-size: 16px;
}
footer a {
	color: var(--contrast-grey);
}
footer a:hover {
	color: var(--contrast);
}
footer .container {
	position: relative;
	color: var(--contrast-grey);
}
footer .container.flex-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex-wrap: wrap;
}
footer .copy_title {
	margin: 0;
	font-size: clamp(1.25rem, 1rem + 2vw, 2rem);
	line-height: 1;
	text-align: center;
}
footer .copy {
	font-family: var(--sans-serif);
	font-size: 75%;
	font-weight: 400;
	margin: 0 0 1rem;
	text-align: center;
}
footer .info_text {
	font-size: .9rem;
	font-weight: 300;
	margin: 3rem auto;
	display: block;
	width: min(100%, 650px);
}
footer .info_text p {
	padding: 0 5%;
}
footer .footer_nav {
	display: block;
	margin: 0 auto 1rem;
	font-family: var(--sans-serif);
	font-size: 75%;
	text-align: center;
}
footer .footer_nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
footer .footer_nav ul li {
	display: inline-block;
	margin: 0 .5rem;
}


@media screen and (min-width: 400px) {
	footer .container.flex-container {
		flex-direction: row;
		gap: 3rem;
	}
	footer .footer_nav {
		margin-right: 0;
	}
}

@media screen and (min-width: 601px) {
	.quick_call {
		display: none;
	}
	header .logo {
		padding: 1rem 0;
	}
	header .logo::after {
		margin-top: -1rem;
		padding: 1rem 0;
	}
	header .logo img {
		height: 50px;
	}
	header .main-navigation {
		margin-top: 6rem;
	}
	#hero {
		margin-top: -5.5rem;
	}
	.single .wp-block-media-text .wp-block-media-text__content > *:first-of-type, 
	.single .wp-block-columns .wp-block-column > *:first-of-type {
		margin-top: 0;
	}
	.single .wp-block-media-text .wp-block-media-text__content > *:last-of-type, 
	.single .wp-block-columns .wp-block-column > *:last-of-type {
		margin-bottom: 0;
	}
}

@media screen and (min-width: 768px) {
	#hero {
		height: min(75vh, 600px);
	}
	.wp-block-columns {
		gap: 3rem;
	}
	.partner_columns {
		column-gap: 1rem;
		flex-direction: row;
	}
	.partner_columns > div {
		width: fit-content;
	}
	.partner_columns > .partner_logo {
		margin: 0 0 0 auto;
		width: 300px;
	}
	 footer .container.flex-container {
		gap: 5rem;
	  }
	.widget_box {
		flex-basis: calc((100% - 10rem) / 3);
	}
}

@media screen and (min-width: 801px) {
	footer .info_text p {
		padding: 0;
	}
}

@media screen and (min-width: 940px) {
	header .container.logo_navbar {
		grid-template-areas: "logo menu";
	}
	header .logo::after {
		background: #FFF;
	}
	header .nav_toggle {
		display: none;
	}
	header .main-navigation {
		margin: 1rem 0 -1rem auto;
		padding: 0;
		position: unset;
		width: auto;
		height: auto;
		max-height: unset;
		overflow: visible;
		background: unset;
		box-shadow: none;
		visibility: unset;
		opacity: unset;
		text-align: right;
	}
	header .main-navigation ul li {
		display: inline-block;
		padding: 1rem .75rem;
		border: 0;
	}
	header .main-navigation ul li:last-child {
		padding-right: 0;
	}
	header .main-navigation ul li ul {
		position: absolute;
		top: 0;
		left: 0;
		margin: 3rem 0 0;
		background: #FFF;
		border: 1px solid #F1F1F1;
		box-shadow: 5px 8px 5px 0 #00000075;
		visibility: hidden;
		opacity: 0;
		max-height: unset;
		overflow: visible;
	}
	header .main-navigation ul li.column_submenu ul {
		column-count: 3;
		column-gap: 0;
	}
	header .main-navigation ul li:last-of-type ul {
		padding-bottom: unset;
	}
	header .main-navigation ul li ul::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		margin: -8px 0 0 .5rem;
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 0 8px 8px 8px;
		border-color: transparent transparent #F1F1F1 transparent;
	}
	header .main-navigation ul li:hover ul {
		visibility: unset;
		opacity: 1;
	}
	header .main-navigation ul li ul li {
		margin: 0;
		padding: .5rem 1rem;
		width: calc(100% - 2rem);
	}
	header .main-navigation ul li ul li:first-of-type {
		margin: 0;
	}
	header .main-navigation ul li ul li::before {
		display: none;
	}
	h1, h2, h3, h4, h5, h6 {
		word-break: unset;
		-ms-hyphens: unset;
		-webkit-hyphens: unset;
		hyphens: unset;
	}
}