/*
 * CM-ERS Theme – Komponenten (Frontend + Editor).
 * Farben, Schrift, Größen, Buttons und 1152/1200-px-Layout kommen aus theme.json.
 * Abgeleitet aus entwurf-v2/assets/*.css. Keine important-Regeln, keine Seiten-IDs, keine externen Ressourcen.
 * Alte Klassen aus der Astra-Testseite (section, dark, soft, card, panel …) werden mit unterstützt.
 */

:root {
	--cm-anthrazit: var(--wp--preset--color--anthrazit);
	--cm-anthrazit-2: var(--wp--preset--color--anthrazit-2);
	--cm-rot: var(--wp--preset--color--rot);
	--cm-weiss: var(--wp--preset--color--weiss);
	--cm-text: var(--wp--preset--color--schrift);
	--cm-text-soft: var(--wp--preset--color--text-soft);
	--cm-on-dark: var(--wp--preset--color--text-on-dark);
	--cm-linie: var(--wp--preset--color--linie);
	--cm-hellgrau: var(--wp--preset--color--hellgrau);
	--cm-radius: var(--wp--custom--radius);
}

/* Seitenrand mobil 16 px (Desktop 24 px aus theme.json) */
@media (max-width: 600px) {
	html:root,
	html:root body { --wp--custom--gutter: 16px; }
}

/* ------------------------------------------------------------------ Grundlagen */

body { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 600px) { h1, h2 { hyphens: auto; } }
[id] { scroll-margin-top: 16px; }

/* keine Lücken zwischen Kopfzeile, Abschnitten und Fußzeile */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > .alignfull,
main > .alignfull { margin-block: 0; }

/* Abstände im Textfluss (WordPress-Standard: 16 px) */
:root :where(.is-layout-flow, .is-layout-constrained) > :is(.is-style-kicker, .is-style-eyebrow, .kicker, .eyebrow) + * { margin-block-start: 12px; }
:root :where(.is-layout-flow, .is-layout-constrained) > :is(h1, h2) + * { margin-block-start: 14px; }
:root :where(.is-layout-flow, .is-layout-constrained) > h3 + * { margin-block-start: 10px; }
:root :where(.is-layout-flow, .is-layout-constrained) > p + .wp-block-buttons { margin-block-start: 28px; }
:root :where(.is-layout-flow, .is-layout-constrained) > :is(.cm-cards, .cards) { margin-block-start: 36px; }
:root :where(.is-layout-flow, .is-layout-constrained) > :is(.cm-cards, .cards) + .is-style-note { margin-block-start: 20px; }

/* ------------------------------------------------------------------ Abschnitte (Block-Stile der Gruppe) */

:is(.is-style-section, .is-style-section-soft, .is-style-section-dark, .section) { padding-block: 72px; }
:is(.is-style-section-soft, .soft) { background: var(--cm-hellgrau); }
:is(.is-style-section-dark, .is-style-hero, .is-style-hero-kompakt, .dark) { background: var(--cm-anthrazit); color: var(--cm-weiss); }
:is(.is-style-section-dark, .is-style-hero, .is-style-hero-kompakt, .dark, .is-style-card-dark) p { color: var(--cm-on-dark); }
.is-style-hero, .section.hero { padding-block: 64px 80px; }
.is-style-hero-kompakt { padding-block: 56px 80px; }
.is-style-hero-kompakt.cm-legal-hero { padding-block: 48px 52px; }
.cm-legal-hero h1 { margin-block-end: 0; }
@media (max-width: 600px) {
	:is(.is-style-section, .is-style-section-soft, .is-style-section-dark, .section) { padding-block: 52px; }
	.is-style-hero, .section.hero { padding-block: 44px 56px; }
}

/* CTA-Streifen */
.is-style-cta-strip { background: var(--cm-anthrazit-2); color: var(--cm-weiss); padding-block: 48px; }
.is-style-cta-strip h2 { margin: 0; }
:root .is-style-cta-strip .cm-cta-row { gap: 24px; align-items: center; }

/* ------------------------------------------------------------------ Absatz-Stile */

