/*
Theme Name:  KFZ Köfler
Theme URI:   https://kfz-koefler.com
Description: Schlankes Child-Theme für KFZ Köfler – Reparatur- & Prüfwerkstätte in Bad Bleiberg. Farben und Schrift nach dem Logo, Schriften lokal eingebunden.
Author:      ASTA-Medien
Template:    astra
Version:     1.3.2
Text Domain: kfz-koefler
*/

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte ---------- */

html:root {
	--kk-orange: #ec6321;
	--kk-orange-dark: #c94f14;
	--kk-anthrazit: #363636;
	--kk-dark: #232323;
	--kk-light: #f3f2ef;
	--kk-line: #e2e0db;
	--kk-text: #2b2b2b;
	--kk-muted: #5f5f5f;
	--kk-white: #fff;

	--kk-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--kk-font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

	--kk-max: 1180px;
	--kk-gutter: clamp(20px, 4vw, 40px);
	--kk-pad: max(var(--kk-gutter), calc((100% - var(--kk-max)) / 2));
	--kk-space: clamp(64px, 9vw, 120px);
	--kk-radius: 4px;
	--kk-header-h: 116px;

	/* Astra-Palette auf das CI umstellen */
	--ast-global-color-0: var(--kk-orange);
	--ast-global-color-1: var(--kk-orange-dark);
	--ast-global-color-2: var(--kk-dark);
	--ast-global-color-3: var(--kk-text);
	--ast-global-color-4: var(--kk-light);
	--ast-global-color-5: var(--kk-white);
}

body.kk,
.editor-styles-wrapper {
	font-family: var(--kk-font);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--kk-text);
	background: var(--kk-white);
}

body.kk button,
body.kk input,
body.kk select,
body.kk textarea {
	font-family: var(--kk-font);
}

body.kk :is(h1, h2, h3, h4),
body.kk .entry-content :is(h1, h2, h3, h4),
.editor-styles-wrapper :is(h1, h2, h3, h4) {
	font-family: var(--kk-font-head);
	font-weight: 700;
	line-height: 1.05;
	color: var(--kk-dark);
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

body.kk .entry-content h2,
.editor-styles-wrapper h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
body.kk .entry-content h3,
.editor-styles-wrapper h3 {
	font-size: clamp(1.55rem, 2.2vw, 1.85rem);
	text-transform: none; /* "§57a" bleibt so geschrieben */
}

body.kk a { color: var(--kk-orange-dark); }
body.kk a:hover { color: var(--kk-orange); }

body.kk :focus-visible {
	outline: 3px solid var(--kk-orange);
	outline-offset: 3px;
}

html { scroll-padding-top: calc(var(--kk-header-h) + 16px); }

/* ---------- Icons (CSS-Masken, Farbe über background-color) ---------- */

.kk-i {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--kk-icon) center / contain no-repeat;
	mask: var(--kk-icon) center / contain no-repeat;
}

.kk-i--phone { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.kk-i--pin { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */

.kk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--kk-dark);
	border-bottom: 4px solid var(--kk-orange);
}

.admin-bar .kk-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .kk-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .kk-header { top: 0; }
}

.kk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--kk-header-h);
	padding: 8px var(--kk-pad);
}

.kk-header__logo { display: block; flex: none; line-height: 0; }
.kk-header__logo img { transition: height 0.25s ease; }
.kk-header__inner { transition: min-height 0.25s ease, padding 0.25s ease; }

/* Kompakte Kopfzeile nach dem Runterscrollen */
.kk-header.is-kompakt .kk-header__inner { min-height: 64px; padding-block: 4px; }
.kk-header.is-kompakt .kk-header__logo img { height: 50px; }
.kk-header__logo img { width: auto; height: 96px; }

.kk-nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.5vw, 36px);
}

