/* =========================================================================
   HPS TruckService – Site CSS
   Umsetzung PALFINGER Corporate Design 2025 (brand.palfinger.com)
   Grundregeln:
   - Weiß = Haupthintergrund · Limestone / Bright Limestone = Sektionen
   - Rot nur als Akzent (Uplifting Line, Pattern, Pfeile, Buttons) – nie Fläche
   - Gelb ausschließlich im PALFINGER-Logo · Schwarz nie als Hintergrund
   - Headlines: PALFINGER Headline, UPPERCASE, zeilenweise abgestuft
   - Layout: ganze Fläche, Hälften, Drittel · alles linksbündig · rechteckig
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "PALFINGER Headline"; src: url("../fonts/Palfinger-Headline.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PALFINGER Subline";  src: url("../fonts/Palfinger-Subline.woff2") format("woff2");  font-weight: 400; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PALFINGER Text"; src: url("../fonts/PalfingerText-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--red: #DA0004;
	--red-dark: #B60507;
	--limestone: #DCD9D3;
	--bright-limestone: #EDECE9;
	--white: #FFFFFF;
	--black: #000000;
	--black-80: #333333;
	--black-70: #4D4D4D;
	--black-60: #666666;
	--warmgray: #9C9890;
	--success: #05960F;
	--error: #B60507;

	--font-headline: "PALFINGER Headline", "Helvetica Neue", Arial, sans-serif;
	--font-subline: "PALFINGER Subline", "Helvetica Neue", Arial, sans-serif;
	--font-text: "PALFINGER Text", "Helvetica Neue", Arial, sans-serif;

	/* Unit (U): Basis für Abstände. Web: an 1920×1080 / 20 = 54 px angelehnt */
	--u: clamp(20px, 2.8125vw, 54px);
	--gap: calc(var(--u) / 2);
	--container: 1440px;

	/* Uplifting Line: Breite der breitesten Stufe */
	--uline-w: clamp(10px, 1vw, 18px);

	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-text);
	font-size: clamp(1rem, .95rem + .25vw, 1.125rem); /* 16 → 18 px */
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--u); top: -100px; z-index: 100; background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* Ungeprüfte Inhalte (nur solange hps.showTbd = true) */
mark.tbd { background: #FFF1A8; color: inherit; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tbd-off mark.tbd { background: none; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--u); }
.section { padding-block: calc(var(--u) * 2.5); position: relative; }
.section--tight { padding-block: calc(var(--u) * 1.5); }
.bg-bright { background: var(--bright-limestone); }
.bg-limestone { background: var(--limestone); }

.grid { display: grid; gap: var(--u); }
@media (min-width: 900px) {
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
	.grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Typography ---------- */
.topline {
	display: block;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.topline--red { color: var(--red); }

.headline {
	font-family: var(--font-headline);
	text-transform: uppercase;
	line-height: .95;
	letter-spacing: 0;
	overflow-wrap: break-word;
	hyphens: manual;
}
.headline__line { display: block; }
.headline--dark .headline__line { color: color-mix(in srgb, var(--black) calc(var(--shade, 100) * 1%), var(--white)); }
.headline--light .headline__line { color: rgb(255 255 255 / calc(var(--shade, 100) * 1%)); }

.h-display { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6.5rem); }
.h-1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.25rem); }
.h-2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.25rem); }
.h-3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }

.subline {
	font-family: var(--font-subline);
	font-size: clamp(1.2rem, 1rem + .7vw, 1.625rem);
	line-height: 1.2;
}
.lead { max-width: 46ch; }
.copy { max-width: 65ch; }
.copy h3 { font-weight: 700; font-size: 1em; margin: 1.6em 0 .3em; }
.copy ul { list-style: none; margin: 0 0 1em; }
.copy li { position: relative; padding-left: 1.1em; margin-bottom: .3em; }
.copy li::before { content: ""; position: absolute; left: 0; top: .55em; width: .38em; height: .38em; background: var(--black); }
.copy a { text-decoration-color: var(--red); text-underline-offset: .2em; }

/* ---------- Uplifting Line ----------
   Drei Stufen à 1/3 Höhe, Breiten x / 2x / 4x, unten am breitesten.
   Immer rot, immer vertikal, startet am unteren Rand. */
