@import url("theme.css");

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--white);
	max-width: 100%;
	overflow-x: hidden;
}

main {
	min-height: calc(100vh - var(--footerHeight) - var(--headerHeight)  - 43px); /* viewheight - footerheiht */
	margin-bottom: var(--footerHeight);
	margin-top: var(--headerHeight);
}

figure {
	margin: 0;
}

img {
	display: block;
}


/*----- Header ---------------------------*/
header {
	position: fixed;
	top: 0;
	width: 100%;
	height: var(--headerHeight);
	font-size: var(--medium);
	z-index: 1;
	background-color: rgba(255, 255, 255, 0.5);
}

#logoIcon {
	position: absolute;
	width: 354px;
	right: 30px;
	top: 16px;
	transition: 0.3s ease-in-out;
	z-index: 10;
}



/* Navigation - Burger Menu */

#menu-bar {
	z-index: 2;	
	height: 90px;
	position: absolute;
	top: 4px;
}

#menu {
	cursor: pointer;
	
}

#menu-text {
	color: var(--blau);
	transform: translate(calc(var(--burgerBarWidth) + 22px), calc(var(--burgerBarSpace) * 2 + var(--burgerBarWeight) * 3 + 2px)) rotate(-90deg);
	transform-origin: 0 100%;
	font-size: 18.2px;
}

.bar {
	height: var(--burgerBarWeight);
	width: var(--burgerBarWidth);
	margin-bottom: var(--burgerBarSpace);
	background-color: var(--blau);
	background: linear-gradient(90deg,var(--white) 0%, var(--blau) 100%);
	display: block;
	transition: 0.3s ease-in;
	transform-origin: center;
}

.nav {
	padding: 0;
	margin-top: 13px;
	transition: 0.3s ease;
    display: none;
	margin-left: 130px;
	margin-bottom: 40px;
}

.nav li a:hover{
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.nav li{
	list-style: none;
	width: calc(var(--menuWidth) - 50px);
	margin: 20px 0;
	padding: 0;
	background-color: initial;
	text-indent: 0;
}

.nav li a{
	color: #fff;
	text-decoration: none;
	font-weight: bold;
}

.menu-bg{
	z-index: 1;
	width: 0;
	height: 0;
	background: var(--blau);
	transition: 0.3s ease-in;
	opacity: 0;
	margin-left: var(--burgerBarWidth);
}

.change-bg{
	width: var(--menuWidth);
	height: 100vh;
	opacity: 1;
}

.change {
	display: block;
}



/* Navigation Path */

.navPath {
	padding: 20px 0;
}

.navPath span {
	padding-left: 10px;

}

.navPath span:first-of-type {
    padding-left: 0;
	padding-right: 10px;
}


.red {
	color: var(--rot);
	text-decoration: none;
}
.red:hover {
	text-decoration: underline;
}

.blue {
	color: var(--blau);
}



/*----- Footer ---------------------------*/

footer {
	padding: 0 2vw 10px 4vw;
	z-index: 1;
	position: relative;
	height: var(--footerHeight);
	display: flex;
	align-items: flex-end;
}

footer ul {
	list-style: none;
	margin: 0;
	display: flex;
	justify-content: right;
	padding: 0;
}

footer ul li {
	display: inline;
	color: var(--black);
	background-color: initial;
	text-indent: 0;
	margin: 0;
	margin-right: 22px;
}

footer a {
	text-decoration: none;
	font-weight: normal;
	color: var(--blau);
}

@media only screen and (max-width: 900px) {

	#logoIcon {
		width: 250px;
	}
	p {
		max-width: 90%;
	}
	aside {
		display: none !important;
	}
	main {
		margin-right: 4vw !important;
	}
	.home {
		margin-right: 0 !important;
	}
	:root {
		--headerHeight: 100px;
	}
}


@media only screen and (max-width: 450px) {
	main {
		min-height: calc(100vh - 222px);
	}
	#logoIcon {
		width: 180px;
		right: 14px;
		top: 22px;
	}
	#menu-bar {
		height: 50px;
	}
	#menu-text {
		font-size: 1.1rem;
	}
	#nav {
		position: absolute;
		left: 10vw;
	}
	footer ul {
		flex-direction: column;

	}
	.menu-bg {
		margin-left: 0;
	}
	.nav {
		margin-top: 40px;
		margin-left: 14px;
	}
	.hide {
		display: none !important;
	}

}


/*----- Blocks - Additional CSS ---------------------------*/

.largeText, .largeText p {
	color: var(--blau);
	font-size: var(--large);
	font-weight: bold;
	max-width: 900px;
	margin-left: 26px;
	margin-top: 30px;
}

img {
	max-width: 100%;
}

figcaption {
	padding-top: 4px;
}

.highlight {
	color: var(--blau);
	font-size: var(--medium);
	font-weight: 500;
	border-left: solid 20px var(--kupfer);
	padding-left: 20px;
}

