/*
 * KK-Consulting · brand.css
 *
 * Was die Tokens in theme.json nicht abdecken: Kopf- und Fußzeile nach den
 * Blättern „KK Kopfzeile“ und „KK Fusszeile“, Knöpfe, die Bausteine der
 * Seitenblätter (Block-Stile `is-style-kk-…`, inc/bausteine.php) und das
 * Formular nach „KK Formular“. Werte aus „KK Grundlagen“: Raster 1200,
 * Rand 20/48, Radien 8/6, Schatten 0 1 2/5 % und 0 4 12/8 %, Fokusring
 * 3 px primary-500 + 1 px primary-900 im Abstand 2 px, Bewegung nur Farbe
 * und Schatten in 150 ms.
 *
 * Die Steuernews (fremdes HTML von Atikon) haben ein eigenes Stylesheet,
 * das nur auf ihrer Seite lädt: assets/css/pages/steuernews.css.
 */

/* ── 1 · Grundlagen ───────────────────────────────────────────── */

:root {
	--kk-gutter: 20px;
	--kk-wrap: min(1200px, 100% - 2 * var(--kk-gutter));
	--kk-section: 56px;
	--kk-band-pad: 48px;
	--kk-focus: 0 0 0 2px #fff, 0 0 0 5px var(--wp--preset--color--primary-500), 0 0 0 6px var(--wp--preset--color--primary-900);
	--kk-shadow-card: var(--wp--custom--shadow--card);
	--kk-shadow-raised: var(--wp--custom--shadow--raised);
	--kk-radius-card: var(--wp--custom--radius--card);
	--kk-radius-button: var(--wp--custom--radius--button);
	--kk-btn-border: var(--wp--custom--button-border--rest);
	--kk-btn-border-hover: var(--wp--custom--button-border--hover);
	--kk-ease: 150ms ease-out;
}

@media (min-width: 768px) {
	:root {
		--kk-gutter: 48px;
		--kk-section: 72px;
		--kk-band-pad: 64px;
	}
}

@media (min-width: 1280px) {
	:root {
		--kk-gutter: 20px;
		--kk-section: 96px;
		--kk-band-pad: 80px;
	}
}

body {
	background: var(--wp--preset--color--white);
	font-variant-numeric: lining-nums;
}

/* Die Blätter brechen Fließtext normal um; „pretty“ nur, wo sie es selbst setzen. */
:where(main) :where(p, li) {
	text-wrap: wrap;
}

/* Fokus wie in den Grundlagen: Ring statt Umriss, auf jedem Bedienelement. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: none;
	box-shadow: var(--kk-focus);
	border-radius: 4px;
}

.kk-icon {
	display: block;
	flex: none;
}

/* Das Basis-Theme setzt svg auf height: auto; im Flex-Raster würde es gestreckt. */
.kk-icon[height="12"] { height: 12px; }
.kk-icon[height="13"] { height: 13px; }
.kk-icon[height="14"] { height: 14px; }
.kk-icon[height="15"] { height: 15px; }
.kk-icon[height="16"] { height: 16px; }
.kk-icon[height="17"] { height: 17px; }
.kk-icon[height="18"] { height: 18px; }
.kk-icon[height="20"] { height: 20px; }
.kk-icon[height="22"] { height: 22px; }
.kk-icon[height="24"] { height: 24px; }
.kk-icon[height="26"] { height: 26px; }
.kk-icon[height="28"] { height: 28px; }
.kk-icon[height="40"] { height: 40px; }
.kk-icon[height="72"] { height: 72px; }

.kk-tone-accent {
	display: flex;
	color: var(--wp--preset--color--accent-700);
}

.kk-tone-primary {
	display: flex;
	color: var(--wp--preset--color--primary-800);
}

.kk-extern {
	display: inline-flex;
	flex: none;
	color: currentColor;
}

/* ── 2 · Knöpfe ───────────────────────────────────────────────── */

.kk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--kk-radius-button);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--kk-ease), border-color var(--kk-ease), color var(--kk-ease);
}

.kk-btn--primary {
	background: var(--wp--preset--color--primary-800);
	color: var(--wp--preset--color--white);
}

.kk-btn--primary:hover {
	background: var(--wp--preset--color--primary-900);
	color: var(--wp--preset--color--white);
}

.kk-btn--secondary {
	background: var(--wp--preset--color--white);
	border-color: var(--kk-btn-border);
	color: var(--wp--preset--color--text);
}

.kk-btn--secondary:hover {
	background: var(--wp--preset--color--mist);
	border-color: var(--kk-btn-border-hover);
	color: var(--wp--preset--color--text);
}

/* ── 3 · Kopfzeile ────────────────────────────────────────────── */

/*
 * Die Leiste bleibt ab 768 px beim Scrollen oben (Login und Termin immer in
 * Reichweite); auf dem Telefon übernimmt das die Leiste unten. Der Wrapper
 * des Template-Teils gibt sein Layout ab, damit „sticky“ sich auf die ganze
 * Seite bezieht und die Brotkrumen mitscrollen.
 */
.wp-block-template-part:has(> .kk-header) {
	display: contents;
}

.kk-header {
	position: relative;
	z-index: 50;
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--barlow);
	color: var(--wp--preset--color--text);
}

.admin-bar .kk-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.kk-header__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 72px;
	padding: 0 20px;
}

.kk-header__logo {
	display: flex;
	flex: none;
	margin-right: auto;
	border-radius: 4px;
}

.kk-header__logo img {
	display: block;
	width: 140px;
	height: auto;
}

.kk-nav {
	display: none;
}

.kk-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kk-header__phone,
.kk-header__cloud {
	display: none;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--wp--preset--color--text);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--kk-ease);
}

.kk-header__phone:hover,
.kk-header__cloud:hover {
	color: var(--wp--preset--color--primary-800);
}