.kk-nav ul {
	display: flex;
	gap: clamp(16px, 2.5vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.kk .kk-nav ul a {
	font-family: var(--kk-font-head);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--kk-white);
	padding-block: 6px;
	background: linear-gradient(var(--kk-orange), var(--kk-orange)) left bottom / 0 3px no-repeat;
	transition: background-size 0.2s ease;
}

body.kk .kk-nav ul a:hover { background-size: 100% 3px; color: var(--kk-white); }

.kk-header__toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.kk-burger,
.kk-burger::before,
.kk-burger::after {
	display: block;
	width: 28px;
	height: 3px;
	margin: 0 auto;
	background: var(--kk-white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.kk-burger { position: relative; }
.kk-burger::before,
.kk-burger::after { content: ""; position: absolute; left: 0; }
.kk-burger::before { top: -9px; }
.kk-burger::after { top: 9px; }

.kk-header.is-open .kk-burger { background: transparent; }
.kk-header.is-open .kk-burger::before { transform: translateY(9px) rotate(45deg); }
.kk-header.is-open .kk-burger::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 960px) {
	:root { --kk-header-h: 88px; }

	.kk-header__logo img { height: 72px; } /* Schrift im Logo muss am Handy lesbar sein */
	.kk-header__toggle { display: block; }

	.kk-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--kk-gutter) 24px;
		background: var(--kk-dark);
		border-bottom: 4px solid var(--kk-orange);
	}

	.kk-header.is-open .kk-nav { display: flex; }

	.kk-nav ul { flex-direction: column; gap: 0; }
	body.kk .kk-nav ul a { display: block; padding: 14px 0; font-size: 1.4rem; border-bottom: 1px solid #3a3a3a; background: none; }
	.kk-nav .kk-btn { margin-top: 20px; justify-content: center; }
}

/* ---------- Buttons ---------- */

/* Selektoren bewusst spezifisch: Astra stylt Buttons mit bis zu fünf Klassen */
.kk-btn,
body.kk .wp-block-buttons .wp-block-button .wp-block-button__link.wp-element-button,
body.kk .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button,
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid var(--kk-orange);
	border-radius: var(--kk-radius);
	background: var(--kk-orange);
	color: var(--kk-white);
	font-family: var(--kk-font-head);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.kk a.kk-btn,
body.kk a.kk-btn:hover { color: var(--kk-white); }

body.kk a.kk-btn:hover,
body.kk .wp-block-buttons .wp-block-button .wp-block-button__link.wp-element-button:hover {
	background: var(--kk-orange-dark);
	border-color: var(--kk-orange-dark);
	color: var(--kk-white);
}

body.kk .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: var(--kk-dark);
}

body.kk .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover {
	background: var(--kk-dark);
	border-color: var(--kk-dark);
	color: var(--kk-white);
}

/* Outline-Buttons auf dunklem Grund (Hero, Bewertungen) */
body.kk :is(.kk-hero, .kk-section--dark) .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { color: var(--kk-white); }

body.kk :is(.kk-hero, .kk-section--dark) .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover {
	background: var(--kk-white);
	border-color: var(--kk-white);
	color: var(--kk-dark);
}

.kk-btn--call { white-space: nowrap; padding: 10px 20px; }

/* ---------- Seitenrahmen der Startseite ---------- */

body.kk-front .site-content > .ast-container { max-width: none; padding: 0; display: block; }
body.kk-front #primary { margin: 0; padding: 0; }
body.kk-front .entry-content { margin: 0; }
body.kk-front .entry-content > * { margin-block: 0; }
body.kk-front article.ast-article-single { padding: 0; margin: 0; background: none; }

.kk-section {
	padding: var(--kk-space) var(--kk-pad);
}

.kk-section--light { background: var(--kk-light); }

.kk-section--dark {
	background: var(--kk-dark);
	color: #dcdcdc;
}

body.kk .kk-section--dark :is(h2, h3) { color: var(--kk-white); }

/* Kleine Überzeile mit orangem Schrägstrich, wie im Logo */
body.kk .kk-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-family: var(--kk-font-head);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kk-orange-dark);
}

body.kk .kk-kicker::before {
	content: "";
	width: 34px;
	height: 6px;
	background: var(--kk-orange);
	transform: skewX(-30deg);
}