.table {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

table {
	border-collapse: collapse;
}


table td {
	padding-right: 10px;
	padding-bottom: 8px;
	vertical-align: top;
}


@media only screen and (max-width: 450px) {

	figure:not(.title-image) {
		max-width: calc(100vw - 2 * 4vw) !important;
	}
	img:not(.lightbox img) {
		max-width: 100% !important;
	}
	tr, td {
		display: block;
	}
	td {
		hyphens: auto;
		overflow-wrap: break-word; /* oder word-wrap: break-word; */
		word-break: normal;
	}
	tr td:first-child {
		font-weight: 500;
		padding-top: 18px;
	}
	h2 {
		padding-bottom: 10px;
	}
	.pdf-download {
		flex-direction: column;
	}
}


.textBlock h1 {
	margin-bottom: 40px;
}

.textBlock h2 {
	margin-top: 40px;
	padding-bottom: 30px;
}

.textBlock h3 {
	margin-top: 20px;
}

.textBlock p {
	padding: 14px 0;
	padding-left: 0;
}

.textBlock ul {
	padding-left: 0;
	list-style-position: outside;
	margin-left: 25px;
	margin-bottom: 25px;
}

.textBlock li {
	text-indent: 0;
}

.textBlock {
	max-width: 800px;
}


.gallery ul {
	list-style: none;
	padding: 0;
	margin-top: 40px;
	max-width: initial;
}

.gallery ul li {
	margin: 0 10px 10px 0;
	max-height: 250px;
	display: inline-block;
	text-indent: 0;
	position: relative;
}

.gallery ul li img {
	max-height: 250px;
	cursor: pointer;
}

.gallery figcaption {
	font-size: var(--small);
	max-width: 180px;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 7px;
	opacity: 0;
	transition: 0.2s ease-in;
}

.gallery li:hover figcaption {
	opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;

  overflow-y: auto;       /* ermöglicht Scrollen */
  -webkit-overflow-scrolling: touch; 
}

.lightbox img {
  max-width: calc(100% - 200px);
  max-height: 80vh;
  padding: 3px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 60px;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.lightbox .prev { left: 40px; }
.lightbox .next { right: 40px; }

@media only screen and (max-width: 450px) {
	.lightbox-nav {
		font-size: 34px;
	}
	.lightbox .prev {
		left: 10px;
	}
	.lightbox .next {
		right: 10px;
	}
	.lightbox img {
		max-width: 80%;
		max-height: 90vh;
	}
}

.lightbox-caption {
	color: white;
	position: absolute;
	bottom: 20px;
	left: 20px;
}



/*----- Animation ---------------------------*/

.animationFadeIn {
	transition: all 1s ease-out;
}

.animation {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0px); opacity: 1; }
}

/*----- Basic Styling  ---------------------------*/
.flex {
	display: flex;
	flex-wrap: wrap;
	gap: 4vw;
	margin-top: 2vw;
}

.flex >* {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 200px;
}

.visible {
	opacity: 1 !important;
}

#toTop {
	all: unset;
	position: fixed;
	transform-origin: center;
	transform: rotate(-90deg);
	bottom: 35px;
	right: 20px;
	font-size: var(--large);
	z-index: 2;
	cursor: pointer;
	opacity: 0;
	transition: 0.4s ease;
}

#toBottom {
	all: unset;
	position: absolute;
	bottom: 18px;
	right: 20px;
	z-index: 3;
	cursor: pointer;
	transition: 0.4s ease;
}

.claim {
	font-size: var(--normal);
	color: var(--blau);
	font-weight: bold;
}


/*----- Form ---------------------------*/

/* div:has(> .product-select) {
	display: flex;
} */

div:has(> input) {
	margin: 0 6px 12px 6px;
}

.product-select {
	margin: 20px 0;
}

.product-select label {
	font-weight: bold;
}

.blocks:has(.product-select) {
	overflow: auto;
	background-color: rgb(239, 239, 239);
	border: solid 2px #a2a2a2;
}

form:has(.product-select) {
	display: flex;
	flex-wrap: wrap;
	min-width: 900px;
}
form:has(.product-select) > **:has(div) {
	display: none;
}

form:has(.product-select) > *:has(.product-active) {
	display: block !important;
	flex: 1 1 0; 
	max-width: 400px;
}

form > div:has(button[type="submit"]) {
  flex: 0 0 100% !important;
}

form > div:has(.refresh-btn) {
  flex: 0 0 100% !important;
}


/*----- Collapsible ---------------------------*/

/* Style the button that is used to open and close the collapsible content */
.collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  margin-top: 4px;
  padding: 4px 4px 4px 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.collapsible .active, .collapsible:hover {
  background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.content-collapsible  {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}


/*---------------------------*/


/* Popup container */
.popup {
  cursor: pointer;
}

.popup .active {
	top: 0;
	-webkit-animation: fadeIn 0.5s;
  	animation: fadeIn 0.5s;
}

body:has(.active) {
	overflow: hidden;
}

.popuptext-wrapper {
	display: flex;
	position: fixed;
	top: -10000px;
	left: 0;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
	z-index: 1;
	
}

.popuptext-container {
	background-color: #555555;
	padding: 10px;
	border-radius: 6px;
	overflow-y: auto;
	width: 80%;
	max-height: 80%;
	border: solid 2px #555555;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  color: #fff;
  padding: 5vw 10vw;
  z-index: 1;
}


/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}