/* ==========================================================================
   E-Service Ueckert
   Inhalt: 1 Schriften · 2 Grundlagen · 3 Bausteine · 4 Seitenkopf · 5 Startseite
           6 Seitenfuß · 7 Unterseiten · 8 Bewegung reduzieren
   ========================================================================== */

/* 1 Schriften – lokal eingebunden, keine Verbindung zu Google
   ========================================================================== */

@font-face {
	font-family: "Sofia Sans";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Sofia Sans";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Sofia Sans Condensed";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-condensed-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Sofia Sans Condensed";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-condensed-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Sofia Sans Extra Condensed";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Sofia Sans Extra Condensed";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	src: url("../fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2 Grundlagen
   ========================================================================== */

:root {
	/* Farben: Schwarz und Signalrot aus dem Logo, dazu Weiß und kühle Grautöne. */
	--black: #000;
	--coal: #111212;
	--coal-line: #2b2c2d;
	--red: #e63323;
	--white: #fff;
	--mist: #eceeef;
	--line: #d3d6d8;
	--steel: #5d6266;
	--on-dark: #c6c9cc;

	--font-body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
	--font-cond: "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
	--font-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;

	--gutter: clamp(20px, 5vw, 64px);
	--max: 1320px;
	--section: clamp(72px, 10vw, 152px);
	--header-h: 68px;
	--radius: 4px;
	--ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (min-width: 900px) {
	:root {
		--header-h: 84px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
address,
blockquote {
	margin: 0;
}

address {
	font-style: normal;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

::selection {
	background: var(--red);
	color: var(--white);
}

[hidden] {
	display: none !important;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 200;
	padding: 0.75rem 1rem;
	background: var(--black);
	color: var(--white);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* 3 Bausteine
   ========================================================================== */

/* Überschriften: eng laufende Versalien, angelehnt an technische Beschilderung. */
.display {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.75rem, 1.55rem + 5.2vw, 5.75rem);
	line-height: 0.92;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

.display--medium {
	font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4.25rem);
	line-height: 0.95;
}

.lead {
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
	font-weight: 600;
	line-height: 1.35;
}

.section-head {
	margin-bottom: clamp(32px, 5vw, 64px);
}

.section-head--split {
	display: grid;
	gap: 20px 48px;
}

.section-head__side {
	display: grid;
	gap: 16px;
	justify-items: start;
	max-width: 46ch;
}

@media (min-width: 900px) {
	.section-head--split {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
		align-items: end;
	}
}

/* Schaltfläche: Der rote Punkt wandert beim Darüberfahren von links nach rechts –
   wie der Punkt auf der Schiene im Logo. */
.btn {
	--btn-bg: var(--black);
	--btn-fg: var(--white);
	--btn-dot: var(--red);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.8rem 2.75rem;
	border: 2px solid var(--btn-bg);
	border-radius: 2px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1.15rem;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--btn-dot);
	transition: left 0.45s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
	left: calc(100% - 1.15rem - 10px);
}

.btn--small {
	min-height: 44px;
	padding-block: 0.5rem;
	font-size: 0.95rem;
}

.btn--large {
	min-height: 62px;
	padding: 1rem 3.25rem;
	font-size: 1.125rem;
}

.btn--large::before {
	left: 1.4rem;
	width: 12px;
	height: 12px;
	margin-top: -6px;
}

.btn--large:hover::before,
.btn--large:focus-visible::before {
	left: calc(100% - 1.4rem - 12px);
}

.btn--line {
	--btn-fg: var(--black);
	background: transparent;
}

.btn--line:hover {
	background: var(--black);
	color: var(--white);
}

.btn--light {
	--btn-bg: var(--white);
	--btn-fg: var(--black);
}

.btn--red {
	--btn-bg: var(--red);
	--btn-fg: var(--white);
	--btn-dot: var(--white);
}

.btn--red:hover {
	--btn-bg: var(--white);
	--btn-fg: var(--black);
	--btn-dot: var(--red);
}

.text-link {
	display: inline-block;
	padding-bottom: 2px;
	font-weight: 700;
	text-decoration: none;
	background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.text-link:hover {
	background-size: 0 2px;
	background-position: right bottom;
}

.round-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--black);
	border-radius: 50%;
	background: transparent;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.round-btn:hover:not(:disabled) {
	background: var(--black);
	color: var(--white);
}

.round-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

/* 4 Seitenkopf
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

.logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.logo__img {
	width: auto;
	height: 34px;
}

.logo__text {
	font-family: var(--font-cond);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.logo__text span {
	color: var(--red);
	font-weight: 500;
}

@media (min-width: 900px) {
	.logo__img {
		height: 46px;
	}
}

.nav {
	display: none;
	margin-left: auto;
}

.nav__list {
	display: flex;
	gap: clamp(14px, 1.7vw, 30px);
	padding: 0;
	list-style: none;
}

.nav__list > li {
	position: relative;
}

.nav__list a {
	display: block;
	padding: 0.5rem 0;
	font-size: 1rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
	background: linear-gradient(var(--red), var(--red)) left calc(100% - 2px) / 0 2px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a {
	background-size: 100% 2px;
}

.nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	display: grid;
	min-width: 220px;
	padding: 0.5rem 1rem;
	list-style: none;
	background: var(--white);
	border-top: 2px solid var(--black);
	box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.site-header__cta {
	display: none;
}

@media (min-width: 520px) {
	.site-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 1180px) {
	.nav {
		display: block;
	}

	.site-header__actions {
		margin-left: clamp(8px, 1.5vw, 28px);
	}

	.burger {
		display: none !important;
	}
}

/* Menüknopf: zwei Balken wie im Logo, die sich zum Kreuz schließen. */
.burger {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
}

.burger__box {
	position: relative;
	width: 28px;
	height: 14px;
}

.burger__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--black);
	transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger__box span:first-child {
	top: 0;
}

.burger__box span:last-child {
	top: 11px;
}

.burger[aria-expanded="true"] .burger__box span:first-child {
	top: 5.5px;
	transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box span:last-child {
	top: 5.5px;
	transform: rotate(-45deg);
}

/* Lesefortschritt: schwarze Schiene mit rotem Punkt. */
.progress {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--black);
}

.progress__dot {
	position: absolute;
	top: -4px;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
	transform: translateX(calc(var(--scroll, 0) * (100vw - 10px)));
	will-change: transform;
}

.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 90;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--white);
	animation: menu-in 0.3s var(--ease);
}

.admin-bar .mobile-menu {
	top: calc(var(--header-h) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .mobile-menu {
		top: calc(var(--header-h) + 46px);
	}
}

@keyframes menu-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
}

.mobile-menu__inner {
	display: grid;
	gap: 40px;
	padding-block: 28px 48px;
}

.mobile-menu__list {
	padding: 0;
	list-style: none;
}

.mobile-menu__list > li {
	border-bottom: 2px solid var(--black);
}

.mobile-menu__list a {
	display: block;
	padding: 0.7rem 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 9vw, 3rem);
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.mobile-menu__list .current-menu-item > a {
	color: var(--red);
}

.mobile-menu__list .sub-menu {
	padding: 0 0 0.75rem;
	list-style: none;
}

.mobile-menu__list .sub-menu a {
	padding: 0.35rem 0;
	font-family: var(--font-body);
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: none;
}

.mobile-menu__contact {
	display: grid;
	gap: 4px;
	color: var(--steel);
}

.mobile-menu__contact a {
	color: var(--black);
	font-weight: 600;
}

.mobile-menu__phone {
	font-family: var(--font-cond);
	font-size: 1.75rem;
	font-weight: 800 !important;
	text-decoration: none;
}

/* 5 Startseite
   ========================================================================== */

section[id] {
	scroll-margin-top: var(--header-h);
}

/* 5.1 Kopfbereich ---------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
}

/* Die Bühne läuft nach unten weich aus. So fällt es nicht auf, falls das Weiß des Videos
   nicht exakt dem Weiß der Seite entspricht. */
.hero__stage {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--white);
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
	mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

@media (min-width: 600px) {
	.hero__stage {
		aspect-ratio: 16 / 9;
	}
}

.hero__still {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.hero__still img {
	width: min(70%, 560px);
}

.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s;
}

/* Das Video wird erst eingeblendet, wenn es wirklich läuft – sonst bleibt das Logo stehen. */
.hero__stage.is-playing .hero__video {
	opacity: 1;
}

.no-js .hero__video {
	opacity: 1;
}

.hero__content {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 32px;
	padding-block: 8px clamp(40px, 6vw, 64px);
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.7rem, 0.9rem + 7.6vw, 7rem);
	line-height: 0.9;
	letter-spacing: 0.004em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.hero__title span {
	display: block;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(24px, 3vw, 36px);
}

.hero__facts {
	display: grid;
	padding: 0;
	list-style: none;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
}

.hero__facts li {
	position: relative;
	padding: 0.75rem 0 0.75rem 1.5rem;
	border-top: 2px solid var(--black);
}

.hero__facts li::before {
	content: "";
	position: absolute;
	top: 1.05rem;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--red);
}

