:root {

	/* FONT FAMILY */
	--font-family-primary: Arial, Helvetica, sans-serif;
	--font-family-body: var(--font-family-primary);
	--font-family-heading: var(--font-family-primary);

	/* FONT SIZE */
	--font-size-h1: 2.875rem;
	--font-size-h2: 2.0rem;
	--font-size-h3: 1.5rem;
	--font-size-body: 1.2rem;

	/* FONT WEIGHT */
	--font-weight-regular: 400;
	--font-weight-semi-bold: 500;
	--font-weight-bold: 700;

	/* COLORS */
	--color-nav: hsl(218, 11%, 28%);
	--color-nav-hover: hsl(205, 80%, 39%);

	--max-width: 1300px;
}

/* https://piccalil.li/blog/a-modern-css-reset */

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*Remove margins*/
* {
	margin: 0;
	padding: 0;
	/* font: inherit; */
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core root defaults */
html:focus-within {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

/* Set core body defaults */
body {
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
	max-width: 100%;
	display: block;
	font-style: italic;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
	scroll-behavior: auto !important;
  }
}






html {
	color-scheme: light;
}

body {
	margin: 0;
	color: #333;
	font-family: var(--font-family-body);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: var(--font-size-body);
	line-height: 1.6;
	/* padding-block: 1rem; */
}

h1, h2, h3, h4 {
	color: #222;
	font-weight: 600;
	text-wrap: balance;
	padding-bottom: 0.6rem;
}

h1 {
	font-size: var(--font-size-h1);
	line-height: 1.6;
	margin-left: -2px;
	padding-bottom: 0;
}

h2 {
	font-size: var(--font-size-h2);
	line-height: 1.6;
	margin-left: -1px;
}

h3 {
	font-size: var(--font-size-h3);
	line-height: 1.6;
}

p{
	padding-bottom: 10px;
}

sup {
	font-size: x-small;
}

b {
	font-weight: 600;
}

.copyright-notice {
	font-size: 1rem;
}

.ul-formated {
	padding-left: 2rem;
	padding-bottom: 10px;
	line-height: 1.6;
}

a:link, a:visited { 
	color: #1470B2;
	text-decoration: none;
}

a:hover {
	color: orange;
}

hr {
	margin-bottom: 16px;
}

@media all and (max-width: 500px) {
	body { font-size: calc(var(--font-size-body) * 0.8); }
	h1   { font-size: calc(var(--font-size-h1)   * 0.8); }
	h2   { font-size: calc(var(--font-size-h2)   * 0.8); }
	h3   { font-size: calc(var(--font-size-h3)   * 0.8); }
}

img {
	display: block;
	max-width: 100%;
}

.img-shadow {
	box-shadow: 0 16px 32px 0 rgba(0,0,0,.5);
}

.img-3d {
	/*transform: rotateX(15deg) rotateY(-15deg) rotate(5deg);*/
	transform: rotateX(14deg) rotateY(-4deg) rotateZ(8deg);
	transform-style: preserve-3d;
}

.img-8deg {
	transform: rotate(8deg);
}

.img-radius {
	border-radius: 12px;
}

.img-inline {
	display: inline;
	vertical-align: sub;
	margin-right: 1rem;
}

.image-container {
	display: flex;
	justify-content: center;
}

.container {
	max-width: var(--max-width);
	/* max-width: 960px; */
	margin-inline: auto;
	padding: 1rem;
}


.content-sideimg {
	display: flex;
	flex-wrap: wrap;
}

.content-sideimg > *:nth-child(1) {
	flex: 1 1 75%;
	min-width: 35ch;
}

.content-sideimg > *:nth-child(2) {
	flex: 1 1 180px;
	min-width: 15ch;
	margin: 0 auto;
}


.flex {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.flex-item {
	flex-grow: 1;
	flex-shrink: 1;
}

.flex-item-mig {
	flex-grow: 0;
	flex-shrink: 1;
}


.product-listing {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.product-listing > * {
	outline: 2px solid lime;
	flex-grow: 1;
	flex-shrink: 1;
	min-width: 200px;
	margin-top: auto;
}


.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

.products {
	grid-row: span 3;
	display: grid;
	/*grid-template-rows: subgrid;*/
	gap: 1rem;
}

.contacts {
	display: flex;
	flex-direction:column;
	gap: 1rem;
}

.center-all {
	margin: auto;
	text-align: center;
	justify-content: center;
	align-items: center;
}

.hero-cards-white {
	background-color: white;
}

.hero-cards-grey-gradient {
	background: linear-gradient(180deg, #F4F4F3, #F4F4F3 550px, #FFFFFF 1100px);
}

.card-white {
	padding: 1.2rem;
	padding-top: 2.4rem;
	border: lightgray 2px solid;
	border-radius: 16px;
	background: white;
	box-shadow: 0 8px 16px 0 rgba(0,0,0,.2);
}

.card-align-end {
	align-content: flex-end;
}

.hero-cards {
	background-color: rgba(20, 113, 179, 0.2);
}

.card {
	padding: 1.2rem;
	padding-top: 2.4rem;
	border: #1470B2 2px solid;
	border-radius: 16px;
	background: rgb(244, 244, 244);
	box-shadow: 0 8px 16px 0 rgba(0,0,0,.2);
}

.card img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 14px;
	width: 50%;
}

.center-img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}

.img-right {
	margin-left: auto;
}

.img-center {
	margin-left: auto;
	margin-right: auto;
}


.hero-image {
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("passport.jpg");
	background-image: url("passport.jpg");
	background: linear-gradient(to bottom, rgba(20, 113, 179, 0.2), transparent) no-repeat top;
	background-size: 100% 16rem; 
	/*background-size: 300px;*/
	/*height: 2%;*/
	background-position: center top;
	background-repeat: repeat-x;
	/*background-size: contain;*/
	position: relative;
}

.hero-image-blue-center-gradient {
	background-color: transparent;
	background-image: radial-gradient(at center center, rgba(20, 113, 179, 0.1) 0%, rgba(20, 113, 179, 0.2) 100%);
}

.hero-image-grey-center-gradient {
	background-color: transparent;
	background-image: radial-gradient(at center center, #F8F8F8 0%, #A7A7A7 100%);
}

.hero-image-grey-gradient {
	background: linear-gradient(180deg, #F4F4F3, #F4F4F3 550px, #FFFFFF 1100px);
}

.hero-image-passport {
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("hero-passport.webp");
	/*background-image: url("hero-passport.webp");*/
	background-position: center top;
	background-repeat: no-repeat;
	background-size: contain;
	position: relative;
}


.photo-grid {
	display: grid;
	/*grid-template-columns: 1fr 1fr;*/
	grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
	grid-gap: 1rem;
}

.components-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
	grid-gap: 1rem;
}

.components-flex {
	display: flex;
}

.components-icon {
	min-width: 140px;
	padding-left: 28px;
	padding-bottom: 25px;
}

.components-icon > img {
	width: 70px;
	height: 70px;
}

.grid-references {
	display: grid;
	grid-template-columns: auto 170px;
	grid-gap: 10px;
}

@media all and (max-width: 500px) {
	.grid-references {
		grid-template-columns: auto 125px;
	}
}

.multi-column {
	columns: 5 12em;
}


/****************************/
/* Animation                */
/****************************/

.animation-fadein-grow {
	animation: fadeUp linear;
	animation-timeline: view();
	animation-range: entry 0% cover 40%;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.5);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.animation-text-grow {
	animation: growUp linear;
	animation-timeline: view();
	animation-range: entry 0% cover 35%;
}

@keyframes growUp {
	from {
		transform: scale(0.75);
	}
	to {
		transform: scale(1);
	}
}


/****************************/
/* Crossfade two images     */
/****************************/

.cross-fade {
	position: relative;
	height: 200px;
	width: 360px;
}

.cross-fade img {
	position: absolute;
}

.top {
	animation-name: fade;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-duration: 3s;
	animation-direction: alternate;
}

@keyframes fade {
	0% {
		opacity: 1;
	}
	25% {
		opacity: 1;
	}
	75% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}



/****************************/
/* Header                   */
/****************************/

header {
	background-color: hsl(240, 13%, 95%);
	border-bottom: 1px solid hsl(210, 13.79%, 88.63%);
}

header li {
	list-style-type: none;
}

.grid-header {
	display: grid;
	/* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */ /* mit Zeilenumsprung */
	grid-template-columns: auto 200px;
	align-items: baseline;
}

@media (max-width: 600px) {

	.grid-header {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
	}

}


/****************************/
/* Topbar                   */
/****************************/
/*
.topbar-hero{
	background-color: hsl(240, 13%, 95%);
	border-bottom: 1px solid hsl(210, 13.79%, 88.63%);
}
*/
.topbar-container {
	max-width: var(--max-width);
	margin-inline: auto;
	padding: 0.35rem 1rem 0.2rem;
}

.language {
	display: flex;
	justify-content: flex-end;
	font-size: 1rem;
	gap: 2rem;
}

.globe {
	display: inline-block;
	background-image: url(../svg/globe.svg);
	background-size: 100% 100%;
	width: 14px;
	height: 14px;
	margin-right: 1ch;
}

.mail {
	display: inline-block;
	background-image: url(../svg/mail.svg);
	background-size: 100% 100%;
	width: 14px;
	height: 14px;
	margin-right: 1ch;
}



/****************************/
/* Navigation               */
/****************************/

/* https://webdesign.tutsplus.com/how-to-build-a-responsive-navigation-bar-with-flexbox--cms-33535t */

nav {
	max-width: var(--max-width);
	margin-inline: auto;
	background: white;
	/* padding: 0 15px; */
	padding-left: 1rem;
}

a {
	color: var(--color-nav);
	text-decoration: none;
}

.menu,
.submenu {   
	list-style-type: none;
}

.logo {
	font-size: 40px;
	padding: 7.5px 10px 7.5px 0;
	min-width: 200px;
}

.item {
	padding: 13px;
	cursor: pointer;
}

.item a {
	color: var(--color-nav);
}

.item.button {
	padding: 9px 5px;
}

.item:not(.button) a:hover,
.item a:hover::after {
	color: var(--color-nav-hover);
}


/* Mobile menu */

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.menu li a {
	display: block;
	padding: 15px 5px;
}

.menu li.subitem a {
	padding: 12px 15px;
}

.menu hr {
	border: 1px solid rgb(190, 190, 190);
	margin: 0;
}

.toggle {
	order: 1;
	font-size: 20px;
	padding-right: 1rem;
}

.item.button {
	order: 2;
}

.item {
	order: 3;
	width: 100%;
	text-align: center;
	display: none;
}

.active .item {
	display: block;
}

.button.secondary { /* divider between buttons and menu links */
	border-bottom: 1px #444 solid;
}


/* Submenu up from mobile screens */

.submenu {
   display: none;
}

.submenu-active .submenu {
   display: block;
}

.has-submenu i {
	font-size: 12px;
}

.has-submenu > a::after {
/*  background: white url(../svg/chevron-down.svg) no-repeat 5px 8px;
	background-size: 10px;
	content: "Ã‚ Ã‚ Ã‚ "; */
	font-family: "Font Awesome 5 Free";
	font-size: 12px;
	line-height: 16px;
	font-weight: 900; 
	content: "\f078";
	color: var(--color-nav);
	padding-left: 5px;
}

.subitem a {
	padding: 10px 15px;
}

.submenu-active {
	background-color: hsl(240, 13%, 95%);
	border-radius: 3px;
}


/* Desktop menu */

@media all and (min-width: 880px) {

	.menu {
		align-items: flex-start;
		flex-wrap: nowrap;
		background: none;
	}

	.logo {
		order: 0;
	}

	.item {
		z-index: 99;
		order: 1;
		position: relative;
		display: block; 
		width: auto;
	}

	.button {
		order: 2;
	}

	.submenu-active .submenu {
		display: block;
		position: absolute;
		left: 0;
		top: 86px;
		background: hsl(240, 13%, 95%);;
		text-align: left;
		width: 280px;
		box-shadow: 0 8px 16px 0 rgba(0,0,0,.2);
	}

	.submenu-active:nth-child(2) .submenu:nth-child(2) {
		width: 420px;    /* Produkte Pull-Down breiter */
	}

	.toggle {
		display: none;
	}

	.submenu-active {
		border-radius: 0;
	}

}


/****************************/
/* Footer                   */
/****************************/

footer {
	text-align: center;
}