/* ==========================================================================
   ProjectWizards — About („Über uns")
   Drei Säulen: Historie · Haltung · Mission.
   Prefix: ab-*  |  baut auf den globalen --pw-*-Tokens auf (dark-mode-fähig),
   nutzt geteilte Primitive (.pw-container, .pw-hero--dark, .pw-link, blockquote).
   ========================================================================== */

.ab-page { overflow-x: clip; }
/* Die Zitat-Sektion (grau, --alt) ist die letzte Sektion: das #content-
   padding-bottom darunter entfernen, damit Grau direkt in den dunklen
   CTA-Footer übergeht (kein heller Streifen). */
#content.ab-page { padding-bottom: 0; }

/* --- Sektionen / gemeinsame Bausteine --- */
.ab-section { padding: var(--pw-section-standard); position: relative; }
.ab-section--alt { background: var(--pw-bg-alt); }

.ab-pillar-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pw-brand);
	margin: 0 0 var(--pw-space-sm);
}

.ab-section__title {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--pw-text);
	margin: 0 0 var(--pw-space-lg);
	letter-spacing: -0.01em;
}

/* Fließtext-Container (ergänzt die globale .nb-article__content-Typo). */
.ab-prose { color: var(--pw-text); }
.ab-prose p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--pw-text-secondary);
	margin: 0 0 var(--pw-space-md);
}
.ab-prose > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   Intro / Dark-Hero
   ========================================================================== */
/* Hintergrund kommt aus dem globalen .pw-hero--dark (siehe global.css). */
.ab-hero { padding: var(--pw-section-hero); }
/* Über dem Punktraster-Overlay des Primitivs. */
.ab-hero__inner { position: relative; z-index: 1; text-align: center; }

.ab-hero__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pw-brand);
	margin: 0 0 var(--pw-space-md);
}
.ab-hero__title {
	font-size: clamp(34px, 6vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 var(--pw-space-lg);
	color: #fff;
}
.ab-hero__lead { max-width: 680px; margin: 0 auto; }
.ab-hero__lead p {
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.6;
	color: var(--pw-fg-muted);
	margin: 0 0 var(--pw-space-md);
}
.ab-hero__lead p:last-child { margin-bottom: 0; }

.ab-hero__stats {
	list-style: none;
	margin: var(--pw-space-2xl) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--pw-space-xl) var(--pw-space-3xl);
}
.ab-hero__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ab-hero__stat-value {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.ab-hero__stat-label {
	font-size: 14px;
	color: var(--pw-fg-dim);
	letter-spacing: 0.01em;
}

/* ==========================================================================
   Historie
   ========================================================================== */
.ab-history__timeline { margin-top: var(--pw-space-2xl); }
.ab-timeline {
	margin: 0;
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-lg);
	overflow: hidden;
	box-shadow: var(--pw-shadow-md);
	background: var(--pw-bg);
}
.ab-timeline img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Dezentes Scroll-Reveal (nur wenn JS html.ab-js setzt)
   ========================================================================== */
.ab-js .ab-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--pw-easing-default),
	            transform 0.6s var(--pw-easing-default);
}
.ab-js .ab-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ab-js .ab-reveal { opacity: 1; transform: none; transition: none; }
}

/* Zitat: erbt den globalen Blockquote-Stil (wie im Blog), ohne linke Linie,
   etwas größer und mit mehr Luft zwischen Anführungszeichen und Text. */
.ab-history__quote {
	margin-top: var(--pw-space-3xl);
	font-size: 21px;
	padding-left: 64px;
}
.ab-history__quote::before {
	font-size: 110px;
	top: -26px;
}
.ab-history__more { margin: var(--pw-space-md) 0 0; }

/* ==========================================================================
   Mission (großer Header + zwei Gruppen aus Popup-Kacheln)
   ========================================================================== */
.ab-mission__lead p {
	font-size: clamp(20px, 2.6vw, 26px);
	line-height: 1.5;
	color: var(--pw-text);
	margin: 0 0 var(--pw-space-md);
}
.ab-mission__lead p:last-child { margin-bottom: 0; }

