/* --- PBS Styling --- */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--white: #fff;
	--offwhite: #fcfcfc;
	--grey: #999;
	--lightgrey: #e6e6e6;
	--black: #2f372f;
	--gold: #dbc078;
	--green: #25593e;
	--shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

::selection {
    background-color: var(--gold);
}

::-webkit-selection {
    background-color: var(--gold);
}

@font-face {
	font-family: 'Poppins';
	font-weight: 200;
	src: url('fonts/Poppins-ExtraLight.ttf') format('truetype');
}

@font-face {
	font-family: 'Poppins';
	font-weight: 300;
	src: url('fonts/Poppins-Light.ttf') format('truetype');
}
@font-face {
	font-family: 'Poppins';
	font-weight: 400;
	src: url('fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Poppins';
	font-weight: 500;
	src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
	font-family: 'Poppins';
	font-weight: 600;
	src: url('fonts/Poppins-Bold.ttf') format('truetype');
}
@font-face {
	font-family: 'Poppins';
	font-style: italic;
	src: url('fonts/Poppins-Italic.ttf') format('truetype');
}

html {scroll-behavior: smooth;}

body {font-family: 'Poppins', sans-serif;}

h1 {
	font-weight: 200;
	font-size: 36px;
	letter-spacing: 1px;
	color: var(--black);
}

h2 {
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 1px;
	color: var(--black);
}

h3 {
	font-weight: 600;
	font-size: 14px;
	color: var(--black);
}

p {
	font-weight: 400;
	font-size: 14px;
	color: var(--black);
}
.extralight {font-weight: 200;}
.light {font-weight: 300;}
.semi {font-weight: 500;}
.bold {font-weight: 600;}
.italic {font-style: italic;}
.underline {text-decoration: underline;}
.small {font-size: 12px;}

.name {
	font-weight: 300;
	letter-spacing: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nobr {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.txt-wrap {
	-moz-hyphens: auto;
	-o-hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto; 
}

a {
	font-weight: 500;
	font-size: 14px;
	color: var(--black);
	text-decoration: none;
	cursor: pointer;
}
a:hover {color: var(--gold);}

.button {
	width: 100%;
	padding: 10px;
	height: auto;
	min-height: 48px;
	border: 1px solid var(--lightgrey);
	font-family: 'Poppins';
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow);
	background-color: var(--white);
	color: var(--black);
	text-align: center;
}

.button:hover {
	color: var(--black);
}

.button::before, .button::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border: 1px solid var(--grey);
	top: 0;
	left: 0;
	box-sizing: border-box;
	pointer-events: none;
	transition: transform 0.5s ease;
}

.button::before {
	transform: translateX(-100%) translateY(-100%);
}

.button::after {
	transform: translateX(100%) translateY(100%);
}

.button:hover::before, .button:hover::after {
	transform: translateX(0) translateY(0);
}

hr {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--grey);
	background: var(--grey);
}

/* --- Tooltips --- */

.circle {
	padding: 0 6px;
	margin: 0 3px;
	border: 1px solid var(--grey);
	border-radius: 50%;
	background-color: var(--grey);
	color: var(--white);
	cursor: help;
	position: relative;
}

.circle::before, .circle::after {
	--scale: 0;
	position: absolute;
	top: -5px;
	left: 50%;
	transform: translateX(-50%) translateY(-100%) scale(var(--scale));
	transition: 150ms transform;
	transform-origin: bottom center;
}

.circle::before {
	content: attr(data-tooltip);
	width: auto;
	min-width: 200px;
	height: auto;
	padding: 10px;
	background: var(--grey);
	color: var(--white);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle:hover::before, .circle:hover::after {
	--scale: 1;
}

/* --- Loading Screen --- */

#loading {
	width: 100%;
	height: 100vh;
	position: fixed;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(225deg, #307351 0%, #214F38 66.67%);
	opacity: 1;
	animation: fadeOut 1.2s forwards 1.2s;
}

#loading img {
	width: 100%;
	max-width: 850px;
}

