/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
:root {
	--peach: #e09983;
	--light-peach: #f9ebe6;
	--citrus: #ffd447;
	--pomegrenade: #650d1b;
	--ink: #011638;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
}

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

main {
	display: block;
	background-color: #fff2f2;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
@font-face {
    font-family: 'TeXGyreTermes';
    src:
		url('../font/TeXGyreTermes-Regular.woff2') format('woff2'),
    	url('../font/TeXGyreTermes-Regular.woff') format('woff'),
    	url('../font/TeXGyreTermes-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'TeXGyreTermes-Italic';
    src:
		url('../font/TeXGyreTermes-Italic.woff2') format('woff2'),
    	url('../font/TeXGyreTermes-Italic.woff') format('woff'),
    	url('../font/TeXGyreTermes-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'TeXGyreTermes-Bold';
    src:
		url('../font/TeXGyreTermes-Bold.woff2') format('woff2'),
    	url('../font/TeXGyreTermes-Bold.woff') format('woff'),
    	url('../font/TeXGyreTermes-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Easy-Speech';
    src: 
		url('../font/Easy-Speech.woff2') format('woff2'),
    	url('../font/Easy-Speech.woff') format('woff'),
    	url('../font/Easy-Speech.ttf') format('truetype');
}

body {
	font-family: TeXGyreTermes, Helvetica, Arial, sans-serif;
	margin: 0 auto;
	background-image: url("../img/background.jpg");
}

h1, h2, h3, h4, h5, h6 {
	font-family: Easy-Speech;
	color: var(--peach);
	word-break: break-word;
	line-height: 1.3;
}

h2 {
	font-size: 2em;
	margin: .5em 0;
	line-height: 1.3;
	font-weight: normal;
	letter-spacing: .05em;
}

h3 {
	font-family: TeXGyreTermes-Italic, Helvetica, Arial, sans-serif;
	font-size: 1.25rem;
	margin: 1em 0 0;
	color: var(--pomegrenade);
}

h4 {
	font-family: TeXGyreTermes-Bold, Helvetica, Arial, sans-serif;
	margin: 0 0 1em;
	font-size: 1em;
	line-height: 1.6;
	color: var(--ink);
	letter-spacing: .02em;
}

h5 {
  color: #aaa;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 15px 0;
}

p {
	margin: 0 0 1em;
	line-height: 1.6;
	color: var(--ink);
}

p, li {
	font-size: 18px;
}

b, strong {
	font-weight: bolder;
}


em, i {
	font-style: italic;
}

span.highlighted {
	box-shadow: inset 0 -.6em 0 0 var(--peach);
}

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

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

ul li, ol li {
	margin: .7em 0;
}

li::marker {
	color: #650d1b;
}

ul {
	list-style: disc;
}

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

#contact form {
	text-align: left;
}

#contact input, #contact textarea {
	background-color: #fff;
	border-radius: .5em;
	color: var(--ink);
	font-size: 1em;
	border: 2px solid var(--ink);
	padding: 6px 10px;
	height: 2.5em;
	width: 100%;
	line-height: 1.3;
	margin: 0 0 .5em;
	font-family: TeXGyreTermes, Helvetica, Arial, sans-serif;
}

#contact input[type="submit"] {
	background-color: var(--pomegrenade);
	color: #fff;
	font-size: 1.3em;
	margin: 1.5em auto 2em;
	cursor: pointer;
	font-family: TeXGyreTermes, Helvetica, Arial, sans-serif;
}

#contact textarea {
	min-height: 100px;
	resize: vertical;
}

#contact label {
	display: block;
	line-height: 1.3;
	margin: .8em 0 .5em 12px;
	padding: 0;
	padding-top: 10px;
}

.buttons button {
	background-color: var(--pomegrenade);
	border: 1px solid var(--ink);
	color: #fff;
	font-size: 1.3em;
	padding: .7em 2em 0em;
	margin: 1.5em auto -2em;
	cursor: pointer;
	font-family: TeXGyreTermes, Helvetica, Arial, sans-serif;
	border-radius: .5em;
	height: 3em;
}

.buttons button::after {
	content: "";
	width: 200%;
	border: 1px solid var(--ink);
	position: relative;
	display: block;
	height: 3em;
	transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
	border-radius: .5em;
	transform: translate(-1.7em, -1.7em);
}

.buttons button:hover::after,
.buttons button:active::after {
	transform: translate(-2.08em, -2.05em);
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
	color: var(--pomegrenade);
	background: transparent;
	text-decoration: none;
	border-bottom: 2px solid #000;
	padding-bottom: 2px;
	transition: 150ms;
}

a:hover, a:focus, a:active {
	border-bottom: 3px solid #000;
	outline: 0;
}