.uline {
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--uline-w);
	height: 100%;
	pointer-events: none;
	background:
		linear-gradient(var(--red), var(--red)) left top / 25% 33.334% no-repeat,
		linear-gradient(var(--red), var(--red)) left 50% / 50% 33.334% no-repeat,
		linear-gradient(var(--red), var(--red)) left bottom / 100% 33.334% no-repeat;
}
.uline--half { height: 50%; }
.uline--third { height: 33.334%; }
.uline--twothirds { height: 66.667%; }
.has-uline { position: relative; padding-left: calc(var(--uline-w) + var(--u)); }

/* ---------- Uplifting Pattern ---------- */
.upattern {
	position: absolute;
	z-index: 0;
	right: 0;
	bottom: 0;
	width: min(48%, 640px);
	height: 70%;
	pointer-events: none;
	background: url("../img/brand/uplifting-pattern-red.svg") right bottom / auto 100% no-repeat;
}
.upattern--white { background-image: url("../img/brand/uplifting-pattern-white.svg"); }
.upattern--limestone { background-image: url("../img/brand/uplifting-pattern-limestone.svg"); }

/* ---------- Buttons & Links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	min-height: 48px;
	padding: .8em 1.4em;
	border: 2px solid transparent;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1.1;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(var(--u) * .9); }

.arrow { width: .9em; height: .9em; flex: none; color: var(--red); }
.btn--primary .arrow { color: currentColor; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-weight: 600;
	text-transform: uppercase;
	font-size: .875rem;
	letter-spacing: .02em;
	text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bright-limestone); font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__emergency { font-weight: 600; display: inline-flex; align-items: center; gap: .5em; }
.topbar__emergency::before { content: ""; width: 8px; height: 8px; background: var(--red); }
.topbar__partner { display: flex; align-items: center; gap: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .02em; font-size: .75rem; white-space: nowrap; }
.topbar__partner img { height: 25px; width: auto; } /* Mindestgröße PALFINGER-Logo digital: 25 px */
@media (max-width: 899px) {
	.topbar__hours, .topbar__partner span { display: none; }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--limestone); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--u); min-height: var(--header-h); }
.brand { display: inline-grid; justify-items: start; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-headline); font-size: clamp(1.35rem, 1rem + 1.4vw, 1.75rem); text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 519px) { .brand__claim { display: none; } }
.brand__name span { color: var(--black-60); }
.brand__claim { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: .35rem; color: var(--black-70); white-space: nowrap; }
/* Subline schließt bündig mit dem letzten Buchstaben der Wortmarke ab (Abstand per JS, s. site.js) */

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2.25rem); list-style: none; }
.nav__link {
	position: relative;
	display: inline-block;
	padding-block: .5rem;
	font-weight: 600;
	font-size: .9375rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (min-width: 1280px) and (max-width: 1439px) {
	.header__inner { gap: 1.5rem; }
	.nav, .nav__list { gap: 1.25rem; }
	.nav__link { font-size: .875rem; }
	.brand__claim { display: none; }
	.nav .btn { padding-inline: 1rem; }
}

@media (max-width: 1279px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: .5rem;
		background: none; border: 0; padding: .5rem 0; cursor: pointer;
		font: 600 .875rem var(--font-text); text-transform: uppercase; letter-spacing: .02em;
	}
	.nav-toggle__icon { width: 24px; height: 2px; background: currentColor; position: relative; }
	.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
	.nav-toggle__icon::before { top: -7px; }
	.nav-toggle__icon::after { top: 7px; }
	.nav {
		position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 40;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: var(--u); background: var(--white);
		overflow-y: auto;
		transform: translateX(100%); visibility: hidden;
		transition: none; /* Animation nur bei Klick (.is-animating) – sonst blitzt das Flyout beim Verkleinern des Fensters auf */
	}
	.nav.is-open { transform: none; visibility: visible; }
	.nav.is-animating { transition: transform .25s, visibility 0s .25s; }
	.nav.is-open.is-animating { transition: transform .25s; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__link { display: block; padding-block: 1rem; font-family: var(--font-headline); font-weight: 400; font-size: 1.75rem; border-bottom: 1px solid var(--limestone); }
	.nav__link::after { display: none; }
	.nav .btn { margin-top: var(--u); justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 40%); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / 0) 75%),
		linear-gradient(0deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / 0) 45%);
}
.hero__content { position: relative; padding-block: calc(var(--u) * 2.5) calc(var(--u) * 1.75); }
.hero .uline { z-index: 1; }
.hero__text { max-width: 40rem; margin-top: calc(var(--u) * .6); }

