/* ==========================================================================
   Schnatz Präzisionswerk – Theme-Styles
   Farben/Typo kommen aus theme.json; hier nur Komponenten-Details.
   ========================================================================== */

:root {
	--sz-navy: var(--wp--preset--color--navy, #0D1720);
	--sz-blue: var(--wp--preset--color--blue, #00A3D4);
	--sz-blue-dark: var(--wp--preset--color--blue-dark, #0077A3);
	--sz-muted: var(--wp--preset--color--muted, #52626E);
	--sz-muted-dark: var(--wp--preset--color--muted-on-dark, #C9D6DF);
	--sz-border: var(--wp--preset--color--border, #DCE4EA);
	--sz-section-y: clamp(64px, 8vw, 120px);
}

/* Basis ------------------------------------------------------------------ */
.sz-main { margin-block-start: 0; }
.sz-main > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }

.has-navy-background-color a:where(:not(.wp-element-button)),
.has-navy-deep-background-color a:where(:not(.wp-element-button)),
.wp-block-cover a:where(:not(.wp-element-button)) { color: var(--sz-blue); }

.sz-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--sz-blue-dark);
	margin-block-end: 0;
}
.has-navy-background-color .sz-eyebrow,
.wp-block-cover .sz-eyebrow { color: var(--sz-blue); }
.sz-eyebrow--light { color: var(--sz-muted-dark) !important; letter-spacing: .28em; }
.sz-eyebrow--line { display: flex; align-items: center; gap: 14px; font-size: 14px; letter-spacing: .28em; }
.sz-eyebrow--line::before { content: ""; width: 40px; height: 2px; background: var(--sz-blue); flex: none; }

.sz-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: #3A4A57; }
.has-navy-background-color .sz-lead,
.wp-block-cover .sz-lead { color: var(--sz-muted-dark); }
.sz-muted { color: var(--sz-muted); }
.has-navy-background-color .sz-muted,
.wp-block-cover .sz-muted { color: var(--sz-muted-dark); }
.sz-placeholder { font-size: 15px; color: var(--sz-muted); font-style: italic; }

/* Sektionen */
.sz-section {
	padding-block: var(--sz-section-y) !important;
}
.sz-section > * + * { margin-block-start: clamp(32px, 4vw, 56px); }
.sz-section h2 { margin-block-start: 12px; }

.sz-cols { gap: clamp(32px, 5vw, 64px) !important; }

.sz-grid-bg {
	background-image:
		linear-gradient(rgba(0,163,212,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,163,212,.07) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255,255,255,.55);
	padding: 12.5px 22.5px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--sz-blue); color: var(--sz-blue); }
.wp-block-button.is-style-dark > .wp-block-button__link { background: var(--sz-navy); color: #fff; }
.wp-block-button.is-style-dark > .wp-block-button__link:hover { background: #1D3040; color: #fff; }
.sz-btn-arrow .wp-block-button__link::after { content: "→"; margin-left: 10px; font-weight: 700; }

/* Header ----------------------------------------------------------------- */
.sz-header-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.sz-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.sz-header__inner { min-height: 84px; gap: 24px; }
.sz-logo { margin: 0; }
.sz-logo img { height: 46px; width: auto; display: block; }
.sz-header__nav { gap: 28px; }
.sz-nav a { color: #E6EDF2; }
.sz-nav a:hover { color: var(--sz-blue); text-decoration: none; }
.sz-nav .wp-block-navigation-item__content { padding-block: 12px; }
.sz-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--sz-navy) !important; color: #fff !important; }
.sz-nav .wp-block-navigation__responsive-container-open svg,
.sz-nav .wp-block-navigation__responsive-container-close svg { fill: #fff; }
@media (max-width: 600px) {
	.sz-header__cta { display: none; }
	.sz-logo img { height: 36px; }
}

/* Hero ------------------------------------------------------------------- */
.sz-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(13,23,32,.96) 0%, rgba(13,23,32,.82) 42%, rgba(13,23,32,.25) 100%) !important;
	opacity: 1 !important;
}
.sz-hero .wp-block-cover__inner-container { padding-block: clamp(64px, 8vw, 96px); }
.sz-hero__title {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: .98;
	max-width: 780px;
	margin-block: 28px 0;
}
.sz-hero__lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--sz-muted-dark); max-width: 600px; }
.sz-hero .wp-block-buttons { margin-block-start: 36px; gap: 16px; }

/* Kennzahlen ------------------------------------------------------------- */
.sz-stats { border-top: 1px solid rgba(0,163,212,.35); }
.sz-stats__grid { gap: 0 !important; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)) !important; }
.sz-stat {
	padding: 36px 20px;
	border-right: 1px solid rgba(255,255,255,.08);
}
.sz-stat:last-child { border-right: 0; }
.sz-stat__value {
	font-size: clamp(32px, 3.2vw, 44px);
	font-weight: 800;
	line-height: 1;
	color: var(--sz-blue);
	margin: 0;
}
.sz-stat__label { font-size: 15px; color: var(--sz-muted-dark); margin: 6px 0 0; line-height: 1.4; }

