/* ==========================================================================
   KFZ Simon Xanten — Design Tokens
   ========================================================================== */

:root {
	--kfz-dark: #14171d;
	--kfz-dark-2: #1c212b;
	--kfz-dark-3: #262c38;
	--kfz-red: #b8332c;
	--kfz-red-dark: #8f2721;
	--kfz-chrome: #c9ced8;
	--kfz-chrome-dark: #8b93a1;
	--kfz-steel: #5b7fa6;
	--kfz-light: #f4f5f7;
	--kfz-white: #ffffff;
	--kfz-text-dark: #1b1e24;
	--kfz-text-muted: #5b6270;
	--kfz-text-light: #f4f5f7;
	--kfz-border: #e3e5ea;

	--kfz-font-head: 'Oswald', 'Arial Narrow', sans-serif;
	--kfz-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--kfz-radius: 10px;
	--kfz-container: 1180px;
}

* { box-sizing: border-box; }

body {
	font-family: var(--kfz-font-body);
	color: var(--kfz-text-dark);
	background: var(--kfz-white);
	margin: 0;
	line-height: 1.6;
}

h1, h2, h3, h4 {
	font-family: var(--kfz-font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.12;
	margin: 0 0 0.5em;
}

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

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

.kfz-container {
	max-width: var(--kfz-container);
	margin: 0 auto;
	padding: 0 24px;
}

.kfz-eyebrow {
	font-family: var(--kfz-font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 13px;
	color: var(--kfz-red);
	margin: 0 0 12px;
}

.kfz-eyebrow-light { color: var(--kfz-red); }

.kfz-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--kfz-font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kfz-btn:hover { transform: translateY(-2px); }

.kfz-btn-primary {
	background: var(--kfz-red);
	color: var(--kfz-white);
}
.kfz-btn-primary:hover {
	background: var(--kfz-red-dark);
	box-shadow: 0 8px 24px -6px rgba(184,51,44,0.55);
}

.kfz-btn-ghost {
	border-color: currentColor;
	color: inherit;
}
.kfz-btn-ghost:hover { background: rgba(255,255,255,0.08); }

.kfz-btn-small { padding: 10px 20px; font-size: 13px; margin-top: 8px; }

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

.kfz-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(20, 23, 29, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.kfz-logo {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--kfz-white);
	margin-right: auto;
}

.kfz-logo-badge {
	position: relative;
	display: inline-flex;
	height: 46px;
	flex-shrink: 0;
}
.kfz-logo-badge::before {
	content: '';
	position: absolute;
	inset: -8px;
	background: radial-gradient(circle, rgba(184,51,44,0.4), transparent 70%);
	filter: blur(8px);
	z-index: 0;
}
.kfz-logo-badge img {
	position: relative;
	z-index: 1;
	height: 100%;
	width: auto;
	object-fit: contain;
	border-radius: 6px;
}

.kfz-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.kfz-logo-main {
	font-family: var(--kfz-font-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.03em;
	color: var(--kfz-white);
}
.kfz-logo-sub {
	font-family: var(--kfz-font-head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.24em;
	color: var(--kfz-chrome);
}

/* CTA-Button + Werkzeug-Badge (sechseckige Mutter mit Schraubenschluessel im
   Chrome-Look des Logos, periodisches Anziehen) unten rechts am
   "Termin anfragen"-Button */
.kfz-cta-wrap { position: relative; display: inline-flex; }
.kfz-nav-tool {
	position: absolute;
	right: -20px;
	bottom: -20px;
	display: inline-flex;
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.kfz-nav-tool svg { width: 100%; height: 100%; }
/* Three ratchet pulses per loop (wrench swings forward+back three times).
   The nut only turns on each forward swing and holds the reached position
   in between (real ratchet behaviour) - see kfz-nut-turn below. The loop
   spans exactly 3 x 20deg = 60deg, which is the hex nut's own rotational
   symmetry, so the jump back from 60deg to 0deg at the loop seam is
   visually invisible instead of looking like a reset. */
.kfz-nav-tool-wrench {
	transform-origin: 100px 100px;
	animation: kfz-tighten 7.8s ease-in-out infinite;
}

@keyframes kfz-tighten {
	0%     { transform: rotate(-14deg); }
	13.3%  { transform: rotate(12deg); }
	18.3%  { transform: rotate(-14deg); }
	33.3%  { transform: rotate(-14deg); }
	46.7%  { transform: rotate(12deg); }
	51.7%  { transform: rotate(-14deg); }
	66.7%  { transform: rotate(-14deg); }
	80%    { transform: rotate(12deg); }
	85%    { transform: rotate(-14deg); }
	100%   { transform: rotate(-14deg); }
}

/* nut turns together with the wrench on each forward stroke, then holds
   that position while the wrench ratchets back for the next pulse */
.kfz-nav-tool-nut {
	transform-origin: 100px 100px;
	animation: kfz-nut-turn 7.8s ease-in-out infinite;
}

@keyframes kfz-nut-turn {
	0%     { transform: rotate(0deg); }
	13.3%  { transform: rotate(20deg); }
	33.3%  { transform: rotate(20deg); }
	46.7%  { transform: rotate(40deg); }
	66.7%  { transform: rotate(40deg); }
	80%    { transform: rotate(60deg); }
	100%   { transform: rotate(60deg); }
}

.kfz-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.kfz-nav-list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.kfz-nav-list a {
	font-family: var(--kfz-font-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 14px;
	color: rgba(255,255,255,0.82);
	padding: 6px 0;
	position: relative;
}
.kfz-nav-list a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--kfz-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.kfz-nav-list a:hover,
.kfz-nav-list .current-menu-item a { color: var(--kfz-white); }
.kfz-nav-list a:hover::after,
.kfz-nav-list .current-menu-item a::after { transform: scaleX(1); }

.kfz-nav-cta {
	font-family: var(--kfz-font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
	color: var(--kfz-white);
	background: var(--kfz-red);
	padding: 10px 20px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.kfz-nav-cta:hover { box-shadow: 0 6px 18px -6px rgba(184,51,44,0.6); }
.kfz-nav-cta:hover { background: var(--kfz-red-dark); }

.kfz-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.kfz-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--kfz-white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.kfz-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kfz-burger.is-open span:nth-child(2) { opacity: 0; }
.kfz-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.kfz-hero {
	position: relative;
	background: var(--kfz-dark);
	color: var(--kfz-white);
	padding: 130px 0 100px;
	overflow: hidden;
}

.kfz-hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(184,51,44,0.14), transparent 45%),
		repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px),
		linear-gradient(180deg, #171b22 0%, #14171d 60%, #101318 100%);
}

.kfz-hero-glow-red,
.kfz-hero-glow-chrome {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
}
.kfz-hero-glow-red {
	top: -140px;
	right: -100px;
	width: 440px;
	height: 440px;
	background: rgba(184,51,44,0.14);
}
.kfz-hero-glow-chrome {
	bottom: -160px;
	left: 10%;
	width: 360px;
	height: 360px;
	background: rgba(201,206,216,0.06);
}

.kfz-hero-inner {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kfz-hero-logo {
	position: relative;
	width: 100%;
	max-width: 320px;
	margin: 10px 0 30px;
}
.kfz-hero-logo-glow {
	position: absolute;
	inset: -90px;
	background: radial-gradient(circle, rgba(184,51,44,0.5), rgba(184,51,44,0.18) 50%, transparent 75%);
	filter: blur(55px);
	z-index: 0;
}
.kfz-hero-logo img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 18px 34px rgba(0,0,0,0.55));
}

.kfz-hero h1 {
	font-size: clamp(34px, 5vw, 54px);
	color: var(--kfz-white);
	margin-bottom: 22px;
}

.kfz-hero-lead {
	font-size: 18px;
	color: rgba(255,255,255,0.78);
	max-width: 560px;
	margin: 0 auto 36px;
}

.kfz-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.kfz-hero .kfz-btn-ghost { color: var(--kfz-white); }

/* ==========================================================================
   Intro / Pillars
   ========================================================================== */

.kfz-intro { padding: 90px 0; background: var(--kfz-white); }
.kfz-intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}
.kfz-intro h2 { font-size: clamp(26px, 3vw, 34px); color: var(--kfz-text-dark); }
.kfz-intro > .kfz-intro-grid > div:first-child p {
	color: var(--kfz-text-muted);
	font-size: 16px;
	max-width: 480px;
}

.kfz-intro-pillars { display: flex; flex-direction: column; gap: 26px; }
.kfz-pillar {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 16px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--kfz-border);
}
.kfz-pillar:last-child { border-bottom: none; padding-bottom: 0; }
.kfz-pillar-num {
	font-family: var(--kfz-font-head);
	font-weight: 700;
	font-size: 22px;
	color: var(--kfz-red);
}
.kfz-pillar h3 { font-size: 18px; margin-bottom: 4px; }
.kfz-pillar p { margin: 0; color: var(--kfz-text-muted); font-size: 15px; }

/* ==========================================================================
   Services
   ========================================================================== */

.kfz-services { background: var(--kfz-dark-2); color: var(--kfz-white); padding: 90px 0; }
.kfz-services-heading { font-size: clamp(26px, 3vw, 34px); margin-bottom: 44px; color: var(--kfz-white); }

.kfz-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.08);
}
.kfz-service-card {
	background: var(--kfz-dark-2);
	padding: 34px 28px;
	transition: background 0.2s ease;
}
.kfz-service-card:hover { background: var(--kfz-dark-3); }
.kfz-service-num {
	display: block;
	font-family: var(--kfz-font-head);
	font-weight: 700;
	font-size: 26px;
	color: var(--kfz-red);
	margin-bottom: 14px;
}
.kfz-service-card h3 { font-size: 18px; color: var(--kfz-white); margin-bottom: 10px; }
.kfz-service-card p { margin: 0; color: rgba(255,255,255,0.7); font-size: 15px; }

.kfz-services-cta { text-align: center; margin-top: 50px; }
.kfz-services-page .kfz-services-grid { margin-top: 10px; }

/* ==========================================================================
   Galerie / Diashow
   ========================================================================== */

.kfz-gallery { background: var(--kfz-dark); padding: 90px 0; }
.kfz-gallery-heading { font-size: clamp(26px, 3vw, 34px); margin-bottom: 36px; color: var(--kfz-white); }

.kfz-slideshow {
	position: relative;
	border-radius: var(--kfz-radius);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.08);
}
.kfz-slideshow-track {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--kfz-dark-2);
}
.kfz-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1.1s ease;
}
.kfz-slide.is-active { opacity: 1; }
.kfz-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.kfz-slideshow-dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 2;
}
.kfz-slideshow-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.6);
	background: rgba(255,255,255,0.25);
	padding: 0;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}
