/*  include font definitions  */
@font-face {
    font-family: OpenSans;
    src: url('type/opensans-regular-webfont.woff') format('woff'),
         url('type/opensans-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: OpenSans;
    src: url('type/opensans-semibold-webfont.woff') format('woff'),
         url('type/opensans-semibold-webfont.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: OpenSans;
    src: url('type/opensans-bold-webfont.woff') format('woff'),
         url('type/opensans-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: Swiss721Black;
    src: url('type/swiss721bt-black.woff2') format('woff2'),
         url('type/swiss721bt-black.woff') format('woff'),
         url('type/swiss721bt-black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/*  attributes for all  */
body, h1, h2, h3, h4, h5, h6, p, div, img, a, address, b, i, u, sup, div, span, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
}


/*  colors  */
:root
{
	--color-primary: #14477A;
	--color-primary-dark: hsl(from var(--color-primary) h s calc(l - 8));
	--color-primary-darker: hsl(from var(--color-primary) h s calc(l - 13));
	--color-primary-light: hsl(from var(--color-primary) h s calc(l + 45));
	--color-accent: #C8102E;
	--color-accent-glow: rgb(from var(--color-accent) r g b / 0.5);
	--color-text: #2A3138;
	--color-black: #000000;
	--color-white: #FFFFFF;
	--color-border: #CBD2D9;
	--color-background-light: #EEF2F5;
	--color-shadow-light: rgb(from var(--color-black) r g b / 0.1);
	--color-shadow: rgb(from var(--color-black) r g b / 0.5);
	--color-overlay: rgb(from var(--color-black) r g b / 0.75);
	--color-success: #669900;
	--color-success-background: #EFFFCE;
	--color-error: #990000;
	--color-error-background: #FFCECE;
}


/*  tags  */
html
{
	font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}
body
{
	font-family: OpenSans, Verdana, Arial, sans-serif;
	background: var(--color-white);
	color: var(--color-text);
	text-align: center;
}

a
{
	font-weight: normal;
	color: var(--color-accent);
	text-decoration: underline;
	transition: color 0.25s ease, border 0.25s ease, background-color 0.25s ease;
}
a:hover
{
	color: var(--color-black);
	text-decoration: none;
}

input, textarea
{
	font-family: inherit;
	font-size: 0.9em;
	padding: 4px;
	border: 1px solid var(--color-border);
	border-radius: 0px;
	box-shadow: none;
	outline: none;
	transition: color 0.2s ease, background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus
{
	border: 1px solid var(--color-primary);
	box-shadow: 0 0 3px var(--color-accent-glow);
}

img
{
	max-width: 100%;
	height: auto;
}

p
{
	margin: 0 auto;
	font-size: 1.125rem;
	line-height: 1.5em;
	max-width: 52rem;
}
p:not(:last-child)
{
    margin-bottom: 1em;
}

ol, ul
{
	padding-left: 3rem;
	margin: 0 auto 2rem auto;
	font-size: 1.25rem;
	line-height: 1.5em;
	max-width: 52rem;
}
ul
{
	list-style-type: square;
}

address
{
	font-style: normal;
}

h1, h2, h3, h4, h5, h6
{
	font-family: Swiss721Black, Verdana, Arial, Helvetica, sans-serif;
	font-weight: normal;
	word-wrap: break-word;
	color: var(--color-primary);
	max-width: 52rem;
	margin: 0 auto;
}

:is(h1, h2, h3, h4, h5, h6) > span
{
	color: var(--color-primary-dark);
}

h1, h2
{
	font-size: 2.5rem;
	padding-bottom: 1.5rem;
}

h1 + h2, h3
{
	color: var(--color-primary-dark);
	font-size: 1.75rem;
	padding-bottom: 1rem;
	padding-top: 1rem;
}

h4
{
	color: var(--color-primary-darker);
	font-size: 1.5rem;
	padding-bottom: 0.25em;
	padding-top: 0.75em;
}

h5
{
	font-size: 1.25rem;
	padding-bottom: 0.25em;
	padding-top: 0.75em;
}

h6
{
	font-size: 1rem;
	padding-bottom: 0.25em;
	padding-top: 0.75em;
}

h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6
{
	padding-top: 0;
}

header
{
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 2;
	background: var(--color-primary);
	box-shadow: 0 2px 6px var(--color-shadow-light);
	transition: box-shadow 0.5s ease, background 0.5s ease, border 0.5s ease;
}

header > .center
{
	height: 4rem;
}

nav
{
	position: relative;
	display: block;
	float: right;
	height: 100%;
}

main
{
	position: relative;
	display: block;
	overflow: hidden;
	padding-top: 4rem;
}

section
{
	position: relative;
	display: block;
	overflow: hidden;
}

footer
{
	background: var(--color-primary-dark);
	color: var(--color-white);
    font-size: 1rem;
    line-height: 1.5rem;
}
footer p, ul
{
    font-size: inherit;
}
footer :is(.fa-solid, .fa-brands)
{
	color: var(--color-primary-light);
	margin-right: 0.25rem;
}
footer :is(h1, h2, h3, h4)
{
    color: inherit;
    font-size: 1.375rem;
}
footer a
{
	color: var(--color-white);
	text-decoration: none;
}
footer a:hover
{
    color: var(--color-primary-light);
    text-decoration: none;
    text-shadow: 0 0 .25rem var(--color-shadow);
}
footer .center
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}



/*  ids  */
#logo
{
	position: absolute;
	display: block;
	overflow: hidden;
	padding: 1.5rem;
	background: var(--color-white);
	/*background: rgba(255, 255, 255, 0.5);*/
	width: 240px;
	margin-left: 2rem;
	/*margin-top: 3.5rem;*/
	z-index: 3;
	top: 0;
	transition: width 0.3s ease, padding 0.3s ease;
}
header.sticky #logo
{
	width: 120px;
	padding: 0.75rem;
}
#logo img
{
	width: 100%;
	float: left;
}

#footer-address address
{
	margin-bottom: 1rem;
}

#footer-contact ul
{
    display: flex;
    flex-flow: column nowrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu
{
	list-style-type: none;
	font-size: inherit;
    margin: 3rem auto 0 auto;
	padding: 0;
}
#footer-menu li
{
	display: inline-block;
}
#footer-menu li:not(:last-child):after
{
	content: ' \00B7';
	padding: 0 0.25rem;
}

#social-media
{
    display: flex;
    flex-flow: row wrap;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}
#social-media li
{
    margin: 0;
    padding: 0;
}
#social-media li a
{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    gap: .5rem;
}
#social-media li a i
{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5em;
    aspect-ratio: 1;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    margin: 0;
    font-size: 1.5rem;
    color: inherit;
}

#imprint
{
	padding-top: 6rem !important;
}

#imprint p,
#imprint ul,
#imprint ol
{
	font-size: 1.0rem;
	margin-bottom: 1.5rem;
}
#imprint ul,
#imprint ol
{
	padding-left: 2rem;
}


/*  classes  */
.center
{
	position: relative;
	display: block;
	overflow: visible;
	max-width: 1300px;
	margin: 0 auto;
	text-align: center;
}
.margin
{
	padding: 6rem;
}
.margin-small-width
{
	padding: 6rem 1rem;
}
.margin-small-height
{
	padding: 3rem 6rem;
}
.margin-nobottom
{
	padding-bottom: 0rem;
}
.margin-bottom
{
	padding-bottom: 5rem;
}
.margin-top
{
	padding-top: 3rem;
}

.lightgrey
{
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--color-background-light);
}

.small
{
	font-size: 1.05rem;
}

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

.phone
{
	font-size: 1.5rem;
	color: var(--color-text);
}
.phone a
{
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.columns
{
	position: relative;
	display: block;
	overflow: hidden;
}

.col2, .col3, .col4
{
	position: relative;
	display: block;
	float: left;
	box-sizing: border-box;
	padding-left: 1rem;
	padding-right: 1rem;
}
.col2 { width: 50%; }
.col3 { width: 33.33334%; }
.col4 { width: 25%; }

/* Process steps as arrow blocks: notch on the left, point on the right */
.steps
{
	--arrow: 2rem;
	display: flex;
	max-width: none;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.steps li
{
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem calc(var(--arrow) + 1.5rem);
	background: var(--color-white);
	clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%, var(--arrow) 50%);
}
.steps li + li
{
	margin-left: calc(var(--arrow) * -1 + 1rem);
}

/* Advantage tiles */
.tiles
{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.tile
{
	padding: 2rem 1.5rem;
	background: var(--color-background-light);
}

.col-icon
{
	display: block;
	font-size: 3.75rem;
	color: var(--color-accent);
	margin-bottom: 1rem;
}

.close
{
	position: absolute;
	display: none;
	right: 3rem;
	top: 3rem;
	width: 50px;
	height: 50px;
	background: var(--color-accent);
	border: 2px solid var(--color-accent);
	border-radius: 2px;
	transition: background 0.25s ease, color 0.25s ease;
}
.close:before,
.close:after
{
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-white);
	transform-origin: center center;
	transition: background 0.25s ease, color 0.25s ease;
}
.close:before { transform: rotate(45deg); }
.close:after { transform: rotate(-45deg); }
.close:hover { background: var(--color-white); }
.close:hover:before, .close:hover:after { background: var(--color-accent); }

.button,
.mailform .mailformsubmit
{
	display: inline-block;
	background: var(--color-accent);
	color: var(--color-white);
	border: 1px solid var(--color-accent);
	padding: .75rem 1.5rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	line-height: 1em;
	font-size: 1.125rem;
	border-radius: 2px;
	cursor: pointer;
}
.mailform .mailformsubmit
{
	margin-top: 1rem;
}
.button:hover,
.mailformsubmit:hover
{
	background: var(--color-white);
	color: var(--color-accent);
}


.mailform
{
	display: block;
	overflow: hidden;
	text-align: left;
	max-width: 52rem;
	margin: 0 auto;
	padding: 2rem 0 1rem 0;
}
.mailformerrors,
.mailformnotsent,
.mailformsent
{
	position: relative;
	display: block;
	max-width: 52rem;
	margin: 0.5rem auto 2rem auto !important;
	padding: 1rem 2rem !important;
	box-sizing: border-box;
}
.mailformsent
{
	border: 1px solid var(--color-primary) !important;
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
}
.mailform > p
{
	display: block;
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
}
.mailform > p:nth-child(3n+1),
.mailform > p:nth-child(3n+2)
{
	float: left;
	width: 48%;
}
.mailform > p:nth-child(3n+1)
{
	margin-right: 4%;
}
.mailform > p:nth-child(3n)
{
	padding-top: 2rem;
	text-align: center;
}
.mailform textarea
{
	height: 20rem;
}
.mailform .mailformmandatory
{
	font-size: 1rem;
	color: var(--color-primary) !important;
}

.arrow-bullets
{
	list-style-type: none;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-auto-rows: auto;
	justify-content: flex-start;
	align-items: flex-start;
	gap: .5rem;
	font-size: 1.25rem;
}
.arrow-bullets li
{
	grid-column: 2;
	position: relative;
	display: inline-block;
	padding-left: 2rem;
	text-align: left;
}
.arrow-bullets li:before
{
	content: '✓️';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	font-size: 2rem;
	font-weight: bold;
	color: var(--color-primary);
}