:is(.is-style-kicker, .is-style-eyebrow, .kicker, .eyebrow) { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
:is(.is-style-kicker, .kicker) { color: var(--cm-rot); }
:is(.is-style-eyebrow, .eyebrow) { color: var(--cm-on-dark); }

:is(.is-style-lead, .section-lead) { font-size: 18px; max-width: 46em; color: var(--cm-text-soft); }
:is(.is-style-hero, .is-style-hero-kompakt, .hero) :is(.is-style-lead, .lead) { font-size: 18px; max-width: 44em; }

:is(.is-style-stepnum, .stepnum) { display: block; font-size: 13px; font-weight: 600; color: var(--cm-rot); letter-spacing: .05em; }
:is(.is-style-note, .note) { font-size: 14px; color: var(--cm-text-soft); }

/* ------------------------------------------------------------------ Buttons (Grundform in theme.json) */

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible { outline: 3px solid var(--cm-anthrazit); outline-offset: 3px; }
:is(.is-style-section-dark, .is-style-hero, .is-style-hero-kompakt, .is-style-cta-strip, .dark, .cta-strip) :is(.wp-element-button, .wp-block-button__link):focus-visible { outline-color: var(--cm-weiss); }

/* Kontur (Block-Stil „Kontur“): auf dunklem Grund weiß, auf hellem Grund anthrazit */
.wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--cm-anthrazit);
	border: 2px solid var(--cm-anthrazit);
	padding: 13px 22px;
}
.wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cm-hellgrau); }
:is(.is-style-section-dark, .is-style-hero, .is-style-hero-kompakt, .is-style-cta-strip, .dark, .cta-strip) .wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--cm-weiss);
	border-color: rgba(255, 255, 255, .6);
}
:is(.is-style-section-dark, .is-style-hero, .is-style-hero-kompakt, .is-style-cta-strip, .dark, .cta-strip) .wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .08);
	border-color: var(--cm-weiss);
}

@media (max-width: 600px) {
	:is(.is-style-hero, .hero) .wp-block-buttons > .wp-block-button { width: 100%; }
	:is(.is-style-hero, .hero) .wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; text-align: center; }
}

/* ------------------------------------------------------------------ Spalten: Karten-Raster und zweispaltig */

.wp-block-columns:is(.cm-cards, .cards) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-block-end: 0;
}
.wp-block-columns:is(.cm-cards-4, .cards-4) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wp-block-columns:is(.cm-split, .split) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: start;
	margin-block-end: 0;
}
.wp-block-columns.cm-split-60 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1100px) {
	.wp-block-columns:is(.cm-cards-4, .cards-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.wp-block-columns:is(.cm-cards, .cards):not(.cm-cards-4, .cards-4) { grid-template-columns: minmax(0, 1fr); }
	.wp-block-columns:is(.cm-split, .split) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.wp-block-columns.cm-split-60 { gap: 40px; }
}
@media (max-width: 600px) {
	.wp-block-columns:is(.cm-cards-4, .cards-4) { grid-template-columns: minmax(0, 1fr); }
}

/* Spalte mit mehreren Kästen untereinander */
:root .cm-stack > * + * { margin-block-start: 24px; }

/* ------------------------------------------------------------------ Karte und Kasten */

:is(.is-style-card, .is-style-card-accent, .is-style-card-dark, .card) {
	background: var(--cm-weiss);
	border: 1px solid var(--cm-linie);
	border-top: 3px solid var(--cm-rot);
	border-radius: var(--cm-radius);
	padding: 24px;
}
:root :is(.is-style-card, .is-style-card-accent, .is-style-card-dark, .card) > * + * { margin-block-start: 8px; }
:where(.is-style-card, .is-style-card-accent, .card) p { color: var(--cm-text-soft); }
.is-style-card-accent { border-top-width: 5px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.is-style-card-dark { background: var(--cm-anthrazit); color: var(--cm-weiss); border-color: var(--cm-anthrazit); border-top: 5px solid var(--cm-rot); }
.is-style-card-dark .is-style-stepnum { color: var(--cm-weiss); }

:is(.is-style-panel, .panel) {
	background: var(--cm-hellgrau);
	border: 1px solid var(--cm-linie);
	border-left: 3px solid var(--cm-rot);
	border-radius: var(--cm-radius);
	padding: 24px;
}
:is(.is-style-section-soft, .soft) :is(.is-style-panel, .panel) { background: var(--cm-weiss); }
:root :is(.is-style-panel, .panel) > * + * { margin-block-start: 12px; }
:root :is(.is-style-panel, .panel) > * + h3 { margin-block-start: 24px; }
:is(.is-style-panel, .panel) strong { color: var(--cm-text); }

/* Verlinkte Karten (Leistungen-Übersicht): ganze Karte klickbar */
.cm-cards-link > .wp-block-column { position: relative; transition: box-shadow .15s; }
.cm-cards-link > .wp-block-column:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.cm-cards-link h3 a { color: inherit; text-decoration: none; }
.cm-cards-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cm-cards-link h3 a:focus-visible { outline: none; }
.cm-cards-link > .wp-block-column:has(a:focus-visible) { outline: 3px solid var(--cm-anthrazit); outline-offset: 3px; }

/* Brücke Betrieb → CM-ERS → Integrator */
@media (min-width: 961px) {
	.cm-bridge > .wp-block-column { position: relative; }
	.cm-bridge > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		right: -19px;
		top: 50%;
		width: 14px;
		height: 14px;
		border-top: 3px solid var(--cm-rot);
		border-right: 3px solid var(--cm-rot);
		transform: translateY(-50%) rotate(45deg);
		z-index: 1;
	}
}

/* Stufen mit Preiszeile (Quickstarter) */
.cm-stages > .wp-block-column { display: flex; flex-direction: column; }
:root .cm-stages .cm-price { margin-block-start: auto; padding-top: 16px; border-top: 1px solid var(--cm-linie); }
.cm-stages .wp-block-column > p:not(.is-style-stepnum) { margin-block-end: 16px; }
:root .cm-price > * { margin-block: 0; }
:root .cm-price > p:first-child { font-size: 20px; color: var(--cm-text); }
:root .cm-price > p + p { margin-block-start: 2px; font-size: 14px; color: var(--cm-text-soft); }

/* Rechenkasten Anrechnung */
.wp-block-table.cm-calc { margin: 16px 0; }
.wp-block-table.cm-calc table { table-layout: auto; border-collapse: collapse; width: 100%; }
.wp-block-table.cm-calc td { border: 0; padding: 3px 0; font-variant-numeric: tabular-nums; }
.wp-block-table.cm-calc td:last-child { text-align: right; padding-left: 16px; white-space: nowrap; }
.wp-block-table.cm-calc tr:last-child td { font-weight: 700; border-top: 1px solid var(--cm-linie); padding-top: 8px; }

/* ------------------------------------------------------------------ Listen-Stile */

:is(ul, ol):is(.is-style-checklist, .checklist) { list-style: none; margin-inline: 0; margin-block-end: 0; padding: 0; }
:is(.is-style-checklist, .checklist) > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
:is(.is-style-checklist, .checklist) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 8px;
	height: 8px;
	background: var(--cm-rot);
}