body.kk .kk-section--dark .kk-kicker,
body.kk .kk-hero .kk-kicker { color: var(--kk-orange); }

.kk-intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kk-intro > :last-child { margin-bottom: 0; }
body.kk .kk-intro h2 { margin: 0 0 16px; }
.kk-intro p { color: var(--kk-muted); font-size: 1.2rem; }
.kk-section--dark .kk-intro p { color: #c9c9c9; }

/* ---------- Hero ---------- */

body.kk .wp-block-cover.kk-hero {
	min-height: min(88vh, 820px);
	padding: calc(var(--kk-space) * 0.9) var(--kk-pad) calc(var(--kk-space) * 1.1);
	align-items: center;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 5vw, 64px)), 0 100%);
}

body.kk .kk-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(25, 25, 25, 0.92) 0%, rgba(25, 25, 25, 0.78) 45%, rgba(25, 25, 25, 0.25) 100%) !important;
	opacity: 1 !important;
}

body.kk .kk-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--kk-max);
	color: var(--kk-white);
}

.kk-hero__content { max-width: 680px; }

body.kk .kk-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(3rem, 8vw, 6.2rem);
	font-style: italic;
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: 0;
	color: var(--kk-white);
}

body.kk .kk-hero h1 mark,
body.kk .kk-hero h1 .kk-accent {
	background: none;
	color: var(--kk-orange);
}

/* Astra färbt Absätze im Cover-Block dunkel – hier überschreiben */
body.kk .wp-block-cover.kk-hero p { color: #ececec; }
body.kk .wp-block-cover.kk-hero p.kk-kicker { color: var(--kk-orange); }

body.kk .kk-hero .kk-lead {
	max-width: 560px;
	margin: 0 0 32px;
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	color: #ececec;
}

.kk-hero .wp-block-buttons { gap: 14px; }

body.kk ul.kk-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

body.kk ul.kk-badges li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--kk-font-head);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--kk-white);
}

body.kk ul.kk-badges li::before {
	content: "";
	width: 22px;
	height: 22px;
	flex: none;
	background: var(--kk-orange);
	-webkit-mask: var(--kk-check) center / contain no-repeat;
	mask: var(--kk-check) center / contain no-repeat;
}

:root {
	--kk-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

/* ---------- Leistungen ---------- */

body.kk .kk-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 20px;
}

body.kk .kk-cards > * { margin: 0; }