@media (max-width: 519px) {
	.hero__buttons .btn {
		flex: 1 1 100%;
	}
}

@media (min-width: 900px) {
	.hero {
		min-height: max(600px, calc(100svh - var(--header-h)));
	}

	.hero__stage {
		position: absolute;
		inset: 0 0 clamp(240px, 33vh, 330px) 0;
		aspect-ratio: auto;
	}

	.hero__content {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
		gap: clamp(28px, 3vw, 40px) clamp(40px, 6vw, 96px);
		margin-top: auto;
		padding-top: 0;
	}

	.hero__lead {
		display: contents;
	}

	/* So bemessen, dass die zweite Zeile der Überschrift in die Inhaltsbreite passt. */
	.hero__title {
		grid-column: 1 / -1;
		font-size: calc(min(100vw - 2 * var(--gutter), var(--max)) / 13.9);
	}

	.hero__buttons {
		grid-column: 1 / -1;
		margin-top: 0;
	}

	.hero__facts {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 24px;
	}
}

@media (min-width: 1240px) {
	.hero__buttons {
		grid-column: 1;
	}

	.hero__facts {
		grid-column: 2;
		justify-self: end;
		width: 100%;
		max-width: 780px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero__title span,
	.hero__buttons,
	.hero__facts {
		animation: hero-rise 0.9s var(--ease) backwards;
	}

	.hero__title span:nth-child(2) {
		animation-delay: 0.1s;
	}

	.hero__buttons {
		animation-delay: 0.22s;
	}

	.hero__facts {
		animation-delay: 0.32s;
	}
}

@keyframes hero-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
}