/* ---------- Intro / Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); }
.fact { background: var(--white); padding: calc(var(--u) * .75); display: flex; flex-direction: column; gap: .5rem; }
.fact__value { font-family: var(--font-headline); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.fact__value small { font-size: .45em; color: var(--black-60); }
.fact__label { font-size: .9375rem; color: var(--black-70); }

/* ---------- Tiles (Bright Limestone → Limestone on hover) ---------- */
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: calc(var(--u) * .75);
	background: var(--bright-limestone);
	text-decoration: none;
	transition: background-color .2s;
}
a.tile:hover { background: var(--limestone); }
.tile__icon { width: 96px; height: 96px; margin-left: -12px; margin-bottom: calc(var(--u) * .75); }
.tile__title { font-family: var(--font-headline); text-transform: uppercase; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.875rem); line-height: 1; margin-bottom: .75rem; }
.tile__text { color: var(--black-80); font-size: .9688rem; flex: 1; }
.tile__arrow { position: absolute; top: calc(var(--u) * .75); right: calc(var(--u) * .75); width: 22px; height: 22px; color: var(--red); transition: transform .2s; }
a.tile:hover .tile__arrow { transform: translate(3px, -3px); }

/* ---------- Split (Hälften) ---------- */
.split { display: grid; }
.split__media { position: relative; min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { position: relative; padding: calc(var(--u) * 2) var(--u); }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; min-height: 640px; }
	.split--reverse .split__media { order: 2; }
	.split__body { padding: calc(var(--u) * 2.5) calc(var(--u) * 1.5) calc(var(--u) * 2.5) calc(var(--u) * 1.5); display: flex; flex-direction: column; justify-content: center; }
	.split__body > * { max-width: 34rem; }
}
.partner-logo { height: 36px; width: auto; align-self: flex-start; margin-bottom: calc(var(--u) * .9); }

/* ---------- Cards (Bild + Text) ---------- */
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--bright-limestone); transition: background-color .2s; }
a.card:hover { background: var(--limestone); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__media img { transform: scale(1.03); }
.card__body { position: relative; padding: calc(var(--u) * .75); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body .link-arrow { margin-top: auto; padding-top: .5rem; }

/* ---------- Emergency band ---------- */
.band { position: relative; color: var(--white); overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .68) 50%, rgb(0 0 0 / .6) 100%); }
.band__content { position: relative; padding-block: calc(var(--u) * 2.5); display: grid; gap: var(--u); align-items: end; }
@media (min-width: 900px) { .band__content { grid-template-columns: 1fr 1fr; } }
.band__phone { font-family: var(--font-headline); font-size: clamp(2.2rem, 1.4rem + 3vw, 4.5rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.band__phone:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: .12em; }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); list-style: none; }
.brands li { background: var(--white); }
.brands a { display: flex; align-items: center; justify-content: center; height: 110px; padding: 1.25rem; }
.brands img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.brands a:hover img { filter: none; opacity: 1; }

