/* Added on the owner's instruction (2026-09-29): Impressum/Datenschutz popups and a cookie notice.
   Not part of the original site. Colours and type follow the BeTheme values measured on the original:
   text #62666e, headings #2b2b2b, brand blue #3b559a, Tahoma 15px/26px. */

/* ------------------------------------------------------------------ legal popups */

html.legal-popup-open,
html.legal-popup-open body {
	overflow: hidden;
}

.legal-popup[hidden] {
	display: none;
}

.legal-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	box-sizing: border-box;
}

.legal-popup__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(17, 27, 51, 0.55);
	animation: legal-popup-fade 0.2s ease-out;
}

.legal-popup__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	max-height: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(17, 27, 51, 0.35);
	outline: none;
	animation: legal-popup-rise 0.25s ease-out;
}

.legal-popup__header {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 24px 20px 40px;
	border-bottom: 1px solid #e8ebf2;
}

.legal-popup__header::after {
	content: "";
	position: absolute;
	left: 40px;
	bottom: -1px;
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: #3b559a;
}

.legal-popup .legal-popup__title {
	margin: 0;
	color: #2b2b2b;
	font-family: "Tahoma", Helvetica, Arial, sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 34px;
	letter-spacing: 0;
}

.legal-popup .legal-popup__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f8;
	color: #3b559a;
	font-family: Arial, sans-serif;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.legal-popup .legal-popup__close:hover,
.legal-popup .legal-popup__close:focus-visible {
	background: #3b559a;
	color: #fff;
}

.legal-popup__content {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 28px 40px 36px;
	color: #62666e;
	font-family: "Tahoma", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 26px;
	text-align: left;
	overflow-wrap: break-word;
}

.legal-popup__block + .legal-popup__block {
	margin-top: 22px;
}

.legal-popup__content p {
	margin: 0 0 14px;
}

.legal-popup__content p:last-child {
	margin-bottom: 0;
}

.legal-popup__content h4 {
	margin: 0 0 8px;
	color: #3b559a;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
}

.legal-popup__content a {
	color: #3b559a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@keyframes legal-popup-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes legal-popup-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.legal-popup__backdrop,
	.legal-popup__dialog {
		animation: none;
	}
}

/* ------------------------------------------------------------------ cookie notice */

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.cookie-notice__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
	max-width: 1220px;
	margin: 0 auto;
	padding: 18px 20px;
}

.cookie-notice__text {
	flex: 1 1 auto;
	margin: 0;
	color: #62666e;
	font-family: "Tahoma", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 26px;
}

.cookie-notice__text a {
	color: #3b559a;
}

.cookie-notice__button {
	flex: 0 0 auto;
	margin: 0;
}

/* ------------------------------------------------------------------ phones */

@media only screen and (max-width: 767px) {
	.cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px;
	}

	.cookie-notice__text {
		font-size: 14px;
		line-height: 22px;
	}

	.legal-popup {
		padding: 0;
	}

	.legal-popup__dialog {
		height: 100%;
		max-width: none;
		border-radius: 0;
	}

	.legal-popup__header {
		padding: 16px 16px 14px 20px;
	}

	.legal-popup__header::after {
		left: 20px;
	}

	.legal-popup .legal-popup__title {
		font-size: 22px;
		line-height: 28px;
	}

	.legal-popup__content {
		padding: 20px 20px 28px;
		font-size: 14px;
		line-height: 24px;
	}
}

/* SMTP form: <button class="customForm"> replaces CF7's <input type="submit">. BeTheme sizes the input,
   not the button, so match the original input: margin 0 7px 0 0 and the surrounding (breakpoint-dependent) font size. */
.wpcf7-form .customForm.wpcf7-submit {
	margin: 0 7px 0 0;
	font-size: inherit;
}
