/*
Theme Name: Kfz Ofner
Template: twentytwentyfive
Description: Child-Theme für Kfz Ofner München Nord (Basis Twenty Twenty-Five), Farben angelehnt an Eurorepar Car Service (Orange/Anthrazit).
Version: 1.0.0
Text Domain: kfzofner
*/

:root {
	--ko-black: #1d1d1f;        /* Anthrazit wie Eurorepar-Schriftzug */
	--ko-dark-2: #2c2c2f;
	--ko-accent: #e4500e;       /* Eurorepar-Orange (Pantone 1665) */
	--ko-accent-btn: #c9440a;   /* dunkler für weiße Schrift */
	--ko-accent-2: #f0662a;
	--ko-accent-soft: #fdeee6;
	--ko-light: #f5f5f4;
	--ko-line: #e4e4e2;
	--ko-text: #1d1d1f;
	--ko-muted: #5d6066;
	--ko-radius: 12px;
}

body { background: var(--ko-light); color: var(--ko-text); }

/* Keine Lücken zwischen Kopf, Abschnitten und Fuß */
.wp-site-blocks > *,
.wp-site-blocks > * + *,
.ko-main,
.ko-main > *,
.ko-main > .wp-block-post-content > *,
.ko-main > .wp-block-group > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }

.ko-inner { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ko-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Kopfzeile (weiß, mit Eurorepar-Logo) ---------- */
.ko-header {
	background: #fff;
	color: var(--ko-text);
	padding: .65rem 1.25rem;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 var(--ko-line), 0 6px 18px rgba(0, 0, 0, .06);
}
.admin-bar .ko-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ko-header-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ko-header-row > * { margin: 0 !important; }
.ko-brand { display: flex; align-items: center; gap: 1rem; }
.ko-brand > * { margin: 0 !important; }
.ko-logo img { height: 38px; width: auto; display: block; }
.ko-brand-text { border-left: 1px solid var(--ko-line); padding-left: 1rem; line-height: 1.15; }
.ko-brand-text > * { margin: 0 !important; }
.ko-brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
.ko-brand-name a { color: var(--ko-text); text-decoration: none; }
.ko-brand-sub { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ko-muted); font-weight: 600; margin-top: .15rem !important; }
.ko-header-right { display: flex; align-items: center; gap: 1.4rem; }
.ko-header-right > * { margin: 0 !important; }
.ko-header .wp-block-navigation { gap: 1.4rem; font-size: .95rem; font-weight: 600; }
.ko-header .wp-block-navigation a { color: var(--ko-text); text-decoration: none; }
.ko-header .wp-block-navigation a:hover,
.ko-header .wp-block-navigation a:focus,
.ko-header .wp-block-navigation .current-menu-item > a { color: var(--ko-accent); }
.ko-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background-color: #fff !important;
	color: var(--ko-text) !important;
	padding: 2rem 1.5rem;
}
.ko-header .wp-block-navigation__responsive-container.is-menu-open a { color: var(--ko-text) !important; }
.ko-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.35rem; gap: 1.2rem; }