@keyframes fadeOut {
	to {
		opacity: 0;
		z-index: -5;
		display: none;
	}
}

/* --- Header --- */

header {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: var(--white);
	position: fixed;
	top: 0;
	z-index: 9;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

header.visible {
	opacity: 1;
	visibility: visible;
}

.header-content {
	width: 100%;
	max-width: 900px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
}

.header-content h1 {
	width: 100%;
	text-align: center;
}

.logo-img {
	max-height: 60px;
	width: auto;
}

.contact-img {
	display: block;
	max-height: 40px;
	width: auto;
	transition: transform 0.3s ease;
}
.contact-img:hover {transform: scale(1.15);}

.menu-img, .close-img {
	max-height: 50px;
	width: auto;
	display: none;
}
.menu-toggle {display: block;}
.menu-toggle.active .menu-img {display: none;}
.menu-toggle.active .close-img {display: block;}

/* --- Mobile Menü --- */

#mobileMenu {
	width: 100%;
	max-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	gap: 30px;
	padding: 0 20px;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
	max-height: 360px;
	padding: 30px 20px;
}

/* --- To Top --- */

#floorplan {
	position: fixed;
	bottom: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 0 40px 30px 0;
}

#floorplan a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	background-color: var(--white);
	box-shadow: var(--shadow);
	padding: 10px;
	transition: transform 0.3s ease;
}

#floorplan a:hover {
	color: var(--black);
	transform: scale(1.15);
}

#floorplan.visible {
	opacity: 1;
	visibility: visible;
}

#floorplan img {
	width: 50px;
	height: auto;
}

/* --- Menü --- */

#main-menu {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--offwhite);
	margin: 0;
	overflow: hidden;
}

.menu-container {
	width: 100%;
	max-width: 1200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu-content {
	position: absolute;
	max-width: 1200px;
	max-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: var(--white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	padding: 20px;
	z-index: 2;
}

.menu-bg {
	position: relative;
	width: 660px;
	height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: var(--offwhite);
	padding: 20px;
	z-index: 1;
}

.menu-bg::before,
.menu-bg::after {
	content: "";
	height: 99%;
	position: absolute;
	width: 100%;
	z-index: -1;
}

.menu-bg::before {
	background: #fafafa;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
	left: -5px;
	top: 4px;
	transform: rotate(-2.5deg);
}

.menu-bg::after {
	background: #f6f6f6;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
	right: -3px;
	top: 1px;
	transform: rotate(1.4deg);
}

.menu-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	z-index: 3;
}

.menu-header img {
	max-height: 80px;
	width: auto;
}

.menu-info {
	height: 80px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-direction: column;
}

.language-selector {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 4px 0;
	border: 1px solid var(--grey);
}

.language-selector a {
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.3s;
}

.language-selector .active {
	opacity: 1;
	color: var(--black);
	cursor: default;
}

.language-selector a:hover,
.language-selector .active {
	opacity: 1;
	color: var(--black);
}

.menu-outline {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 15px;
	position: relative;
}

.menu-outline::before,
.menu-outline::after {
	content: "";
	position: absolute;
	background-color: var(--grey);
}

.menu-outline::before {
	width: 1px;
	height: 0;
	left: 0;
	top: 16px;
	animation: growHeight 2s forwards;
	animation-delay: 2.5s;
}

.menu-outline::after {
	width: 0;
	height: 1px;
	left: 16px;
	bottom: 0;
	animation: growWidth 2s forwards;
	animation-delay: 4.5s;
}

.measurement-vertical {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: left center;
	color: var(--grey);
	background-color: var(--white);
	padding: 0 5px;
	font-size: 14px;
	opacity: 0;
	animation: fadeIn 0.1s forwards;
	animation-delay: 2.9s;
}

.measurement-horizontal {
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--grey);
	background-color: var(--white);
	z-index: 2;
	padding: 0 5px;
	font-size: 14px;
	opacity: 0;
	animation: fadeIn 0.1s forwards;
	animation-delay: 4.9s;
}