/* 5.2 Leistungen ----------------------------------------------------------- */

.services {
	padding-block: var(--section);
	background: var(--black);
	color: var(--white);
}

.services .section-head__side p {
	color: var(--on-dark);
}

.tiles {
	display: grid;
	gap: 14px;
	padding: 0;
	list-style: none;
}

.tiles__item {
	display: flex;
}

/* Aufbau: links Titel, Erklärung und „Mehr erfahren“, rechts die Zeichnung.
   Der Platz für die Erklärung ist immer reserviert – beim Einblenden springt nichts. */
.tile {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	padding: 24px;
	border: 1px solid var(--coal-line);
	border-radius: var(--radius);
	background: var(--coal);
	color: var(--white);
	text-decoration: none;
	transition: border-color 0.35s, background-color 0.35s;
}

/* Rote Schiene am oberen Rand. */
.tile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 3px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.tile__art {
	width: 136px;
	margin: -2px 0 22px -6px;
}

.tile__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

.tile__title {
	font-family: var(--font-cond);
	font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
	font-weight: 750;
	line-height: 1.04;
	letter-spacing: 0.005em;
	overflow-wrap: break-word;
	hyphens: auto;
}

.tile__reveal {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
}

.tile__reveal-inner {
	display: contents;
}

.tile__text {
	max-width: 46ch;
	margin-bottom: 1.4rem;
	padding-top: 0.9rem;
	color: var(--on-dark);
	font-size: 1rem;
	line-height: 1.55;
}

.tile__more {
	position: relative;
	margin-top: auto;
	padding: 0 0 3px 1.35rem;
	font-weight: 700;
	background: linear-gradient(var(--white), var(--white)) 1.35rem 100% / calc(100% - 1.35rem) 2px no-repeat;
}

.tile__more::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--red);
}

/* Strichzeichnungen */
.ill {
	width: 100%;
	height: auto;
	overflow: visible;
}

.ill * {
	vector-effect: non-scaling-stroke;
}

.ill__dim {
	opacity: 0.45;
}

.ill__led {
	fill: var(--red);
	stroke: none;
}

.ill__wave {
	opacity: 0.45;
}