/* Gruppe: Trenner-Label + Karten-Raster. */
.ab-group { margin-top: var(--pw-space-2xl); }
.ab-group__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pw-text-muted);
	margin: 0 0 var(--pw-space-md);
	padding-bottom: var(--pw-space-sm);
	border-bottom: 1px solid var(--pw-border);
}
.ab-vgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--pw-space-md);
}

/* Klickbare Wert-Kachel (Button), öffnet das zugehörige Modal. */
.ab-vcard {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: var(--pw-space-xs);
	background: var(--pw-bg);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	padding: var(--pw-space-lg);
	cursor: pointer;
	font: inherit;
	transition: border-color var(--pw-duration-normal) var(--pw-easing-default);
}
.ab-vcard:hover {
	border-color: var(--pw-brand);
}
.ab-vcard:focus-visible {
	outline: 2px solid var(--pw-accent);
	outline-offset: 4px;
}
.ab-vcard__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pw-text);
	margin: 0;
}
.ab-vcard__teaser {
	font-size: 14px;
	line-height: 1.55;
	color: var(--pw-text-secondary);
	margin: 0;
}
.ab-vcard__more {
	margin-top: auto;
	padding-top: var(--pw-space-xs);
	font-size: 13px;
	font-weight: 600;
	color: var(--pw-brand);
}
.ab-vcard:hover .ab-vcard__more { color: var(--pw-brand-hover); }

/* Popup-Modal (natives <dialog>). */
.ab-modal {
	width: min(640px, calc(100vw - 2 * var(--pw-space-lg)));
	max-height: calc(100vh - 2 * var(--pw-space-2xl));
	padding: 0;
	border: none;
	border-radius: var(--pw-radius-lg);
	background: var(--pw-bg);
	color: var(--pw-text);
	box-shadow: var(--pw-shadow-lg);
	overflow: hidden;
}
.ab-modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.ab-modal__box {
	position: relative;
	padding: var(--pw-space-2xl);
	max-height: calc(100vh - 2 * var(--pw-space-2xl));
	overflow-y: auto;
}
.ab-modal__close {
	position: absolute;
	top: var(--pw-space-md);
	right: var(--pw-space-md);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: var(--pw-text-muted);
	background: transparent;
	border: none;
	border-radius: var(--pw-radius-pill);
	cursor: pointer;
}
.ab-modal__close:hover { color: var(--pw-text); background: var(--pw-bg-alt); }
.ab-modal__title {
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--pw-text);
	margin: 0 var(--pw-space-2xl) var(--pw-space-md) 0;
}


/* ==========================================================================
   Historie: Kurzfassung + ausklappbare Langfassung
   ========================================================================== */
.ab-story__lede {
	columns: 2;
	column-gap: var(--pw-space-2xl);
}
.ab-story__lede p {
	margin: 0 0 var(--pw-space-md);
	break-inside: avoid;
	font-size: 16px;
	line-height: 1.7;
	color: var(--pw-text-secondary);
}
.ab-story__lede strong { color: var(--pw-text); font-weight: 700; }

.ab-story__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--pw-space-xs);
	margin-top: var(--pw-space-md);
	padding: var(--pw-space-xs) 0;
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--pw-brand);
}
.ab-story__toggle:hover { color: var(--pw-brand-hover); }
.ab-story__chev {
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--pw-easing-default);
}
.ab-story__toggle[aria-expanded="true"] .ab-story__chev { transform: rotate(180deg); }
.ab-story__toggle-less { display: none; }
.ab-story__toggle[aria-expanded="true"] .ab-story__toggle-more { display: none; }
.ab-story__toggle[aria-expanded="true"] .ab-story__toggle-less { display: inline; }

.ab-story__long {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--pw-easing-default);
}
.ab-story__long.is-open { grid-template-rows: 1fr; }
/* padding-top dauerhaft (nicht nur im offenen Zustand), damit es beim Einklappen
   mit der Höhe animiert statt sofort wegzuspringen; im eingeklappten 0fr-Zustand
   wird es ohnehin weggeclippt. */
