/*
Theme Name: Kfz-Technik M&M Ohg Custom
Theme URI: https://kfz-technik-m-m-ohg-1.lead.bummeltech.com/
Author: Kfz-Technik M&M Ohg
Description: Individuelles Theme "Industrial Precision Bay" fuer die Kfz-Technik M&M Ohg in Langenfeld (Rheinland).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: kfzmm
*/

/* ==========================================================================
   0. DESIGN TOKENS — Industrial Precision Bay
   ========================================================================== */
:root {
	--bg:          oklch(24% 0.02 250);
	--bg-deep:     oklch(19% 0.018 250);
	--surface:     oklch(30% 0.02 250);
	--surface-2:   oklch(34% 0.02 250);
	--line:        oklch(40% 0.02 250 / 0.5);
	--steel:       oklch(55% 0.06 240);
	--accent:      oklch(70% 0.14 48);
	--accent-dim:  oklch(58% 0.12 48);
	--accent-ink:  oklch(18% 0.03 48);
	--text:        oklch(96% 0.01 250);
	--text-dim:    oklch(78% 0.015 250);
	--text-faint:  oklch(62% 0.015 250);
	--paper:       oklch(97% 0.006 90);
	--ink:         oklch(20% 0.015 250);

	--radius: 2px;
	--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container: 1220px;
	--gap: clamp(1rem, 3vw, 2.5rem);
	--section-pad: clamp(3.5rem, 8vw, 7rem);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 220ms;
}

/* ==========================================================================
   1. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.08;
	text-wrap: pretty;
	margin: 0 0 0.5em;
	color: var(--text);
}
h1 { font-size: clamp(2.4rem, 3.2vw + 1.4rem, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.6vw + 1.3rem, 2.9rem); }
h3 { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.55rem); }
p { margin: 0 0 1em; color: var(--text-dim); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 0.9em;
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 1px;
}
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
	background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1.25rem;
	z-index: 9999; border-radius: var(--radius); clip: auto;
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em;
	text-transform: uppercase; font-size: 0.92rem;
	padding: 0.95rem 1.6rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	min-height: 44px;
	cursor: pointer;
	transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dim); box-shadow: 0 8px 24px -8px oklch(70% 0.14 48 / 0.45); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: oklch(100% 0 0 / 0.06); color: var(--text); border-color: oklch(100% 0 0 / 0.14); }
.btn-ghost:hover { background: oklch(100% 0 0 / 0.12); }

/* ==========================================================================
   3. HEADER / NAV
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 200;
	background: oklch(19% 0.018 250 / 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	transition: padding var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-condensed {
	box-shadow: 0 8px 24px -12px oklch(0% 0 0 / 0.5);
}
.header-inner {
	display: flex; align-items: center; gap: 1.5rem;
	padding-block: 1.1rem;
	transition: padding var(--dur) var(--ease-out);
}
.site-header.is-condensed .header-inner { padding-block: 0.6rem; }
.site-brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.site-brand img { max-height: 52px; width: auto; transition: max-height var(--dur) var(--ease-out); }
.site-header.is-condensed .site-brand img { max-height: 38px; }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; flex: 0 0 auto;
	background: var(--accent); color: var(--accent-ink);
	font-family: var(--font-display); font-weight: 800; font-size: 1rem;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.brand-name { font-family: var(--font-display); font-weight: 700; line-height: 1.05; font-size: 1.02rem; }
.brand-name em { font-style: normal; color: var(--accent); display: block; font-size: 0.92em; }

.primary-nav { display: none; }
.nav-menu { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav-link {
	font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.05em; font-size: 0.92rem; color: var(--text-dim);
	padding: 0.4rem 0.1rem; position: relative;
	transition: color var(--dur) var(--ease-out);
}
.nav-link::after {
	content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
	background: var(--accent); transition: width var(--dur) var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

.header-cta { display: none; }
.burger-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; background: transparent; border: 1px solid var(--line);
	border-radius: var(--radius); color: var(--text); cursor: pointer;
}

.mobile-drawer {
	position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100vh;
	background: var(--bg-deep); z-index: 400;
	transform: translateX(100%);
	transition: transform var(--dur) var(--ease-out);
	overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.burger-close {
	align-self: flex-end; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer;
}
.mobile-menu { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu .nav-link { display: block; padding: 0.85rem 0.2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); min-height: 44px; }
.mobile-cta { justify-content: center; margin-top: 0.5rem; }
.drawer-overlay {
	position: fixed; inset: 0; background: oklch(10% 0 0 / 0.6); z-index: 380;
	opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

@media (min-width: 900px) {
	.primary-nav { display: block; }
	.header-cta { display: inline-flex; }
	.burger-toggle { display: none; }
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
	position: relative;
	min-height: min(92vh, 900px);
	display: flex; align-items: center;
	background: var(--bg-image, var(--hero-image)) center/cover no-repeat, var(--bg-deep);
	background-image: var(--hero-image, none), linear-gradient(160deg, var(--bg-deep), var(--bg));
	overflow: hidden;
}
.hero-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(115deg, oklch(15% 0.02 250 / 0.94) 0%, oklch(15% 0.02 250 / 0.82) 40%, oklch(15% 0.02 250 / 0.55) 75%, oklch(15% 0.02 250 / 0.75) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vh, 7rem); max-width: 780px; }
.hero-title { color: var(--text); text-wrap: balance; }
.hero-subtitle { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem); max-width: 52ch; color: var(--text-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero-diagonal {
	position: absolute; right: -2%; bottom: -6%; width: 46%; height: 60%;
	background: var(--accent); opacity: 0.08;
	clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
	z-index: 1;
}
.hero-load { opacity: 0; transform: translateY(14px); animation: kfzmm-rise 700ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes kfzmm-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	.hero-load { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   5. STATS BAND
   ========================================================================== */