/* ---------- Section head ---------- */
.section-head { display: grid; gap: var(--gap) var(--u); margin-bottom: calc(var(--u) * 1.25); align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--limestone); padding-top: calc(var(--u) * 2); font-size: .9375rem; position: relative; overflow: hidden; }
.footer__grid { display: grid; gap: var(--u); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h2 { font-family: var(--font-text); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
.footer__partner { display: flex; flex-direction: column; gap: .75rem; margin-top: var(--u); }
.footer__partner img { height: 34px; width: auto; align-self: flex-start; }
.footer__bottom {
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center;
	margin-top: calc(var(--u) * 1.5); padding-block: calc(var(--u) * .6);
	border-top: 1px solid rgb(0 0 0 / .12);
	font-size: .8125rem;
}
.footer__url { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.footer__legal { display: flex; gap: 1.25rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 899px) { .split__body .upattern { display: none; } }
.split__body .btn-row { position: relative; z-index: 1; }

/* =========================================================================
   Unterseiten & Bausteine
   ========================================================================= */

.section-head--single { grid-template-columns: 1fr !important; }
.copy--intro { padding-top: calc(var(--u) * .3); }
@media (min-width: 900px) { .copy--intro { font-size: 1.125rem; } }

/* ---------- Seitenkopf ---------- */
.pagehead { position: relative; padding-block: calc(var(--u) * 2) calc(var(--u) * 1.5); }
.pagehead__content { position: relative; }
.pagehead__intro { max-width: 44rem; margin-top: calc(var(--u) * .6); }
.pagehead--image { color: var(--white); min-height: min(68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
.pagehead--image .hero__media { position: absolute; inset: 0; }
.pagehead--image .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead--image .hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .4) 50%, rgb(0 0 0 / .05) 85%), linear-gradient(0deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 50%);
}
.pagehead--image .pagehead__content { padding-block: calc(var(--u) * 3) calc(var(--u) * 1.5); }
.pagehead--image .uline { z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; margin-bottom: calc(var(--u) * .6); opacity: .85; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Listen ---------- */
.ticks { list-style: none; margin-top: .75rem; font-size: .9375rem; color: var(--black-80); }
.ticks li { position: relative; padding-left: 1.1em; margin-bottom: .35em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .4em; height: .4em; background: var(--red); }
.tile--white { background: var(--white); }

.checklist { list-style: none; display: grid; gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); align-self: start; }
.checklist li { position: relative; background: var(--white); padding: 1.1rem 1.25rem 1.1rem 3.25rem; }
.bg-bright .checklist li, .bg-limestone .checklist li { background: var(--white); }
.checklist li::before {
	content: ""; position: absolute; left: 1.25rem; top: 1.25rem; width: 1.1rem; height: 1.1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23DA0004' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Schritte (wie Agenda im Brand Training: Nummer + rote Linie) ---------- */
.steps { list-style: none; display: grid; gap: var(--u); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-left: calc(var(--uline-w) + 1.25rem); padding-bottom: .5rem; }
.step::before { /* Uplifting Line, 1/3-Höhe-Stufen */
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--uline-w);
	background:
		linear-gradient(var(--red), var(--red)) left top / 25% 33.334% no-repeat,
		linear-gradient(var(--red), var(--red)) left 50% / 50% 33.334% no-repeat,
		linear-gradient(var(--red), var(--red)) left bottom / 100% 33.334% no-repeat;
}
.step__no { display: block; font-family: var(--font-headline); font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); line-height: 1; margin-bottom: 1rem; }
.step__title { font-family: var(--font-headline); text-transform: uppercase; font-size: 1.375rem; line-height: 1.05; margin-bottom: .6rem; }
.step__text { color: var(--black-80); font-size: .9688rem; }

/* ---------- Kennzahlen als Reihe ---------- */
@media (min-width: 900px) { .facts--row { grid-template-columns: repeat(4, 1fr); } }
.facts--row dd { margin: 0; }

/* ---------- Termine ---------- */
.dates { display: grid; gap: var(--u); }
@media (min-width: 900px) { .dates { grid-template-columns: 2fr 1fr; } }
.dates__list { display: grid; gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); align-self: start; }
.date { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--white); }
.bg-white .date, .section:not(.bg-bright):not(.bg-limestone) .date { background: var(--bright-limestone); }
.date__when { display: flex; flex-direction: column; gap: .25rem; }
.date__day { font-family: var(--font-headline); text-transform: uppercase; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.05; }
.date__time { color: var(--black-70); font-size: .9375rem; }
.date--empty { flex-direction: column; align-items: flex-start; }
.dates__info { padding: calc(var(--u) * .75); background: var(--white); border-left: 4px solid var(--red); align-self: start; }
.section:not(.bg-bright):not(.bg-limestone) .dates__info { background: var(--bright-limestone); }
.info-label { font-family: var(--font-text); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .4rem; color: var(--black-70); }
.dates__info p { margin-bottom: 1.25rem; }

/* ---------- Ansprechpartner ---------- */
.person { padding: calc(var(--u) * .75); background: var(--bright-limestone); }
.bg-bright .person { background: var(--white); }
.person__img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; margin-bottom: 1.25rem; }
.person__name { font-family: var(--font-headline); text-transform: uppercase; font-size: 1.625rem; line-height: 1; margin-bottom: .9rem; }
.person a { text-decoration-color: var(--red); text-underline-offset: .2em; }

/* ---------- Downloads ---------- */
.downloads { list-style: none; display: grid; gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); max-width: 52rem; }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; background: var(--bright-limestone); text-decoration: none; transition: background-color .2s; }
.downloads a:hover { background: var(--limestone); }
.downloads span { display: flex; flex-direction: column; }
.downloads small { color: var(--black-70); font-size: .8125rem; margin-top: .2rem; }
.downloads .arrow { width: 1.25rem; height: 1.25rem; }