@keyframes growHeight {
	from {height: 0%;}
	to {height: calc(100% - 32px);}
}

@keyframes growWidth {
	from {width: 0;}
	to {width: calc(100% - 32px);}
}

@keyframes fadeIn {
	from {opacity: 0;}
	to {opacity: 1;}
}

.menu-section {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
}

.menu-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.room-image {
	opacity: 0.8;
}

.image-wrapper {
	position: relative;
	margin-bottom: -7px;
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.image-wrapper:hover .image-overlay {
	opacity: 1;
}

/* --- über uns --- */

#about {
	width: 100%;
	height: auto;
	padding-top: 80px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background-color: var(--white);
}

.about-content {
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
}

.about-content h2 {
	width: 100%;
	text-align: center;
}

.slogan {
	width: 100%;
	text-align: center;
}

.benefits {
	width: 100%;
	max-width: 900px;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.slider-container {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.background-image {
	position: absolute;
	width: 100%;
	height: 100%;
	background: url('img/office.jpg') center -20px/cover;
	z-index: 1;
}

.slides-wrapper {
	display: flex;
	width: 500%;
	height: 100%;
	position: relative;
	z-index: 2;
	transition: transform 0.6s ease-in-out;
}

.slide {
	width: 20%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	flex-shrink: 0;
}

.slide p {
	font-size: 18px;
	color: var(--black);
	padding: 30px 20px;
	background-color: rgba(255,255,255,0.9);
	box-shadow: var(--shadow);
	width: 60%;
	height: auto;
	text-align: center;
}

.dots {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3;
	background: var(--white);
}

.dot {
	width: 14px;
	height: 14px;
	margin: 0 14px;
	background-color: var(--grey);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s;
}

.dot.active {
	background-color: var(--gold);
}

.benefits-details {
    width: 100%;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0;
}

.accordion-content.open {
    max-height: 2000px;
}

.button-container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px 30px 10px;
} 

button.toggle-button {
	width: 100%;
	padding: 10px;
	height: auto;
	min-height: 48px;
	border: 1px solid var(--lightgrey);
	font-family: 'Poppins';
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow);
	background-color: var(--white);
	color: var(--black);
	margin-bottom: 30px;
}

button.toggle-button:hover {
	color: var(--black);
}

button.toggle-button::before, button.toggle-button::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border: 1px solid var(--grey);
	top: 0;
	left: 0;
	box-sizing: border-box;
	pointer-events: none;
	transition: transform 0.5s ease;
}

button.toggle-button::before {
	transform: translateX(-100%) translateY(-100%);
}

button.toggle-button::after {
	transform: translateX(100%) translateY(100%);
}

button.toggle-button:hover::before, button.toggle-button:hover::after {
	transform: translateX(0) translateY(0);
}

.detail-point {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    background-color: var(--grey);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.accordion-content p:hover .detail-point {
    background-color: var(--gold);
}

hr {
    margin: 30px 0;
}

/* --- Leistungen --- */

#services {
	width: 100%;
	height: auto;
	padding-top: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--white);
	background-image: url("img/bg/bg.png");
	background-position: center;
	background-repeat: repeat;
}

.services-content {
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding-bottom: 80px;
}

.services-container {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.services-container:nth-child(even) {flex-wrap: wrap;}
.services-container:nth-child(odd) {flex-wrap: wrap-reverse;}

.services-header {
	width: 100%;
	max-width: 900px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	background-color: var(--white);
}

.services-header img {
	width: 40px;
	height: 40px;
	margin-left: 40px;
}

.services-text {
	width: 100%;
	max-width: 450px;
	height: 280px;
	padding: 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	background-color: #fff;
}

.last-services-text {
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 40px 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	background-color: #fff;
}

.services-img {
	width: 100%;
	max-width: 450px;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--grey);
}

.services-img img {
	width: 100%;
	height: 280px;
	transition: 0.5s ease;
}

.services-container:hover .services-img img {
	transform: scale(1.1);
}

/* --- Preise --- */

#prices {
	width: 100%;
	height: auto;
	padding-top: 80px;
	padding-bottom: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--white);
}