body.kk .kk-card {
	position: relative;
	padding: 32px 28px 30px;
	background: var(--kk-white);
	border: 1px solid var(--kk-line);
	border-top: 4px solid var(--kk-orange);
	border-radius: var(--kk-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.kk .kk-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

body.kk .kk-card::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	background: var(--kk-orange);
	-webkit-mask: var(--kk-icon, var(--kk-check)) center / contain no-repeat;
	mask: var(--kk-icon, var(--kk-check)) center / contain no-repeat;
}

body.kk .kk-card h3 { margin: 0 0 10px; }
body.kk .kk-card p { margin: 0; color: var(--kk-muted); font-size: 1.05rem; }

.kk-ico-pickerl { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 3v6.2c0 5-3.4 8.4-8 9.8-4.6-1.4-8-4.8-8-9.8V5.5z'/%3E%3Cpath d='M8.3 12.2l2.6 2.6 4.8-5.3'/%3E%3C/svg%3E"); }
.kk-ico-service { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4.5 4.5 0 0 0-6 5.6L3 17.6V21h3.4l5.7-5.7a4.5 4.5 0 0 0 5.6-6l-2.9 2.9-2.6-.5-.5-2.6z'/%3E%3C/svg%3E"); }
.kk-ico-diagnose { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='13' rx='2'/%3E%3Cpath d='M6 11h2.5l1.5-3 3 6 1.5-3H18'/%3E%3Cpath d='M8.5 21h7M12 17v4'/%3E%3C/svg%3E"); }
.kk-ico-reifen { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5V8M12 16v5.5M2.5 12H8M16 12h5.5M5.3 5.3l3.9 3.9M14.8 14.8l3.9 3.9M18.7 5.3l-3.9 3.9M9.2 14.8l-3.9 3.9'/%3E%3C/svg%3E"); }
.kk-ico-klima { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3Cpath d='M9 3.5l3 2.2 3-2.2M9 20.5l3-2.2 3 2.2M3.4 10.7l3.3-1.5-.4-3.6M20.6 13.3l-3.3 1.5.4 3.6M3.4 13.3l3.3 1.5-.4 3.6M20.6 10.7l-3.3-1.5.4-3.6'/%3E%3C/svg%3E"); }
.kk-ico-bremsen { --kk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='13' r='8.5'/%3E%3Ccircle cx='11' cy='13' r='2.5'/%3E%3Cpath d='M15.5 3.2a10 10 0 0 1 5.3 5.6l-3.8 1.6a6 6 0 0 0-3.1-3.4z'/%3E%3C/svg%3E"); }

/* ---------- Über uns ---------- */

body.kk .kk-about {
	gap: clamp(36px, 6vw, 80px);
	align-items: center;
	margin: 0;
}

body.kk .kk-about__photo {
	position: relative;
	margin: 0 24px 24px 0;
}

body.kk .kk-about__photo::after {
	content: "";
	position: absolute;
	inset: 24px -24px -24px 24px;
	z-index: -1;
	border: 4px solid var(--kk-orange);
	border-radius: var(--kk-radius);
}

body.kk .kk-about__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--kk-radius);
}

body.kk ul.kk-checks {
	margin: 24px 0 32px;
	padding: 0;
	list-style: none;
}

body.kk ul.kk-checks li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 36px;
}

body.kk ul.kk-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 22px;
	height: 22px;
	background: var(--kk-orange);
	-webkit-mask: var(--kk-check) center / contain no-repeat;
	mask: var(--kk-check) center / contain no-repeat;
}

body.kk ul.kk-checks strong { color: var(--kk-dark); }

/* ---------- Bewertungen ---------- */

body.kk .kk-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0 0 36px;
	font-family: var(--kk-font-head);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--kk-white);
}

body.kk .kk-rating strong {
	font-size: 3.4rem;
	font-style: italic;
	font-weight: 800;
	line-height: 1;
	color: var(--kk-orange);
}

/* Bewertungen als Wisch-Leiste: am PC 3, am Tablet 2, am Handy 1 Karte sichtbar */
body.kk .kk-reviews {
	--kk-review-sichtbar: 3;
	display: flex;
	gap: 20px;
	margin-bottom: 36px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

body.kk .kk-reviews::-webkit-scrollbar { display: none; }

body.kk .kk-reviews > * {
	flex: 0 0 calc((100% - (var(--kk-review-sichtbar) - 1) * 20px) / var(--kk-review-sichtbar));
	margin: 0;
	scroll-snap-align: start;
}

@media (max-width: 960px) {
	body.kk .kk-reviews { --kk-review-sichtbar: 2; }
}

@media (max-width: 640px) {
	body.kk .kk-reviews > * { flex-basis: 86%; } /* nächste Karte lugt hervor */
}

.kk-reviews-nav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin: -20px 0 28px;
}

.kk-reviews-nav[hidden] { display: none; }

.kk-reviews-nav button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 2px solid #555;
	border-radius: 50%;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.kk-reviews-nav button:hover:not(:disabled) { color: var(--kk-orange); border-color: var(--kk-orange); }
.kk-reviews-nav button:disabled { opacity: 0.35; cursor: default; }

body.kk .kk-review {
	display: flex;
	flex-direction: column;
	padding: 30px 28px;
	background: #2e2e2e;
	border-left: 4px solid var(--kk-orange);
	border-radius: var(--kk-radius);
}

body.kk .kk-review p { margin: 0; }

body.kk .kk-review .kk-stars {
	margin-bottom: 14px;
	font-size: 1.2rem;
	letter-spacing: 0.15em;
	color: var(--kk-orange);
}

body.kk .kk-review .kk-quote {
	flex: 1;
	margin-bottom: 18px;
	font-size: 1.1rem;
	font-style: italic;
	color: #ededed;
	white-space: pre-line; /* Absätze aus Google-Bewertungen */
}

body.kk .kk-review .kk-author {
	font-family: var(--kk-font-head);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a9a9a9;
}

body.kk .kk-review .kk-author a { color: inherit; text-decoration: none; }
body.kk .kk-review .kk-author a:hover { color: var(--kk-orange); }

/* ---------- Kontakt & Öffnungszeiten ---------- */

body.kk .kk-contact {
	gap: 20px;
	margin: 0;
}

body.kk .kk-box {
	height: 100%;
	padding: clamp(28px, 4vw, 44px);
	background: var(--kk-white);
	border: 1px solid var(--kk-line);
	border-top: 4px solid var(--kk-orange);
	border-radius: var(--kk-radius);
}

body.kk .kk-box h3 { margin: 0 0 20px; }
body.kk .kk-box > :last-child { margin-bottom: 0; }

body.kk .kk-hours table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 1.15rem;
}

