/* =========================================================
   IEM Themes - main.css
   ========================================================= */

:root {
	--navy: #0e2f5e;
	--navy-deep: #0a2247;
	--blue: #1a5cb0;
	--blue-light: #eaf3fb;
	--text-dark: #1f2937;
	--text-muted: #5b6774;
	--border-light: #e2e8f0;
	--flag-black: #111111;
	--flag-red: #d00c1f;
	--flag-gold: #f3b700;
	--radius: 10px;
	--container-width: 1280px;
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Kept in the markup for SEO/semantic context but not shown visually. */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text-dark);
	line-height: 1.5;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--navy); }

p { margin: 0; }

.section-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 32px;
}

.btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-dark { border-color: #fff; color: #fff; }
.btn-outline-dark:hover { background: #fff; color: var(--navy); }

/* =========================================================
   Header
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border-light);
}

.header-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-right: auto;
}
.site-logo-bar {
	width: 4px;
	height: 26px;
	background: var(--navy);
	display: inline-block;
}
.site-logo-text {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--navy);
	letter-spacing: 0.5px;
}

.main-navigation .nav-menu {
	display: flex;
	align-items: center;
	gap: 30px;
}
.main-navigation .nav-menu a {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--text-dark);
}
.main-navigation .nav-menu a:hover { color: var(--blue); }

.header-cta { white-space: nowrap; padding: 10px 22px; font-size: 0.88rem; }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.menu-toggle span {
	display: block;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
	position: relative;
	width: 100%;
	aspect-ratio: 1672 / 941;
	overflow: hidden;
	background: #eef4fa;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.hero-overlay { display: none; }

.hero-content {
	position: absolute;
	left: 38%;
	top: 10%;
	width: 55%;
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 1.6vw, 26px);
}

.hero-logo {
	display: flex;
	align-items: center;
	gap: clamp(6px, 0.7vw, 12px);
}
.hero-logo-bar {
	width: clamp(3px, 0.32vw, 6px);
	height: clamp(30px, 3.6vw, 62px);
	background: var(--navy);
	display: inline-block;
}
.hero-logo-title {
	display: block;
	font-size: clamp(1.6rem, 4.6vw, 3.4rem);
	font-weight: 800;
	color: var(--navy);
	line-height: 1;
	letter-spacing: 0.5px;
}
.hero-logo-sub {
	display: block;
	margin-top: clamp(2px, 0.4vw, 6px);
	font-size: clamp(0.55rem, 0.85vw, 0.95rem);
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.5px;
	line-height: 1.3;
}

.made-in-germany {
	display: flex;
	flex-direction: column;
	gap: clamp(3px, 0.4vw, 6px);
	width: fit-content;
}
.made-in-germany span {
	font-size: clamp(0.7rem, 1vw, 1.05rem);
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 1px solid #cbd5e1;
	padding-bottom: clamp(6px, 0.8vw, 12px);
}
.flag-stripe {
	display: block;
	height: 4px;
	width: 100%;
	background: linear-gradient(to right, var(--flag-black) 0 33.3%, var(--flag-red) 33.3% 66.6%, var(--flag-gold) 66.6% 100%);
}

.hero-heading {
	font-size: clamp(1.15rem, 2.7vw, 2.35rem);
	line-height: 1.18;
	color: var(--navy);
	font-weight: 800;
}
.hero-heading span { display: inline; }

.hero-text {
	font-size: clamp(0.8rem, 1.15vw, 1.15rem);
	color: var(--text-dark);
	max-width: 46ch;
	line-height: 1.5;
}

.hero-features {
	display: flex;
	align-items: flex-start;
	gap: clamp(8px, 1.4vw, 22px);
	margin-top: clamp(4px, 0.6vw, 10px);
}
.hero-features li {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(4px, 0.6vw, 10px);
	padding-right: clamp(8px, 1.4vw, 22px);
	border-right: 1px solid #c9d6e3;
}
.hero-features li:last-child { border-right: none; padding-right: 0; }

.feature-link {
	display: contents;
	text-decoration: none;
	color: inherit;
}
a.feature-link:hover .feature-label,
a.feature-link:focus-visible .feature-label { text-decoration: underline; }

.feature-icon {
	width: clamp(40px, 4.5vw, 66px);
	height: clamp(40px, 4.5vw, 66px);
	color: var(--navy);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }

.feature-label {
	font-size: clamp(0.5rem, 0.72vw, 0.78rem);
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.2px;
	line-height: 1.3;
	text-transform: uppercase;
}

.hero-badges {
	position: absolute;
	left: 4%;
	bottom: 5%;
	width: 58%;
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.6vw, 26px);
}
.badge-item {
	display: flex;
	align-items: center;
	gap: clamp(5px, 0.7vw, 10px);
	padding-right: clamp(10px, 1.6vw, 26px);
	border-right: 1px solid #c9d6e3;
	white-space: nowrap;
}
.badge-item:last-child { border-right: none; }
.badge-icon {
	width: clamp(18px, 2.1vw, 30px);
	height: clamp(18px, 2.1vw, 30px);
	color: var(--navy);
	flex-shrink: 0;
}
.badge-icon svg { width: 100%; height: 100%; }
.badge-label {
	font-size: clamp(0.45rem, 0.62vw, 0.68rem);
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.3px;
	line-height: 1.35;
}

/* Hero: compact / mobile layout */
@media (max-width: 900px) {
	.hero {
		aspect-ratio: auto;
		display: flex;
		flex-direction: column;
	}
	.hero-bg {
		position: relative;
		height: 46vw;
		min-height: 220px;
		max-height: 340px;
		background-position: left center;
	}
	.hero-content {
		position: static;
		width: auto;
		padding: 28px 20px 10px;
		background: linear-gradient(180deg, #eef4fb, #ffffff);
		gap: 14px;
	}
	.hero-heading { font-size: 1.5rem; }
	.hero-text { font-size: 0.95rem; max-width: none; }
	.hero-features {
		flex-wrap: wrap;
		row-gap: 18px;
	}
	.hero-features li {
		flex: 1 1 30%;
		border-right: none;
		padding-right: 0;
	}
	.hero-badges {
		position: static;
		width: auto;
		flex-wrap: wrap;
		row-gap: 14px;
		padding: 4px 20px 26px;
		background: #fff;
	}
	.badge-item { padding-right: 16px; }
}

@media (max-width: 560px) {
	.hero-features li { flex: 1 1 45%; }
}

/* =========================================================
   Applications section
   ========================================================= */

.applications { padding: 90px 0; background: #fff; }

.eyebrow {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 14px;
}
.eyebrow-light { color: #9dc0ea; }

.applications h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	max-width: 18ch;
}

.section-lead {
	margin-top: 18px;
	max-width: 62ch;
	color: var(--text-muted);
	font-size: 1.05rem;
}

.application-grid {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

.application-card {
	background: var(--blue-light);
	border-radius: var(--radius);
	padding: 32px 26px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.application-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(14, 47, 94, 0.1);
}
a.application-card {
	display: block;
	color: inherit;
	text-decoration: none;
}
a.application-card:hover { color: inherit; }

.gehaeuseart-section { background: var(--blue-light); }
.gehaeuseart-section .application-card { background: #fff; }

.application-card.has-photo {
	padding: 0 0 28px;
	overflow: hidden;
}
.application-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.application-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.application-card.has-photo h3,
.application-card.has-photo p {
	padding-left: 26px;
	padding-right: 26px;
}
.application-card.has-photo h3 { margin-top: 22px; }
.application-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--navy);
	margin-bottom: 20px;
}
.application-icon svg { width: 26px; height: 26px; }
.application-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.application-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

@media (max-width: 980px) {
	.application-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.application-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Why IEM section
   ========================================================= */

.why-iem {
	background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--blue));
	color: #fff;
	padding: 90px 0;
}
.why-iem-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 60px;
	align-items: center;
}
.why-iem-text h2 {
	color: #fff;
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	max-width: 20ch;
	margin-bottom: 20px;
}
.why-iem-text p {
	color: #cfe0f2;
	font-size: 1.02rem;
	line-height: 1.7;
	margin-bottom: 30px;
	max-width: 56ch;
}

.why-iem-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
}
.stat {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
}
.stat-number {
	display: block;
	font-size: 1.9rem;
	font-weight: 800;
	color: #fff;
}
.stat-label {
	display: block;
	margin-top: 6px;
	font-size: 0.82rem;
	color: #b9d2ec;
	letter-spacing: 0.3px;
}

@media (max-width: 860px) {
	.why-iem-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   CTA strip
   ========================================================= */

.cta-strip { background: var(--blue-light); padding: 70px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-inner p { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }
.cta-inner .btn { margin-top: 26px; background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-inner .btn:hover { background: var(--blue); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer { background: var(--navy-deep); color: #cfe0f2; padding: 64px 0 0; }
.footer-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo .site-logo-bar { background: #fff; }
.footer-logo .site-logo-text { color: #fff; }
.footer-tagline { margin-top: 16px; font-size: 0.92rem; line-height: 1.6; color: #a9c4e0; }
.footer-widget-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-contact-list li { margin-bottom: 10px; font-size: 0.92rem; color: #cfe0f2; }
.footer-contact-list a:hover, .footer-menu a:hover { color: #fff; }
.footer-menu li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom { max-width: var(--container-width); margin: 0 auto; padding: 22px 32px; font-size: 0.82rem; color: #8fadcf; text-align: center; }
.footer-ai-notice { color: #ff5252; margin-top: 6px; }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	transition: transform 0.2s ease, filter 0.2s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: #fff; }
.social-icon:hover { transform: translateY(-2px); filter: brightness(1.1); }
.social-facebook { background: #1877f2; }
.social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-xing { background: #026466; }
.social-linkedin { background: #0a66c2; }
.social-youtube { background: #ff0000; }
.social-tiktok { background: #000000; }
.social-whatsapp { background: #25d366; }

@media (max-width: 780px) {
	.footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Umweltschutz (environmental protection) page
   ========================================================= */

.eco-hero { padding: 70px 0 10px; background: #fff; }
.eco-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-top: 6px; }
.eco-hero .section-lead { margin-top: 18px; }

.eco-section { padding: 70px 0; }
.eco-section-alt { background: var(--blue-light); }

.eco-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.eco-split-reverse .eco-media { order: 2; }
.eco-split-reverse .eco-text { order: 1; }

.eco-text h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	margin: 10px 0 18px;
}
.eco-text h2 svg { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.eco-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }

.eco-media img {
	border-radius: var(--radius);
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

.eco-solar-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: var(--blue-light);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin-top: 24px;
}
.eco-solar-cta strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.eco-solar-cta p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.eco-solar-cta .btn { white-space: nowrap; }

.eco-gallery {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.eco-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.eco-gallery img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	transition: transform 0.3s ease;
}
.eco-gallery figure:hover img { transform: scale(1.06); }

.eco-videos {
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}
.eco-videos figure { margin: 0; }
.eco-videos video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	background: #000;
}
.eco-videos figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); text-align: center; }

.eco-products.application-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
	.eco-gallery { grid-template-columns: repeat(2, 1fr); }
	.eco-products.application-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.eco-split { grid-template-columns: 1fr; }
	.eco-split-reverse .eco-media, .eco-split-reverse .eco-text { order: initial; }
	.eco-videos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.eco-gallery { grid-template-columns: 1fr; }
	.eco-products.application-grid { grid-template-columns: 1fr; }
	.eco-solar-cta { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Anwendungsbereiche (application categories) page
   ========================================================= */

.category-grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 20px;
}
.category-tile {
	display: block;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(14, 47, 94, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.category-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(14, 47, 94, 0.14);
}
.category-tile.is-inactive { opacity: 0.55; cursor: default; }
.category-tile-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.category-tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.category-tile-title {
	display: block;
	padding: 14px 12px;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.35;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}
.category-tile-count { color: var(--text-muted); font-weight: 500; }

@media (max-width: 1200px) {
	.category-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 980px) {
	.category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
	.category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
	.category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Referenzen (client references) page
   ========================================================= */

.reference-grid {
	margin-top: 8px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.reference-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 18px 14px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.reference-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(14, 47, 94, 0.1);
	border-color: transparent;
}
.reference-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 60px;
}
.reference-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.reference-name {
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--text-muted);
	line-height: 1.3;
}

@media (max-width: 1200px) {
	.reference-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px) {
	.reference-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
	.reference-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
	.reference-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Galerie (equipment photo grid)
   ========================================================= */

.gallery-grid {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.gallery-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(14, 47, 94, 0.1);
	border-color: transparent;
}
.gallery-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #fff;
	border: none;
	padding: 14px;
	font: inherit;
	cursor: zoom-in;
	overflow: hidden;
}
.gallery-photo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.gallery-number {
	padding: 8px 12px 10px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
}

.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(10, 20, 40, 0.85);
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}
.gallery-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}
.gallery-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
@media (prefers-reduced-motion: no-preference) {
	.gallery-lightbox img { animation: gallery-lightbox-in 0.15s ease; }
}
@keyframes gallery-lightbox-in {
	from { opacity: 0; transform: scale(0.97); }
	to { opacity: 1; transform: scale(1); }
}
@media (max-width: 1200px) {
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Über Umkehrosmose (FAQ / article page)
   ========================================================= */

.article-columns {
	margin-top: 32px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}
.article-columns h3 { font-size: 1.05rem; margin-bottom: 12px; }
.article-columns p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; margin-bottom: 24px; }
.article-columns p:last-child { margin-bottom: 0; }

.faq-table-wrap { overflow-x: auto; margin: 18px 0; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.faq-table th, .faq-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border-light); }
.faq-table th { background: var(--blue-light); color: var(--navy); }

.faq-list { margin-top: 40px; max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 4px;
	background: none;
	border: none;
	text-align: left;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--navy);
	cursor: pointer;
	font-family: inherit;
}
.faq-icon {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}
.faq-icon::before, .faq-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--navy);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 4px 24px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.7; }
.faq-answer-inner p { margin-bottom: 14px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.faq-answer-inner li { margin-bottom: 6px; }
.faq-answer-inner a { color: var(--blue); text-decoration: underline; }

@media (max-width: 860px) {
	.article-columns { grid-template-columns: 1fr; gap: 8px; }
}

/* =========================================================
   Kontakt page
   ========================================================= */

.contact-grid {
	margin-top: 8px;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 56px;
	align-items: start;
}
.contact-info h2,
.contact-form-wrap h2 { font-size: 1.3rem; margin-bottom: 20px; }

.contact-address {
	font-style: normal;
	line-height: 1.6;
	color: var(--text-dark);
	margin-bottom: 24px;
}

.contact-detail-list { margin-bottom: 28px; }
.contact-detail-list li {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-light);
	font-size: 0.95rem;
}
.contact-detail-list li span {
	flex: 0 0 90px;
	font-weight: 700;
	color: var(--navy);
}
.contact-detail-list a { color: var(--blue); }
.contact-detail-list a:hover { text-decoration: underline; }

.contact-map { border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form-wrap {
	background: var(--blue-light);
	border-radius: var(--radius);
	padding: 36px;
}

.shop-inquiry-section {
	padding: 60px 0 70px;
	border-top: 1px solid var(--border-light);
	margin-top: 50px;
}
.shop-inquiry-section .contact-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

/* =========================================================
   Single product page — sticky inquiry sidebar
   ========================================================= */

.single-product-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 44px;
	align-items: start;
}
.single-product-main { min-width: 0; }

.single-product-aside {
	position: sticky;
	top: 96px;
}
.single-product-aside .contact-form-wrap {
	padding: 28px;
}
.single-product-aside .contact-form-wrap h2 { font-size: 1.1rem; }

@media (max-width: 960px) {
	.single-product-layout { grid-template-columns: 1fr; }
	.single-product-aside {
		position: static;
		margin-top: 50px;
	}
	.single-product-aside .contact-form-wrap { max-width: 480px; }
}

.contact-notice {
	padding: 14px 18px;
	border-radius: var(--radius);
	font-size: 0.92rem;
	margin-bottom: 20px;
}
.contact-notice-success { background: #e3f5e9; color: #1c6b3a; }
.contact-notice-error { background: #fbe7e7; color: #a3282d; }

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

.form-field { margin-bottom: 18px; }
.form-field label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--navy);
	margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	font-family: var(--font);
	font-size: 0.95rem;
	color: var(--text-dark);
	background: #fff;
	resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--blue);
}

.contact-form .btn { border: none; width: 100%; text-align: center; }

@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   Generic content (index fallback)
   ========================================================= */

.generic-content { padding: 60px 0; max-width: 800px; }
.generic-content article { margin-bottom: 40px; }
.generic-content h2 { margin-bottom: 10px; }

/* =========================================================
   Blog
   ========================================================= */

.blog-list { max-width: 780px; }
.blog-list-item {
	padding: 32px 0;
	border-bottom: 1px solid var(--border-light);
}
.blog-list-item:first-child { padding-top: 0; }
.blog-list-date { color: var(--text-muted); font-size: 0.85rem; }
.blog-list-title { margin: 8px 0 12px; }
.blog-list-title a { color: var(--navy); }
.blog-list-title a:hover { color: var(--blue); }
.blog-list-excerpt { color: var(--text-muted); font-size: 0.97rem; line-height: 1.65; margin-bottom: 16px; }

/* =========================================================
   Legal pages (Impressum, AGB)
   ========================================================= */

.legal-content { max-width: 780px; }
.legal-content h2 {
	font-size: 1.1rem;
	margin: 34px 0 12px;
	color: var(--navy);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
	color: var(--text-dark);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 14px;
}
.legal-content strong { color: var(--navy); }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content ul {
	list-style: disc;
	margin: 0 0 14px;
	padding-left: 22px;
}
.legal-content li {
	color: var(--text-dark);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 6px;
}
.legal-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 24px;
	font-size: 0.9rem;
	background: var(--blue-light);
	border-radius: var(--radius);
	overflow: hidden;
}
.legal-content table td { padding: 22px 26px; }
.legal-content table p:last-child { margin-bottom: 0; }

/* =========================================================
   Mobile nav
   ========================================================= */

@media (max-width: 860px) {
	.menu-toggle { display: flex; }
	.header-cta { display: none; }
	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border-light);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.main-navigation.is-open { max-height: 320px; }
	.main-navigation .nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 32px 20px;
	}
	.main-navigation .nav-menu li { width: 100%; }
	.main-navigation .nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
}
