/* Hanse Elemente Konfigurator 1.1.0: Gestaltung der Website-Shortcodes
   (Katalog, Referenzen, Technik, Mitarbeiterbereich). Nutzt die Farben des
   Hanse Elemente-Themes und hat eigene Rückfallwerte für andere Themes. */

:is(.hc-catalog, .hc-reference-grid, .hc-tech, .hc-staff, .hc-hero-photo) {
	--hs-anth: var(--hc-anthrazit, #383e42);
	--hs-ink: var(--hc-tinte, #1f2427);
	--hs-muted: var(--hc-stahl, #5e666c);
	--hs-line: var(--hc-linie, #d5dadd);
	--hs-tint: var(--hc-weiss, #f4f6f7);
	--hs-amber: var(--hc-amber, #f2a33a);
	--hs-amber-text: var(--hc-amber-text, #9a5a00);
	--hs-grain: var(--hc-grain, none);
}

/* ---------- Katalog ---------- */
.hc-catalog { margin-top: 8px; }
.hc-catalog__nav {
	position: sticky;
	top: var(--hc-sticky-top, 0);
	z-index: 5;
	margin: 0 0 32px;
	padding: 10px 0;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--hs-line);
}
.hc-catalog__nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hc-catalog__nav ul::-webkit-scrollbar { display: none; }
.hc-catalog__nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--hs-line);
	border-radius: 3px;
	color: var(--hs-ink);
	font-weight: 640;
	text-decoration: none;
	white-space: nowrap;
}
.hc-catalog__nav a span { color: var(--hs-amber-text); font-size: .875em; }
.hc-catalog__nav a:hover { border-color: var(--hs-anth); }
.hc-catalog__series { padding: 8px 0 48px; scroll-margin-top: calc(var(--hc-sticky-top, 0px) + 72px); }
.hc-catalog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; border-bottom: 2px solid var(--hs-anth); padding-bottom: 12px; }
.hc-catalog__head h2 { margin: 0 !important; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.hc-catalog__head p { margin: 0; color: var(--hs-muted); }
.hc-model-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hc-model-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 10px 14px;
	border: 1px solid var(--hs-line);
	border-radius: 4px;
	background: #fff;
	color: var(--hs-ink);
	text-align: center;
	text-decoration: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hc-model-card img { display: block; width: auto; height: 200px; object-fit: contain; transition: transform .2s ease; }
.hc-model-card strong { margin-top: 14px; font-size: 1.0625rem; font-weight: 720; font-stretch: 110%; }
.hc-model-card > span:not(.screen-reader-text) { margin-top: 2px; color: var(--hs-amber-text); font-size: .875rem; font-weight: 620; }
.hc-model-card:hover { border-color: var(--hs-anth); box-shadow: 0 14px 30px -22px rgba(31, 36, 39, .6); }
.hc-model-card:hover img { transform: translateY(-4px); }
@media (max-width: 600px) {
	.hc-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hc-model-card img { height: 170px; }
}

/* ---------- Referenzen ---------- */
.hc-reference-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
	margin: 24px 0 8px;
}
.hc-reference-grid figure { min-width: 0; margin: 0; }
.hc-reference-grid a { display: block; overflow: hidden; border-radius: 3px; background: var(--hs-tint); }
.hc-reference-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s ease; }
.hc-reference-grid a:hover img { transform: scale(1.025); }
.hc-reference-grid figcaption { padding: 10px 0 0; color: var(--hs-muted); font-size: .9375rem; }
@media (max-width: 900px) { .hc-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hc-reference-grid { grid-template-columns: 1fr; } }

/* ---------- Technik ---------- */
.hc-tech { margin: 32px 0 8px; color: var(--hs-ink); }
.hc-tech p { line-height: 1.7; }
.hc-tech .hc-tech-kicker { margin: 0 0 6px; color: var(--hs-amber-text); font-size: .875rem; font-weight: 680; }
.hc-tech .hc-tech-intro { max-width: 760px; margin: 0 0 32px; }
.hc-tech .hc-tech-intro h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.hc-tech .hc-tech-intro > p:last-child { color: var(--hs-muted); }
.hc-tech .hc-tech-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.hc-tech .hc-tech-profile { display: flex; align-items: center; gap: 22px; padding: 22px; background: #fff; border: 1px solid var(--hs-line); border-radius: 4px; }
.hc-tech .hc-tech-profile-image { position: relative; flex: 0 0 150px; align-self: stretch; display: grid; place-items: center; min-height: 220px; background: var(--hs-tint); border-radius: 3px; }
.hc-tech .hc-tech-profile-image img { width: 100%; height: 200px; padding: 12px 12px 12px 56px; object-fit: contain; }
.hc-tech .hc-ud-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	padding: 6px;
	border-radius: 50%;
	background: var(--hs-anth);
	color: #fff;
	text-align: center;
	line-height: 1.2;
}
.hc-tech .hc-ud-badge strong { display: block; margin: 1px 0; color: var(--hs-amber); font-size: 21px; font-weight: 760; font-stretch: 116%; }
.hc-tech .hc-ud-badge small { display: block; color: #fff; font-size: 10px; line-height: 1.3; }
.hc-tech .hc-tech-profile h3 { margin: 0 0 10px; font-size: 1.375rem; }
.hc-tech .hc-tech-profile p:last-child { margin: 0; color: var(--hs-muted); font-size: .9375rem; }
.hc-tech .hc-tech-note { margin: 24px 0 40px; padding: 20px 24px; border-left: 4px solid var(--hs-amber); background: var(--hs-tint); color: var(--hs-muted); font-size: .9375rem; line-height: 1.7; }
.hc-tech .hc-tech-note strong { display: block; margin-bottom: 4px; color: var(--hs-ink); }
.hc-tech .hc-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hc-tech .hc-tech-card { overflow: hidden; background: #fff; border: 1px solid var(--hs-line); border-radius: 4px; }
.hc-tech .hc-tech-card-copy { padding: 22px 24px 26px; }
.hc-tech .hc-tech-card h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.2; }
.hc-tech .hc-tech-card-copy > p:last-child { margin: 0; color: var(--hs-muted); font-size: .9375rem; }
.hc-tech .hc-tech-caption { margin: 16px 0 40px; color: var(--hs-muted); font-size: .875rem; }
.hc-tech .hc-tech-action { padding: clamp(24px, 4vw, 40px); border-radius: 4px; background-color: var(--hs-anth); background-image: var(--hs-grain); color: #d3d8db; }
.hc-tech .hc-tech-action h3 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.hc-tech .hc-tech-action p { max-width: 640px; }
.hc-tech .hc-tech-action a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: .75em 1.35em;
	border-radius: 3px;
	background: var(--hs-amber);
	color: var(--hs-ink);
	font-weight: 700;
	text-decoration: none;
}
.hc-tech .hc-tech-action a:hover { background: #f7b65c; }
@media (min-width: 701px) {
	.hc-tech .hc-tech-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
	.hc-tech .hc-tech-card:last-child .hc-tech-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 1000px) { .hc-tech .hc-tech-profiles { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
	.hc-tech .hc-tech-grid { grid-template-columns: 1fr; gap: 18px; }
	.hc-tech .hc-tech-profile { flex-direction: column; align-items: stretch; padding: 18px; }
	.hc-tech .hc-tech-profile-image { flex-basis: auto; }
}

/* ---------- Mitarbeiterbereich und Alt-Hero ---------- */
.hc-staff h2 { margin-top: 0; }
.hc-hero-photo { margin: 0; }
.hc-hero-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.hc-hero-photo figcaption { margin-top: 8px; color: var(--hs-muted); font-size: .875rem; }

/* 2.4.4 · Technik mit Fotos statt Prinzipgrafiken */
.hc-tech .hc-tech-media { display: flex; gap: 3px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hs-tint); }
.hc-tech .hc-tech-media figure { position: relative; flex: 1; min-width: 0; margin: 0; }
.hc-tech .hc-tech-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hc-tech .hc-tech-media figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 2px; background: rgba(255,255,255,.94); color: var(--hs-ink); font-size: 12px; font-weight: 650; line-height: 1.3; }
.hc-tech .hc-tech-media--lock { background: #fff; }
.hc-tech .hc-tech-media--lock img { object-fit: contain; padding: 18px; }
.hc-tech .hc-tech-media--access img { object-position: 22% 50%; }
.hc-tech .hc-tech-media--handle img { object-position: 50% 52%; }
.hc-tech .hc-tech-media--measure img { object-position: 50% 62%; }
.hc-tech .hc-tech-media--color img { object-position: 50% 45%; }
.hc-tech .hc-tech-profile-image { flex-basis: 190px; }
.hc-tech .hc-tech-profile-image img { height: 240px; }