.ill__beam {
	fill: rgba(255, 255, 255, 0.07);
	stroke-opacity: 0.4;
}

.ill__cone {
	transform-box: view-box;
	transform-origin: 112px 104px;
}

.ill__card {
	transition: transform 0.6s var(--ease);
}

/* Foto-Variante, falls im Customizer ein Bild hinterlegt ist. */
.tile--photo {
	min-height: 340px;
}

.tile--photo .tile__body {
	justify-content: flex-end;
}

.tile--photo .tile__reveal {
	flex: none;
}

.tile__photo {
	position: absolute;
	inset: 0;
}

.tile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.tile__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 18%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.2));
}

@media (min-width: 680px) {
	.tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tile {
		padding: clamp(24px, 2.6vw, 38px);
	}
}

@media (min-width: 1040px) {
	.tiles {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 16px;
	}

	.tiles__item--brand,
	.tiles__item--zutritt {
		grid-column: span 7;
	}

	.tiles__item--einbruch,
	.tiles__item--video {
		grid-column: span 5;
	}

	.tile {
		flex-direction: row-reverse;
		align-items: stretch;
		gap: clamp(16px, 2vw, 32px);
		min-height: 430px;
	}

	.tile__art {
		flex: none;
		align-self: center;
		width: clamp(170px, 15vw, 215px);
		margin: 0;
	}

	.tiles__item--brand .tile__art,
	.tiles__item--zutritt .tile__art {
		width: clamp(230px, 23vw, 330px);
	}

	.tile__text {
		font-size: 0.98rem;
	}
}

/* Mit Maus oder Trackpad: Erklärung erscheint beim Darüberfahren und beim Tastaturfokus.
   Auf Touch-Geräten bleibt sie dauerhaft sichtbar. */
@media (hover: hover) {
	.tile__text {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.4s, transform 0.5s var(--ease);
	}

	.ill__led {
		fill: #5a5c5e;
		transition: fill 0.3s;
	}

	.ill__wave {
		opacity: 0.22;
	}

	.tile:hover,
	.tile:focus-visible {
		border-color: #4a4b4c;
		background: #161717;
	}

	.tile:hover::before,
	.tile:focus-visible::before {
		transform: scaleX(1);
	}

	.tile:hover .tile__text,
	.tile:focus-visible .tile__text {
		opacity: 1;
		transform: none;
	}

	.tile:hover .ill__led,
	.tile:focus-visible .ill__led {
		fill: var(--red);
		filter: drop-shadow(0 0 6px var(--red));
	}

	.tile:hover .ill__wave,
	.tile:focus-visible .ill__wave {
		animation: ill-wave 1.8s ease-in-out infinite;
	}

	.tile:hover .ill__wave--2,
	.tile:focus-visible .ill__wave--2 {
		animation-delay: 0.22s;
	}

	.tile:hover .ill__wave--3,
	.tile:focus-visible .ill__wave--3 {
		animation-delay: 0.44s;
	}

	.tile:hover .ill__cone,
	.tile:focus-visible .ill__cone {
		animation: ill-sweep 3.4s ease-in-out infinite alternate;
	}

	.tile:hover .ill__card,
	.tile:focus-visible .ill__card {
		transform: translateX(12px);
	}

	.tile:hover .tile__photo img,
	.tile:focus-visible .tile__photo img {
		transform: scale(1.05);
	}
}

@keyframes ill-wave {
	0%,
	100% {
		opacity: 0.18;
	}

	35% {
		opacity: 1;
	}
}

@keyframes ill-sweep {
	from {
		transform: rotate(-13deg);
	}

	to {
		transform: rotate(13deg);
	}
}

/* 5.3 Über uns ------------------------------------------------------------- */

.about {
	padding-block: var(--section);
	background: var(--white);
}

.about__grid {
	display: grid;
	gap: clamp(36px, 6vw, 96px);
	align-items: center;
}

.about__figure {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 4 / 5;
	background: var(--mist);
}

.about__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 30%;
}

.about__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: grid;
	padding: 0.85rem 1.4rem 0.85rem 2.4rem;
	background: var(--white);
	line-height: 1.25;
}

.about__caption::before {
	content: "";
	position: absolute;
	top: 1.3rem;
	left: 1.1rem;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
}

