/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

:root {
	--primary: #007db3; /*#FC8337 */
	--copy: #202232;
	--br: 5px;
}

html {
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

*, *::before, *::after {
	box-sizing: inherit;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
@font-face {
	font-family: 'IBM';
	src: url(../font/IBMPlexSansJP-Regular.ttf) format('truetype');
}

@font-face {
	font-family: 'IBM Bold';
	font-weight: 700;
	src: url(../font/IBMPlexSansJP-Bold.ttf) format('truetype');
}

body {
	font-family: 'IBM', Helvetica, Arial, sans-serif;
	margin: 0;
	background-color: #fff;
	color: var(--copy);
}

.content h1, .content h2, #kontakt h2, .content h3, .content h4, .content h5, .content h6 {
	word-break: break-word;
	line-height: 1.4;
	margin: 0;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
}

#kontakt {
	word-break: break-word;
	line-height: 1.4;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 8;
}

.content h1 {
	text-transform: uppercase;
	font-size: 2em;
	letter-spacing: .03em;
}

.content h2, #kontakt h2 {
	margin: 1em 0;
	border: 1px solid var(--primary);
	text-transform: uppercase;
	display: inline-block;
	letter-spacing: .05em;
	padding: .3em .5em .2em;
	border-radius: var(--br);
	font-size: 1rem;
}

.content h3, #kontakt h3, h3.centered {
	font-size: 1.5em;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-family: "IBM Bold", Helvetica, Arial, sans-serif;
	margin: .5em 0 1em;
}

.content h4 {
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: .05em;
	font-size: 1.2em;
	margin: 0 0 .5em;
	line-height: 1.6;
}

.content p, .content blockquote, .content li {
	font-size: 1.1em;
}

.content p {
	margin: 0 0 1em;
}

.content b, .content strong {
	font-family: "IBM Bold", Helvetica, Arial, sans-serif;
	color: var(--primary);
}

.uppercase {
	text-transform: uppercase;
	letter-spacing: .05em;
}

.centered {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.colored {
	color: var(--primary);
}

.bordered {
	margin: 0 .5em 0;
	border: 1px solid var(--primary);
	text-transform: uppercase;
	display: inline-block;
	letter-spacing: .05em;
	padding: .3em .5em .2em;
	border-radius: var(--br);
}

blockquote {
	margin-left: 0;
	padding: 0 1em;
	border-left: 1px solid var(--primary);
	max-width: 500px;
	border-radius: 1em;
	font-weight: bold;
}

blockquote::before {
	width: 15px;
	content: "“";
	height: 15px;
	position: relative;
	display: block;
	top: -.4em;
	left: -0.1em;
	color: var(--primary);
	font-size: 13em;
	opacity: .15;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

ul {
	margin: 0;
	padding: 0 0 1em 1em;
}

ul li {
	margin: 0;
}

ul {
	list-style: disc;
}

li > ul {
	margin-bottom: 0;
	margin-left: 1.5em;
}

li::marker {
	color: var(--primary);
}

.content a.button, #kontakt a.button, .content button, .content input[type="submit"], .quickcheck #auswerten {
	background-color: var(--primary);
	font-size: 1.1em;
	font-family: inherit;
	border: none;
	border-radius: var(--br);
	padding: .8rem 1.3rem .7rem;
	font-weight: bold;
	line-height: 1.8;
	color: #fff;
	text-decoration: none;
	margin: .5em 0 1em;
	display: block;
	width: 100%;
	text-align: center;
}

.badge {
	display: inline-block;
	margin: 1em 0;
	font-family: inherit;
	border: 2px solid var(--primary);
	font-weight: bold;
	border-radius: var(--br);
	font-size: 1.1em;
	padding: .5rem 1.3rem .5rem;
	line-height: 1.8;
	text-align: center;
}

.blue-background .badge {
	margin-top: 0;
	width: 100%;
}

.main-navigation .badge {
	margin: 0;
	padding: 2px .3em 1px;
	font-size: 1em;
}

form {
	max-width: 960px;
	margin: 0 auto;
}

form h2 {
	margin-bottom: 1em;
}

.content input[type="text"],
.content input[type="password"],
.content input[type="tel"], 
.content input[type="email"], 
.content select {
	border: 1px solid var(--primary);
	margin: .5em 0;
	width: 100%;
	border-radius: .5em;
	height: 3em;
	background-color: #fff;
	color: var(--copy);
	font-size: 1.1em;
}

#appointment input[type="date"], #appointment input[type="time"] {
	border: 1px solid var(--primary);
	margin: .5em 0;
	width: 100%;
	border-radius: .5em;
	height: 3em;
	background-color: #fff;
	color: var(--copy);
	font-size: 1.5em;
}