.kk-header__cloud:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.kk-header__cloud .kk-extern {
	color: var(--wp--preset--color--text-secondary);
}

.kk-header__cta {
	display: none;
}

.kk-header__call,
.kk-header__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-button);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: border-color var(--kk-ease);
}

.kk-header__call:hover,
.kk-header__toggle:hover {
	border-color: var(--wp--preset--color--primary-300);
	color: var(--wp--preset--color--text);
}

.kk-header__toggle-icon {
	display: flex;
}

.kk-header__toggle-icon--close,
.kk-header__toggle[aria-expanded="true"] .kk-header__toggle-icon--open {
	display: none;
}

.kk-header__toggle[aria-expanded="true"] .kk-header__toggle-icon--close {
	display: flex;
}

/* Das aufklappende Menü. */
.kk-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px 24px;
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 16px rgba(43, 40, 39, 0.08);
}

.kk-menu[hidden] {
	display: none;
}

.kk-menu .kk-btn {
	height: 48px;
}

.kk-menu__cloud {
	border-color: #D3CAC1;
}

.kk-menu__cloud .kk-extern {
	color: var(--wp--preset--color--text-secondary);
}

.kk-menu__phone {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	color: var(--wp--preset--color--text);
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
}

.kk-menu__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--border);
}

.kk-menu__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
}

.kk-menu__nav a[aria-current="page"] {
	color: var(--wp--preset--color--primary-800);
}

.kk-menu__chevron {
	display: flex;
	color: var(--wp--preset--color--text-secondary);
}

.kk-menu__hours {
	margin: 4px 0 0;
	font-family: var(--wp--preset--font-family--source-sans-3);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-secondary);
}

/* Tablet · Blatt „Kopfzeile 768“: Logo, Login, Termin, Menü; die Nummer im Menü. */
@media (min-width: 768px) {
	.kk-header {
		position: sticky;
		top: 0;
	}

	.kk-header__bar {
		height: 80px;
		padding: 0 48px;
	}

	.kk-header__cloud {
		display: inline-flex;
		padding: 0 4px;
	}

	.kk-header__cta {
		display: inline-flex;
	}

	.kk-header__call {
		display: none;
	}

	.kk-menu {
		padding: 16px 48px 24px;
	}

	.kk-menu__cta,
	.kk-menu__cloud {
		display: none;
	}

	.kk-menu__phone {
		display: flex;
	}
}

/* Desktop · alles in einer Leiste. */
@media (min-width: 1280px) {
	.kk-header__bar {
		width: var(--kk-wrap);
		height: 88px;
		margin: 0 auto;
		padding: 0;
		gap: 20px;
	}

	.kk-header__logo {
		margin-right: 0;
	}

	.kk-header__logo img {
		width: 150px;
	}

	.kk-nav {
		display: flex;
		flex: 1;
		min-width: 0;
	}

	.kk-nav__list {
		display: flex;
		gap: 18px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.kk-nav__link {
		display: flex;
		align-items: center;
		min-height: 44px;
		color: var(--wp--preset--color--text);
		font-weight: 600;
		font-size: 16px;
		text-decoration: none;
		white-space: nowrap;
		transition: color var(--kk-ease), box-shadow var(--kk-ease);
	}

	.kk-nav__link:hover {
		color: var(--wp--preset--color--primary-800);
		box-shadow: inset 0 -2px 0 var(--wp--preset--color--primary-200);
	}

	.kk-nav__link[aria-current="page"] {
		color: var(--wp--preset--color--primary-800);
		box-shadow: inset 0 -2px 0 var(--wp--preset--color--primary-800);
	}

	.kk-header__actions {
		gap: 14px;
		flex: none;
	}

	.kk-header__phone {
		display: inline-flex;
	}

	.kk-header__cloud {
		padding: 0;
	}

	.kk-header__toggle,
	.kk-menu {
		display: none;
	}
}

/* Brotkrumen unter der Leiste. */
.kk-breadcrumb {
	background: var(--wp--preset--color--mist);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kk-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: var(--kk-wrap);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.kk-breadcrumb__list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kk-breadcrumb__sep {
	display: flex;
	color: #A39990;
}

/* ── 4 · Fußzeile ─────────────────────────────────────────────── */

.kk-footer {
	background: var(--wp--preset--color--primary-950);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--source-sans-3);
}

.kk-footer :where(a, button):focus-visible {
	box-shadow: none;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.kk-footer__inner {
	width: var(--kk-wrap);
	margin: 0 auto;
}

.kk-footer__columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 48px 0 32px;
}

.kk-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kk-footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.kk-footer__logo img {
	display: block;
	width: 52px;
	height: 52px;
}

.kk-footer__name {
	display: flex;
	flex-direction: column;
}

.kk-footer__word {
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.1;
}

.kk-footer__sub {
	font-size: 15px;
	color: #E9DCD9;
}

.kk-footer__address {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: #F2E8E6;
}

.kk-footer__contact {
	display: flex;
	flex-direction: column;
}

.kk-footer__line {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--white);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.kk-footer__line:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.kk-footer__hours {
	display: flex;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #F2E8E6;
}

.kk-footer__hours .kk-icon {
	margin-top: 2px;
}

.kk-footer__column {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kk-footer .kk-footer__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--primary-200);
}

.kk-footer__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kk-footer__list a {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--wp--preset--color--white);
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
}

.kk-footer__list a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kk-footer__list .kk-extern {
	color: var(--wp--preset--color--primary-200);
}

.kk-footer__rule {
	display: flex;
	align-items: center;
	gap: 6px;
}

.kk-footer__rule span:first-child {
	flex: 1;
	width: auto;
	height: 1px;
	background: #5A1F1A;
	transform: none;
}

.kk-footer__rule span {
	width: 4px;
	height: 12px;
	background: var(--wp--preset--color--primary-300);
	transform: skewX(-11deg);
}