.ab-story__long-inner { overflow: hidden; min-height: 0; padding-top: var(--pw-space-lg); }

/* ==========================================================================
   Historie: Zwei-Spuren-Zeitstrahl (datengetrieben, horizontal scrollbar)
   ========================================================================== */
/* Wrap: immer seitlicher Abstand zum Rand, unabhängig von der Viewport-Breite. */
.ab-tl__wrap {
	position: relative;
	padding-inline: clamp(24px, 8vw, 140px);
}

.ab-tl__scroll {
	--tl-fade: 120px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-padding-inline: 24px;
	padding: 4px 0 12px;
}
.ab-tl__scroll:focus-visible { outline: 2px solid var(--pw-accent); outline-offset: 2px; }
/* Fade an den Scroll-Rändern: zeigt, dass dort weitere (gerade nicht fokussierte)
   Meilensteine liegen. Per JS je nach Scrollposition ein-/ausgeblendet. */
.ab-tl__scroll.is-faded-left {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-fade));
	        mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-fade));
}
.ab-tl__scroll.is-faded-right {
	-webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--tl-fade));
	        mask-image: linear-gradient(to left, transparent 0, #000 var(--tl-fade));
}
.ab-tl__scroll.is-faded-left.is-faded-right {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-fade), #000 calc(100% - var(--tl-fade)), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-fade), #000 calc(100% - var(--tl-fade)), transparent 100%);
}

.ab-tl {
	/* Großzügiger Innenabstand, damit die Labels des ersten und letzten Markers
	   nie am Rand abgeschnitten werden. Breite Mindestbreite, damit die Leiste
	   zuverlässig scrollt und die Pfeile sichtbar werden. */
	--tl-pad: clamp(64px, 6vw, 96px);
	position: relative;
	min-width: 1900px;
	width: 100%;
	padding: 56px var(--tl-pad) 56px;
}

/* Pfeil-Navigation (von about.js eingeblendet). */
.ab-tl__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 40px;
	height: 40px;
	border-radius: var(--pw-radius-pill);
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--pw-bg);
	color: var(--pw-text);
	border: 1px solid var(--pw-border);
	box-shadow: var(--pw-shadow-md);
	cursor: pointer;
	transition: opacity var(--pw-duration-normal) var(--pw-easing-default),
	            color var(--pw-duration-normal) var(--pw-easing-default),
	            border-color var(--pw-duration-normal) var(--pw-easing-default);
}
.ab-tl__nav svg { width: 20px; height: 20px; }
.ab-tl__nav--prev { left: clamp(0px, 2vw, 20px); }
.ab-tl__nav--next { right: clamp(0px, 2vw, 20px); }
.ab-tl__nav:hover { color: var(--pw-brand); border-color: var(--pw-brand); }
.ab-tl__nav:disabled { opacity: 0; pointer-events: none; }
.ab-tl__wrap--ready .ab-tl__nav { display: flex; }

/* Produkt-Spuren (Benennung erfolgt über die Legende oben; das Jahr steht an
   jedem Marker, daher keine eigene Jahres-Achse). */
.ab-tl__track { position: relative; height: 64px; margin-top: 8px; }
.ab-tl__track--adoc { margin-top: 40px; }