.about__caption strong {
	font-family: var(--font-cond);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.about__caption span {
	color: var(--steel);
	font-size: 0.95rem;
}

.about__text > * + * {
	margin-top: 1.25rem;
}

.about__text > .display {
	margin-bottom: clamp(24px, 3vw, 40px);
}

.about__text p {
	max-width: 62ch;
}

.about__text p:not(.lead):not(.about__action) {
	color: #2c2e30;
}

.about__text p a {
	font-weight: 700;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.about__text .about__action {
	margin-top: clamp(28px, 3vw, 40px);
}

@media (min-width: 900px) {
	.about__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

/* 5.4 Ajax-Konfigurator ---------------------------------------------------- */

.ajax {
	padding-bottom: var(--section);
	background: var(--white);
}

.ajax__card {
	display: grid;
	overflow: hidden;
	border-radius: 6px;
	background: var(--black);
	color: var(--white);
}

.ajax__text {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 24px;
	padding: clamp(28px, 5.5vw, 80px);
}

.ajax__partner {
	position: relative;
	padding-left: 1.5rem;
	color: var(--on-dark);
	font-weight: 600;
}

.ajax__partner::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 0 rgba(230, 51, 35, 0.7);
	animation: led-pulse 2.2s ease-out infinite;
}

@keyframes led-pulse {
	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(230, 51, 35, 0);
	}
}

.ajax__intro {
	max-width: 50ch;
	color: var(--on-dark);
	font-size: 1.125rem;
}

.ajax__steps {
	display: grid;
	gap: 0;
	width: 100%;
	margin-block: 4px 12px;
	padding: 0;
	list-style: none;
	counter-reset: schritt;
}

.ajax__steps li {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	padding: 0.8rem 0;
	border-top: 1px solid #3a3b3c;
	font-weight: 600;
	line-height: 1.3;
	counter-increment: schritt;
}

.ajax__steps li::before {
	content: counter(schritt);
	flex: none;
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 0.8;
	color: var(--red);
}

.ajax__visual {
	position: relative;
	min-height: 240px;
	overflow: hidden;
	order: -1;
	background: var(--black);
}

.ajax__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: screen;
}

/* Signalringe hinter dem Ajax-Schriftzug. */
.ajax__pulse {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.ajax__pulse i {
	position: absolute;
	width: min(78%, 420px);
	aspect-ratio: 1;
	border: 1.5px solid var(--red);
	border-radius: 50%;
	opacity: 0;
	animation: ajax-ring 4.5s linear infinite;
}

.ajax__pulse i:nth-child(2) {
	animation-delay: 1.5s;
}

.ajax__pulse i:nth-child(3) {
	animation-delay: 3s;
}

@keyframes ajax-ring {
	0% {
		opacity: 0;
		transform: scale(0.25);
	}

	15% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
		transform: scale(1.55);
	}
}

@media (min-width: 720px) {
	.ajax__steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.ajax__steps li {
		flex-direction: column;
		gap: 0.7rem;
		padding-top: 1rem;
	}
}

@media (min-width: 1000px) {
	.ajax__card {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		min-height: 560px;
	}

	.ajax__visual {
		order: 0;
	}
}

/* 5.5 Kennzahlen ----------------------------------------------------------- */

.stats {
	padding-top: var(--section);
	background: var(--black);
	color: var(--white);
	overflow: hidden;
}

.stats__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(36px, 5vw, 56px) clamp(20px, 3.4vw, 56px);
	padding: 0;
	list-style: none;
}

.stat__value {
	display: flex;
	align-items: baseline;
	font-family: var(--font-display);
	font-size: clamp(4.75rem, 1.6rem + 11vw, 11.5rem);
	font-weight: 800;
	line-height: 0.82;
}

.stat__number {
	font-variant-numeric: tabular-nums;
}

.stat__unit {
	margin-left: 0.14em;
	font-family: var(--font-cond);
	font-size: max(0.24em, 1.5rem);
	font-weight: 700;
	line-height: 1;
}

/* Schiene mit rotem Punkt: Der Punkt fährt beim Zählen auf seinen Wert. */
.stat__bar {
	position: relative;
	height: 2px;
	margin: clamp(18px, 2vw, 28px) 0 14px;
	background: #3a3b3c;
}

.stat__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--white);
	transform: scaleX(var(--p, var(--fill)));
	transform-origin: left;
}