.prices-content {
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
}

fieldset {
	width: 100%;
	height: auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-direction: row;
	gap: 20px;
	margin: 20px 0;
	padding: 20px;
	border: 1px solid var(--grey);
}

legend {
	padding: 0 5px;
	font-weight: 400;
	font-size: 18px;
	letter-spacing: 1px;
	color: var(--black);
}

.prices-calc-left {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-direction: column;
	gap: 20px;
}

.prices-calc-right {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	gap: 20px;
}

label {
	font-size: 14px;
}

input[type="number"] {
	width: 100px;
	padding: 10px;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	font-family: 'Poppins';
	font-size: 14px;
	border: 1px solid var(--grey);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="number"]:focus {
	border-color: var(--gold);
	outline: none;
}

input[type="checkbox"], input[type="radio"] {
	width: 24px;
	height: 24px;
	cursor: pointer;
	appearance: none;
	border: 1px solid var(--grey);
	transition: border-color 0.3s, background-color 0.3s;
	position: relative;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
	background-color: var(--black);
}

input[type="checkbox"]:checked::after, input[type="radio"]:checked::after  {
	content: '✖';
	color: var(--white);
	font-size: 18px;
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
	outline: none; 
	border-color: var(--green);
}

.checkbox-group {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	gap: 10px;
}

.checkbox-group label {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: row;
	gap: 10px;
}

.result {
	font-size: 36px;
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: var(--green);
	border: 1px solid var(--black);
}

.error {
	font-size: 14px;
	width: 100%;
	height: auto;
	min-height: 30px;
	color: red;
	margin-bottom: 20px;
}

/* --- Partner --- */

#partners {
	width: 100%;
	height: auto;
	padding: 80px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--red);
	background-image: url("img/bg/bg.png");
	background-position: center;
	background-repeat: repeat;
}

.partners-content {
	width: 100%;
	max-width: 900px;
	height: auto;
	min-height: 300px;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	background-color: rgba(0,0,0,0.25);
}

.partner-left {
	width: 100%;
	height: 100%;
	min-height: 300px;
	background: var(--white);
	padding: 20px;
	display: flex;
	align-items: flex-start;
	justify-content: space-around;
	flex-direction: column;
}

.partner-left h2 {
	width: 100%;
	text-align: center;
}

.partner-right {
	width: 100%;
	height: 100%;
	min-height: 300px;
	background-image: url('img/npb.png');
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-color: var(--white);
}

/* --- Footer --- */

footer {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--black);
	z-index: 2;
}

footer p, footer a {
	color: var(--white);
}

.footer-content {
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
}

/* --- Modals --- */

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal.show {
	display: block;
	opacity: 1;
}

.modal-content {
	position: relative;
	margin: 40px auto;
	padding: 40px;
	width: 90%;
	max-width: 700px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	gap: 20px;
	background: var(--white);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
	transform: scale(0.9);
}
.modal.show .modal-content {transform: scale(1);}

.close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 36px;
	cursor: pointer;
	opacity: 0.5;
}
.close:hover {opacity: 1;}

.career-img {
	width: 100%;
	height: auto;
}

.contact-box {
    width: 100%;
    height: auto; 
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.contact-left, .contact-link {
    flex: 1;
    max-width: 50%;
}

.contact-left {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.contact-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.contact-right {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-right img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.contact-right:hover {
    opacity: 0.8;
}

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    color: var(--black);
	border: 1px solid var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-right:hover .hover-text {
    opacity: 1;
}

#kontakt .button {
	width: 100%;
	max-width: 260px;
}

#kontakt .popup {
	visibility: hidden;
	background-color: var(--green);
	color: white;
	text-align: center;
	padding: 20px 0;
	position: absolute;
	top: 0;
	z-index: 1001;
}

#kontakt .popup.show {
	visibility: visible;
	animation: popupfade 3s ease-out;
}

@keyframes popupfade {
	0% {opacity: 1;}
	75% {opacity: 1;}
	100% {opacity: 0;}
}