.kfz-slideshow-dots button.is-active {
	background: var(--kfz-red);
	border-color: var(--kfz-red);
	transform: scale(1.15);
}

/* ==========================================================================
   Info (Oeffnungszeiten / Standort)
   ========================================================================== */

.kfz-info { padding: 90px 0; background: var(--kfz-light); }
.kfz-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
.kfz-info-card {
	background: var(--kfz-white);
	border: 1px solid var(--kfz-border);
	border-radius: var(--kfz-radius);
	padding: 34px;
}
.kfz-info-card h3 {
	font-size: 20px;
	color: var(--kfz-text-dark);
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--kfz-red);
	display: inline-block;
}
.kfz-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.kfz-hours td { padding: 7px 0; border-bottom: 1px solid var(--kfz-border); }
.kfz-hours td:first-child { color: var(--kfz-text-muted); }
.kfz-hours td:last-child { text-align: right; font-weight: 600; }
.kfz-hours tr:last-child td { border-bottom: none; }

.kfz-address { font-size: 16px; line-height: 1.7; margin-bottom: 18px; }

/* ==========================================================================
   Generic page hero / body (Leistungen, Kontakt)
   ========================================================================== */

.kfz-page-hero {
	position: relative;
	background: var(--kfz-dark);
	color: var(--kfz-white);
	padding: 110px 0 60px;
	overflow: hidden;
}
.kfz-page-hero::before {
	content: '';
	position: absolute;
	top: -140px;
	right: -60px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: rgba(184,51,44,0.12);
	filter: blur(90px);
	pointer-events: none;
}
.kfz-page-hero .kfz-container { position: relative; }
.kfz-page-hero h1 { font-size: clamp(30px, 4vw, 42px); color: var(--kfz-white); }
.kfz-page-lead { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 560px; margin: 0; }