.kk-footer__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0 24px;
	padding: 12px 0 20px;
	font-size: 14px;
}

.kk-footer__copyright {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: #E9DCD9;
	text-wrap: balance;
}

.kk-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kk-footer__legal-list a,
.kk-footer__legal-list button {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 14px;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.kk-footer__note {
	display: flex;
	margin: 0;
}

.kk-footer__note-link {
	display: flex;
	align-items: center;
	gap: 5px;
	min-height: 44px;
	color: var(--wp--preset--color--primary-200);
	font-size: 14px;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(221, 183, 178, 0.55);
	transition: color var(--kk-ease);
}

.kk-footer__note-link:hover {
	color: var(--wp--preset--color--white);
	text-decoration-color: var(--wp--preset--color--white);
}

@media (min-width: 768px) {
	.kk-footer__columns {
		grid-template-columns: 1fr 1fr;
		padding: 56px 0 40px;
	}

	.kk-footer__row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.kk-footer__copyright {
		margin-right: auto;
	}

	/* Bei 768 steht der Hinweis in einer eigenen Zeile rechts (Nachfassung 02, D3). */
	.kk-footer__note {
		flex-basis: 100%;
		justify-content: flex-end;
	}
}

@media (min-width: 1280px) {
	.kk-footer__columns {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
		padding: 64px 0 48px;
	}

	.kk-footer__note {
		flex-basis: auto;
	}
}

/* Die Leiste unten auf dem Telefon. */
.kk-sticky {
	display: none;
}

@media (max-width: 767px) {
	.kk-sticky {
		position: fixed;
		inset: auto 0 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--white);
		border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -4px 12px rgba(43, 40, 39, 0.08);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 200ms ease-out, visibility 0s linear 200ms;
	}

	.kk-sticky[data-visible="true"] {
		transform: none;
		visibility: visible;
		transition: transform 200ms ease-out;
	}

	.kk-sticky .kk-btn {
		height: 48px;
		padding: 0 12px;
	}

	.kk-sticky .kk-btn--secondary {
		border-color: #D3CAC1;
	}

	.kk-sticky-shown .kk-footer {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kk-sticky,
	.kk-sticky[data-visible="true"] {
		transition: none;
	}
}

/* ── 5 · Bausteine der Seitenblätter ──────────────────────────── */

/*
 * Die Masse der Blätter stehen in cqi des Artboards; hier in vw, gemessen
 * gegen dieselbe Breite. Der Inhalt sitzt in min(1200, 100 % − 2 × Rand).
 */
:root {
	--kk-inline: max(var(--kk-gutter), calc((100% - 1200px) / 2));
	--kk-pad-section: clamp(56px, 6.67vw, 96px);
	--kk-pad-tight: clamp(48px, 5.56vw, 80px);
	--kk-h2: clamp(26px, 2.36vw, 34px);
	--kk-lead: clamp(17px, 1.32vw, 19px);
	--kk-h3: clamp(20px, 1.53vw, 22px);
	--kk-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--kk-icon-termin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14v14H5z M5 10h14 M9 4v4 M15 4v4 M9 14.5l2 2 4-4'/%3E%3C/svg%3E");
	--kk-icon-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4 4 0 0 1-.6-7.95A5.5 5.5 0 0 1 17 8.5a4.5 4.5 0 0 1 .5 9.5H7z'/%3E%3C/svg%3E");
	--kk-icon-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14 M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--kk-icon-runter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	--kk-icon-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h11v12H4z M15 10l5-3v10l-5-3'/%3E%3C/svg%3E");
	--kk-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h12v9H6z M8.5 11V8a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E");
	--kk-icon-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h11v14H7a2 2 0 0 1-2-2V5z M16 9h3v8a2 2 0 0 1-2 2 M8 9h5 M8 12h5 M8 15h3'/%3E%3C/svg%3E");
}

@media (min-width: 1280px) {
	:root {
		--kk-inline: max(20px, calc((100% - 1200px) / 2));
	}
}

/* Abstände trägt das Raster der Bausteine, nicht der Fluss. */
.wp-block-post-content > *,
main .wp-block-group[class*="is-style-kk-"] > *,
main .wp-block-details.is-style-kk-mehr > * {
	margin-block: 0;
}

main [id] {
	scroll-margin-top: 24px;
}

@media (min-width: 768px) {
	main [id] {
		scroll-margin-top: 104px;
	}
}

/* Sektionen. */
.wp-block-group.is-style-kk-band,
.wp-block-group.is-style-kk-band-mist,
.wp-block-group.is-style-kk-band-quiet {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.3vw, 48px);
	padding: var(--kk-pad-section) var(--kk-inline);
}

.wp-block-group.is-style-kk-band {
	background: var(--wp--preset--color--white);
}

.wp-block-group.is-style-kk-band-mist {
	background: var(--wp--preset--color--mist);
}

.wp-block-group.is-style-kk-band-quiet {
	background: var(--wp--preset--color--quiet);
}

.wp-block-group[class*="is-style-kk-band"] > h2,
.wp-block-group.is-style-kk-stapel > h2,
.wp-block-group.is-style-kk-formular-split h2 {
	font-size: var(--kk-h2);
	line-height: 1.15;
	text-wrap: balance;
}

.wp-block-group.is-style-kk-stapel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.wp-block-group.is-style-kk-stapel > * {
	max-width: 100%;
}

.is-style-kk-lead {
	font-size: var(--kk-lead);
	line-height: 1.55;
	text-wrap: pretty;
}

.is-style-kk-lead-ruhig {
	max-width: 640px;
	font-size: var(--kk-lead);
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
	text-wrap: pretty;
}

/* Knöpfe in Inhalten: 52 hoch, Barlow 600 17. */
main .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--kk-radius-button);
	background: var(--wp--preset--color--primary-800);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--kk-ease), border-color var(--kk-ease);
}