/* Anspruch --------------------------------------------------------------- */
.sz-duo { gap: 20px !important; }
.sz-panel { padding: clamp(28px, 3vw, 40px); border-top: 3px solid var(--sz-blue); }
.sz-panel > * + * { margin-block-start: 14px; }
.sz-panel__text { font-size: 21px; line-height: 1.4; font-weight: 600; }
.sz-tags { gap: 10px !important; margin-block-start: 24px; }
.sz-tag { padding: 10px 16px; border: 1px solid #C9D6DF; font-weight: 600; font-size: 15px; margin: 0; }

/* Branchen --------------------------------------------------------------- */
.sz-sechead { gap: 24px; }
.sz-sechead__text { max-width: 680px; }
.sz-branchen { gap: 16px !important; }
.sz-branche {
	border: 1px solid rgba(0,163,212,.45);
	background: rgba(13,23,32,.6);
	padding: 28px;
}
.sz-branche svg { color: var(--sz-blue); display: block; }
.sz-branche > * + * { margin-block-start: 14px; }
.sz-branche__title { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.sz-branche .sz-muted { font-size: 15px; line-height: 1.5; }
.sz-refs {
	gap: 12px 32px !important;
	align-items: center;
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,.1);
}
.sz-refs p { margin: 0; }
.sz-refs__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8FA3B1; }
.sz-refs__name { font-size: 18px; font-weight: 600; color: #E6EDF2; }

/* Leistungen ------------------------------------------------------------- */
.sz-cards { gap: 20px !important; }
.sz-card { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sz-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,23,32,.12); }
.sz-card__img { margin: 0 !important; }
.sz-card__img img,
.sz-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.sz-card__body { padding: 18px 20px 22px; }
.sz-card__body > * { margin: 0; }
.sz-card__body > * + * { margin-block-start: 6px; }
.sz-card__num { font-size: 13px; font-weight: 700; color: var(--sz-blue-dark); }
.sz-card__title { font-size: 18px; line-height: 1.3; }
.sz-card--post { background: #fff; border: 1px solid var(--sz-border); }
.sz-card--post .wp-block-post-featured-image { margin: 0; }

/* Konstruktion ----------------------------------------------------------- */
.sz-think .wp-block-cover__inner-container > * + * { margin-block-start: clamp(28px, 3vw, 48px); }
.sz-think .sz-eyebrow + .sz-display { margin-block-start: 12px; }
.sz-display { font-size: clamp(44px, 5vw, 64px); line-height: 1.05; }
.sz-think .sz-lead { max-width: 760px; }
.sz-kpis {
	gap: 1px !important;
	background: rgba(0,163,212,.35);
	border: 1px solid rgba(0,163,212,.35);
}
.sz-kpi { background: var(--sz-navy); padding: 28px; }
.sz-kpi .sz-stat__value { font-size: 40px; }
.sz-steps { gap: 24px !important; }
.sz-step { border-top: 2px solid var(--sz-blue); padding-top: 20px; }
.sz-step p { margin: 0; }
.sz-step__title { font-size: 14px; font-weight: 700; color: var(--sz-blue); }
.sz-step__text { font-size: 16px; line-height: 1.5; color: #E6EDF2; margin-top: 10px !important; }

/* Fertigung -------------------------------------------------------------- */
.sz-facts { gap: 32px !important; margin-block-start: 24px; }
.sz-fact p { margin: 0; }
.sz-fact__value { font-size: 34px; font-weight: 800; line-height: 1.1; }
.sz-fact__label { font-size: 14px; color: var(--sz-muted); }
.sz-gallery { gap: 12px !important; }
.sz-gallery figure { margin: 0; }
.sz-gallery img { width: 100%; height: 280px; object-fit: cover; display: block; }
.sz-gallery .sz-gallery__wide { grid-column: 1 / -1; }
.sz-gallery .sz-gallery__wide img { height: 200px; }
.sz-machines { gap: 16px !important; }
.sz-machine { border: 1px solid var(--sz-border); padding: 24px; }
.sz-machine > * { margin: 0; }
.sz-machine > * + * { margin-block-start: 8px; }
.sz-machine__title { font-size: 19px; color: var(--sz-blue-dark); }
.sz-machine__dim { font-size: 15px; line-height: 1.5; }
.sz-machine__brand { font-size: 13px; color: var(--sz-muted); border-top: 1px solid var(--sz-border); padding-top: 8px; }

/* Zitat ------------------------------------------------------------------ */
.sz-quote__cols { gap: 0 !important; margin: 0; }
.sz-quote__media figure { margin: 0; height: 100%; }
.sz-quote__media img { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; display: block; }
.sz-quote__body { padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.sz-quote__body > * + * { margin-block-start: 28px; }
.sz-quote__mark { color: var(--sz-blue); display: block; }
.sz-quote__text { font-size: clamp(28px, 3vw, 42px); line-height: 1.25; font-weight: 600; max-width: 720px; }
.sz-quote__name { font-size: 15px; color: var(--sz-blue); }
.sz-quote__name strong { font-size: 18px; color: #fff; }

/* Unternehmen & Qualität ------------------------------------------------- */
.sz-img-tall { margin: 0; }
.sz-img-tall img { width: 100%; height: 400px; object-fit: cover; display: block; }
.sz-quality { gap: 24px !important; }
.sz-checklist { list-style: none; padding: 0; margin-block-start: 20px; }
.sz-checklist li { position: relative; padding-left: 22px; line-height: 1.45; }
.sz-checklist li + li { margin-top: 12px; }
.sz-checklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--sz-blue); }
.sz-principles {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px 24px;
	color: #E6EDF2;
	line-height: 1.45;
}
.sz-principles li { border-left: 2px solid var(--sz-blue); padding-left: 14px; }

/* Karriere --------------------------------------------------------------- */
.sz-img-wide { margin-block-start: 28px !important; }
.sz-img-wide img { width: 100%; height: 300px; object-fit: cover; display: block; }
.sz-jobs__label { font-size: 15px; font-weight: 700; color: var(--sz-muted); }
.sz-job {
	position: relative;
	border: 1px solid var(--sz-border);
	padding: 24px 64px 24px 24px;
	margin-block-start: 14px;
	transition: border-color .2s ease;
}
.sz-job:hover { border-color: var(--sz-blue); }
.sz-job::after { content: "→"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--sz-blue-dark); font-size: 22px; font-weight: 700; }
.sz-job > * { margin: 0; }
.sz-job__title { font-size: 19px; }
.sz-job__title a { color: var(--sz-navy); }
.sz-job__title a::before { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.sz-job__title a:hover { text-decoration: none; }
.sz-job__meta { font-size: 14px; color: var(--sz-muted); margin-top: 4px; }
.sz-initiativ { margin-block-start: 24px; }

/* Kontakt ---------------------------------------------------------------- */
.sz-address { font-size: 17px; line-height: 1.6; }
.sz-map {
	min-height: 240px;
	border: 1px solid rgba(0,163,212,.45);
	background: var(--wp--preset--color--navy-light, #13212D);
	align-items: center;
	gap: 12px;
	padding: 24px;
}
.sz-map svg { color: var(--sz-blue); }
.sz-map p { margin: 0; font-size: 15px; }

.sz-form {
	background: #fff;
	color: var(--sz-navy);
	padding: clamp(24px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.sz-form__titel { font-size: 24px; font-weight: 700; margin: 0; }
.sz-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sz-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.sz-form input[type="text"],
.sz-form input[type="email"],
.sz-form input[type="tel"],
.sz-form select,
.sz-form textarea {
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	color: var(--sz-navy);
	background: #fff;
	border: 1px solid #B7C5CF;
	border-radius: 0;
	padding: 12px 14px;
	min-height: 48px;
	box-sizing: border-box;
	width: 100%;
}
.sz-form textarea { resize: vertical; }
.sz-form input:focus,
.sz-form select:focus,
.sz-form textarea:focus { outline: 2px solid var(--sz-blue); outline-offset: 1px; border-color: var(--sz-blue); }
.sz-form .sz-form__check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; color: #3A4A57; }
.sz-form .sz-form__check input { width: 20px; height: 20px; margin: 0; flex: none; }
.sz-form .sz-form__check a { color: var(--sz-blue-dark); text-decoration: underline; }
.sz-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sz-form .wp-block-button__link { border: 0; cursor: pointer; }
.sz-form__meldung { margin: 0; padding: 12px 16px; font-size: 15px; }
.sz-form__meldung.is-ok { background: #E3F5EC; color: #145C36; }
.sz-form__meldung.is-error { background: #FDECEC; color: #8A1C1C; }

/* Innenseiten ------------------------------------------------------------ */
.sz-pagehead { padding-block: clamp(48px, 6vw, 88px) !important; }
.sz-pagehead .wp-block-post-title,
.sz-pagehead .wp-block-query-title,
.sz-pagehead h1 { font-size: clamp(36px, 4.5vw, 56px); margin-block-start: 12px; }
.sz-content { padding-block: clamp(48px, 6vw, 88px); }
.sz-featured { margin-block-start: clamp(32px, 4vw, 56px) !important; }

/* Footer ----------------------------------------------------------------- */
.sz-footer { padding-block: 56px 32px !important; font-size: 15px; }
.sz-footer a { color: #8FA3B1 !important; }
.sz-footer a:hover { color: var(--sz-blue) !important; }
.sz-footer .sz-logo img { height: 40px; }
.sz-footer__cols { gap: 32px !important; }
.sz-footer__head { color: #fff; font-weight: 700; margin-bottom: 10px; }
.sz-footer__links { line-height: 1.9; }
.sz-footer__bottom {
	margin-block-start: 40px !important;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: 14px;
	gap: 16px;
}
.sz-footer__bottom p { margin: 0; }

/* Mobil ------------------------------------------------------------------ */
@media (max-width: 781px) {
	.sz-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 24px 0; }
	.sz-gallery img { height: 200px; }
	.sz-quote__media img { min-height: 320px; }
}