.stat__dot {
	position: absolute;
	top: -5px;
	left: calc(var(--p, var(--fill)) * (100% - 12px));
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--red);
}

.stat__label {
	color: var(--on-dark);
	font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
	font-weight: 600;
	line-height: 1.3;
}

@media (min-width: 900px) {
	.stats__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Der Satz wird beim Scrollen von links nach rechts „angeleuchtet“. */
.statement {
	padding-block: clamp(72px, 11vw, 168px) var(--section);
}

.statement__text {
	--edge: calc(var(--shine, 1) * 150% - 30%);
	margin-bottom: clamp(28px, 4vw, 48px);
	font-family: var(--font-display);
	font-size: clamp(3.6rem, 0.4rem + 15.2vw, 15.5rem);
	font-weight: 900;
	line-height: 0.84;
	letter-spacing: 0.002em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--white);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.statement__text {
		background: linear-gradient(100deg, #fff 0%, #fff calc(var(--edge) - 8%), #8a8c8e var(--edge), #2a2b2c calc(var(--edge) + 14%), #2a2b2c 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}

/* 5.6 Zertifikate ---------------------------------------------------------- */

.certs {
	padding-top: var(--section);
	background: var(--mist);
}

.certs__nav {
	display: flex;
	gap: 10px;
}

.certs__scroller {
	overflow-x: auto;
	padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 40px;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.certs__scroller::-webkit-scrollbar {
	display: none;
}

.certs__list {
	display: flex;
	gap: 20px;
	width: max-content;
	padding: 0;
	list-style: none;
}

.cert {
	flex: none;
	width: clamp(210px, 64vw, 248px);
	scroll-snap-align: start;
}

/* Ab dieser Breite passen alle fünf Dokumente nebeneinander. */
@media (min-width: 1240px) {
	.cert {
		width: calc((min(100vw - 2 * var(--gutter), var(--max)) - 80px) / 5);
	}
}

.cert__link {
	display: block;
	text-decoration: none;
}

.cert__sheet {
	display: block;
	overflow: hidden;
	aspect-ratio: 1200 / 1697;
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 22px 32px -22px rgba(0, 0, 0, 0.45);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cert__sheet img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.cert__link:hover .cert__sheet {
	transform: translateY(-8px);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 34px 36px -24px rgba(0, 0, 0, 0.5);
}

.cert__label {
	display: block;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 2px solid var(--black);
	font-weight: 650;
	line-height: 1.3;
}

.badges {
	margin-top: clamp(32px, 5vw, 72px);
	padding-block: clamp(40px, 6vw, 80px);
	background: var(--black);
}

.badges__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	justify-items: center;
	padding: 0;
	list-style: none;
}

.badges__list img {
	width: auto;
	max-height: clamp(96px, 13vw, 150px);
}

@media (min-width: 760px) {
	.badges__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 5.7 Häufige Fragen ------------------------------------------------------- */

.faq {
	padding-block: var(--section);
	background: var(--white);
}

.faq__grid {
	display: grid;
	gap: clamp(32px, 6vw, 96px);
}

.faq__head {
	display: grid;
	gap: 24px;
	align-content: start;
}

.faq__head p {
	color: var(--steel);
}

.faq__phone {
	color: var(--black);
	font-family: var(--font-cond);
	font-size: 1.9rem;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
}

.faq__item {
	border-top: 2px solid var(--black);
}

.faq__item:last-child {
	border-bottom: 2px solid var(--black);
}

.faq__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: clamp(20px, 2.4vw, 30px) 0;
	border: 0;
	background: none;
	font-family: var(--font-cond);
	font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem);
	font-weight: 750;
	line-height: 1.12;
	text-align: left;
}

/* Plus, das sich zum Minus dreht. */
.faq__icon {
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 3px;
	margin-top: -1.5px;
	background: var(--black);
	transition: transform 0.45s var(--ease), background-color 0.3s;
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq__button[aria-expanded="true"] .faq__icon::before {
	background: var(--red);
}

.faq__button[aria-expanded="true"] .faq__icon::after {
	transform: rotate(0deg);
	background: var(--red);
}

.faq__panel-inner p {
	max-width: 62ch;
	padding-bottom: clamp(22px, 2.6vw, 34px);
	color: #2c2e30;
}

.js .faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.5s var(--ease), visibility 0s 0.5s;
}

.js .faq__panel.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.5s var(--ease), visibility 0s;
}

.js .faq__panel-inner {
	min-height: 0;
	overflow: hidden;
}

.no-js .faq__icon {
	display: none;
}

@media (min-width: 900px) {
	.faq__grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}

	.faq__head {
		position: sticky;
		top: calc(var(--header-h) + 32px);
		align-self: start;
	}
}

/* 5.8 Kontakt -------------------------------------------------------------- */

.contact {
	padding-block: var(--section);
	background: var(--black);
	color: var(--white);
}

.contact__grid {
	display: grid;
	gap: clamp(40px, 6vw, 96px);
}

.contact__intro {
	display: grid;
	gap: 24px;
	align-content: start;
}

.contact__intro > p {
	max-width: 40ch;
	color: var(--on-dark);
	font-size: 1.125rem;
}

.contact__direct {
	display: grid;
	gap: 0;
	margin-top: 8px;
	padding: 0;
	list-style: none;
}

.contact__direct li {
	display: grid;
	gap: 2px;
	padding: 16px 0;
	border-top: 1px solid #3a3b3c;
}

.contact__key {
	color: #9a9da0;
	font-size: 0.95rem;
	font-weight: 600;
}

.contact__big {
	justify-self: start;
	font-family: var(--font-cond);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	font-weight: 750;
	line-height: 1.15;
	text-decoration: none;
	overflow-wrap: anywhere;
	background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.contact__big:hover {
	background-size: 100% 2px;
}

.form {
	display: grid;
	gap: 22px;
	align-content: start;
}

.form__row {
	display: grid;
	gap: 22px;
}

@media (min-width: 640px) {
	.form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.field {
	display: grid;
	gap: 8px;
	align-content: start;
}

.field label {
	font-weight: 650;
}

.field__optional {
	margin-left: 0.4em;
	color: #9a9da0;
	font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
	width: 100%;
	min-height: 56px;
	padding: 0.9rem 1rem;
	border: 1px solid #55585a;
	border-radius: 3px;
	background: #121313;
	color: var(--white);
	font-size: 1.0625rem;
	line-height: 1.4;
	transition: border-color 0.2s, background-color 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

.field textarea {
	min-height: 168px;
	resize: vertical;
}

.field ::placeholder {
	color: #8b8e91;
	opacity: 1;
}

.field select {
	padding-right: 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 20px;
}

.field select:invalid {
	color: #8b8e91;
}

.field select option {
	background: #121313;
	color: var(--white);
}

.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
	border-color: #8b8e91;
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--white);
	background-color: #1a1b1b;
	outline: 2px solid var(--white);
	outline-offset: 0;
}

.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea {
	border-color: #ff6a5c;
}

.field__error {
	color: #ff8a7e;
	font-size: 0.95rem;
	font-weight: 600;
}

.field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field--check {
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	align-items: start;
}

.field--check input {
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	border: 1px solid #8b8e91;
	border-radius: 3px;
	background: #121313;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.field--check input:checked {
	border-color: var(--white);
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.field--check label {
	color: var(--on-dark);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.45;
}

.field--check label a {
	color: var(--white);
	font-weight: 650;
}

.field--check .field__error {
	grid-column: 2;
}

.form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 6px;
}

.form__note {
	flex: 1 1 240px;
	color: #9a9da0;
	font-size: 0.95rem;
	line-height: 1.4;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.form__status {
	display: none;
	padding: 1rem 1.25rem 1rem 2.75rem;
	position: relative;
	border: 1px solid var(--white);
	border-radius: 3px;
	font-weight: 650;
}

.form__status::before {
	content: "";
	position: absolute;
	top: 1.45rem;
	left: 1.2rem;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--white);
}

.form__status.is-visible {
	display: block;
}

.form__status.is-error {
	border-color: #ff6a5c;
}

.form__status.is-error::before {
	background: var(--red);
}

@media (min-width: 1000px) {
	.contact__grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}
}

/* 6 Seitenfuß
   ========================================================================== */

.footer {
	padding-top: clamp(56px, 7vw, 104px);
	background: var(--white);
	font-size: 1rem;
}

.footer__grid {
	display: grid;
	gap: 40px 48px;
	padding-bottom: clamp(48px, 6vw, 80px);
}

.footer__brand {
	display: grid;
	gap: 20px;
	justify-items: start;
	align-content: start;
}

.footer__brand p {
	max-width: 44ch;
	color: #2c2e30;
}

.footer__logo .logo__img {
	height: 48px;
}

.footer__social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 650;
	text-underline-offset: 4px;
}