main .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-900);
	color: var(--wp--preset--color--white);
}

main .is-style-kk-termin .wp-block-button__link::before,
main .is-style-kk-cloud .wp-block-button__link::before,
main .is-style-kk-weiter .wp-block-button__link::after,
main .is-style-kk-runter .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: var(--kk-icon-termin) center / contain no-repeat;
}

main .is-style-kk-cloud .wp-block-button__link::before {
	mask-image: var(--kk-icon-cloud);
}

main .is-style-kk-weiter .wp-block-button__link,
main .is-style-kk-runter .wp-block-button__link {
	padding: 0 22px;
	background: var(--wp--preset--color--white);
	border-color: var(--kk-btn-border);
	color: var(--wp--preset--color--text);
}

main .is-style-kk-weiter .wp-block-button__link:hover,
main .is-style-kk-runter .wp-block-button__link:hover {
	background: var(--wp--preset--color--mist);
	border-color: var(--kk-btn-border-hover);
	color: var(--wp--preset--color--text);
}

main .is-style-kk-weiter .wp-block-button__link::after {
	width: 18px;
	height: 18px;
	mask-image: var(--kk-icon-pfeil);
}

main .is-style-kk-runter .wp-block-button__link::after {
	width: 18px;
	height: 18px;
	mask-image: var(--kk-icon-runter);
}

.kk-btn--gross {
	min-height: 52px;
	padding: 0 24px;
	font-size: 17px;
}

.wp-block-group.is-style-kk-knoepfe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.wp-block-group.is-style-kk-knoepfe .wp-block-buttons {
	display: flex;
	gap: 12px;
	margin: 0;
}

/* Textlinks: Barlow 600, Rot, unterstrichen, 44 hoch. */
.is-style-kk-textlink a,
.is-style-kk-pfeil a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--wp--preset--color--primary-800);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.is-style-kk-pfeil a::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	mask: var(--kk-icon-pfeil) center / contain no-repeat;
}

/* Offene Angaben: gelb hinterlegt, in eckigen Klammern (Grundlagen). */


/* Symbole. */
.kk-symbol {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent-700);
}

.kk-symbol--rund,
.kk-symbol--rund-weiss {
	width: 48px;
	height: 48px;
	border-radius: 99px;
	background: var(--wp--preset--color--accent-50);
}

.kk-symbol--rund-weiss {
	width: 44px;
	height: 44px;
	background: var(--wp--preset--color--white);
}

.kk-symbol--kachel {
	width: 48px;
	height: 48px;
	border-radius: var(--kk-radius-button);
	background: var(--wp--preset--color--accent-50);
}

/* Häkchenliste. */
.wp-block-list.is-style-kk-haken {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-kk-haken > li {
	display: flex;
	gap: 10px;
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
}

.wp-block-list.is-style-kk-haken > li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	background: var(--wp--preset--color--positive-700);
	mask: var(--kk-icon-check) center / contain no-repeat;
}

/* 5.1 Hero der Startseite: Text links, Panel rechts. */
.wp-block-group.is-style-kk-hero-start {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: clamp(32px, 4vw, 56px);
	align-items: center;
	padding: clamp(40px, 5.6vw, 80px) var(--kk-inline) var(--kk-pad-section);
	background: var(--wp--preset--color--mist);
}

.is-style-kk-hero-start .is-style-kk-stapel {
	gap: 24px;
}

.is-style-kk-hero-start h1 {
	font-size: clamp(34px, 3.89vw, 56px);
	line-height: 1.08;
	text-wrap: balance;
	hyphens: manual;
}

.is-style-kk-hero-start .is-style-kk-lead-ruhig {
	max-width: 540px;
}

.wp-block-group.is-style-kk-panel {
	display: flex;
	flex-direction: column;
}

.is-style-kk-panel .wp-block-image {
	margin: 0;
}

.is-style-kk-panel .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--kk-radius-card);
}

.kk-zeiten--karte {
	position: relative;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: calc(100% - 24px);
	margin: -48px 0 0 clamp(12px, 2.2vw, 32px) !important;
	padding: 20px 22px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: var(--kk-shadow-raised);
}

.kk-zeiten__text {
	display: flex;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.kk-zeiten__text .kk-tone-accent {
	padding-top: 2px;
}

.kk-zeiten strong {
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
}

.kk-zeiten__cloud {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding-top: 8px;
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}

.kk-zeiten__cloud:hover {
	color: var(--wp--preset--color--primary-800);
	text-decoration: underline;
}

.kk-zeiten__cloud .kk-extern {
	color: var(--wp--preset--color--text-secondary);
}

/* 5.2 Belegpunkte. */
.wp-block-group.is-style-kk-band:has(> .is-style-kk-punkte) {
	padding-block: var(--kk-pad-tight);
}

.wp-block-group.is-style-kk-punkte {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(28px, 2.6vw, 40px) 32px;
}

.wp-block-group.is-style-kk-punkt {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.is-style-kk-punkt h2 {
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
}

.is-style-kk-punkt p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
}

/* 5.3 Leistungen. */
.wp-block-group.is-style-kk-leistungen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: 24px;
}

.wp-block-group.is-style-kk-leistung {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(20px, 2.2vw, 32px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: var(--kk-shadow-card);
}

.wp-block-group.is-style-kk-titel-symbol {
	display: flex;
	align-items: center;
	gap: 16px;
}

.is-style-kk-leistung h3 {
	font-size: var(--kk-h3);
	line-height: 1.25;
}

.is-style-kk-leistung > p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
}

.wp-block-details.is-style-kk-mehr {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.is-style-kk-mehr > summary {
	display: none;
}

.is-style-kk-mehr > .wp-block-list {
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--border);
}


