/* Kopf, Menü, Abschlussband, Fuß, Unterseiten */

/* ---------- Kopf ---------- */
.kopf {
	position: fixed;
	top: env(safe-area-inset-top, 0px);
	left: 0;
	right: 0;
	z-index: 50;
	color: #ffffff;
	transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--tl-ease);
}

.kopf__innen {
	display: flex;
	align-items: center;
	height: 90px;
	max-width: var(--tl-breite);
	margin-inline: auto;
	padding-left: max(63px, env(safe-area-inset-left, 0px));
	padding-right: max(var(--tl-rand-r), env(safe-area-inset-right, 0px));
	transition: height 0.35s var(--tl-ease);
}

.kopf .logo {
	margin-top: 14px;
	transform-origin: left center;
	transition: transform 0.35s var(--tl-ease), margin 0.35s var(--tl-ease);
}

.kopf__nav {
	margin-left: auto;
	margin-right: 56px;
}

.kopf__liste {
	display: flex;
	gap: 30px;
}

.kopf__liste a,
.menue__liste a {
	position: relative;
	display: inline-block;
	padding: 12px 0;
	color: #ffffff;
	font-size: 0.78125rem;
	font-weight: 500;
	text-decoration: none;
}

.kopf__liste a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 2px;
	background: var(--tl-blau);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--tl-ease);
}

.kopf__liste a:hover::after,
.kopf__liste a:focus-visible::after,
.kopf__liste a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

.kopf__aktionen {
	display: flex;
	align-items: center;
	gap: 18px;
}

.knopf--kopf {
	gap: 12px;
	min-height: 43px;
	padding: 0 18px 0 22px;
	font-size: 0.875rem;
}