.ab-tl__rail {
	position: absolute;
	left: 0;
	right: 0;
	top: 32px;
	height: 4px;
	border-radius: var(--pw-radius-pill);
	/* Sichtbar auf weißem wie grauem (--alt) Sektionshintergrund. */
	background: var(--pw-border-light);
	display: block;
}
.ab-tl__fill {
	position: absolute;
	top: 32px;
	height: 4px;
	width: var(--tl-w);
	border-radius: var(--pw-radius-pill);
	display: block;
	transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-tl__track--merlin .ab-tl__fill { background: linear-gradient(90deg, var(--pw-brand), var(--pw-brand-hover)); }
.ab-tl__track--adoc .ab-tl__fill { background: linear-gradient(90deg, var(--pw-accent), var(--pw-accent-hover)); }
/* Armierter Anfangszustand (nur wenn JS animiert): Linien eingefahren. */
.ab-tl.is-fill-armed .ab-tl__fill { width: 0; }

/* Meilenstein-Marker (top = Mitte der 4px-Schiene). */
.ab-tl__ms { position: absolute; top: 34px; }
/* Rhombus (45° gedrehtes Quadrat) als Meilenstein-Symbol, wie in Merlin Project. */
.ab-tl__ms-dot {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background: var(--pw-bg);
	border: 3px solid var(--pw-border-light);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s var(--pw-easing-default);
}
.ab-tl__track--merlin .ab-tl__ms-dot { border-color: var(--pw-brand); }
.ab-tl__track--adoc .ab-tl__ms-dot { border-color: var(--pw-accent); }
.ab-tl__ms--major .ab-tl__ms-dot { width: 16px; height: 16px; border-width: 4px; }
.ab-tl__track--merlin .ab-tl__ms--major .ab-tl__ms-dot { background: var(--pw-brand); }
.ab-tl__track--adoc .ab-tl__ms--major .ab-tl__ms-dot { background: var(--pw-accent); }

.ab-tl__ms-lab {
	position: absolute;
	left: 0;
	transform: translateX(-50%);
	white-space: nowrap;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--pw-text);
	background: var(--pw-bg);
	padding: 1px 5px;
	border-radius: var(--pw-radius-sm);
	pointer-events: none;
	transition: opacity 0.4s var(--pw-easing-default);
}
.ab-tl__ms--up .ab-tl__ms-lab { bottom: 18px; }
.ab-tl__ms--down .ab-tl__ms-lab { top: 18px; }
.ab-tl__ms--major .ab-tl__ms-lab { font-weight: 700; }
.ab-tl__ms-yr { display: block; font-size: 10px; font-weight: 700; color: var(--pw-text-muted); }

.ab-tl__ms:hover { z-index: 5; }
.ab-tl__ms:hover .ab-tl__ms-dot { transform: translate(-50%, -50%) rotate(45deg) scale(1.3); }

/* Armierter Anfangszustand der Marker (nur wenn JS animiert). */
.ab-tl.is-ms-armed .ab-tl__ms-dot { transform: translate(-50%, -50%) rotate(45deg) scale(0.3); }
.ab-tl.is-ms-armed .ab-tl__ms-lab { opacity: 0; }
.ab-tl.is-ms-armed .ab-tl__ms.is-in .ab-tl__ms-dot { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.ab-tl.is-ms-armed .ab-tl__ms.is-in .ab-tl__ms-lab { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.ab-story__long { transition: none; }
	.ab-tl__fill,
	.ab-tl__ms-dot,
	.ab-tl__ms-lab { transition: none; }
}

/* ==========================================================================
   Schluss-Zitat
   ========================================================================== */
.ab-quote { text-align: center; }
.ab-quote__text {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 0 0;
	border: none;
	position: relative;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.45;
	font-style: italic;
	color: var(--pw-text);
}
.ab-quote__text::before {
	content: "\201C";
	font-family: var(--pw-font);
	font-size: 90px;
	line-height: 1;
	color: var(--pw-brand);
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
}
.ab-quote__cite {
	display: block;
	margin-top: var(--pw-space-lg);
	font-size: 14px;
	font-style: normal;
	color: var(--pw-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.ab-vgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.ab-story__lede { columns: 1; }
}
@media (max-width: 560px) {
	.ab-tl__wrap { padding-inline: 8px; }
	.ab-tl__nav { width: 34px; height: 34px; }
	.ab-tl__nav svg { width: 17px; height: 17px; }
}
@media (max-width: 768px) {
	.ab-hero__stats { gap: var(--pw-space-lg) var(--pw-space-2xl); }
}
@media (max-width: 560px) {
	.ab-vgrid { grid-template-columns: 1fr; }
	.ab-modal__box { padding: var(--pw-space-xl); }
}
@media (max-width: 480px) {
	.ab-hero__stats { gap: var(--pw-space-lg); }
}