body.kk .kk-hours td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--kk-line);
}

body.kk .kk-hours td:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--kk-dark);
}

body.kk .kk-hours tr:last-child td { border-bottom: 0; color: var(--kk-muted); }

body.kk .kk-contact-list p {
	margin: 0 0 14px;
	font-size: 1.15rem;
}

body.kk .kk-contact-list a {
	font-weight: 600;
	text-decoration: none;
}

body.kk .kk-contact-list .wp-block-buttons { margin-top: 28px; gap: 12px; }


/* ---------- Terminanfrage (eigenes Formular, inc/terminanfrage.php) ---------- */

body.kk .kk-booking {
	gap: clamp(36px, 6vw, 80px);
	align-items: flex-start;
	margin: 0;
}

.kk-tf {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 18px;
}

/* display:grid würde das hidden-Attribut nach dem Absenden überstimmen */
.kk-tf[hidden],
.kk-tf-erfolg[hidden],
.kk-form-box .kk-tf[hidden] ~ .kk-form-note { display: none; }

.kk-tf-feld { grid-column: 1 / -1; position: relative; min-width: 0; }
.kk-tf-feld.kk-tf-halb { grid-column: auto; }

@media (max-width: 560px) {
	.kk-tf-feld.kk-tf-halb { grid-column: 1 / -1; }
}

body.kk .kk-tf :is(label, .kk-tf-label) {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--kk-dark);
}

.kk-tf-feld > label span[aria-hidden] { color: var(--kk-orange-dark); }
.kk-tf-optional { font-weight: 400; color: var(--kk-muted); }

body.kk .kk-tf :is(input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea) {
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	font-family: var(--kk-font);
	font-size: 1.05rem;
	color: var(--kk-text);
	background: var(--kk-white);
	border: 1px solid #cfccc5;
	border-radius: var(--kk-radius);
	box-shadow: none;
}

body.kk .kk-tf textarea { min-height: 120px; resize: vertical; }

body.kk .kk-tf :is(input, select, textarea):focus {
	border-color: var(--kk-orange);
	box-shadow: 0 0 0 3px rgba(236, 99, 33, 0.18);
	outline: none;
}