.kopf__menueknopf {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: -9px; /* Striche bündig mit dem Rand, Tippfläche bleibt 48 px */
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.kopf__menueknopf[hidden] {
	display: none;
}

@media (min-width: 75em) {
	.kopf__menueknopf {
		display: none !important;
	}
}

@media (max-width: 74.99em) {
	.hat-menue .kopf__nav {
		display: none;
	}

	/* Ohne Navigation gehören Knopf und Menü an den rechten Rand */
	.hat-menue .kopf__aktionen {
		margin-left: auto;
	}
}

/* Beim Scrollen: fester Kopf mit Fläche, kleineres Logo, beim Runterscrollen ausgeblendet */
.kopf.ist-fest {
	background: rgba(0, 7, 14, 0.9);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.kopf.ist-fest .kopf__innen {
	height: 72px;
}

.kopf.ist-fest .logo {
	margin-top: 0;
	transform: scale(0.74);
}

.kopf.ist-versteckt {
	transform: translateY(-110%);
}

/* ---------- Menü für schmale Bildschirme ---------- */
/* Drei Striche im Kopf, im offenen Menü an derselben Stelle ein Hexagon (template-parts/menue-zeichen.php) */
.menue-zeichen {
	width: 30px;
	height: 30px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.menue-zeichen__linie {
	stroke-width: 1.8;
	transform-box: fill-box;
	transform-origin: center;
	transition: stroke 0.2s ease;
}

.menue-zeichen__wabe {
	opacity: 0;
	stroke: var(--tl-blau-hell);
	stroke-width: 1.6;
	stroke-dasharray: 64;
	stroke-dashoffset: 64;
	transform-box: fill-box;
	transform-origin: center;
	transition: stroke 0.2s ease;
}

.kopf__menueknopf:hover .menue-zeichen__linie {
	stroke: var(--tl-blau-hell);
}

.menue__zu .menue-zeichen__linie {
	opacity: 0;
}

.menue__zu .menue-zeichen__wabe {
	opacity: 1;
	stroke-dashoffset: 0;
}

.menue__zu:hover .menue-zeichen__wabe {
	stroke: #ffffff;
}

/* Der Dialog füllt den Bildschirm durchsichtig: rechts die Fläche, darüber das Hexagon am Ort des Menüknopfs */
.menue {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: transparent;
	color: #ffffff;
}

.menue[open] {
	display: block;
}

.menue__flaeche {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: min(420px, 100%);
	padding: max(20px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 24px 24px;
	overflow-y: auto;
	background: var(--tl-nacht);
}

.menue::backdrop {
	background: rgba(0, 7, 14, 0.65);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.menue__kopf {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding-right: 64px;
}

.menue .logo__bild {
	height: 50px;
}

.menue__zu {
	position: absolute;
	top: var(--knopf-oben, 21px);
	right: var(--knopf-rechts, 11px);
	z-index: 1;
	display: inline-grid;
	place-items: center;
	width: var(--knopf-groesse, 48px);
	height: var(--knopf-groesse, 48px);
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.menue__liste {
	display: grid;
	gap: 2px;
}

.menue__liste a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--tl-linie-dunkel);
	font-size: 1.25rem;
	font-weight: 600;
}

.menue__aktionen {
	display: grid;
	gap: 12px;
	margin-top: auto;
}

/* ---------- Abschlussband ---------- */
.abschluss {
	position: relative;
	overflow: hidden;
	background: var(--tl-band-abschluss);
	color: #ffffff;
}

.abschluss::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.06));
	pointer-events: none;
}

.abschluss .waben {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.abschluss__raster {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	min-height: 135px;
	padding-top: 30px;
	padding-bottom: 14px;
}

.abschluss .ueberzeile--hell {
	color: #a8dcff;
}

.abschluss__titel {
	margin-top: 5px;
	color: #ffffff;
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 32.4px;
}

.abschluss__aktion {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin-right: 47px;
	padding-top: 0;
}

.abschluss .knopf--gross {
	min-width: 318px;
	min-height: 53px;
	font-size: 1.0625rem;
}

.abschluss__unterzeile {
	color: #ffffff;
	font-size: 0.84375rem;
	line-height: 1.4;
}

/* ---------- Fuß ---------- */
.fuss {
	background: var(--tl-nacht-3);
	color: #c9d2dc;
	font-size: 0.84375rem;
}

.fuss__raster {
	display: grid;
	grid-template-columns: 358px 247px 206px 265px 1fr;
	padding-top: 20px;
	padding-bottom: 12px;
	padding-left: max(73px, env(safe-area-inset-left, 0px));
}

.fuss .logo__bild {
	height: 52px;
}

.fuss__text {
	max-width: 301px;
	margin-top: 15px;
	color: #d3dbe4;
	line-height: 18.4px;
}

.fuss__social {
	display: flex;
	gap: 14px;
	margin-top: 12px;
}

.fuss__social a,
.fuss__social-platzhalter {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #e6ecf2;
	transition: color 0.2s ease, transform 0.25s var(--tl-ease);
}

.fuss__social a:hover {
	color: var(--tl-blau);
	transform: translateY(-2px);
}

.fuss__social .icon {
	width: 22px;
	height: 22px;
}

.fuss__social-platzhalter {
	opacity: 0.45;
	cursor: help;
}

.fuss__recht {
	margin-top: 12px;
	color: #aeb9c5;
	font-size: 0.78rem;
}

/* „Datenschutz-Einstellungen“ (Plugin tasklytic-kern): sieht aus wie ein Link, ist ein Knopf */
.fuss__einwilligung {
	min-height: 24px;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: #aeb9c5;
	font: inherit;
	font-size: 0.78rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.fuss__einwilligung:hover,
.fuss__einwilligung:focus-visible {
	color: #ffffff;
}

.fuss__titel {
	margin-top: 6px;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.fuss__liste {
	display: grid;
	gap: 0;
	margin-top: 9px;
}

.fuss__liste a {
	display: inline-block;
	padding: 2.5px 0;
	color: #d3dbe4;
	line-height: 19px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fuss__liste--weit a {
	padding: 2.5px 0;
}

.fuss__liste a:hover,
.fuss__liste a:focus-visible,
.fuss__kontakt a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fuss__kontakt address {
	display: grid;
	gap: 6px;
	margin-top: 9px;
}

.fuss__zeile {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: #e6ecf2;
	font-size: 0.875rem;
	line-height: 18px;
}

.fuss__zeile .icon {
	width: 20px;
	height: 20px;
	color: var(--tl-blau);
}

.fuss__zeile a {
	text-decoration: none;
}

.fuss__kontakt .knopf {
	width: 217px;
	margin-top: 14px;
}