.stats-band { background: var(--bg-deep); border-block: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number, .stat-suffix {
	font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 3vw, 3.6rem);
	color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-suffix { color: var(--accent); }
.stat-label { margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   6. SECTION HEAD (shared)
   ========================================================================== */
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.05rem; }

/* ==========================================================================
   7. SLIDER
   ========================================================================== */
.slider-section { padding-block: var(--section-pad); }
.slider { position: relative; overflow: hidden; }
.slider-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
	gap: 0; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
	position: relative; flex: 0 0 100%; scroll-snap-align: start;
	min-height: clamp(360px, 55vw, 560px);
	display: flex; align-items: flex-end;
}
.slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, oklch(12% 0.02 250 / 0.92) 0%, oklch(12% 0.02 250 / 0.1) 55%); }
.slide-caption { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem); max-width: 640px; }
.slide-caption h3 { font-size: clamp(1.5rem, 2vw, 2.2rem); }
.slide-excerpt p { margin: 0; color: var(--text-dim); }
.slider-arrow {
	position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
	width: 46px; height: 46px; border-radius: var(--radius);
	background: oklch(15% 0.02 250 / 0.7); border: 1px solid oklch(100% 0 0 / 0.18);
	color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background var(--dur) var(--ease-out);
}
.slider-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.slider-prev { left: clamp(0.75rem, 3vw, 2rem); }
.slider-next { right: clamp(0.75rem, 3vw, 2rem); }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.slider-dots button {
	width: 30px; height: 4px; border-radius: 2px; border: none; background: var(--line); cursor: pointer;
	transition: background var(--dur) var(--ease-out);
}
.slider-dots button.is-active { background: var(--accent); }

