/*
 * Seitenrahmen: Kopf, Menü, Kontakt-Reiter, Fuß, Karte, einfache Seiten.
 * Werte aus Header 111 / Footer 115 des Elementor-Originals.
 */

/* ---------------------------------------------------------------- Kopf */

/* Menü, Kontaktzeile und Kontakt-Reiter liefen im Original in der Systemschrift (keine Klasse gesetzt). */
.site-head__contact-text,
.site-nav__list a,
.kontakt-tab {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.site-head {
	position: relative;
	z-index: 999;
}

.site-head__bar {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 999;
	flex-direction: column;
	gap: 0;
	background-color: rgba(255, 255, 255, 0.817);
	-webkit-backdrop-filter: blur(17px) saturate(200%);
	backdrop-filter: blur(17px) saturate(200%);
}

.admin-bar .site-head__bar {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-head__top {
	justify-content: center;
	border-bottom: 1px solid var(--Prime);
	background-color: var(--BG_02);
}

.site-head__top-inner {
	width: var(--Breite);
	gap: var(--normal);
}

.site-head__notice-wrap {
	width: var(--Breite);
	margin-block: 4px;
}

.site-head__notice {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	width: auto;
	gap: 10px;
}

.site-head__shortcode {
	margin: 1px 20px 3px;
}

.site-head__contact {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	width: auto;
}

.site-head__icon {
	flex: 0 0 auto;
	width: 13px;
	height: auto;
}

.site-head__icon--mail {
	width: 14px;
}

.site-head__contact-text {
	flex: 1 0 auto;
	align-self: center;
	width: auto;
	color: var(--Akzent_02);
}

.site-head__main {
	align-self: center;
	justify-content: space-between;
	align-items: center;
	width: var(--Breite);
}

.site-head__logo-link {
	display: flex;
}

.site-head__logo {
	width: auto;
	height: 100px;
	object-fit: contain;
	transition: height 0.3s ease;
}

/* Ab dem ersten Scroll: Logo kleiner → ganze Menüleiste wird schmaler (Leiste ist fixiert, Inhalt springt nicht). */
.site-head.is-scrolled .site-head__logo {
	height: 60px;
}

@media (prefers-reduced-motion: reduce) {
	.site-head__logo {
		transition: none;
	}
}

.site-head__line {
	height: 2px;
	background-color: var(--Prime1);
}

@media (max-width: 767px) {
	.site-head__contact-text {
		display: none;
	}
}

/* ---------------------------------------------------------------- Menü */

.site-nav {
	position: relative;
	display: flex;
	align-items: center;
}

.site-nav .pencil-managed-region {
	display: contents;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list > li {
	display: flex;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding: 13px 0;
	margin-inline: 12.5px;
	color: rgba(98, 168, 175, 0.74);
	font-weight: 500;
	line-height: 20px;
	transition: color 0.3s;
}

.site-nav__list > li:first-child > a {
	margin-inline-start: 0;
}

.site-nav__list > li:last-child > a {
	margin-inline-end: 0;
}

/* Unterstrich wächst aus der Mitte (Elementor „underline / grow“) */
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 0;
	height: 3px;
	background-color: var(--Prime1);
	opacity: 0;
	transition: left 0.3s, right 0.3s, opacity 0.3s;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list .current-menu-item > a {
	color: var(--ga_petrol_dunkel);
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list .current-menu-item > a::after {
	left: 0;
	right: 0;
	opacity: 1;
}

.site-nav__list .current-menu-item > a::after {
	background-color: var(--ga_tinte);
}

.site-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.05);
	color: #33373d;
	cursor: pointer;
}

.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s, opacity 0.25s;
}

.site-nav__bars {
	position: relative;
}

.site-nav__bars::before,
.site-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__bars::before { top: -6px; }
.site-nav__bars::after { top: 6px; }

.site-nav.is-open .site-nav__bars { background: transparent; }
.site-nav.is-open .site-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .site-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	/* Wie Elementor: Menü-Widget ca. 134 px breit, rechtsbündig, Schalter darin mittig. */
	.site-nav {
		flex: 0 0 auto;
		width: 134px;
		justify-content: center;
	}

	.site-nav__toggle {
		display: inline-flex;
	}

	.site-nav__list {
		position: fixed;
		inset: var(--sbn-nav-top, 141px) 0 auto 0;
		flex-direction: column;
		flex-wrap: nowrap;
		background: #fff;
		box-shadow: 0 12px 24px rgba(30, 42, 50, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.site-nav.is-open .site-nav__list {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav__list a,
	.site-nav__list > li:first-child > a,
	.site-nav__list > li:last-child > a {
		width: 100%;
		margin: 0;
		padding: 15px 20px;
		color: #33373d;
	}

	.site-nav__list > li {
		display: block;
	}

	.site-nav__list a::after {
		display: none;
	}

	.site-nav__list a:hover,
	.site-nav__list a:focus-visible,
	.site-nav__list .current-menu-item > a {
		background: var(--Prime1);
		color: #fff;
	}
}

/* ---------------------------------------------------------------- Kontakt-Reiter */

.kontakt-tab {
	position: fixed;
	inset-block-start: 20%;
	inset-inline-end: 0;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80px;
	padding: 10px;
	border: 1px solid var(--ga_petrol);
	border-inline-end-width: 0;
	background-color: #fff;
	color: var(--e-global-color-v4-prime, var(--ga_petrol));
	font-size: 19px;
	line-height: 19px;
	text-align: center;
}

.kontakt-tab::before {
	content: "";
	display: block;
	width: 17px;
	height: 17px;
	margin: 1px 0 6px;
	background-color: currentColor;
	-webkit-mask: url("../svg/kalender.svg") center / contain no-repeat;
	mask: url("../svg/kalender.svg") center / contain no-repeat;
}

@media (max-width: 1366px) {
	.kontakt-tab {
		inset-block-start: 23%;
	}
}

@media (max-width: 767px) {
	.kontakt-tab {
		inset-block-start: calc(100vh - 120px);
		z-index: 99;
	}
}

/* ---------------------------------------------------------------- Fuß */

.site-foot {
	justify-content: center;
	background-color: var(--footer);
}

.site-foot__inner {
	flex-direction: column;
	gap: var(--normal);
	width: var(--Breite);
}

.site-foot__top {
	gap: var(--large);
}

.site-foot__brand {
	width: 25%;
}

.site-foot__logo-link {
	display: inline-block;
}

.site-foot__logo {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
}

.site-foot__cols {
	flex: 1 1 auto;
	justify-content: space-between;
}

.site-foot__col {
	flex-direction: column;
	width: auto;
}

.site-foot__title,
.site-foot__text,
.site-foot__copy {
	color: var(--Text2);
	text-transform: uppercase;
}

.site-foot__title {
	display: flex;
}

.site-foot__text {
	display: block;
	font-size: 14px;
	line-height: 1.5;
}

.site-foot__text a:hover,
.site-foot__text a:focus-visible {
	color: var(--ga_eis);
}

.site-foot__line {
	width: 100%;
	height: 0;
	border: 0;
	border-top: 1px solid #54595F;
}

.site-foot__bottom {
	flex-direction: row;
	justify-content: flex-end;
}

.site-foot__copy {
	width: auto;
	font-size: 11px;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.site-foot__brand { width: 50%; }
	.site-foot__top { flex-wrap: wrap; gap: var(--normal); }
	.site-foot__col { flex-wrap: wrap; align-content: space-between; }
}

@media (max-width: 767px) {
	.site-foot__brand { width: 100%; }
	.site-foot__cols { flex-direction: column; gap: var(--normal); }
	.site-foot__top { flex-direction: column; gap: var(--normal); }
}

/* ---------------------------------------------------------------- Karte (2 Klicks) */

.sbn-map {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
}

.sbn-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sbn-map__consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	padding: 24px;
	background-color: var(--ga_eis_hell);
	background-image:
		repeating-linear-gradient(0deg, rgba(98, 168, 175, 0.12) 0 1px, transparent 1px 34px),
		repeating-linear-gradient(90deg, rgba(98, 168, 175, 0.12) 0 1px, transparent 1px 34px),
		radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0 90px, transparent 160px);
	color: var(--ga_tinte);
	text-align: center;
}

.sbn-map__pin {
	width: 28px;
	height: 28px;
	color: var(--ga_petrol_dunkel);
}

.sbn-map__address {
	font-weight: 600;
}

.sbn-map__hint {
	max-width: 36em;
	color: var(--ga_grau);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.sbn-map__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--gs_radius_pill);
	background-color: var(--ga_petrol_dunkel);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.sbn-map__button:hover,
.sbn-map__button:focus-visible {
	background-color: var(--ga_tinte);
}

/* ---------------------------------------------------------------- Einfache Seiten (page.php, index.php, 404) */

.sbn-plain {
	flex-direction: column;
	align-items: center;
	min-height: 60vh;
}

.sbn-plain__wrap {
	width: 100%;
}

.sbn-plain__content > * + * {
	margin-top: 1em;
}

.sbn-plain__item + .sbn-plain__item {
	margin-top: 40px;
}