/* ---------- Jobs ---------- */
.jobs { display: grid; gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); }
.job { background: var(--white); }
.job summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary > span:first-child { display: flex; flex-direction: column; gap: .3rem; }
.job__title { font-family: var(--font-headline); text-transform: uppercase; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.875rem); line-height: 1.05; }
.job__meta { font-size: .875rem; color: var(--black-70); }
.job__toggle { position: relative; width: 22px; height: 22px; flex: none; }
.job__toggle::before, .job__toggle::after { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 2.5px; background: var(--red); transition: transform .2s; }
.job__toggle::after { transform: rotate(90deg); }
.job[open] .job__toggle::after { transform: rotate(0); }
.job__body { padding: 0 1.5rem 1.75rem; }
.job__text { max-width: 60ch; margin-bottom: 1.5rem; }

/* ---------- CTA ohne Bild ---------- */
.cta { position: relative; overflow: hidden; }
.cta__content { display: grid; gap: var(--u); align-items: end; }
@media (min-width: 900px) { .cta__content { grid-template-columns: 1fr 1fr; } }

/* ---------- Kontakt & Formular ---------- */
.contact-facts { display: grid; gap: 1.25rem 2rem; margin-top: calc(var(--u) * 1.2); }
@media (min-width: 640px) { .contact-facts { grid-template-columns: 1fr 1fr; } }
.contact-facts p { margin: 0; }
.contact-facts a { text-decoration-color: var(--red); text-underline-offset: .2em; }
.contact-big { font-family: var(--font-headline); font-size: 1.625rem; text-decoration: none; white-space: nowrap; }

.form { display: grid; gap: 1.1rem; background: var(--white); padding: calc(var(--u) * .9); }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: .8125rem; color: var(--black-70); margin: 0; }
.form .btn { justify-self: start; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .875rem; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: .75rem .9rem;
	font: inherit; font-size: 1rem; color: var(--black);
	background: var(--bright-limestone); border: 0; border-bottom: 2px solid var(--black-60); border-radius: 0;
	transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--limestone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); background: var(--white); box-shadow: inset 0 0 0 1px var(--limestone); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field__error { color: var(--error); font-size: .8125rem; font-weight: 600; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: .1rem 0 0; flex: none; accent-color: var(--red); }
.field--check label { flex: 1; font-weight: 400; font-size: .875rem; }
.field--check .field__error { flex-basis: 100%; }
.notice { padding: 1.25rem 1.5rem; border-left: 4px solid; background: var(--white); }
.notice--success { border-color: var(--success); padding: calc(var(--u) * .9); }
.notice--error { border-color: var(--error); color: var(--error); font-weight: 600; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-family: var(--font-headline); text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; margin: 2.25rem 0 .75rem; }
.legal h3 { font-weight: 600; margin: 1.5rem 0 .4rem; }
.legal ul { list-style: none; margin-bottom: 1em; }
.legal li { position: relative; padding-left: 1.1em; }
.legal li::before { content: ""; position: absolute; left: 0; top: .55em; width: .38em; height: .38em; background: var(--black); }

/* ---------- Prüfliste (nur Entwurf) ---------- */
.tbdlist { display: grid; gap: 1px; background: var(--limestone); border: 1px solid var(--limestone); }
.tbdlist__page { background: var(--white); padding: calc(var(--u) * .75); }
.tbdlist__page h2 a { text-decoration: none; }
.tbdlist ol { margin: 1.25rem 0 0; padding-left: 1.4rem; display: grid; gap: .9rem; }
.tbdlist li small { display: block; color: var(--black-70); font-size: .8125rem; margin-top: .2rem; }
.tbd-task { margin: .45rem 0 0; font-size: .9375rem; max-width: 75ch; }
.tbd-who { display: inline-block; margin-right: .6rem; padding: .15rem .5rem; font-size: .6875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; vertical-align: .1em; border: 1px solid currentColor; }
.tbd-who--hps { color: var(--black); }
.tbd-who--recht { color: var(--red-dark); }
.tbd-who--web { color: var(--black-60); }
.tbd-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: -.25rem 0 1.25rem; font-size: .875rem; }