.fon {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	gap: 10px;
}

.greetings {
	width: 100%;
	text-align: center;
}

form {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}

.input {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
}

label {
	color: var(--black);
}

input[type="text"], input[type="email"], textarea {
	width: 100%;
	padding: 10px;
	font-family: 'Poppins';
	font-size: 14px;
	border: 1px solid var(--grey);
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
	border-color: var(--gold);
	outline: none;
}

textarea {
	resize: vertical;
}

.honey-pot {
	display: none;
}

.captcha-wrapper, .privacy-wrapper {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: row;
	gap: 10px;
}

.privacy-wrapper {
	margin-bottom: 20px;
}

.captcha-wrapper input {
	width: 60px;
	text-align: center;
	font-weight: 600;
}

#captchaQuestion {
	font-weight: 600;
}

.privacy-wrapper input[type="checkbox"] {
	width: 24px;
	height: 24px;
	cursor: pointer;
	appearance: none;
	border: 1px solid var(--grey);
	transition: border-color 0.3s, background-color 0.3s;
	position: relative;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.privacy-wrapper input[type="checkbox"]:checked {
	background-color: var(--black);
}

.privacy-wrapper input[type="checkbox"]:checked::after {
	content: '✔';
	color: var(--white);
	font-size: 18px;
}

.privacy-wrapper input[type="checkbox"]:focus {
	outline: none; 
	border-color: var(--green);
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	font-size: 16px;
	z-index: 2000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: opacity 0.3s ease;
	opacity: 1;
}

.popup.success {
	background-color: var(--green);
	color: white;
}

.popup.error {
	background-color: red;
	color: white;
}

#datenschutz {
	-moz-hyphens: auto;
	-o-hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto; 
}

/* --- Noscript --- */

noscript {
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
}

.noscript-content {
	background: var(--white);
	padding: 40px;
	text-align: center;
}

noscript h2 {
	color: red;
	margin-bottom: 20px;
}

noscript p {
	margin-bottom: 20px;
}

noscript a {
	color: blue;
	text-decoration: none;
}

noscript a:hover {
	color: blue;
	text-decoration: underline;
}

/* --- Media Queries --- */

@media (max-width: 900px) {	
	.services-header {
		width: 100%;
		max-width: 450px;
		justify-content: left;
		padding-right: 20px;
	}
	.services-header img {
		margin-left: 20px;
	}
	.services-text {height: auto;}
	.last-services-text {
		margin-top: 80px;
		max-width: 450px; 
		height: auto;
	}
	.services-img img {height: auto;}
}

@media (max-width: 720px), (max-height: 640px) {
	#main-menu, #floorplan {display: none;}	
	header {opacity: 1;visibility: visible;}
	.header-content {padding: 0 20px;}
	#about,
	#services,
	#prices {padding-top: 100px;}
	.about-content, 
	.service-content, 
	.prices-content, 
	.partner-content, 
	.footer-content	{padding: 20px;}
	.header-content h1 {font-size: 24px;}
	.contact-img {display: none;}
	.menu-img {display: block;max-height: 30px;}
	.close-img {max-height: 30px;}
	.modal-content{padding: 20px;margin: 20px auto;max-height: calc(100vh - 40px);}
	.close {top: 0;}
	.circle {display: none;}
	.partners-content {flex-direction: column;}
	.partner-right {min-height: 120px;}
	fieldset {flex-direction: column;}
    .contact-box {flex-direction: column-reverse;gap: 30px;}
    .contact-left, .contact-link {max-width: 100%;}
}

@media (max-width: 480px) {
	.header-content {gap: 10px;padding: 0 10px;}
	.header-content h1 {font-size: 18px;}
	h2 {font-size: 16px;}
	a, p, h3, form, input[type="text"], input[type="email"], textarea, label, #impressum a, #datenschutz a, .button {font-size: 12px;}
	.slide p {font-size: 14px;width: 80%;}
	.result {font-size: 24px;}
}

@media (max-width: 380px) {
	.header-content h1 {font-size: 16px;}
}