fieldset legend {
	color: var(--primary);
	font-weight: bold;
	font-size: 1.5em;
}

.quickcheck label {
	display: inline-block;
	cursor: pointer;
	border: 1px solid var(--ui-border);
	padding: .6em 1em .4em;
	font-size: .8em;
	transition: all .15s;
	margin: 0 .5em .5em 0;
}

.quickcheck label:hover {
	background-color: #f9f9f9;
	box-shadow: 0px 0px 5px 3px inset #a0a1a23b;
}

.quickcheck input[type="radio"] {
	margin-right: .5em;
}

.quickcheck #auswerten {
	cursor: pointer;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/

a {
	background: transparent;
	color: inherit;
}

a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
}

a.bordered {
	text-decoration: none;
}

.content svg.externallink {
	width: 1.8em;
	margin: 0 0 -.2em .3em;
}

.preview {
	max-width: 300px;
	display: block;
	margin: 1em 0;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.site-title {
	font-size: .7em;
	display: block;
	text-decoration: none;
	max-width: 300px;
	margin: 0 auto;
	text-align: center;
}

.site-title span {
	display: block;
}

nav a {
	padding: .5em .5em;
	text-decoration: none;
	display: inline-block;
}

header {
	position: fixed;
	width: 100%;
	max-width: 100vw;
	z-index: 10;
	backdrop-filter: blur(10px);
	top: 0;
	color: var(--copy);
	border-top: 10px solid var(--primary);
	background-color: #fffa;
}

header p {
	margin: 0;
}

header .content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	padding: 0;
}

.logo {
	height: 90px;
}

.blue-background {
	margin-top: 200px;
}

@media screen and (max-width: 991px) {

	header.active .content h1 {
		font-size: 0;
	}

	header.active .content #menu {
		margin-top: -1.5em;
	}
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.content {
	width: 540px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.flex {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.centered .flex {
	justify-content: center;
}

.widescreen {
	display: none;
}

main {
	animation: fadeIn 300ms linear;
}
 
@keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}

section {
	margin: 0 0 4em;
	padding: 2em 1em;
}

.clear {
	clear: both;
}

.spacer {
	height: 100px;
}

footer {
	width: 100%;
	margin: 0;
	font-size: small;
	padding: 1em;
	background-color: var(--primary);
	color: #fff;
}

footer p {
	margin: 0;
}

.quickcheck {
	max-width: 900px;
	margin: 0 auto;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

main img {
	border-style: none;
	width: 100%;
}

figure {
	margin: 0;
}

img + small {
	position: relative;
	top: -2.5em;
	display: block;
	margin: 0 auto;
	text-shadow: 1px 1px 0px #fff, -1px -1px 1px #fff;
	padding: 0 2em;
}

.references {
	background-color: #dedede;
	padding: 1em;
	justify-content: space-between;
	gap: 1em;
	margin: 0 -1em;
	align-items: center;
}

.references figure {
	width: calc(50% - 1em);
	text-align: center;
}

.references img {
	filter: grayscale(100%);
	display: inline-block;
	max-width: 200px;
}

.full {
	width: 100vw;
	height: 33vh;
	margin-top: 200px;
}

.full img {
	height: 100%;
	object-fit: cover;
	min-width: 100%;
}

.third img {
	height: 250px;
	width: 100%;
	object-fit: contain;
	object-position: bottom;
	border-radius: var(--br);
}

.blue-background .third img {
	width: 100%;
	object-fit: contain;
	height: 100%;
}

.content svg {
	max-width: 100%;
	width: 50px;
	border-radius: var(--br);
	padding: 0 5px;
	fill: var(--primary);
}

.half svg {
	max-width: 100%;
	width: 2em;
	border-radius: var(--br);
	padding: 0;
	fill: var(--primary);
	margin: 0 .4em -0.5em 0;
}

.quad svg {
	float: left;
}

/*--------------------------------------------------------------
# Colorhandling
--------------------------------------------------------------*/

.colorbox {
	border-left: 1px solid var(--primary);
	padding: 1em;
	border-radius: 1em;
	width: 100%;
	margin: 1em 0;
}

#vorgehen .colorbox {
	padding: 0 0 1em 1em;
	width: 100%;
}

#vorgehen .colorbox p {
	margin: 0;
}