.kfz-page-body { padding: 60px 0; max-width: 560px; margin-left: auto; margin-right: auto; }
.kfz-content { font-size: 16px; color: var(--kfz-text-dark); }
.kfz-content p { color: var(--kfz-text-muted); }
.kfz-content p:first-child { margin-top: 0; }

.kfz-services-grid-detail .kfz-service-card p { color: rgba(255,255,255,0.72); }

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

.kfz-contact { padding: 70px 0 100px; background: var(--kfz-light); }
.kfz-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
	align-items: start;
}
.kfz-contact-info { display: flex; flex-direction: column; gap: 20px; }
.kfz-link { color: var(--kfz-red-dark); font-weight: 600; }
.kfz-link:hover { text-decoration: underline; }

.kfz-contact-map {
	background: var(--kfz-white);
	border: 1px solid var(--kfz-border);
	border-radius: var(--kfz-radius);
	overflow: hidden;
	padding: 12px;
}
.kfz-contact-map iframe {
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: 6px;
	display: block;
}
.kfz-map-static {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	transition: filter 0.2s ease;
}
.kfz-map-static:hover {
	filter: brightness(1.05);
}
.kfz-map-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
}

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

.kfz-footer { background: var(--kfz-dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.kfz-footer-inner {
	max-width: var(--kfz-container);
	margin: 0 auto;
	padding: 0 24px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
}
.kfz-footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 10px; max-width: 260px; }
.kfz-footer h4 {
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--kfz-red);
	margin-bottom: 14px;
}
.kfz-footer-col p, .kfz-footer-col ul { font-size: 14px; margin: 0; }
.kfz-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kfz-footer-col a:hover { color: var(--kfz-white); }
.kfz-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 18px 24px;
	text-align: center;
	font-size: 13px;
	color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.kfz-intro-grid,
	.kfz-info-grid,
	.kfz-contact-grid { grid-template-columns: 1fr; }
	.kfz-services-grid { grid-template-columns: repeat(2, 1fr); }
	.kfz-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.kfz-nav { display: none; }
	.kfz-burger { display: flex; }
	.kfz-header.kfz-nav-open .kfz-nav {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--kfz-dark);
		padding: 20px 24px 28px;
		border-top: 1px solid rgba(255,255,255,0.08);
	}
	.kfz-header.kfz-nav-open .kfz-nav-list { flex-direction: column; gap: 18px; }
	.kfz-header.kfz-nav-open .kfz-cta-wrap { margin-top: 20px; }
	.kfz-services-grid { grid-template-columns: 1fr; }
	.kfz-footer-inner { grid-template-columns: 1fr; }
	.kfz-slideshow-track { aspect-ratio: 4 / 5; }
	.kfz-hero { padding: 110px 0 80px; }
	.kfz-page-body { padding-left: 32px; padding-right: 32px; }
}
