/**
 * envitron 2026 — About-Page Styles
 *
 * Sektionen:
 *   1. .about-story    — 2-Col Editorial (Figure + Body)
 *   2. .about-pillars  — 3-Col Pillar-Cards (Eigenentwicklung, Bayern, Awards)
 *
 * Lebt unabhaengig von page.php (Default-Template) — die About-Pages haben
 * ihr eigenes Template-File (page-ueber-uns.php / page-about-us.php).
 *
 * Konvention: section > container > hgroup + section__content
 *
 * Lighthouse-Hinweise:
 *   - Bilder mit explicit width/height (CLS)
 *   - 2-Col-Grid bricht <820px in 1-Col
 *   - 3-Col-Grid bricht <820px in 2-Col, <540px in 1-Col
 */

/* ======================================================================= */
/* 1. About-Story (Editorial 2-Col)                                        */
/* ======================================================================= */
.about-story {
	background: var(--white);
}

.about-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: start;
}

@media (max-width: 820px) {
	.about-story__grid {
		grid-template-columns: 1fr;
		gap: clamp(1.5rem, 4vw, 2.25rem);
	}
}

.about-story__figure {
	margin: 0;
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--ink-50);
	box-shadow:
		0 1px 2px rgba(15, 23, 32, 0.06),
		0 12px 32px -16px rgba(15, 23, 32, 0.30);
}

.about-story__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: saturate(0.95) contrast(1.02);
}

.about-story__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.5rem 1.25rem 1rem;
	color: var(--white);
	background: linear-gradient(0deg, rgba(15, 23, 32, 0.82) 0%, rgba(15, 23, 32, 0) 100%);
	font-size: 0.92rem;
	line-height: 1.4;
}
.about-story__caption strong {
	display: block;
	font-size: 1.05rem;
	color: var(--white);
	font-weight: 700;
	letter-spacing: -0.005em;
}
.about-story__caption span {
	color: rgba(255, 255, 255, 0.78);
}

.about-story__body {
	color: var(--ink-800);
}
.about-story__body p {
	margin: 0 0 1rem;
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
	line-height: 1.65;
}
.about-story__body p:last-child { margin-bottom: 0; }

.about-story__intro {
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem) !important;
	font-weight: 500;
	color: var(--ink-900) !important;
	line-height: 1.55 !important;
	border-left: 3px solid var(--brand-500);
	padding-left: 1rem;
	margin-bottom: 1.5rem !important;
}

/* ======================================================================= */
/* 2. Pillars-Grid (3 Cards)                                               */
/* ======================================================================= */
.about-pillars {
	background: var(--ink-50);
}

.pillars-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* Tablet: bleibt 3-Col bis runter zu 640px (drei Cards muss zusammen
 * lesbar sein — ein einsamer Pillar in zweiter Reihe waere haesslich). */
@media (max-width: 640px) {
	.pillars-grid {
		grid-template-columns: 1fr;
	}
}

.pillar-card {
	display: grid;
	gap: 0.5rem;
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--white);
	border: 1px solid var(--ink-200);
	border-radius: var(--radius-md);
	box-shadow:
		0 1px 2px rgba(15, 23, 32, 0.04),
		0 8px 18px -14px rgba(15, 23, 32, 0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover {
	transform: translateY(-3px);
	border-color: var(--brand-200);
	box-shadow:
		0 1px 2px rgba(15, 23, 32, 0.06),
		0 18px 32px -20px rgba(40, 167, 69, 0.35);
}

.pillar-card__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
	color: var(--brand-700);
	margin-bottom: 0.5rem;
}
.pillar-card__icon svg {
	width: 30px;
	height: 30px;
	display: block;
}

.pillar-card[data-icon="award"] .pillar-card__icon {
	background: linear-gradient(135deg, #fff6db 0%, #f8e3a8 100%);
	color: #8a6a14;
}
.pillar-card[data-icon="shield"] .pillar-card__icon {
	background: linear-gradient(135deg, #eaf0ff 0%, #cbd9ff 100%);
	color: #2a4f9e;
}

.pillar-card__lead {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--brand-700);
}
.pillar-card__title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	color: var(--ink-900);
	line-height: 1.25;
}
.pillar-card__text {
	margin: 0.25rem 0 0;
	color: var(--ink-700);
	line-height: 1.6;
	font-size: 0.97rem;
}

@media (prefers-reduced-motion: reduce) {
	.pillar-card,
	.pillar-card:hover {
		transition: none;
		transform: none;
	}
}