:is(ul, ol):is(.is-style-tags, .is-style-tags-klein, .tags) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
:root :where(.is-layout-flow, .is-layout-constrained) > :is(.is-style-tags, .tags) { margin-block-start: 28px; }
:is(.is-style-tags, .tags) > li { border: 1px solid var(--cm-linie); border-radius: var(--cm-radius); padding: 8px 14px; font-size: 15px; background: var(--cm-hellgrau); }
.is-style-tags-klein { gap: 8px; }
.is-style-tags-klein > li { border: 1px solid var(--cm-linie); border-radius: var(--cm-radius); padding: 5px 12px; font-size: 14px; background: var(--cm-weiss); }

ol:is(.is-style-steps, .steps) { list-style: none; counter-reset: cm-schritt; padding: 0; }
:root :where(.is-layout-flow, .is-layout-constrained) > ol.is-style-steps { margin-block-start: 24px; }
:is(.is-style-steps, .steps) > li { counter-increment: cm-schritt; position: relative; padding: 0 0 18px 52px; color: var(--cm-text-soft); }
:is(.is-style-steps, .steps) > li::before {
	content: counter(cm-schritt);
	position: absolute;
	left: 0;
	top: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cm-anthrazit);
	color: var(--cm-weiss);
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
:is(.is-style-steps, .steps) > li > strong { display: block; font-size: 17px; color: var(--cm-text); }

ol.cm-next-steps { margin: 0; padding-left: 20px; }
.cm-next-steps > li { margin-bottom: 8px; }
.cm-next-steps > li::marker { color: var(--cm-rot); font-weight: 700; }

/* ------------------------------------------------------------------ Zeitleiste (Werdegang) */