body.kk .kk-tf [aria-invalid="true"] { border-color: #c62828; }

body.kk .kk-tf .kk-tf-datum-anzeige {
	cursor: pointer;
	padding-right: 44px;
	background: var(--kk-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec6321' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") right 14px center / 22px no-repeat;
}

body.kk .kk-tf p.kk-tf-hilfe {
	margin: 6px 0 0;
	font-size: 0.92rem;
	color: var(--kk-muted);
}

/* Kalender */
.kk-cal {
	position: absolute;
	left: 0;
	z-index: 20;
	width: 320px;
	max-width: calc(100vw - 40px);
	padding: 14px;
	background: var(--kk-white);
	border: 1px solid var(--kk-line);
	border-top: 4px solid var(--kk-orange);
	border-radius: var(--kk-radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.kk-cal__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-family: var(--kk-font-head);
	font-size: 1.25rem;
	text-transform: uppercase;
	color: var(--kk-dark);
}

.kk-cal__raster {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.kk-cal__wt {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kk-muted);
	padding-bottom: 4px;
}

body.kk .kk-cal button {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--kk-radius);
	background: transparent;
	font-family: var(--kk-font);
	color: var(--kk-dark);
	cursor: pointer;
}

body.kk .kk-cal .kk-cal__nav { width: 38px; height: 38px; font-size: 1.6rem; line-height: 1; }
body.kk .kk-cal .kk-cal__nav:hover:not(:disabled) { background: var(--kk-light); }

body.kk .kk-cal .kk-cal__tag {
	aspect-ratio: 1;
	font-size: 1rem;
	font-weight: 600;
	background: #fdf0e9;
}

body.kk .kk-cal .kk-cal__tag:hover:not(:disabled) { background: var(--kk-orange); color: var(--kk-white); }
body.kk .kk-cal .kk-cal__tag.is-gewaehlt { background: var(--kk-orange); color: var(--kk-white); }

body.kk .kk-cal button:disabled {
	background: transparent;
	color: #c4c1ba;
	font-weight: 400;
	cursor: default;
}

body.kk .kk-cal p.kk-cal__hinweis {
	margin: 10px 0 0;
	font-size: 0.85rem;
	text-align: center;
	color: var(--kk-muted);
}

/* Datei-Upload */
.kk-tf-datei {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 12px 14px;
	border: 2px dashed #cfccc5;
	border-radius: var(--kk-radius);
	font-weight: 400 !important;
	cursor: pointer;
}

.kk-tf-datei:hover,
.kk-tf-datei:focus-within { border-color: var(--kk-orange); }
.kk-tf-datei.has-datei { border-style: solid; border-color: var(--kk-orange); background: #fdf0e9; }

.kk-tf-datei input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.kk-tf-datei-knopf {
	padding: 8px 14px;
	background: var(--kk-dark);
	border-radius: var(--kk-radius);
	font-family: var(--kk-font-head);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--kk-white);
}

.kk-tf-datei-name { color: var(--kk-muted); overflow-wrap: anywhere; }

.kk-tf-falle { position: absolute; left: -9999px; }

body.kk .kk-tf p.kk-tf-meldung {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 16px;
	background: #fdecea;
	border-left: 4px solid #c62828;
	color: #8e1c1c;
}

body.kk .kk-tf .kk-tf-senden { min-width: 220px; justify-content: center; padding: 16px 32px; cursor: pointer; }
body.kk .kk-tf .kk-tf-senden:disabled { opacity: 0.6; cursor: wait; }

.kk-tf-erfolg { padding: 24px 0; text-align: center; outline: none; }
body.kk .kk-tf-erfolg h3 { margin: 0 0 10px; }
.kk-tf-erfolg p { margin: 0; color: var(--kk-muted); }

body.kk .kk-form-box p.kk-form-note {
	margin: 20px 0 0;
	font-size: 0.95rem;
	color: var(--kk-muted);
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

body.kk:not(.kk-front) .site-content { padding-block: clamp(40px, 6vw, 80px); }
body.kk:not(.kk-front) .entry-content { max-width: 820px; }
body.kk:not(.kk-front) .entry-title { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* ---------- Footer ---------- */

.kk-footer {
	background: var(--kk-dark);
	color: #c9c9c9;
	border-top: 4px solid var(--kk-orange);
	font-size: 1.05rem;
}

.kk-footer__inner {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	gap: 40px;
	padding: clamp(48px, 6vw, 72px) var(--kk-pad);
}

.kk-footer__brand img { width: 200px; height: auto; margin-bottom: 16px; }
.kk-footer__brand p { max-width: 300px; margin: 0; }

body.kk .kk-footer h2 {
	margin: 0 0 16px;
	font-size: 1.3rem;
	letter-spacing: 0.08em;
	color: var(--kk-white);
}

.kk-footer p { margin: 0 0 12px; }

body.kk .kk-footer a { color: #e6e6e6; text-decoration: none; }
body.kk .kk-footer a:hover { color: var(--kk-orange); }

.kk-footer__hours {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
}

.kk-footer__hours dt { font-weight: 600; color: #e6e6e6; }
.kk-footer__hours dd { margin: 0; }

.kk-footer__links { margin: 0; padding: 0; list-style: none; }
.kk-footer__links li { margin: 0 0 8px; }

.kk-footer__bottom {
	padding: 18px var(--kk-pad);
	border-top: 1px solid #383838;
	font-size: 0.95rem;
	color: #9a9a9a;
}

@media (max-width: 960px) {
	.kk-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.kk-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Werkstatthund Funny (lugt über den Footer) ---------- */

.kk-footer { position: relative; }

.kk-funny {
	position: absolute;
	bottom: calc(100% + 4px); /* steht auf der orangen Kante */
	left: calc(var(--kk-pad) + 8px);
	width: 150px;
	pointer-events: none;
}

.kk-funny__clip {
	height: 132px;
	overflow: hidden;
}

.kk-funny img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: auto;
	cursor: pointer;
	transform: translateY(44%);
	transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.kk-funny.is-waiting img { transform: translateY(102%); }

.kk-funny:hover img,
.kk-funny.is-up img { transform: translateY(0); }

body.kk .kk-funny__bubble {
	position: absolute;
	left: 158px;
	bottom: 70px;
	margin: 0;
	padding: 10px 14px;
	background: var(--kk-white);
	border: 2px solid var(--kk-orange);
	border-radius: 12px 12px 12px 2px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	font-family: var(--kk-font-head);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--kk-dark);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.kk-funny:hover .kk-funny__bubble,
.kk-funny.is-up .kk-funny__bubble {
	opacity: 1;
	transform: none;
	transition-delay: 0.2s;
}

@media (max-width: 768px) {
	.kk-funny { width: 118px; }
	.kk-funny__clip { height: 104px; }
	body.kk .kk-funny__bubble { left: 124px; bottom: 54px; }
}

/* ---------- 404-Seite ---------- */

.kk-404 {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 64px) 0;
	text-align: center;
}

.kk-404 img {
	width: 180px;
	height: auto;
	margin: 0 auto 24px;
}

body.kk .kk-404 h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.kk-404 p { margin: 0 0 32px; color: var(--kk-muted); font-size: 1.2rem; }

/* ---------- Anruf-Leiste am Smartphone ---------- */

.kk-callbar { display: none; }

@media (max-width: 768px) {
	body.kk { padding-bottom: 64px; }

	.kk-callbar { transition: transform 0.25s ease; }

	/* Beim Ausfüllen der Terminanfrage stört die Leiste – dort ausblenden */
	body.kk-im-formular .kk-callbar { transform: translateY(100%); }

	/* Anrufen steht am Handy schon in der Leiste unten – im Startbild nicht doppelt */
	body.kk .kk-hero .wp-block-button:has(a[href^="tel:"]) { display: none; }

	.kk-callbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 99;
		display: grid;
		grid-template-columns: 1fr 1fr;
		height: 64px;
		background: var(--kk-dark);
		border-top: 3px solid var(--kk-orange);
	}

	body.kk .kk-callbar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		font-family: var(--kk-font-head);
		font-size: 1.3rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		text-decoration: none;
		color: var(--kk-white);
	}

	body.kk .kk-callbar a:first-child { background: var(--kk-orange); }
}

/* ---------- Mobil-Feinschliff ---------- */

@media (max-width: 781px) {
	body.kk .kk-about__photo { max-width: 460px; }
	body.kk .wp-block-cover.kk-hero { min-height: 0; }
	body.kk .kk-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(25, 25, 25, 0.82), rgba(25, 25, 25, 0.9)) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Editor: Abschnitte auch dort als Blöcke mit Hintergrund erkennbar */
.editor-styles-wrapper .kk-section { padding: 48px 32px; }
.editor-styles-wrapper .kk-section--dark { background: var(--kk-dark); color: #ddd; }
.editor-styles-wrapper .kk-section--light { background: var(--kk-light); }