a:focus {
	outline: thin dotted;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
header {
	background-color: #fff;
}

header .content {
	background-color: #fff;
	padding: 10px 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

menu {
	margin: 0;
}

.site-branding {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	height: 70px;
}

.site-branding a {
	padding: 0;
}

.site-title {
	margin: 0;
	padding: 0;
}

.site-title h1 {
	line-height: 1;
	font-size: 20px;
	color: var(--peach);
	font-weight: 600;
	margin: 0;
}

.custom-logo-link,
.custom-logo-link:hover,
.site-title,
.site-title:hover {
	border-bottom: none;
}

.custom-logo-link img {
	width: 70px;
	height: 70px;
}

.site-description {
	display: inline-block;
	font-size: 1em;
	font-family: TeXGyreTermes-Italic, Helvetica, Arial, sans-serif;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	background-color: #fde3b0;
	padding: 0;
	position: absolute;
	top: 90px;
	width: 100vw;
	position: absolute;
	right: 0;
}

.menu.active {
	margin: 0;
	overflow: scroll;
	max-height: calc(100vh - 120px);
}

.main-navigation li:last-child {
	margin-bottom: 0;
}



.main-navigation a {
	display: block;
	text-decoration: none;
	color: var(--pomegrenade);
	padding: 0.5em 2em;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 1px;
	border-bottom: 2px solid #fff2f2;
}

.main-navigation li:last-child a {
	border-bottom: none;
}


nav a:hover {
	color: var(--ink);
}

/* Small menu. */
.menu-toggle {
	border: 0;
	cursor: pointer;
	margin: 0;
	background-color: #fff;
}

.toggled {
	top: 0;
	height: 100vh;
	transition: 300ms;
}

.main-navigation.toggled ul {
	display: block;
	background-color: #000;
}

.menu-toggle:hover {
	background-color: transparent;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.navTrigger i {
	content: '';
	display: block;
	background: var(--peach);
	width: 25px;
	height: 2px;
	margin: 11px 0;
	border-radius: 0;
}

.has-children ul {
	display: block;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

.content {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.clear {
	clear: both;
}

.flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

section {
	padding: 2rem 1rem;
	clear: both;
}

.quad {
	width: 100%;
}

.centered {
	text-align: center;
}

footer {
	padding: .5rem 0;
	color: #000;
	background-color: #fff;
	width: 100%;
}

footer .flex {
	gap: .5em;
	justify-content: center;
}

footer a {
	margin: .5em;
}

footer .two-fifths {
	text-align: right;
}

#backToTop {
	width: 50px;
	height: 50px;
	bottom: 5px;
	position: fixed;
	right: 18px;
	z-index: 101;
	font-size: 0;
	border-bottom: none;
}

#backToTop svg {
	fill: var(--pomegrenade);
	width: 50px;
	height: 50px;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
img {
	border-style: none;
	width: 100%;
	height: auto;
}

#references img {
	max-height: 400px;
	width: auto;
	float: left;
	border-radius: 2em;
	margin: 0 1em 1em 0;
	border: 2px solid var(--ink);
	padding: .5em;
}

.content section #accordion h3 {
	border-top: 2px solid var(--pomegrenade) !important;
	background-color: transparent !important;
	color: var(--pomegrenade) !important;
	font-size: 1.8em !important;
}

section #accordion .ui-accordion-content {
	border: none !important;
	background-color: transparent !important;
	color: var(--ink) !important;
	font-family: TeXGyreTermes, Helvetica, Arial, sans-serif;
	line-height: initial;
}

.lSAction {
	display: none;
}

.lSSlideOuter .lSPager.lSpg > li a {
	width: 22px;
	height: 21px;
	border-radius: 16px 0 16px 0;
}

.lSSlideOuter .lSPager.lSpg > li:hover a, .lSSlideOuter .lSPager.lSpg > li.active a {
	background-color: var(--citrus);
}


/*--------------------------------------------------------------
# pages
--------------------------------------------------------------*/
.angebot .third {
	margin: 100px .5em .5em;
	border-radius: 2em;
	padding: 50px 1em 0em 1em;
	border: 2px solid var(--ink);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.angebot .third img {
	width: 150px;
	height: 150px;
	margin: -125px auto 0;
	display: block;
}

.angebot h2 {
	text-align: center;
	font-size: 2.3em;
}

.angebot button a {
	color: var(--light-peach);
	border: none;
}

.datenschutz a {
	line-height: calc(1em + 8px);
}

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

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

/*--------------------------------------------------------------
# CIFR
--------------------------------------------------------------*/

main.message {
	text-align: center;
}

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

@media screen and (min-width: 400px) {
	.site-title {
		font-size: 23px;
	}
}

@media screen and (min-width: 768px) {
	h2 {
		font-size: 3em;
	}

	.content {
		width: 720px;
		padding: 0;
	}

	section {
		padding: 2em 1em;
	}

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

	.main-navigation li {
		display: inline-block;
		margin: 0;
	}

	.main-navigation a {
		padding: 1em 0.8em;
		border-bottom: none;
	}
	
	.main-navigation ul {
		text-align: center;
	}

	.angebot .third {
		margin: 50px .5em .5em;
		width: calc(33.33% - 1em);
	}

	footer {
		margin-top: 4em;
		padding: .5em 0 1em;
	}

	footer .flex {
		gap: 0;
	}

}

@media screen and (min-width: 992px) {
	.content {
		width: 960px;
	}

	.half {
		width: 50%;
		padding: 0 15px;
		margin-bottom: 15px;
	}

	.third {
		width: 33.33%;
		float: left;
		padding: 0 15px;
	}

	.two-third {
		width: 66.66%;
		float: left;
		padding: 0 15px;
	}

	.three-fifths {
		width: 60%;
		float: left;
		padding: 0 1em;
	}

	.two-fifths {
		width: 40%;
		float: left;
		padding: 0 1em;
	}

	.quad {
		width: 25%;
		padding: 0 15px;
	}

}