:root .cm-timeline { max-width: 860px; margin-block-start: 36px; }
:root .cm-timeline > .cm-tl-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	column-gap: 48px;
	position: relative;
	padding-bottom: 28px;
	margin-block: 0;
}
.cm-tl-item::before { content: ""; position: absolute; left: 150px; top: 6px; bottom: -6px; width: 2px; background: var(--cm-linie); }
.cm-tl-item:last-child::before { display: none; }
.cm-tl-item::after {
	content: "";
	position: absolute;
	left: 145px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--cm-weiss);
	border: 2px solid var(--cm-rot);
	box-sizing: border-box;
}
.cm-tl-item.is-now::after { background: var(--cm-rot); }
:root .cm-tl-item > * { margin-block: 0; grid-column: 2; }
:root .cm-tl-item > h3 { margin-block-end: 4px; }
:root .cm-tl-item > .cm-tl-year { grid-column: 1; grid-row: 1 / span 2; font-weight: 700; color: var(--cm-text); font-variant-numeric: tabular-nums; padding-top: 1px; }
.cm-tl-item > p:not(.cm-tl-year) { color: var(--cm-text-soft); }
@media (max-width: 600px) {
	:root .cm-timeline > .cm-tl-item { grid-template-columns: 1fr; row-gap: 2px; padding-left: 28px; }
	.cm-tl-item::before { left: 5px; }
	.cm-tl-item::after { left: 0; }
	:root .cm-tl-item > * { grid-column: 1; }
	:root .cm-tl-item > .cm-tl-year { grid-row: auto; font-size: 15px; color: var(--cm-rot); }
}

/* ------------------------------------------------------------------ Gründer: Porträt-Platzhalter (kein KI-Bild) */

.cm-portrait-frame {
	aspect-ratio: 4 / 5;
	max-width: 280px;
	background: repeating-linear-gradient(135deg, #E9EBEE 0 12px, #F4F5F6 12px 24px);
	border: 2px dashed #8A9099;
	border-radius: var(--cm-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
}
:root .cm-portrait-frame > * { margin: 0; color: var(--cm-text-soft); font-weight: 600; }
:root .cm-portrait-frame > .cm-portrait-small { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
:root .cm-portrait > .cm-portrait-caption { font-size: 14px; color: var(--cm-text-soft); margin-block-start: 8px; }
.cm-portrait .wp-block-image img { aspect-ratio: 4 / 5; max-width: 280px; object-fit: cover; border-radius: var(--cm-radius); }

/* ------------------------------------------------------------------ Kontakt */

.cm-contact-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-text-soft); }
:root .is-style-panel > .cm-contact-label + p { margin-block-start: 2px; }
:root .is-style-panel > p + .cm-contact-label { margin-block-start: 14px; }

.cm-form-placeholder { border: 2px dashed #8A9099; border-radius: var(--cm-radius); padding: 24px; background: var(--cm-hellgrau); }
:root .cm-form-placeholder > * + * { margin-block-start: 8px; }

/* Contact Form 7 – Felder wie im Entwurf */
.wpcf7-form { margin-top: 8px; }
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 15px; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--cm-text);
	background: var(--cm-weiss);
	border: 1px solid #8A9099;
	border-radius: var(--cm-radius);
	padding: 11px 12px;
}
.wpcf7-form textarea { resize: vertical; min-height: 140px; }
.wpcf7-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--cm-anthrazit); outline-offset: 1px; border-color: var(--cm-anthrazit); }
.wpcf7-form .wpcf7-not-valid { border-color: var(--cm-rot); box-shadow: 0 0 0 1px var(--cm-rot); }
.wpcf7-not-valid-tip { color: var(--cm-rot); font-size: 14px; margin-top: 4px; }
.wpcf7-form .cm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.wpcf7-form .cm-optional { font-weight: 400; color: var(--cm-text-soft); }
.wpcf7-form .cm-hint { font-size: 14px; color: var(--cm-text-soft); margin: -12px 0 18px; }
.cm-privacy { background: var(--cm-hellgrau); border-left: 3px solid var(--cm-anthrazit); border-radius: var(--cm-radius); padding: 14px 16px; margin: 4px 0 20px; font-size: 15px; }
.cm-privacy strong { display: block; margin-bottom: 4px; }
.cm-privacy a { color: var(--cm-text); font-weight: 600; }
.wpcf7-form .wpcf7-submit {
	background: var(--cm-rot);
	color: var(--cm-weiss);
	border: 2px solid var(--cm-rot);
	border-radius: var(--cm-radius);
	padding: 13px 22px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--wp--preset--color--rot-hover); border-color: var(--wp--preset--color--rot-hover); }
.wpcf7-form .wpcf7-submit:focus-visible { outline: 3px solid var(--cm-anthrazit); outline-offset: 3px; }
@media (max-width: 600px) {
	.wpcf7-form .cm-field-row { grid-template-columns: 1fr; }
	.wpcf7-form .wpcf7-submit { width: 100%; }
}

/* ------------------------------------------------------------------ Rechtstexte */