.footer__title {
	margin-bottom: 14px;
	padding-top: 14px;
	border-top: 2px solid var(--black);
	font-family: var(--font-cond);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.footer__address {
	margin-bottom: 12px;
}

.footer__list {
	display: grid;
	gap: 6px;
	padding: 0;
	list-style: none;
}

.footer__list--pages {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 20px;
}

.footer__list a {
	text-decoration: none;
	background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.footer__list a:hover {
	background-size: 100% 2px;
}

.footer__key {
	display: inline-block;
	min-width: 4.4em;
	color: var(--steel);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 20px calc(20px + env(safe-area-inset-bottom));
	border-top: 2px solid var(--black);
	font-size: 0.95rem;
}

.footer__top {
	font-weight: 650;
	text-underline-offset: 4px;
}

@media (min-width: 700px) {
	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.footer__grid {
		grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	}
}

/* Zertifikat in voller Größe */
.lightbox {
	width: min(96vw, 860px);
	max-width: none;
	max-height: 94vh;
	max-height: 94dvh;
	padding: 0;
	border: 0;
	background: var(--white);
	color: var(--black);
}

.lightbox[open] {
	display: flex;
	flex-direction: column;
}

.lightbox::backdrop {
	background: rgba(0, 0, 0, 0.86);
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 10px 10px 18px;
	border-bottom: 2px solid var(--black);
}

.lightbox__caption {
	font-weight: 650;
	line-height: 1.3;
}

.lightbox__close {
	flex: none;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 2px;
	background: var(--black);
	color: var(--white);
	font-weight: 700;
}

.lightbox__stage {
	overflow: auto;
	overscroll-behavior: contain;
}

.lightbox__stage img {
	width: 100%;
}

/* 7 Unterseiten
   ========================================================================== */

.page-head {
	padding-block: clamp(48px, 8vw, 120px) clamp(32px, 5vw, 64px);
	background: var(--mist);
}

.page-head .lead {
	max-width: 48ch;
	margin-top: 20px;
}

.page-head__meta {
	margin-bottom: 12px;
	color: var(--steel);
	font-weight: 600;
}

.page-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.page-body {
	padding-block: clamp(40px, 6vw, 88px) var(--section);
}

.page-body__image {
	margin-bottom: clamp(32px, 5vw, 56px);
	overflow: hidden;
	border-radius: var(--radius);
}

.page-body__image img {
	width: 100%;
}

.prose {
	max-width: 74ch;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 2em;
	font-family: var(--font-cond);
	font-weight: 800;
	line-height: 1.1;
}

.prose h2 {
	font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
}

.prose h3 {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
}

.prose h4 {
	font-size: 1.3rem;
}

.prose a {
	font-weight: 650;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	padding-left: 1.25rem;
	border-left: 3px solid var(--red);
	font-size: 1.2rem;
	font-weight: 600;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	border-bottom: 2px solid var(--black);
}

.prose img,
.prose figure {
	border-radius: var(--radius);
}

.prose figcaption {
	margin-top: 8px;
	color: var(--steel);
	font-size: 0.95rem;
}

.prose .alignwide,
.prose .alignfull {
	max-width: none;
	width: min(100vw - 2 * var(--gutter), var(--max));
}

.prose .wp-block-button__link {
	border-radius: 2px;
	background: var(--black);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
}

.post-list {
	display: grid;
	padding: 0;
	list-style: none;
}

.post-list__item {
	border-top: 2px solid var(--black);
}

.post-list__link {
	display: grid;
	gap: 8px;
	padding: 28px 0;
	text-decoration: none;
}

.post-list__link time {
	color: var(--steel);
	font-weight: 600;
}

.post-list__link h2 {
	font-family: var(--font-cond);
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
}

.post-list__link:hover h2 {
	color: var(--red);
}

.post-list__link p {
	max-width: 70ch;
	color: #2c2e30;
}

.pagination .nav-links,
.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 2px solid var(--black);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--black);
	color: var(--white);
}

/* 8 Bewegung reduzieren
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.ajax__pulse {
		display: none;
	}
}