@media (max-width: 767px) {
	.is-style-kk-mehr > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 44px;
		border-top: 1px solid var(--wp--preset--color--border);
		color: var(--wp--preset--color--primary-800);
		font-family: var(--wp--preset--font-family--barlow);
		font-weight: 600;
		font-size: 16px;
		list-style: none;
		cursor: pointer;
	}

	.is-style-kk-mehr > summary::-webkit-details-marker {
		display: none;
	}

	.is-style-kk-mehr > summary::after {
		content: "";
		width: 20px;
		height: 20px;
		background: currentColor;
		mask: var(--kk-icon-runter) center / contain no-repeat;
	}

	.is-style-kk-mehr[open] > summary::after {
		transform: rotate(180deg);
	}

	.is-style-kk-mehr > .wp-block-list {
		border-top: 0;
	}
}

/* Hinweis für Gründer zwischen zwei Linien. */
.wp-block-group.is-style-kk-hinweiszeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding: 24px 0;
	border-top: 1px solid #D3CAC1;
	border-bottom: 1px solid #D3CAC1;
}

.is-style-kk-hinweiszeile > p:not([class]),
.is-style-kk-hinweiszeile > .wp-block-paragraph:not(.is-style-kk-textlink) {
	flex: 1 1 420px;
	font-size: 17px;
	line-height: 1.55;
}

/* 5.4 Digitale Buchhaltung: Text und Fläche. */
.wp-block-group.is-style-kk-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: clamp(32px, 4vw, 64px);
	align-items: center;
}

.is-style-kk-split .is-style-kk-knoepfe {
	gap: 8px 24px;
}

.wp-block-group.is-style-kk-cloud-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 2.8vw, 40px);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--accent-50);
}

.is-style-kk-cloud-panel .is-style-kk-titel-symbol {
	gap: 12px;
}

.is-style-kk-pille {
	padding: 5px 12px;
	border-radius: 99px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-700);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

.wp-block-group.is-style-kk-zeilen {
	display: flex;
	flex-direction: column;
}

.wp-block-group.is-style-kk-zeile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--accent-100);
	font-size: 17px;
}

/* 5.5 Unterbrecher auf Rot 950 mit den Schrägen des Logos. */
.wp-block-group.is-style-kk-band-deep {
	--kk-b1: clamp(40px, 8vw, 120px);
	--kk-b2: clamp(12px, 1.4vw, 20px);
	--kk-b3: clamp(30px, 5vw, 72px);
	--kk-bg: clamp(10px, 1.4vw, 20px);
	position: relative;
	overflow: hidden;
	padding: var(--kk-pad-section) var(--kk-inline);
	background: var(--wp--preset--color--primary-950);
}

.wp-block-group.is-style-kk-band-deep::before {
	content: "";
	position: absolute;
	top: -20px;
	bottom: -20px;
	right: clamp(-120px, -2vw, -20px);
	width: calc(var(--kk-b1) + var(--kk-b2) + var(--kk-b3) + 2 * var(--kk-bg));
	background: linear-gradient(
		to right,
		var(--wp--preset--color--primary-900) 0 var(--kk-b1),
		transparent var(--kk-b1) calc(var(--kk-b1) + var(--kk-bg)),
		var(--wp--preset--color--primary-900) calc(var(--kk-b1) + var(--kk-bg)) calc(var(--kk-b1) + var(--kk-bg) + var(--kk-b2)),
		transparent calc(var(--kk-b1) + var(--kk-bg) + var(--kk-b2)) calc(var(--kk-b1) + 2 * var(--kk-bg) + var(--kk-b2)),
		var(--wp--preset--color--primary-900) calc(var(--kk-b1) + 2 * var(--kk-bg) + var(--kk-b2))
	);
	transform: skewX(-11deg);
}

.is-style-kk-aussage {
	position: relative;
	padding-right: clamp(60px, 20vw, 320px);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 700;
	font-size: var(--kk-h2);
	line-height: 1.25;
	text-wrap: balance;
}

/* 5.6 Über uns. */
.wp-block-group.is-style-kk-ueber {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
}

.wp-block-group.is-style-kk-spalten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 24px;
	width: 100%;
}

.is-style-kk-spalten > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.is-style-kk-spalten > .wp-block-group > * {
	margin-block: 0;
}

.is-style-kk-spalten h3 {
	font-size: 20px;
	line-height: 1.25;
}

.is-style-kk-spalten .is-style-kk-haken {
	gap: 6px;
}




/* Person mit Porträt. */
.kk-person {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--white);
}

.kk-person__foto {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--quiet);
}

.kk-person__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kk-person__leer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	color: #A39990;
	font-size: 15px;
}

.kk-person__leer span {
	color: var(--wp--preset--color--text-secondary);
}


.kk-person__text {
	display: flex;
	font-size: inherit;
	line-height: inherit;
	color: var(--wp--preset--color--text);
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
}

.kk-person--kontakt .kk-person__text,
.kk-person--kontaktseite .kk-person__text {
	gap: 4px;
	padding: 18px 20px;
}

.kk-person__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
}

.kk-person__rolle {
	font-size: 15px;
	color: var(--wp--preset--color--text-secondary);
}

.kk-person__telefon,
.kk-person__mail {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--primary-800);
	font-weight: 600;
	font-size: 17px;
}

/* 5.7 Steuernews-Zeile. */
.wp-block-group.is-style-kk-band-zeile {
	padding: clamp(32px, 3.3vw, 48px) var(--kk-inline);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
}

.wp-block-group.is-style-kk-newszeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.is-style-kk-newszeile > .is-style-kk-lead {
	flex: 1 1 300px;
	line-height: 1.5;
}

/* 5.8 Kontaktblock. */
.wp-block-group.is-style-kk-band:has(> .is-style-kk-kontakt-raster) {
	gap: clamp(24px, 2.8vw, 40px);
	padding-bottom: 0;
}

.wp-block-group.is-style-kk-kontakt-raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
	align-items: start;
}