.cm-legal :is(h2) { font-size: 21px; }
:root .cm-legal :where(.is-layout-flow) > h2 { margin-block-start: 36px; }
.cm-legal a { color: var(--cm-text); font-weight: 600; }
:root .cm-legal :where(.is-layout-flow) > .cm-legal-meta { margin-block-start: 40px; }
.cm-legal-toc { background: var(--cm-hellgrau); border-left: 3px solid var(--cm-anthrazit); border-radius: var(--cm-radius); padding: 16px 20px; }
:root .cm-legal-toc > * { margin-block: 0; }
.cm-legal-toc ol { margin-top: 8px; padding-left: 22px; }
.cm-legal-toc li { margin-bottom: 4px; }
/* Entwurfsmarkierungen – vor Veröffentlichung entfernen */
.cm-draft-banner { background: #FFF4D6; border: 1px solid #E0B400; border-radius: var(--cm-radius); padding: 12px 16px; font-size: 15px; }
mark.cm-todo { background: #FFE58A; color: #1E2024; padding: 0 3px; border-radius: 2px; }

/* ------------------------------------------------------------------ Kopfzeile */

.cm-header { background: var(--cm-anthrazit); color: var(--cm-weiss); position: relative; z-index: 10; }
:root .cm-header-row { min-height: 84px; gap: 24px; }
:root .cm-header .cm-logo { margin: 0; flex-shrink: 0; }
.cm-header .cm-logo img { width: 300px; height: auto; display: block; }
.cm-header .cm-logo a:focus-visible { outline: 3px solid var(--cm-weiss); outline-offset: 3px; }

:root .cm-header .wp-block-navigation { font-size: 16px; font-weight: 500; gap: 28px; }
.cm-header .wp-block-navigation .wp-block-navigation__container { gap: 28px; }
.cm-header .wp-block-navigation-item__content {
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	text-decoration: none;
	white-space: nowrap;
}
.cm-header .wp-block-navigation-item__content:hover,
.cm-header .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--cm-rot); text-decoration: none; }
.cm-header .wp-block-navigation a:focus-visible { outline: 3px solid var(--cm-weiss); outline-offset: 3px; }

/* Menüschalter „Menü“ (Text statt Symbol) */
.cm-header .wp-block-navigation button.wp-block-navigation__responsive-container-open,
.cm-header .wp-block-navigation button.wp-block-navigation__responsive-container-close {
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--cm-radius);
	padding: 6px 14px;
	font-size: 15px;
	font-weight: 400;
	color: var(--cm-weiss);
}
.cm-header .wp-block-navigation__toggle_button_label { font-size: 15px; font-weight: 400; }
.cm-header .wp-block-navigation button:focus-visible { outline: 3px solid var(--cm-weiss); outline-offset: 3px; }

/* Ab 961 px: Menü immer sichtbar, Schalter ausgeblendet (Entwurf klappt bei 960 px um, WordPress bei 600 px) */
@media (min-width: 961px) {
	.cm-header .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		display: block;
		width: 100%;
		position: relative;
		z-index: auto;
		background-color: inherit;
	}
	.cm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close,
	.cm-header .wp-block-navigation button.wp-block-navigation__responsive-container-open { display: none; }
}

/* Geöffnetes Mobilmenü */
.cm-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { align-items: stretch; text-align: left; }
.cm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.cm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.cm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 12px 0;
	font-size: 17px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cm-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--cm-rot); }

@media (max-width: 960px) {
	:root .cm-header-row { min-height: 72px; }
	.cm-header .cm-logo img { width: 220px; }
}
@media (max-width: 600px) {
	.cm-header .cm-logo img { width: 180px; }
}

/* ------------------------------------------------------------------ Fußzeile */

.cm-footer { background: var(--cm-anthrazit); color: var(--cm-on-dark); font-size: 15px; padding-block: 48px 24px; }
.cm-footer p { color: var(--cm-on-dark); }
.cm-footer strong { color: var(--cm-weiss); }
.cm-footer a { color: var(--cm-weiss); }
.cm-footer a:focus-visible { outline: 3px solid var(--cm-weiss); outline-offset: 3px; }
:root .cm-footer-top { gap: 40px; }
:root .cm-footer .cm-footer-logo { margin: 0; }
.cm-footer .cm-footer-logo img { width: 240px; height: auto; }
:root .cm-footer .wp-block-navigation { gap: 20px; font-size: 15px; }
.cm-footer .wp-block-navigation .wp-block-navigation__container { gap: 20px; }
.cm-footer .wp-block-navigation-item__content { display: inline-block; padding: 4px 0; min-height: 24px; text-decoration: underline; }
:root .cm-footer .cm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	margin-block-start: 32px;
	padding-top: 16px;
	font-size: 13px;
}
:root .cm-footer .cm-footer-title + * { margin-block-start: 0; }