/* ---------- Knöpfe ---------- */
.ko-btn .wp-block-button__link,
.ko-btn-ghost .wp-block-button__link,
.ko-btn-dark .wp-block-button__link,
.ko-btn-light .wp-block-button__link {
	border-radius: 999px;
	font-weight: 700;
	padding: .85rem 1.6rem;
	font-size: 1rem;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.ko-btn .wp-block-button__link { background: var(--ko-accent-btn); color: #fff; border: 2px solid var(--ko-accent-btn); }
.ko-btn .wp-block-button__link:hover { background: var(--ko-accent); border-color: var(--ko-accent); transform: translateY(-1px); }
.ko-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.ko-btn-ghost .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.ko-btn-dark .wp-block-button__link { background: var(--ko-black); color: #fff; border: 2px solid var(--ko-black); }
.ko-btn-dark .wp-block-button__link:hover { background: var(--ko-dark-2); }
.ko-btn-light .wp-block-button__link { background: #fff; color: var(--ko-accent-btn); border: 2px solid #fff; }
.ko-btn-light .wp-block-button__link:hover { background: var(--ko-accent-soft); }
.ko-header .ko-btn .wp-block-button__link { padding: .5rem 1.05rem; font-size: .92rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.ko-hero {
	background:
		linear-gradient(90deg, rgba(20, 20, 22, .95) 0%, rgba(20, 20, 22, .84) 45%, rgba(20, 20, 22, .3) 100%),
		url("/wp-content/uploads/2024/03/brake-disc-workshop-automobile-1749633.jpg") center right / cover no-repeat,
		var(--ko-black);
	color: #fff;
	padding: clamp(4rem, 9vw, 8rem) 1.25rem clamp(6rem, 11vw, 9.5rem);
	border-bottom: 6px solid var(--ko-accent);
}
.ko-kicker {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .8rem;
	font-weight: 700;
}
.ko-kicker::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--ko-accent); box-shadow: 0 0 0 4px rgba(228, 80, 14, .3); }
.ko-hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 5.4vw, 4rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	font-weight: 800;
	max-width: 13em;
	margin-top: 1rem !important;
}
.ko-hero h1 em { font-style: normal; color: var(--ko-accent-2); }
.ko-lead { color: #dcdde0; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; line-height: 1.55; }
.ko-hero .wp-block-buttons { margin-top: 2rem !important; gap: .8rem; }

/* ---------- Fakten ---------- */
.ko-facts-wrap { padding: 0 1.25rem; position: relative; }
.ko-main > .wp-block-post-content > .ko-facts-wrap { margin-top: -3.5rem !important; }
.ko-facts { gap: 1rem; }
.ko-fact {
	background: #fff;
	border-radius: var(--ko-radius);
	padding: 1.4rem 1.6rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	border-top: 4px solid var(--ko-accent);
}
.ko-fact > * { margin: 0 !important; }
.ko-label { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--ko-accent-btn); }
.ko-value { font-size: 1.15rem; font-weight: 800; margin-top: .35rem !important; line-height: 1.4; }
.ko-value a { color: inherit; text-decoration: none; }
.ko-small { color: var(--ko-muted); font-size: .92rem; margin-top: .3rem !important; }
.ko-small a { color: var(--ko-accent-btn); font-weight: 700; }

/* ---------- Abschnitte ---------- */
.ko-section { padding: clamp(3.5rem, 7vw, 6rem) 1.25rem; scroll-margin-top: 80px; }
.ko-section-white { background: #fff; }
.ko-section-accent { background: var(--ko-accent-btn); background: linear-gradient(135deg, #d0470b 0%, #e4500e 100%); color: #fff; }
.ko-eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ko-accent-btn); margin-bottom: .5rem !important; }
.ko-section-accent .ko-eyebrow { color: #fff; opacity: .85; }
.ko-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; margin-top: 0 !important; line-height: 1.15; }
.ko-section-accent h2 { color: #fff; }
.ko-intro { color: var(--ko-muted); font-size: 1.1rem; max-width: 42em; line-height: 1.6; }
.ko-section-accent .ko-intro { color: #fff3ec; }
.ko-text p { line-height: 1.75; font-size: 1.05rem; }

.ko-grid { gap: 1.1rem; margin-top: 2.2rem !important; }
.ko-card {
	background: #fff;
	border: 1px solid var(--ko-line);
	border-radius: var(--ko-radius);
	padding: 1.5rem 1.6rem;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ko-section-white .ko-card { background: var(--ko-light); }
.ko-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); border-color: var(--ko-accent); }
.ko-card > * { margin: 0 !important; }
.ko-card h3 { font-size: 1.12rem; font-weight: 800; display: flex; align-items: center; gap: .65rem; }
.ko-card h3::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--ko-accent); flex: none; }
.ko-card p, .ko-card li { color: var(--ko-muted); font-size: .98rem; line-height: 1.55; }
.ko-card p { margin-top: .5rem !important; }
.ko-card ul { margin-top: .6rem !important; padding-left: 1.1rem; }
.ko-card li { margin: .2rem 0; }
.ko-card li::marker { color: var(--ko-accent); }
.ko-more { margin-top: 2rem !important; font-weight: 800; }
.ko-more a { color: var(--ko-accent-btn); text-decoration: none; }
.ko-more a:hover { text-decoration: underline; }

/* Vorteile */
.ko-pillar > * { margin: 0 !important; }
.ko-pillar .ko-num { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--ko-accent); }
.ko-pillar h3 { font-size: 1.25rem; font-weight: 800; margin-top: .6rem !important; }
.ko-pillar p { color: var(--ko-muted); margin-top: .4rem !important; line-height: 1.6; }

/* Oranger Streifen */
.ko-section-accent .ko-card { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.ko-section-accent .ko-card:hover { border-color: #fff; box-shadow: none; }
.ko-section-accent .ko-card h3 { color: #fff; }
.ko-section-accent .ko-card h3::before { background: #fff; }
.ko-section-accent .ko-card p { color: #fff3ec; }

/* Kundenstimmen */
.ko-quote { background: #fff; border-radius: var(--ko-radius); padding: 1.8rem 1.9rem; border: 1px solid var(--ko-line); position: relative; }
.ko-quote::before { content: "\201C"; position: absolute; top: .3rem; right: 1.2rem; font-size: 5rem; line-height: 1; color: var(--ko-accent); font-weight: 800; opacity: .9; }
.ko-quote > * { margin: 0 !important; position: relative; }
.ko-quote p { font-size: 1.05rem; line-height: 1.7; }
.ko-quote .ko-who { margin-top: 1rem !important; font-weight: 800; font-size: .95rem; color: var(--ko-muted); }

/* Team */
.ko-person > * { margin: 0 !important; }
.ko-avatar {
	width: 4.2rem; height: 4.2rem; border-radius: 50%;
	background: var(--ko-accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.3rem; letter-spacing: .03em;
	margin-bottom: 1rem !important;
}
.ko-person h3::before { display: none; }
.ko-role { color: var(--ko-accent-btn) !important; font-weight: 700; font-size: .92rem !important; margin-top: .25rem !important; }

/* ---------- Kontakt ---------- */
.ko-contact { background: var(--ko-black); color: #fff; position: relative; overflow: hidden; }
.ko-contact::after { content: ""; position: absolute; right: -7rem; top: -7rem; width: 20rem; height: 20rem; border-radius: 50%; background: var(--ko-accent); opacity: .95; }
.ko-contact > * { position: relative; z-index: 1; }
.ko-contact h2 { color: #fff; }
.ko-contact .ko-eyebrow { color: var(--ko-accent-2); }
.ko-contact .ko-intro { color: #c9cbd0; }
.ko-contact .ko-grid { margin-top: 2.5rem !important; }
.ko-contact-col > * { margin: 0 !important; }
.ko-contact-col h3 { color: var(--ko-accent-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.ko-contact-col p { color: #eceef0; font-size: 1.08rem; line-height: 1.65; margin-top: .6rem !important; }
.ko-contact-col a { color: #fff; text-decoration-color: var(--ko-accent); text-underline-offset: 3px; }
.ko-contact-col a:hover { color: var(--ko-accent-2); }
.ko-contact .wp-block-buttons { margin-top: 2.2rem !important; gap: .8rem; }

/* ---------- Seitenkopf ---------- */
.ko-page-head {
	background:
		linear-gradient(90deg, rgba(20, 20, 22, .96) 0%, rgba(20, 20, 22, .86) 55%, rgba(20, 20, 22, .55) 100%),
		url("/wp-content/uploads/2024/03/brake-disc-workshop-automobile-1749633.jpg") center / cover no-repeat;
	color: #fff;
	padding: clamp(2.8rem, 6vw, 4.5rem) 1.25rem;
	border-bottom: 5px solid var(--ko-accent);
}
.ko-page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0; letter-spacing: -.02em; font-weight: 800; }
.ko-page-body { padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.ko-page-body .ko-inner { max-width: 820px; }
.ko-page-body ul { padding-left: 1.2rem; }
.ko-page-body li { margin: .3rem 0; }
.ko-page-body li::marker { color: var(--ko-accent); }
.ko-page-body a { color: var(--ko-accent-btn); }

/* ---------- Fußzeile ---------- */
.ko-footer { background: #111113; color: #9fa2a8; padding: 2rem 1.25rem; font-size: .92rem; border-top: 4px solid var(--ko-accent); }
.ko-footer-row { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ko-footer-row > * { margin: 0 !important; }
.ko-footer a { color: #e3e5e8; text-decoration: none; margin-left: 1.2rem; }
.ko-footer a:first-child { margin-left: 0; }
.ko-footer a:hover { color: var(--ko-accent-2); }

/* ---------- Handy ---------- */
@media (max-width: 960px) {
	.ko-header .ko-btn { display: none; }
}
@media (max-width: 781px) {
	.ko-logo img { height: 30px; }
	.ko-brand-text { display: none; }
	.ko-hero { background:
		linear-gradient(180deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, .8) 100%),
		url("/wp-content/uploads/2024/03/brake-disc-workshop-automobile-1749633.jpg") center / cover no-repeat; }
	.ko-main > .wp-block-post-content > .ko-facts-wrap { margin-top: -2.5rem !important; }
	.ko-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.ko-hero .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }
	.ko-contact::after { width: 11rem; height: 11rem; right: -5rem; top: -5rem; }
	.ko-footer-row { flex-direction: column; align-items: flex-start; }
}

/* Initialen im Team weiß (sonst überschreibt .ko-card p) */
.ko-card p.ko-avatar { color: #fff; font-size: 1.3rem; margin-top: 0 !important; margin-bottom: 1rem !important; }

/* ---------- Hintergründe wie auf der alten Seite (Bilder aus der Astra-Vorlage) ---------- */
/* helle Abschnitte: diagonale Flächen */
.ko-section:not(.ko-section-white):not(.ko-section-accent):not(.ko-contact) {
	background: url("/wp-content/uploads/2022/12/Group-12377-1-2048x935.png") center / cover no-repeat, var(--ko-light);
}
/* weiße Abschnitte: blasses Werkstattfoto rechts mit schrägem Anschnitt */
.ko-section-white {
	background: url("/wp-content/uploads/2022/12/Group-12383-2048x834.png") right center / auto 100% no-repeat, #fff;
}
.page-id-1811 .ko-section-white,
.page-id-1812 .ko-section-white {
	background: url("/wp-content/uploads/2022/12/Group-12379-2048x834.png") right center / auto 100% no-repeat, #fff;
}
/* Karten über dem Bild leicht deckend, damit Text gut lesbar bleibt */
.ko-section-white .ko-card { background: rgba(245, 245, 244, .92); }
.ko-section-white .ko-pillar { background: rgba(255, 255, 255, .78); border-radius: var(--ko-radius); padding: 1rem 1.1rem; }
.ko-section-white .ko-text { background: rgba(255, 255, 255, .85); border-radius: var(--ko-radius); padding: .2rem 0; }
@media (max-width: 781px) {
	.ko-section-white,
	.page-id-1811 .ko-section-white,
	.page-id-1812 .ko-section-white { background: #fff; }
}

/* Team-Bilder oben in der Karte (wie auf der alten Team-Seite) */
.ko-person { padding-top: 0; overflow: hidden; }
.ko-card .ko-person-img { margin: 0 -1.6rem 1.1rem !important; }
.ko-person-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ko-person:hover .ko-person-img img { transform: scale(1.03); }
.ko-person-img { overflow: hidden; }
.ko-person-img img { transition: transform .3s ease; }
.ko-person h3 { border-left: 4px solid var(--ko-accent); padding-left: .7rem; }
.ko-person .ko-role { padding-left: calc(.7rem + 4px); }

/* ---------- Zwei-Klick-Karte (Kontakt) ---------- */
.ko-map {
	margin-top: 2rem !important;
	height: clamp(280px, 40vw, 420px);
	border-radius: var(--ko-radius);
	overflow: hidden;
	border: 1px solid var(--ko-line);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background:
		linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)),
		repeating-linear-gradient(0deg, transparent 0 46px, #d9d9d6 46px 48px),
		repeating-linear-gradient(90deg, transparent 0 62px, #d9d9d6 62px 64px),
		linear-gradient(115deg, #eceae4 0 40%, #e3e8df 40% 60%, #eceae4 60%);
}
.ko-map.is-loaded { display: block; border: 0; }
.ko-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ko-map-consent { max-width: 34rem; padding: 1.5rem; }
.ko-map-consent > * { margin: 0 !important; }
.ko-map-pin {
	width: 2.4rem; height: 2.4rem; margin: 0 auto .8rem !important;
	background: var(--ko-accent);
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 6px 14px rgba(228, 80, 14, .35);
	position: relative;
}
.ko-map-pin::after { content: ""; position: absolute; inset: .75rem; background: #fff; border-radius: 50%; }
.ko-map-title { font-weight: 800; font-size: 1.15rem; }
.ko-map-note { color: var(--ko-muted); font-size: .9rem; line-height: 1.5; margin-top: .5rem !important; }
.ko-map-note a { color: var(--ko-accent-btn); }
.ko-map-load {
	margin-top: 1rem;
	background: var(--ko-accent-btn); color: #fff; border: 0; border-radius: 999px;
	padding: .75rem 1.5rem; font: inherit; font-weight: 700; cursor: pointer;
}
.ko-map-load:hover { background: var(--ko-accent); }
.ko-map-alt { margin-top: .7rem !important; font-size: .9rem; }
.ko-map-alt a { color: var(--ko-text); }

/* Rechtstexte: Hinweise auf noch zu prüfende Angaben (vor dem Livegang entfernen) */
.ko-todo { background: #fff4d6; border-left: 4px solid #d99a00; padding: .7rem 1rem; border-radius: 6px; font-size: .92rem; color: #5a4300; }
.ko-page-body h2 { font-size: 1.35rem; font-weight: 800; margin-top: 2.2rem !important; }
.ko-page-body h2:first-child { margin-top: 0 !important; }
.ko-page-body p, .ko-page-body li { line-height: 1.7; }

/* KO-HERO-LOGO */
/* Startseite: "Münchner Norden" in einer Zeile + Eurorepar-Logo rechts im Hero */
.ko-hero h1 em { white-space: nowrap; }
.ko-hero > .ko-inner { position: relative; }
.ko-hero .ko-hero-logo { margin: 0 0 1.5rem; }
.ko-hero .ko-hero-logo img {
	display: block;
	width: 190px;
	height: auto;
	background: #fff;
	padding: .8rem 1.1rem;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
@media (min-width: 960px) {
	.ko-hero .ko-hero-logo { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
	.ko-hero .ko-hero-logo img { width: 300px; padding: 1.3rem 1.7rem; }
	.ko-hero h1, .ko-hero .ko-lead { max-width: min(13em, calc(100% - 340px)); }
	.ko-hero .ko-lead { max-width: calc(100% - 340px); }
}