.kk-anschrift {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-style: normal;
	font-size: 17px;
	line-height: 1.5;
}

.kk-anschrift__name {
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 20px;
}

.kk-anschrift__zeile {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.kk-anschrift__zeile .kk-tone-accent {
	padding-top: 2px;
}

a.kk-anschrift__zeile {
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

a.kk-anschrift__zeile .kk-tone-accent {
	padding-top: 0;
}

a.kk-anschrift__zeile:hover {
	color: var(--wp--preset--color--primary-800);
	text-decoration: underline;
}

.kk-anschrift__route {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding-left: 30px;
	color: var(--wp--preset--color--primary-800);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.kk-zeiten--kasten,
.kk-zeiten--zeilen {
	display: flex;
	gap: 12px;
	padding: 22px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--mist);
}

.kk-zeiten--kasten p,
.kk-zeiten--zeilen p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

.kk-zeiten--kasten strong,
.kk-zeiten--zeilen strong {
	font-size: 20px;
}

/* 5.9 Abschluss: Fläche Rot 50 mit abgeschrägter Ecke. */
.wp-block-group.is-style-kk-abschluss {
	--kk-cut: 34px;
	--kk-cut-a: 8px;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	width: min(1200px, 100% - 2 * var(--kk-gutter));
	margin: var(--kk-pad-section) auto;
	padding: 56px 64px;
}

.wp-block-group.is-style-kk-abschluss::before,
.wp-block-group.is-style-kk-abschluss::after {
	content: "";
	position: absolute;
	z-index: -1;
	background: var(--wp--preset--color--primary-50);
}

.wp-block-group.is-style-kk-abschluss::before {
	inset: 0;
	border-radius: var(--kk-radius-card);
	clip-path: polygon(0 0, calc(100% - var(--kk-cut)) 0, 100% calc(var(--kk-cut) * 5), 100% 100%, 0 100%);
}

.wp-block-group.is-style-kk-abschluss::after {
	top: 0;
	right: 0;
	width: var(--kk-cut);
	height: calc(var(--kk-cut) * 5);
	clip-path: polygon(var(--kk-cut-a) 0, calc(2 * var(--kk-cut-a)) 0, 100% calc((var(--kk-cut) - 2 * var(--kk-cut-a)) * 5), 100% calc((var(--kk-cut) - var(--kk-cut-a)) * 5));
}

.is-style-kk-abschluss > .is-style-kk-stapel:first-child {
	gap: 12px;
	max-width: 620px;
}

.is-style-kk-abschluss > .is-style-kk-stapel:last-child {
	flex: none;
	gap: 12px;
}

.is-style-kk-abschluss h2 {
	font-size: var(--kk-h2);
	line-height: 1.15;
	color: var(--wp--preset--color--primary-800);
	text-wrap: balance;
}

.is-style-kk-abschluss .is-style-kk-lead {
	line-height: 1.5;
}

.kk-telefon-zeile {
	margin: 0;
	font-size: 17px;
}

.kk-telefon-zeile a {
	color: var(--wp--preset--color--primary-800);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* Telefon: gestapelte Knöpfe über die volle Breite. */
@media (max-width: 767px) {
	.wp-block-group.is-style-kk-knoepfe,
	.wp-block-group.is-style-kk-knoepfe .wp-block-buttons,
	.wp-block-group.is-style-kk-knoepfe .wp-block-button,
	.kk-telefon-knopf {
		width: 100%;
	}

	.wp-block-group.is-style-kk-knoepfe .wp-block-button__link,
	.kk-telefon-knopf .kk-btn {
		width: 100%;
	}

	.is-style-kk-split .is-style-kk-knoepfe {
		gap: 8px;
	}

	.wp-block-group.is-style-kk-abschluss {
		--kk-cut: 22px;
		--kk-cut-a: 5px;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 32px 24px;
	}

	.is-style-kk-abschluss > .is-style-kk-stapel:last-child {
		align-items: stretch;
	}

	.is-style-kk-abschluss .wp-block-buttons,
	.is-style-kk-abschluss .wp-block-button,
	.is-style-kk-abschluss .wp-block-button__link {
		width: 100%;
	}
}

/* ── 6 · Unterseiten ──────────────────────────────────────────── */

/* Seitenkopf: einspaltig auf Seitengrund. */
.wp-block-group.is-style-kk-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(32px, 4.4vw, 64px) var(--kk-inline) clamp(48px, 5.56vw, 80px);
	background: var(--wp--preset--color--mist);
}

.is-style-kk-hero h1 {
	max-width: 820px;
	font-size: clamp(30px, 3.2vw, 46px);
	line-height: 1.1;
	text-wrap: balance;
	hyphens: manual;
}

.wp-block-group.is-style-kk-hero:has(.wp-block-buttons) {
	gap: 20px;
	padding-bottom: var(--kk-pad-section);
}

.is-style-kk-hero .is-style-kk-knoepfe {
	margin-top: 4px;
}

/* Vorteile: fünf Spalten, mobil Symbol neben dem Text. */
.wp-block-group.is-style-kk-band:has(> .is-style-kk-vorteile) {
	gap: 28px;
	padding-block: var(--kk-pad-tight);
}

.wp-block-group.is-style-kk-vorteile {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 24px;
}

.wp-block-group.is-style-kk-vorteil {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.is-style-kk-vorteil p {
	padding-top: 4px;
	font-size: 17px;
	line-height: 1.45;
}

@media (max-width: 767px) {
	.wp-block-group.is-style-kk-vorteil {
		flex-direction: row;
	}
}

/* Schritte in drei Karten, Nummer im Kreis. */
.wp-block-group.is-style-kk-schritte {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	counter-reset: kk-schritt;
}

.wp-block-group.is-style-kk-schritt {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(20px, 2.2vw, 32px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--white);
	counter-increment: kk-schritt;
}

.wp-block-group.is-style-kk-schritt::before {
	content: counter(kk-schritt);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--wp--preset--color--primary-800);
	border-radius: 99px;
	color: var(--wp--preset--color--primary-800);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 700;
	font-size: 22px;
}

.is-style-kk-schritt h3 {
	font-size: var(--kk-h3);
	line-height: 1.25;
}

.is-style-kk-schritt p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
}

.is-style-kk-band-quiet > .is-style-kk-lead {
	max-width: 760px;
}

/* Text und Formular, 5 : 7. */
.wp-block-group.is-style-kk-band:has(> .is-style-kk-formular-split) {
	padding-bottom: 0;
}

.wp-block-group.is-style-kk-band:has(> .kk-steuernews) {
	padding-top: clamp(40px, 4.4vw, 64px);
	padding-bottom: 0;
}

.wp-block-group.is-style-kk-formular-split {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}

.is-style-kk-formular-split .is-style-kk-stapel {
	gap: 16px;
}

@media (max-width: 767px) {
	.wp-block-group.is-style-kk-formular-split {
		grid-template-columns: 1fr;
	}
}

.is-style-kk-schloss {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	padding-left: 30px;
	position: relative;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-secondary);
}