.blue-background {
	background-image: linear-gradient(90deg,rgb(246,252,252) 0%,#d2e4ef 100%);
}

.grey-background {
	background-image: linear-gradient(90deg,rgb(246,252,252) 0%,#dadada 100%);
}

#vorgehen .third h3, .content .quad h3, .content .fifth h3, .content .half.colorbox h3, h3.centered, #kontakt h3 {
	font-size: 1.5em;
}

#vorgehen .badge {
	text-align: center;
	margin: 0 auto;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.check {
	justify-content: space-between;
	margin: 1em auto -2em;
}

.content #accordion h3, .content #accordion p {
	font-family: 'IBM', Helvetica, Arial, sans-serif;
	line-height: 1.8;
	color: var(--copy);
}

.content #accordion .ui-state-default.ui-state-active {
	background-color: var(--primary) !important;
	color: #fff !important;
	border-radius: 0 0 var(--br) 0;
}

.content #accordion .ui-state-default.ui-state-hover {
	background-color: #ccc !important;
}

.content #accordion .ui-widget-content.ui-accordion-content-active {
	border: 1px solid #ccc !important;
	padding-left: .5em;
	border-right: none !important;
	margin-left: -1px !important;
	border-radius: 0 !important;
}

.content #accordion .ui-widget-content p {
	margin: 0;
}

.content #accordion .ui-widget-content {
	background-color: #fff !important;
}

.content #accordion .ui-state-default {
	margin: -1px;
	background-color: #fff !important;
	color: var(--copy) !important;
	border: 1px solid #ccc !important;
	border-radius: 0;
}

.content #accordion #ui-id-1 {
	border-radius: var(--br) var(--br) 0 0;
}

.content #accordion #ui-id-16 {
	border-radius: 0 0 0 var(--br) !important;
}

#accordion .ui-state-hover {
	background-color: #fff;
}

#kontakt:not(.content#kontakt) {
	margin: 10vh auto;
	text-align: center;
	max-width: 500px;
}

/*--------------------------------------------------------------
# Media Query
--------------------------------------------------------------*/
@media screen and (min-width: 768px) {
	.main-navigation ul {
		display: block;
		text-align: right;
		width: 100%;
	}

	.content, .full img + small {
		width: 720px;
		padding: 0;
	}

	.half, .third, .quad, .fifth {
		flex-basis: 50%;
		padding-right: 1em;
	}

	/* .half + .half { padding: 0;	}

	.third:last-of-type,
	.quad:last-of-type,
	.fifth:last-of-type {
		padding-right: 0;
	}
*/
	.half img {
		border-radius: 2em 0 0 2em;
	}

	.half + .half img {
		border-radius: 0 2em 2em 0;
	}

	.references figure {
		width: calc(33% - 1em);
	}
}


@media screen and (min-width: 992px) {
	header {
		height: 100px;
	}

	header .content {
		flex-direction: row;
	}

	.site-title {
		text-align: left;
	}

	.blue-background, .full {
		margin-top: 100px;
	}

	nav a {
		padding: .5em 1em;
	}

	section {
		padding: 2em 0;
	}

	.content, .full img + small {
		width: 960px;
	}

	.third {
		flex-basis: 33.33%;
	}

	.two-third {
		flex-basis: 66%;
	}

	.quad {
		flex-basis: 25%;
	}

	.fifth {
		flex-basis: 20%;
	}

	.references figure {
		width: calc(25% - 1em);
		padding: 1em;
	}

	.smallscreen {
		display: none;
	}

	.widescreen {
		display: block;
	}

	.main-navigation .badge {
		margin: 0 1em;
		padding: .5rem 1.3rem .5rem;
	}

	.references figure {
		width: calc(25% - 1em);
	}

}

@media screen and (min-width: 1200px) {

	.content, .full img + small {
		width: 1140px;
	}

	.content h3, h3.centered, #kontakt h3 {
		font-size: 3em;
		margin: .3em 0;
		line-height: 1.3;
	}

	.content h4 {
		font-size: 1.5em;
	}
}

@media screen and (min-width: 1400px) {
	.content, .full img + small {
		width: 1340px;
	}
}