/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.services-section { padding-block: var(--section-pad); background: var(--bg-deep); border-block: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.service-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-media { aspect-ratio: 4/3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-index { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.service-excerpt p { margin: 0; font-size: 0.96rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text); }
.service-link .icon { transition: transform var(--dur) var(--ease-out); }
.service-link:hover { color: var(--accent); }
.service-link:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   9. ABOUT TEASER
   ========================================================================== */
.about-teaser { padding-block: var(--section-pad); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.25rem 0 1.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text-dim); }
.check-list .icon { color: var(--accent); margin-top: 0.15em; flex-shrink: 0; }

/* ==========================================================================
   10. CONTACT
   ========================================================================== */
.contact-section { padding-block: var(--section-pad); background: var(--bg-deep); border-block: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; color: var(--text-dim); }
.contact-row .icon { color: var(--accent); flex-shrink: 0; }
.contact-row a:hover { color: var(--accent); }
.contact-form-wrap {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.wpscp-form,
.wpscp-contact-form {
	background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; max-width: none !important;
}
.wpscp-form__title { color: var(--text) !important; font-family: var(--font-display) !important; }
.wpscp-form label { color: var(--text-dim) !important; }
.wpscp-form input,
.wpscp-form textarea,
.wpscp-form select {
	background: var(--bg-deep) !important; border: 1px solid var(--line) !important; color: var(--text) !important;
	border-radius: var(--radius) !important; min-height: 44px;
}
.wpscp-form input::placeholder,
.wpscp-form textarea::placeholder { color: var(--text-faint) !important; opacity: 1 !important; }
.wpscp-form button,
.wpscp-form input[type="submit"],
.wpscp-form__btn {
	background: var(--accent) !important; color: var(--accent-ink) !important; border: none !important;
	font-family: var(--font-display) !important; font-weight: 700 !important; text-transform: uppercase !important;
	letter-spacing: 0.03em !important; border-radius: var(--radius) !important; min-height: 44px; cursor: pointer;
	transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.wpscp-form__btn:hover { background: var(--accent-dim) !important; }
.wpscp-form__btn:active { transform: scale(0.98); }

/* ==========================================================================
   11. CTA STRIP (Unterseiten)
   ========================================================================== */
.cta-strip { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--surface); border-top: 1px solid var(--line); }
.cta-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-strip h2 { margin-bottom: 0.25rem; font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
.cta-strip p { margin: 0; }
.cta-strip-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ==========================================================================
   12. PAGE BANNER + CONTENT (Unterseiten)
   ========================================================================== */
.page-banner {
	position: relative; min-height: 42vh; display: flex; align-items: flex-end;
	background: var(--banner-image, none) center/cover no-repeat, var(--bg-deep);
}
.page-banner-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, oklch(15% 0.02 250 / 0.95), oklch(15% 0.02 250 / 0.55)); }
.page-banner-inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-banner-title { margin: 0; }

.page-content-wrap { padding-block: var(--section-pad); }
.content-article { max-width: 780px; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content p { font-size: 1.05rem; }
.entry-content ul:not(.check-list) { margin: 1em 0; padding-left: 1.4rem; list-style: disc; }
.entry-content ul:not(.check-list) li { margin-bottom: 0.5em; color: var(--text-dim); }
.entry-content a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content figure { margin: 1.75em 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-separator { border-color: var(--line); margin-block: 2.5em; }
.entry-content .wp-block-group { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); margin-block: 1.75em; }
.entry-content .wp-block-columns { gap: var(--gap); }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.footer-tagline { max-width: 32ch; margin-top: 1rem; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 1rem; }
.footer-menu { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-menu .nav-link { color: var(--text-dim); text-transform: none; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; font-size: 0.95rem; }
.footer-menu .nav-link:hover { color: var(--accent); }
.footer-bottom { padding-top: 1.5rem; font-size: 0.85rem; color: var(--text-faint); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   14. SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 1; }
.reveal[data-observe] { transform: translateY(24px); transition: transform 650ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.reveal[data-observe].is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal[data-observe] { transform: none; }
}

/* ==========================================================================
   15. RESPONSIVE — TABLET ≤900px
   ========================================================================== */
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-media { order: -1; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ==========================================================================
   16. RESPONSIVE — MOBILE ≤600px
   ========================================================================== */
@media (max-width: 600px) {
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero-actions .btn,
	.cta-strip-actions .btn { width: 100%; justify-content: center; }
	.cta-strip-actions { width: 100%; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: 1fr; }
	.hero { min-height: 88vh; }
	.hero-diagonal { display: none; }
	body { overflow-x: hidden; }
}