.is-style-kk-schloss::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--accent-700);
	mask: var(--kk-icon-lock) center / contain no-repeat;
}

.is-style-kk-schloss a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--wp--preset--color--primary-800);
	font-weight: 600;
}

/* Karte um das Formular. */
.wp-block-group.is-style-kk-karte {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kk-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: var(--kk-shadow-card);
}

@media (max-width: 767px) {
	.wp-block-group.is-style-kk-karte {
		padding: 24px 20px;
	}
}

.is-style-kk-pflicht,
.is-style-kk-klein {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-secondary);
}

/* Das Formular nach „KK Formular“ (Codepun Forms). */
.is-style-kk-karte .codepun-form {
	--cpf-text: var(--wp--preset--color--text);
	--cpf-label: var(--wp--preset--color--text);
	--cpf-border: var(--wp--custom--field-border--rest);
	--cpf-border-hover: var(--wp--custom--field-border--hover);
	--cpf-focus-color: var(--wp--preset--color--primary-500);
	--cpf-error: var(--wp--preset--color--error);
	--cpf-error-bg: var(--wp--preset--color--white);
	--cpf-radius: 6px;
	--cpf-field-height: 48px;
	--cpf-field-padding: 0 14px;
	--cpf-gap: 20px;
	--cpf-padding: 0;
	--cpf-button-bg: var(--wp--preset--color--primary-800);
	--cpf-button-fg: var(--wp--preset--color--white);
	--cpf-button-hover: var(--wp--preset--color--primary-900);
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none;
	font-family: var(--wp--preset--font-family--source-sans-3);
}

.is-style-kk-karte .codepun-form__row {
	gap: 20px;
}

.is-style-kk-karte .codepun-form .codepun-form__label,
.is-style-kk-karte .codepun-form .codepun-form__legend {
	font-family: var(--wp--preset--font-family--source-sans-3);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

/* „(Pflicht)“ hinter Pflichtfeldern, wie „(optional)“ hinter den übrigen. */
.is-style-kk-karte .codepun-form__field--required > .codepun-form__label::after,
.is-style-kk-karte .codepun-form__field--required .codepun-form__choice-label::after {
	content: " (Pflicht)";
	font-weight: 400;
	color: var(--wp--preset--color--text-secondary);
}

.is-style-kk-karte .codepun-form__optional {
	font-weight: 400;
	color: var(--wp--preset--color--text-secondary);
}

.is-style-kk-karte .codepun-form .codepun-form__control {
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--wp--custom--field-border--rest);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	font-size: 17px;
	color: var(--wp--preset--color--text);
	box-shadow: none;
}

.is-style-kk-karte .codepun-form .codepun-form__control--textarea {
	min-height: 152px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

.is-style-kk-karte .codepun-form .codepun-form__control:hover {
	border-color: var(--wp--custom--field-border--hover);
}

.is-style-kk-karte .codepun-form .codepun-form__control:focus-visible,
.is-style-kk-karte .codepun-form .codepun-form__control:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary-800);
	box-shadow: var(--kk-focus);
}

.is-style-kk-karte .codepun-form [aria-invalid="true"].codepun-form__control,
.is-style-kk-karte .codepun-form__field--invalid .codepun-form__control {
	border: 2px solid var(--wp--preset--color--error);
}

/* Das Kontrollkästchen bleibt ein echtes input type="checkbox"; nur gezeichnet wie im Blatt. */
.is-style-kk-karte .codepun-form__field--consent .codepun-form__choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	font-size: 16px;
	line-height: 1.5;
}

.is-style-kk-karte .codepun-form input[type="checkbox"] {
	flex: none;
	appearance: none;
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	margin: 1px 0 0;
	border: 1px solid var(--wp--custom--field-border--rest);
	border-radius: 4px;
	background: var(--wp--preset--color--white) center / 18px 18px no-repeat;
	cursor: pointer;
}

.is-style-kk-karte .codepun-form input[type="checkbox"]:hover {
	border-color: var(--wp--custom--field-border--hover);
}

.is-style-kk-karte .codepun-form input[type="checkbox"]:checked {
	border-color: var(--wp--preset--color--primary-800);
	background-color: var(--wp--preset--color--primary-800);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.is-style-kk-karte .codepun-form input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: var(--kk-focus);
}

.is-style-kk-karte .codepun-form input[type="checkbox"][aria-invalid="true"] {
	border: 2px solid var(--wp--preset--color--error);
}

@media (forced-colors: active) {
	.is-style-kk-karte .codepun-form input[type="checkbox"] {
		appearance: auto;
		-webkit-appearance: auto;
	}
}

.is-style-kk-karte .codepun-form__choice-label a {
	color: var(--wp--preset--color--primary-800);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Fehler: Übersicht oben, Symbol, Wort „Fehler“, 2-px-Rahmen; nie allein über Farbe. */
.is-style-kk-karte .codepun-form__error {
	display: flex;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wp--preset--color--error);
}

.is-style-kk-karte .codepun-form .codepun-form__error {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 400;
}

.is-style-kk-karte .codepun-form .codepun-form__error::before {
	content: "Fehler:";
	flex: none;
	width: auto;
	height: auto;
	-webkit-mask: none;
	mask: none;
	font-size: inherit;
	line-height: inherit;
	font-weight: 600;
	padding-left: 23px;
	background: no-repeat left 1px / 17px 17px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z M12 7.5v5.5 M12 16.5v.01'/%3E%3C/svg%3E");
}

.is-style-kk-karte .codepun-form .codepun-form__summary::before,
.is-style-kk-karte .codepun-form .codepun-form__notice--error::before {
	content: none;
}

.is-style-kk-karte .codepun-form__notice--error,
.is-style-kk-karte .codepun-form__summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 14px 48px;
	border: 2px solid var(--wp--preset--color--error);
	border-radius: 6px;
	background: var(--wp--preset--color--white) no-repeat 16px 15px / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z M12 7.5v5.5 M12 16.5v.01'/%3E%3C/svg%3E");
	color: var(--wp--preset--color--text);
}

.is-style-kk-karte .codepun-form__notice--error .codepun-form__notice-text,
.is-style-kk-karte .codepun-form__summary-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.is-style-kk-karte .codepun-form__summary-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-kk-karte .codepun-form__summary-list a {
	color: var(--wp--preset--color--error);
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.is-style-kk-karte .codepun-form .codepun-form__submit {
	align-self: flex-start;
	justify-self: start;
	width: auto;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--primary-800);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
	font-size: 17px;
}

.is-style-kk-karte .codepun-form .codepun-form__submit:hover {
	background: var(--wp--preset--color--primary-900);
}

@media (max-width: 767px) {
	.is-style-kk-karte .codepun-form .codepun-form__submit {
		align-self: stretch;
		justify-self: stretch;
		width: 100%;
	}
}

/* Gesendet: Häkchen im Kreis, Dank, Text, Weg zur nächsten Anfrage. */
.is-style-kk-karte:has(.codepun-form__notice--success) > .is-style-kk-pflicht {
	display: none;
}

.is-style-kk-karte .codepun-form__notice--success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--text);
}

.is-style-kk-karte .codepun-form__notice--success::before {
	content: "";
	width: 56px;
	height: 56px;
	border-radius: 99px;
	background: var(--wp--preset--color--positive-50) center / 28px 28px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23276146' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.is-style-kk-karte .codepun-form__notice-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
}

.is-style-kk-karte .codepun-form__notice-text {
	max-width: 520px;
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
}

.kk-weitere-anfrage {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--primary-800);
	font-weight: 600;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── 7 · Cookie-Fenster (Codepun Consent) ─────────────────────── */

[data-codepun-consent-banner] a {
	color: var(--wp--preset--color--primary-800);
}

/* ── 8 · Kontaktseite ─────────────────────────────────────────── */

.wp-block-group.is-style-kk-band:has(> .is-style-kk-kontakt-split) {
	padding-top: clamp(40px, 5.56vw, 80px);
}

.wp-block-group.is-style-kk-kontakt-split {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.is-style-kk-kontakt-split > .is-style-kk-stapel {
	align-items: stretch;
}

/* Mobil steht die Kontaktspalte vor dem Formular (Blatt, Hinweis 2). */
@media (max-width: 767px) {
	.wp-block-group.is-style-kk-kontakt-split {
		grid-template-columns: 1fr;
	}

	.is-style-kk-kontakt-split > .is-style-kk-stapel:first-child {
		order: 2;
	}
}

.kk-person--kontaktseite .kk-person__rolle {
	margin-bottom: 6px;
}

.kk-person--kontaktseite .kk-person__telefon,
.kk-person--kontaktseite .kk-person__mail {
	gap: 10px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.kk-person--kontaktseite .kk-person__telefon .kk-icon {
	color: var(--wp--preset--color--primary-800);
}

.kk-person--kontaktseite .kk-person__mail {
	font-weight: 400;
}

.kk-person--kontaktseite .kk-person__mail .kk-icon {
	color: var(--wp--preset--color--accent-700);
}

.kk-person--kontaktseite a:hover {
	color: var(--wp--preset--color--primary-800);
	text-decoration: underline;
}

.kk-zeiten--zeilen strong {
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 600;
}

.kk-anschrift--kontaktseite {
	gap: 0;
	padding: 0 22px;
	line-height: 1.55;
}

.kk-anschrift--kontaktseite .kk-anschrift__zeile {
	gap: 12px;
}

.kk-anschrift--kontaktseite .kk-anschrift__route {
	padding-left: 36px;
}

.is-style-kk-kontakt-split .wp-block-buttons,
.is-style-kk-kontakt-split .wp-block-button {
	width: 100%;
}

.is-style-kk-kontakt-split .wp-block-button__link {
	width: 100%;
}

/* ── 9 · Rechtstexte (Bausteine des Basis-Themes) ─────────────── */


.cp-legal h3 {
	font-size: 20px;
	line-height: 1.25;
}

/* Terminbuchung im Fenster (inc/termin.php): Timify zeichnet Fenster und Abdunkelung selbst. */
.kk-termin {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.kk-termin::backdrop {
	background: transparent;
}

.kk-termin__rahmen {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.kk-termin__zu {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font: inherit;
	cursor: pointer;
	transform: translateY(-200%);
}

.kk-termin__zu:focus-visible {
	transform: none;
}

.kk-termin-offen {
	overflow: hidden;
}
