/*
Theme Name: HNT Harder
Description: Block-Theme für HNT Harder Nachrichtentechnik. Alles Sichtbare kommt aus Blöcken, Mustern, Menüs und den Firmendaten im Backend; dieses Stylesheet setzt nur die Blockstile aus dem Gestaltungsentwurf um.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hnt-harder
*/

/* ==========================================================================
   1. Grundwerte
   Farben und Schriften kommen aus theme.json; hier nur Kurzformen und die
   Werte, die sich an den Umbruchpunkten ändern (Entwurf: 782, 1024, 1320 px).
   ========================================================================== */

:root {
	--hnt-rot: var(--wp--preset--color--rot);
	--hnt-rot-tief: var(--wp--preset--color--rot-tief);
	--hnt-rot-dunkel: var(--wp--custom--farbe--rot-dunkel);
	--hnt-rot-hell: var(--wp--custom--farbe--rot-hell);
	--hnt-rot-rand: var(--wp--custom--farbe--rot-rand);
	--hnt-tinte: var(--wp--preset--color--tinte);
	--hnt-tinte-tief: var(--wp--custom--farbe--tinte-tief);
	--hnt-schiefer: var(--wp--preset--color--schiefer);
	--hnt-grau: var(--wp--preset--color--grau);
	--hnt-feldrand: var(--wp--custom--farbe--feldrand);
	--hnt-linie: var(--wp--custom--farbe--linie);
	--hnt-flaeche: var(--wp--preset--color--flaeche);
	--hnt-auf-dunkel: var(--wp--custom--farbe--auf-dunkel);
	--hnt-titel: var(--wp--preset--font-family--poppins);
	--hnt-text: var(--wp--preset--font-family--inter);
	--hnt-breit: 1280px;
	--hnt-abschnitt: 96px;
	--hnt-abschnitt-eng: 64px;
	--hnt-kopfgruppe: 48px;

	/* Symbole aus dem Entwurf (24er Raster, Strich 2, runde Enden). */
	--hnt-i-telefon: 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 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--hnt-i-mail: 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%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
	--hnt-i-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E");
	--hnt-i-fernwartung: 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%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8.5 20h7M12 16v4M9 10h6m-2.5-2.5L15 10l-2.5 2.5'/%3E%3C/svg%3E");
	--hnt-i-ort: 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='M12 21s-6.5-5.6-6.5-10.5a6.5 6.5 0 0 1 13 0C18.5 15.4 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10.5' r='2.4'/%3E%3C/svg%3E");
	--hnt-i-download: 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='M12 4v11m-4.5-4.5L12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E");
	--hnt-i-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5.5-5.5L19 12l-5.5 5.5'/%3E%3C/svg%3E");
	--hnt-i-pfeil-unten: 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='M12 5v14m-5.5-5.5L12 19l5.5-5.5'/%3E%3C/svg%3E");
	--hnt-i-winkel: 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='m9 6 6 6-6 6'/%3E%3C/svg%3E");
	--hnt-i-extern: 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='M14 5h5v5M19 5l-8 8M17 14v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h4'/%3E%3C/svg%3E");
	--hnt-i-menue: 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='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
	--hnt-i-schliessen: 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='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
	--hnt-i-hinweis: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
	--hnt-i-fehler: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
	--hnt-i-achtung: 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='M12 4 2.8 19.5h18.4L12 4z'/%3E%3Cpath d='M12 10v4.5M12 17v.01'/%3E%3C/svg%3E");
	--hnt-i-uhr: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
	--hnt-i-firma: 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='M4 20V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v15M15 9h4a1 1 0 0 1 1 1v10M3 20h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E");
	--hnt-i-senden: 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='M21 3 3 10.5l7 3 3 7.5L21 3zM10 13.5l4.5-4.5'/%3E%3C/svg%3E");
	--hnt-i-haken: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

html:root { --wp--custom--rand: 40px; }

@media (max-width: 1023px) {
	html:root { --wp--custom--rand: 32px; }
}

@media (max-width: 781px) {
	html:root { --wp--custom--rand: 20px; }
	:root {
		--hnt-abschnitt: 56px;
		--hnt-abschnitt-eng: 44px;
		--hnt-kopfgruppe: 32px;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Kopf, Inhalt und Fuß schließen ohne Lücke aneinander; die Abschnitte bringen ihren Rhythmus selbst mit. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-block-post-content > .alignfull,
.hnt-inhalt > .alignfull { margin-block: 0; }

:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
:where(.wp-block-heading) { margin-block-end: 0; }

/* Links im Text immer unterstrichen. */
a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease, text-decoration-thickness .15s ease; }
a:hover { text-decoration-thickness: 2px; }

/* Links auf grauer Fläche: Rot tief (6,42 : 1). */
.is-style-abschnitt-flaeche :where(a:not(.wp-element-button)),
.is-style-kontaktdaten :where(a:not(.wp-element-button)) { color: var(--hnt-rot-tief); }
.is-style-abschnitt-flaeche :where(a:not(.wp-element-button)):hover,
.is-style-kontaktdaten :where(a:not(.wp-element-button)):hover { color: var(--hnt-rot-dunkel); }

/* Links auf Dunkel und auf Fotos: Weiß mit rotem Unterstrich. */
.is-style-seitenkopf :where(a:not(.wp-element-button)),
.is-style-seitenkopf-schmal :where(a:not(.wp-element-button)),
.is-style-abschnitt-dunkel :where(a:not(.wp-element-button)) {
	color: #fff;
	text-decoration-color: var(--hnt-rot);
	text-decoration-thickness: 2px;
}
.is-style-seitenkopf :where(a:not(.wp-element-button)):hover,
.is-style-seitenkopf-schmal :where(a:not(.wp-element-button)):hover,
.is-style-abschnitt-dunkel :where(a:not(.wp-element-button)):hover { color: #fff; text-decoration-color: #fff; }

/* Fokus nur bei Tastaturbedienung, immer sichtbar. */
:focus-visible { outline: 3px solid var(--hnt-tinte); outline-offset: 3px; }
.has-tinte-background-color :focus-visible,
.is-style-abschnitt-dunkel :focus-visible,
.is-style-seitenkopf :focus-visible,
.is-style-seitenkopf-schmal :focus-visible,
.is-style-startbild :focus-visible { outline-color: #fff; }

/* Sprunglink von WordPress in der Gestaltung des Entwurfs. */
.skip-link.screen-reader-text:focus { font: 500 15px/1.2 var(--hnt-titel); color: var(--hnt-tinte); border-radius: 2px; }

/* Symbol vor einem Element: --hnt-sym bestimmt das Motiv, currentColor die Farbe. */
.hnt-sym::before,
.wp-block-button__link[href^="tel:"]::before,
.wp-block-button__link[href^="mailto:"]::before,
.wp-block-button__link[href$="/kontakt/"]::before,
.wp-block-button__link[href*="/fernwartung-hnt"]::before,
.wp-block-button__link[href*="/beratungstermin"]::before,
.is-style-download .wp-block-button__link::before,
.is-style-sprungmarke .wp-block-button__link::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.wp-block-button__link[href^="tel:"] { --hnt-sym: var(--hnt-i-telefon); }
.wp-block-button__link[href^="mailto:"],
.wp-block-button__link[href$="/kontakt/"] { --hnt-sym: var(--hnt-i-mail); }
.wp-block-button__link[href*="/fernwartung-hnt"] { --hnt-sym: var(--hnt-i-fernwartung); }
.wp-block-button__link[href*="/beratungstermin"] { --hnt-sym: var(--hnt-i-termin); }
.is-style-download .wp-block-button__link { --hnt-sym: var(--hnt-i-download); }
.is-style-sprungmarke .wp-block-button__link { --hnt-sym: var(--hnt-i-pfeil-unten); }

/* ==========================================================================
   2. Knöpfe (Grundform kommt aus theme.json: Primär rot)
   ========================================================================== */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wp-block-buttons { gap: 12px 16px; }

.wp-block-button.is-style-sekundaer .wp-block-button__link {
	background-color: transparent;
	border-color: var(--hnt-tinte);
	color: var(--hnt-tinte);
}
.wp-block-button.is-style-sekundaer .wp-block-button__link:hover {
	background-color: var(--hnt-tinte);
	border-color: var(--hnt-tinte);
	color: #fff;
}

.wp-block-button.is-style-hell .wp-block-button__link {
	background-color: transparent;
	border-color: #fff;
	color: #fff;
}
.wp-block-button.is-style-hell .wp-block-button__link:hover {
	background-color: #fff;
	color: var(--hnt-tinte);
}

.wp-block-button.is-style-download .wp-block-button__link {
	min-height: 60px;
	padding: 15px 28px;
	font-size: 17px;
}
.wp-block-button.is-style-download .wp-block-button__link::before { width: 24px; height: 24px; }

.wp-block-button.is-style-sprungmarke .wp-block-button__link {
	min-height: 44px;
	padding: 8px 16px;
	background-color: transparent;
	border-color: rgba(255, 255, 255, .85);
	color: #fff;
	font-size: 15px;
	gap: 8px;
}
.wp-block-button.is-style-sprungmarke .wp-block-button__link::after { width: 18px; height: 18px; }
.wp-block-button.is-style-sprungmarke .wp-block-button__link:hover {
	background-color: #fff;
	border-color: #fff;
	color: var(--hnt-tinte);
}

/* Pfeillink: Absatz, dessen Link mit rotem Strich und Pfeil steht. */
.is-style-pfeillink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 16px;
	color: var(--hnt-tinte);
	text-decoration-color: var(--hnt-rot);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.is-style-pfeillink a::after {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background-color: var(--hnt-rot-tief);
	-webkit-mask: var(--hnt-i-pfeil) center / contain no-repeat;
	mask: var(--hnt-i-pfeil) center / contain no-repeat;
	transition: transform .15s ease;
}
.is-style-pfeillink a:hover { color: var(--hnt-tinte); text-decoration-color: var(--hnt-tinte); }
.is-style-pfeillink a:hover::after { transform: translateX(4px); }

/* ==========================================================================
   3. Schrift
   ========================================================================== */

.wp-block-heading.is-style-versal { text-transform: uppercase; }
h2.wp-block-heading.is-style-versal { font-size: var(--wp--preset--font-size--abschnitt-versal); line-height: 1.2; letter-spacing: .05em; }
h3.wp-block-heading.is-style-versal { font-size: clamp(15px, calc(14.63px + .095vw), 16px); line-height: 1.35; letter-spacing: .07em; }

.wp-block-heading.is-style-starttitel {
	font-family: var(--hnt-text);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--starttitel);
	line-height: 1.16;
	letter-spacing: -.018em;
	text-transform: none;
	text-wrap: balance;
}
.wp-block-heading.is-style-starttitel strong { font-weight: 600; }

p.is-style-leitsatz { font-weight: 500; font-size: var(--wp--preset--font-size--leitsatz); line-height: 1.3; letter-spacing: -.005em; }
p.is-style-aussage { font-weight: 500; font-size: var(--wp--preset--font-size--aussage); line-height: 1.45; }
p.is-style-aussage::before {
	content: "";
	display: block;
	width: 44px;
	height: 5px;
	margin-bottom: 20px;
	background: var(--hnt-rot);
	transform: skewX(-24deg);
	transform-origin: left bottom;
}
p.is-style-betont { font-weight: 500; }
p.is-style-label {
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--hnt-grau);
}
.has-tinte-background-color p.is-style-label { color: var(--hnt-auf-dunkel); }
p.has-lead-font-size { line-height: 1.55; }
p.has-klein-font-size { line-height: 1.5; }
.has-standard-font-size { line-height: 1.65; }

/* Fließtext: höchstens 68 Zeichen je Zeile (niedrige Spezifität, Bausteine dürfen abweichen). */
.hnt-inhalt :where(p:not([class*="font-size"]):not([class*="is-style"])) { max-width: 68ch; }

/* Kastentitel (Kontaktdaten): Versalien in der kleinen Stufe. */
h2.wp-block-heading.hnt-kastentitel { font-size: clamp(15px, calc(14.63px + .095vw), 16px); line-height: 1.35; letter-spacing: .07em; }

/* Zwei Listen unter einem Fließtext (Akademie). */
.wp-block-columns.hnt-abstand-oben { margin-top: 72px !important; }
@media (max-width: 781px) {
	.wp-block-columns.hnt-abstand-oben { margin-top: 48px !important; }
}

/* Knopfreihe im Seitenkopf (Fernwartung). */
.is-style-seitenkopf .hnt-knopfreihe { margin-top: 36px; }

/* Rote Hervorhebung in Überschriften („Hardware“ und „Service“). */
.is-style-strong-rot strong { color: var(--hnt-rot); font-weight: 600; }

/* Akzent: roter Balken, Neigung wie die kursive Wortmarke. */
.wp-block-separator.is-style-akzent,
.wp-block-separator.is-style-akzent-klein {
	width: 44px;
	height: 5px;
	margin: 0 0 20px 0;
	border: 0;
	background: var(--hnt-rot) !important;
	color: var(--hnt-rot);
	opacity: 1;
	transform: skewX(-24deg);
	transform-origin: left bottom;
}
.wp-block-separator.is-style-akzent-klein { width: 32px; height: 4px; margin-bottom: 16px; }
.wp-block-separator.is-style-akzent + * { margin-block-start: 0 !important; }

/* Haarlinie als Trenner. */
.wp-block-separator.is-style-linie { border: 0; border-top: 1px solid var(--hnt-linie); opacity: 1; width: 100%; }

/* ==========================================================================
   4. Abschnitte und Raster
   ========================================================================== */

.is-style-abschnitt,
.is-style-abschnitt-flaeche,
.is-style-abschnitt-dunkel {
	padding-top: var(--hnt-abschnitt);
	padding-bottom: var(--hnt-abschnitt);
}
.is-style-abschnitt-flaeche { background-color: var(--hnt-flaeche); }
.is-style-abschnitt-dunkel { background-color: var(--hnt-tinte); color: #fff; }
.is-style-abschnitt + .is-style-abschnitt { border-top: 1px solid var(--hnt-linie); }

/* Inhaltsbreite innerhalb eines Abschnitts: 1280 px, Inhalt fließt linksbündig. */
.hnt-breit,
.is-style-abschnitt > .wp-block-group,
.is-style-abschnitt-flaeche > .wp-block-group,
.is-style-abschnitt-dunkel > .wp-block-group { width: 100%; }

/* Überschriftgruppe über dem Inhalt. */
.is-style-kopfgruppe { max-width: 860px; margin-bottom: var(--hnt-kopfgruppe) !important; }
.is-style-kopfgruppe > * + * { margin-block-start: 16px; }
.is-style-kopfgruppe > .wp-block-separator + * { margin-block-start: 0; }

/* Zwei Spalten: Überschrift links (4 : 8 oder 7 : 5), unter 1024 px untereinander. */
.wp-block-columns.is-style-zweier { gap: 32px 64px; margin-block: 0; }
@media (min-width: 1024px) {
	.wp-block-columns.is-style-zweier > .wp-block-column.hnt-text-spalte { padding-top: 25px; }
}
@media (max-width: 1023px) {
	.wp-block-columns.is-style-zweier,
	.wp-block-columns.is-style-recht,
	.wp-block-columns.is-style-leistung { flex-wrap: wrap !important; }
	.wp-block-columns.is-style-zweier > .wp-block-column,
	.wp-block-columns.is-style-recht > .wp-block-column,
	.wp-block-columns.is-style-leistung > .wp-block-column { flex-basis: 100% !important; }
	.wp-block-columns.hnt-reihenfolge-umkehren > .wp-block-column:last-child { order: -1; }
}

/* Spalten mit Oberkante (Hersteller, Zielgruppen). */
.wp-block-columns.is-style-spalten { gap: 48px 64px; }
.is-style-spalte { padding-top: 24px; border-top: 2px solid var(--hnt-tinte); }
.is-style-spalte > .wp-block-heading { margin-bottom: 28px; }
/* Drei Gruppen mit Titel und Haken-Liste (Consulting): Spalten 1 : 1 : 1, unter 1024 px untereinander.
   Die Oberkante kommt von der Gruppe „Spalte“, Titel und Liste von „Versalien“ und „Haken“. */
.wp-block-columns.is-style-gruppen { gap: 36px 48px; margin-block: 0; }
.wp-block-columns.is-style-gruppen .is-style-spalte > .wp-block-heading { margin-bottom: 20px; }
.wp-block-columns.is-style-gruppen ul.is-style-haken { font-size: 17px; line-height: 1.5; }
.wp-block-columns.is-style-gruppen ul.is-style-haken li + li { margin-top: 12px; }
.wp-block-columns.is-style-gruppen ul.is-style-haken li::before { top: .17em; }
@media (max-width: 1023px) {
	.wp-block-columns.is-style-gruppen { flex-wrap: wrap !important; }
	.wp-block-columns.is-style-gruppen > .wp-block-column { flex-basis: 100% !important; }
}
.is-style-gruppe + .is-style-gruppe { margin-top: 28px !important; }
.is-style-gruppe > p.is-style-label { margin-bottom: 12px; }
.is-style-gruppe > * + * { margin-block-start: 0; }

/* Vorteile: drei Spalten, auf dem Smartphone Piktogramm links. */
.is-style-vorteile { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.is-style-vorteile > * { margin: 0 !important; }
.is-style-vorteil { display: flex !important; flex-direction: column; align-items: flex-start; gap: 20px; }
.is-style-vorteil > * { margin: 0 !important; }
.is-style-vorteil > p:not(.is-style-pfeillink) { font-size: clamp(17px, calc(16.26px + .19vw), 19px); line-height: 1.55; max-width: 32ch; }

/* Leistungskacheln: 4 / 2 / 1 Spalten, ganze Kachel klickbar. */
.is-style-kacheln { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.is-style-kacheln > * { margin: 0 !important; }
.is-style-kachel {
	position: relative;
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	min-height: 228px;
	padding: 28px 28px 24px;
	background: #fff;
	border: 1px solid var(--hnt-linie);
	border-radius: 4px;
	color: var(--hnt-tinte);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.is-style-kachel > * { margin: 0 !important; }
.is-style-kachel::before {
	content: "";
	display: block;
	width: 32px;
	height: 4px;
	margin-bottom: 8px;
	background: var(--hnt-rot);
	transform: skewX(-24deg);
}
.is-style-kachel::after {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-top: auto;
	align-self: flex-end;
	border: 2px solid var(--hnt-tinte);
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212934' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5.5-5.5L19 12l-5.5 5.5'/%3E%3C/svg%3E") center / 20px no-repeat;
	transition: background-color .15s ease, border-color .15s ease;
}
.is-style-kachel .wp-block-heading {
	font-family: var(--hnt-titel);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.25;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.is-style-kachel .wp-block-heading a { color: var(--hnt-tinte); text-decoration: none; }
.is-style-kachel .wp-block-heading a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.is-style-kachel .wp-block-heading a:focus-visible { outline: none; }
.is-style-kachel:has(a:focus-visible) { outline: 3px solid var(--hnt-tinte); outline-offset: 3px; }
.is-style-kachel p { font-size: clamp(16px, calc(15.63px + .095vw), 17px); line-height: 1.5; color: var(--hnt-schiefer); }
.is-style-kachel:hover,
.is-style-kachel:has(a:focus-visible) {
	border-color: var(--hnt-tinte);
	box-shadow: 0 14px 28px -18px rgba(33, 41, 52, .55);
	transform: translateY(-2px);
}
.is-style-kachel:hover::after,
.is-style-kachel:has(a:focus-visible)::after {
	background-color: var(--hnt-rot);
	border-color: var(--hnt-rot);
	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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5.5-5.5L19 12l-5.5 5.5'/%3E%3C/svg%3E");
}

/* Karten in drei Spalten (Liste „Unser Potenzial“). */
ul.is-style-karten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.is-style-karten > li {
	margin: 0;
	padding: 32px 28px;
	background: #fff;
	border: 1px solid var(--hnt-linie);
	border-radius: 4px;
	font-size: clamp(16px, calc(15.63px + .095vw), 17px);
	line-height: 1.6;
}
ul.is-style-karten > li::before {
	content: "";
	display: block;
	width: 32px;
	height: 4px;
	margin-bottom: 20px;
	background: var(--hnt-rot);
	transform: skewX(-24deg);
}

/* Leistungsliste (IT-Leistungen): Titel links, Text rechts. */
.is-style-leistungsliste { border-top: 2px solid var(--hnt-tinte); }
.is-style-leistungsliste > * { margin-block: 0 !important; }
.wp-block-columns.is-style-leistung { gap: 12px 64px; padding-block: 32px; border-bottom: 1px solid var(--hnt-linie); margin: 0; }

/* Logofeld (Partner). */
/* Logo-Reihe: Kundenlogos gleich groß auf weißen Feldern. Jedes Feld ist ein Bild-Block; die Redaktion ergänzt
   oder entfernt Logos im Editor. Die Logos stehen in Originalgröße, nie vergrößert (sonst unscharf). */
.is-style-logoreihe { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.is-style-logoreihe > * { margin: 0 !important; }
.is-style-logoreihe > .wp-block-image {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	min-height: 112px;
	padding: 20px 16px;
	border-radius: 4px;
	background: #fff;
}
.is-style-logoreihe > .wp-block-image img { display: block; width: auto; height: auto; max-width: min(100%, 150px); max-height: 68px; }

.is-style-logofeld {
	display: grid !important;
	place-items: center;
	min-height: 260px;
	padding: 48px;
	background: #fff;
	border: 1px solid var(--hnt-linie);
	border-radius: 4px;
}
.is-style-logofeld img { width: 260px; height: auto; }

/* ==========================================================================
   5. Listen
   ========================================================================== */

ul.wp-block-list li::marker { color: var(--hnt-rot); }
.wp-block-list li + li { margin-top: 8px; }

ul.is-style-haken,
ul.is-style-haken-linien,
ul.is-style-haken-zweispaltig { list-style: none; padding-left: 0; }
ul.is-style-haken li,
ul.is-style-haken-linien li,
ul.is-style-haken-zweispaltig li { position: relative; padding-left: 36px; }
ul.is-style-haken li + li { margin-top: 14px; }
ul.is-style-haken li::before,
ul.is-style-haken-linien li::before,
ul.is-style-haken-zweispaltig li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: .28em;
	width: 8px;
	height: 14px;
	border: solid var(--hnt-rot);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
ul.is-style-haken-linien li,
ul.is-style-haken-zweispaltig li { padding-block: 15px; border-bottom: 1px solid var(--hnt-linie); break-inside: avoid; margin-top: 0; }
ul.is-style-haken-linien li::before,
ul.is-style-haken-zweispaltig li::before { top: calc(15px + .28em); }
ul.is-style-haken-zweispaltig { columns: 2; column-gap: 64px; }

ol.is-style-schritte { list-style: none; counter-reset: schritt; padding: 0; display: grid; gap: 18px; }
ol.is-style-schritte li { counter-increment: schritt; position: relative; min-height: 40px; padding-left: 58px; padding-top: 4px; margin: 0; }
ol.is-style-schritte li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--hnt-tinte);
	color: #fff;
	font: 600 16px/1 var(--hnt-titel);
}

ol.is-style-nummern { list-style: none; counter-reset: nr; padding: 0; border-top: 1px solid var(--hnt-linie); }
ol.is-style-nummern li { counter-increment: nr; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--hnt-linie); margin: 0; }
ol.is-style-nummern li::before {
	content: counter(nr, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 17px;
	font: 600 15px/1.6 var(--hnt-titel);
	letter-spacing: .04em;
	color: var(--hnt-rot-tief);
}

ul.is-style-marken { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
ul.is-style-marken li {
	margin: 0;
	padding: 6px 13px;
	border: 1px solid var(--wp--custom--farbe--chip-rand);
	border-radius: 2px;
	background: #fff;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
}

/* Referenzen und Partner als Kachelwand: jeder Eintrag eine Kachel, der Name als Wortmarke, der Ort darunter.
   Die Website trennt „Name (Ort)“ selbst (Plugin HNT Kern). Symbole hängen außen am Text, damit Name und Ort
   genau auf der Mittelachse der Kachel stehen. */
ul.is-style-referenzen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
ul.is-style-referenzen > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 112px;
	margin: 0;
	padding: 22px 30px 20px;
	text-align: center;
	border-radius: 4px;
	background: var(--hnt-flaeche);
}
.is-style-abschnitt-flaeche ul.is-style-referenzen > li { background: #fff; }
.hnt-ref-name { max-width: 100%; font: 600 16px/1.35 var(--hnt-titel); color: var(--hnt-tinte); text-wrap: balance; }
.hnt-ref-ort { position: relative; display: inline-block; font: 400 14px/1.4 var(--hnt-text); color: var(--hnt-grau); }
.hnt-ref-ort::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 6px 0 0;
	background-color: var(--hnt-rot);
	-webkit-mask: var(--hnt-i-ort) center / contain no-repeat;
	mask: var(--hnt-i-ort) center / contain no-repeat;
}
ul.is-style-referenzen a { position: relative; display: inline-block; color: var(--hnt-tinte); text-decoration: underline; text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; text-underline-offset: 4px; }
ul.is-style-referenzen a:hover { color: var(--hnt-rot-tief); }
ul.is-style-referenzen a[target="_blank"]::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -9px 0 0 6px;
	background-color: var(--hnt-rot-tief);
	-webkit-mask: var(--hnt-i-extern) center / contain no-repeat;
	mask: var(--hnt-i-extern) center / contain no-repeat;
}
/* Gruppe mit Unterpunkten (zum Beispiel BNI). */
ul.is-style-referenzen ul { list-style: none; margin: 0; padding: 0; }
ul.is-style-referenzen ul li { margin: 0; padding: 1px 0; font-size: 14px; line-height: 1.45; color: var(--hnt-schiefer); }

/* Anzahl der Einträge an kurzen Abschnittstiteln (setzt das Plugin). */
.hnt-ref-zahl {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 30px;
	margin-left: 14px;
	padding: 0 10px;
	border-radius: 15px;
	background: var(--hnt-flaeche);
	color: var(--hnt-tinte);
	font: 600 14px/1 var(--hnt-titel);
	letter-spacing: 0;
	vertical-align: 4px;
}
.is-style-abschnitt-flaeche .hnt-ref-zahl { background: #fff; }

/* ==========================================================================
   6. Hinweise, Karten, Kontaktdaten
   ========================================================================== */

.is-style-hinweis,
.is-style-achtung,
.is-style-hinweis-zeit {
	position: relative;
	padding: 20px 24px 20px 64px;
	border: 1px solid var(--hnt-linie);
	border-radius: 4px;
	background: #fff;
	font-size: clamp(16px, calc(15.63px + .095vw), 17px);
	line-height: 1.6;
}
.is-style-hinweis > *,
.is-style-achtung > *,
.is-style-hinweis-zeit > * { margin: 0; max-width: none !important; }
.is-style-hinweis::before,
.is-style-achtung::before,
.is-style-hinweis-zeit::before {
	content: "";
	position: absolute;
	left: 24px;
	top: 21px;
	width: 24px;
	height: 24px;
	background-color: var(--hnt-tinte);
	-webkit-mask: var(--hnt-i-hinweis) center / contain no-repeat;
	mask: var(--hnt-i-hinweis) center / contain no-repeat;
}
.is-style-achtung { background: var(--hnt-rot-hell); border-color: var(--hnt-rot-rand); }
.is-style-achtung::before { background-color: var(--hnt-rot-tief); -webkit-mask-image: var(--hnt-i-achtung); mask-image: var(--hnt-i-achtung); }
.is-style-hinweis-zeit { background: var(--hnt-flaeche); border-color: transparent; max-width: 860px; }
.is-style-hinweis-zeit::before { -webkit-mask-image: var(--hnt-i-uhr); mask-image: var(--hnt-i-uhr); }

.is-style-kontaktdaten {
	padding: 40px;
	background: var(--hnt-flaeche);
	border-radius: 4px;
}
.is-style-kontaktdaten > * + * { margin-block-start: 22px; }
.is-style-kontaktdaten > .wp-block-heading + * { margin-block-start: 28px; }

/* ==========================================================================
   7. Seitenkopf und Startbild
   ========================================================================== */

.wp-block-cover.is-style-seitenkopf {
	min-height: 420px;
	padding: 80px var(--wp--custom--rand) 88px;
	align-items: center;
	color: #fff;
}
.wp-block-cover.is-style-seitenkopf .wp-block-cover__inner-container,
.is-style-seitenkopf-schmal > .wp-block-group,
.hnt-breit-innen {
	width: 100%;
	max-width: var(--hnt-breit);
	margin-inline: auto;
}
.is-style-seitenkopf .wp-block-heading,
.is-style-seitenkopf-schmal .wp-block-heading { color: #fff; margin: 0; }
.is-style-seitenkopf p { color: #fff; margin: 0; }
.is-style-seitenkopf p.is-style-leitsatz { margin-top: 18px; }
.is-style-seitenkopf p.has-lead-font-size { margin-top: 20px; max-width: 64ch; }
.is-style-seitenkopf .wp-block-buttons { margin-top: 36px; }
.is-style-seitenkopf .wp-block-buttons.is-style-sprungmarken { margin-top: 24px; gap: 8px 12px; }
.is-style-seitenkopf p.has-klein-font-size { margin-top: 12px; color: var(--hnt-auf-dunkel); }

.is-style-seitenkopf-schmal {
	padding-top: 56px;
	padding-bottom: 60px;
	background: var(--hnt-tinte);
	color: #fff;
}
.is-style-seitenkopf-schmal h1.wp-block-heading { font-size: var(--wp--preset--font-size--seitentitel-schmal); }

/* Startbild: dunkle Fläche links (7), rechts ein Bildplatz (5).
   Liegt dort ein Foto, füllt es die Spalte. Ohne Foto zeigt die Fläche den Schwung aus dem Logo (nur am Desktop);
   auf Smartphone und Tablet steht dann nur der Text. */
.wp-block-columns.is-style-startbild {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	container-type: inline-size;
	gap: 0;
	margin-block: 0;
	background: var(--hnt-tinte);
	color: #fff;
}
.is-style-startbild > .wp-block-column:first-child {
	box-sizing: border-box; /* Innenabstand zählt zur Spaltenbreite, sonst teilt sich das Startbild 2 : 1 statt 7 : 5 */
	display: flex;
	align-items: center;
	padding: 72px 64px 80px max(var(--wp--custom--rand), calc((100cqw - var(--hnt-breit)) / 2));
}
.is-style-startbild > .wp-block-column:first-child > .wp-block-group { max-width: 680px; }
.is-style-startbild > .wp-block-column:last-child { position: relative; min-height: 680px; }
.is-style-startbild > .wp-block-column:last-child:not(:has(img)) { min-height: 640px; }
@media (min-width: 1024px) {
	/* Schwung aus dem Logo: Sichel (links unten breit, rechts spitz), geneigt wie im Logo, Bahn als feine Linie, roter Punkt.
	   Beginnt bei rund 57 % der Breite und bleibt so in jeder Breite rechts neben dem Text. */
	.wp-block-columns.is-style-startbild:not(:has(> .wp-block-column:last-child img))::after {
		content: "";
		position: absolute;
		z-index: -1;
		top: 50%;
		left: 91%;
		width: 72cqw;
		aspect-ratio: 1;
		transform: translate(-50%, -50%);
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-500 -500 1000 1000'%3E%3Cg transform='rotate(-14)'%3E%3Cpath fill='%23fff' fill-opacity='.075' fill-rule='evenodd' d='M-480 0a480 150 0 1 0 960 0a480 150 0 1 0-960 0zM-444-10a462 128 0 1 0 924 0a462 128 0 1 0-924 0z'/%3E%3Cellipse rx='480' ry='150' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='-124.2' cy='-144.9' r='7' fill='%23e30613'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
		pointer-events: none;
	}
}
.is-style-startbild > .wp-block-column:last-child > .wp-block-cover,
.is-style-startbild > .wp-block-column:last-child > .wp-block-image {
	position: absolute;
	inset: 0;
	min-height: 0 !important;
	height: 100%;
	margin: 0;
	padding: 0;
}
.is-style-startbild > .wp-block-column:last-child > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
/* Nur im Editor: Der leere Bildplatz zeigt sich als gestrichelter Rahmen über die ganze rechte Spalte, der Schwung
   bleibt dahinter sichtbar. Ausgewählt erscheinen „Hochladen“ und „Mediathek“ wie gewohnt. */
.is-style-startbild > .wp-block-column:last-child > .wp-block-image > .components-placeholder.has-illustration {
	height: 100%;
	min-height: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none; /* WordPress zeichnet sonst alles dahinter unscharf, auch den Schwung */
	outline: 1px dashed rgba(255, 255, 255, .45);
	outline-offset: -20px;
}
.is-style-startbild > .wp-block-column:last-child > .wp-block-image > .components-placeholder.has-illustration::before,
.is-style-startbild > .wp-block-column:last-child > .wp-block-image > .components-placeholder.has-illustration .components-placeholder__illustration { display: none; }
.is-style-startbild > .wp-block-column:last-child > .wp-block-image > .components-placeholder.has-illustration::after {
	content: "Bildplatz: Foto optional";
	position: absolute;
	left: 36px;
	bottom: 34px;
	font: 500 13px/1.3 var(--hnt-titel);
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .75);
}
.is-style-startbild .wp-block-heading { color: #fff; margin: 0; }
.is-style-startbild p { color: #fff; margin: 0; }
.is-style-startbild p.is-style-startzeile { margin-top: 24px; font-weight: 500; font-size: 24px; line-height: 1.3; }
.is-style-startbild p.is-style-startzeile .has-rot-color { font-weight: 600; }
.is-style-startbild p.hnt-starttext { margin-top: 16px; max-width: 560px; font-size: clamp(17px, calc(16.26px + .19vw), 19px); line-height: 1.55; }
.is-style-startkontakt {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 40px;
	margin-top: 40px !important;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.is-style-startkontakt > * { margin: 0 !important; }
.is-style-startkontakt > .hnt-kontakt--anschrift { grid-column: 2; grid-row: 1 / span 2; }

/* ==========================================================================
   8. Kontaktaufruf
   ========================================================================== */

.is-style-kontaktaufruf { padding-top: 80px; padding-bottom: 80px; background: var(--hnt-flaeche); }
.hnt-kontaktaufruf-innen { display: flex !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.hnt-kontaktaufruf-innen > * { margin: 0 !important; }
.hnt-kontaktaufruf-text { max-width: 660px; }
.hnt-kontaktaufruf-text p { margin-top: 12px !important; }
.hnt-knopfreihe { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hnt-knopfreihe > * { margin: 0 !important; }

/* ==========================================================================
   9. Kopf, Menü, Fuß, Aktionsleiste
   ========================================================================== */

.hnt-kopf { position: relative; z-index: 40; background: #fff; }

.is-style-leiste { background: var(--hnt-tinte); color: #fff; font-size: 14px; line-height: 1.3; }
.is-style-leiste p { margin: 0; }
.hnt-leiste-innen { min-height: 40px; gap: 24px; }
.hnt-schnell { gap: 0 28px; }
.hnt-schnell a,
.is-style-leiste .hnt-kontakt a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}
.hnt-schnell a:hover,
.is-style-leiste .hnt-kontakt a:hover { text-decoration: underline; text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hnt-schnell a[href*="/beratungstermin"]::before,
.hnt-schnell a[href$="/kontakt/"]::before {
	content: "";
	width: 17px;
	height: 17px;
	flex: none;
	background-color: var(--hnt-rot);
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.hnt-schnell a[href*="/beratungstermin"] { --hnt-sym: var(--hnt-i-termin); }
.hnt-schnell a[href$="/kontakt/"] { --hnt-sym: var(--hnt-i-mail); }
.is-style-leiste .hnt-kontakt--telefon a { font-weight: 600; letter-spacing: .01em; }

.is-style-kopf { background: #fff; border-bottom: 1px solid var(--hnt-linie); }
.hnt-kopf-innen { min-height: 88px; gap: 28px; }
.hnt-kopf-innen .wp-block-site-logo img { width: auto; height: 46px; }

/* Hauptmenü am Desktop. */
.hnt-nav-desktop .wp-block-navigation__container { gap: 22px; }
.hnt-nav-desktop .wp-block-navigation-item__content {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	white-space: nowrap;
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hnt-tinte);
	text-decoration: none;
}
.hnt-nav-desktop .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 2px;
	background: var(--hnt-tinte);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.hnt-nav-desktop .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.hnt-nav-desktop .current-menu-item > .wp-block-navigation-item__content::after,
.hnt-nav-desktop [aria-current="page"]::after { height: 3px; background: var(--hnt-rot); transform: scaleX(1); }
/* Knöpfe und Kontaktzeilen des gemeinsamen Menüs gehören nur in das Smartphone-Menü. */
.hnt-nav-desktop .wp-block-buttons,
.hnt-nav-desktop .wp-block-navigation-item:has(> a[href^="tel:"]),
.hnt-nav-desktop .wp-block-navigation-item:has(> a[href^="mailto:"]) { display: none; }

/* Kopf-Aktionen: Fernwartung (Rahmen) und Kontakt (rot). */
.is-style-kopf-aktionen { flex-wrap: nowrap; gap: 10px; flex: none; }
.is-style-kopf-aktionen .wp-block-button__link {
	min-height: 44px;
	padding: 9px 16px;
	gap: 8px;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.is-style-kopf-aktionen .wp-block-button__link::before { width: 18px; height: 18px; }
.is-style-kopf-aktionen .wp-block-button__link[href$="/kontakt/"]::before { display: none; }
.is-style-kopf-aktionen .wp-block-button.is-style-sekundaer .wp-block-button__link { background: #fff; }
.is-style-kopf-aktionen .wp-block-button.is-style-sekundaer .wp-block-button__link:hover,
.is-style-kopf-aktionen .wp-block-button.is-style-sekundaer .wp-block-button__link[aria-current="page"] { background: var(--hnt-tinte); color: #fff; }
.is-style-kopf-aktionen .wp-block-button:not(.is-style-sekundaer) .wp-block-button__link[aria-current="page"] { background: var(--hnt-rot-tief); border-color: var(--hnt-rot-tief); }

/* Menüknopf (öffnet das Smartphone-Menü). */
.wp-block-navigation.hnt-nav-mobil { display: none; }
.hnt-nav-mobil .wp-block-navigation__responsive-container-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	min-width: 48px;
	padding: 8px 14px;
	border: 2px solid var(--hnt-tinte);
	border-radius: 2px;
	background: #fff;
	color: var(--hnt-tinte);
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .15s ease, color .15s ease;
}
.hnt-nav-mobil .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--hnt-i-menue) center / contain no-repeat;
	mask: var(--hnt-i-menue) center / contain no-repeat;
}
.hnt-nav-mobil .wp-block-navigation__responsive-container-open:hover { background: var(--hnt-tinte); color: #fff; }

@media (max-width: 1319px) {
	.hnt-nav-desktop { display: none !important; }
	.wp-block-navigation.hnt-nav-mobil { display: flex; }
	.hnt-kopf-innen > .is-style-kopf-aktionen { margin-left: auto; }
}

@media (max-width: 781px) {
	.is-style-leiste,
	.hnt-kopf-innen > .is-style-kopf-aktionen { display: none !important; }
	.hnt-kopf-innen { min-height: 68px; gap: 12px; }
	.hnt-kopf-innen .wp-block-site-logo img { height: 38px; }
	.hnt-nav-mobil { margin-left: auto; }
}

/* Smartphone-Menü (Vorlagenteil „Menü“, Bereich Navigation-Overlay). */
.wp-block-navigation__responsive-container.is-menu-open { padding: 0 !important; background: #fff !important; color: var(--hnt-tinte) !important; }
.is-style-menue { min-height: 100%; background: #fff; }
.is-style-menue > * { margin: 0 !important; }
.hnt-menue-kopf { min-height: 68px; padding-inline: 20px; border-bottom: 1px solid var(--hnt-linie); }
.hnt-menue-kopf .wp-block-site-logo img { width: auto; height: 38px; }
.wp-block-navigation-overlay-close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 14px;
	border: 2px solid var(--hnt-tinte);
	border-radius: 2px;
	background: #fff;
	color: var(--hnt-tinte);
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.wp-block-navigation-overlay-close:hover { background: var(--hnt-tinte); color: #fff; }
.wp-block-navigation-overlay-close svg { width: 20px; height: 20px; fill: currentColor; }
.hnt-menue-liste { padding: 8px 20px 0; }
.hnt-menue-liste .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; gap: 0 !important; width: 100%; }
.hnt-menue-liste .wp-block-navigation-item { border-bottom: 1px solid var(--hnt-linie); width: 100%; }
.hnt-menue-liste .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	width: 100%;
	font-family: var(--hnt-titel);
	font-weight: 500;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hnt-tinte);
	text-decoration: none;
}
.hnt-menue-liste .wp-block-navigation-item__content::after {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--hnt-grau);
	-webkit-mask: var(--hnt-i-winkel) center / contain no-repeat;
	mask: var(--hnt-i-winkel) center / contain no-repeat;
}
.hnt-menue-liste .wp-block-navigation-item__content:hover,
.hnt-menue-liste .wp-block-navigation-item__content:hover::after { color: var(--hnt-rot-tief); background-color: var(--hnt-rot-tief); }
.hnt-menue-liste .wp-block-navigation-item__content:hover { background-color: transparent; }
.hnt-menue-liste .current-menu-item > .wp-block-navigation-item__content { font-weight: 600; }
.hnt-menue-liste .current-menu-item > .wp-block-navigation-item__content .wp-block-navigation-item__label::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 4px;
	margin-right: 12px;
	vertical-align: middle;
	background: var(--hnt-rot);
	transform: skewX(-24deg);
}
.hnt-menue-liste .wp-block-buttons,
.hnt-menue-liste .wp-block-navigation-item:has(> a[href^="tel:"]),
.hnt-menue-liste .wp-block-navigation-item:has(> a[href^="mailto:"]) { display: none !important; }
.hnt-menue-aktionen { display: grid !important; gap: 12px; padding: 24px 20px 8px; }
.hnt-menue-aktionen > * { margin: 0 !important; }
.hnt-menue-aktionen .wp-block-button,
.hnt-menue-aktionen .wp-block-button__link { width: 100%; }
.hnt-menue-kontakt { display: grid !important; gap: 4px; padding: 16px 20px 32px; }
.hnt-menue-kontakt > * { margin: 0 !important; }

/* Fuß. */
.is-style-fuss { background: var(--hnt-tinte); color: #fff; }
.is-style-fuss .wp-block-columns { gap: 32px 48px; padding-block: 64px 48px; margin: 0; }
.is-style-fuss .wp-block-image img { width: 208px; height: auto; }
.is-style-fuss p { color: var(--hnt-auf-dunkel); font-size: 16px; line-height: 1.65; margin: 0; }
.is-style-fuss p strong { color: #fff; font-weight: 600; }
.is-style-fuss .wp-block-column > * + * { margin-block-start: 12px; }
.is-style-fuss a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.is-style-fuss a:hover { text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; }
.hnt-fuss-unten { padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hnt-fuss-unten .wp-block-navigation__container { gap: 0 28px; }
.hnt-fuss-unten .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.hnt-fuss-unten .wp-block-navigation-item__content:hover { text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; }

/* Aktionsleiste: nur auf dem Smartphone, unten angeheftet. */
.is-style-aktionsleiste { display: none !important; }

@media (max-width: 781px) {
	body { padding-bottom: 64px; }
	.is-style-aktionsleiste {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin: 0 !important;
		background: var(--hnt-tinte);
		border-top: 1px solid rgba(255, 255, 255, .14);
		box-shadow: 0 -6px 18px rgba(23, 29, 38, .22);
	}
	.is-style-aktionsleiste > * { margin: 0 !important; }
	.is-style-aktionsleiste > * + * { border-left: 1px solid rgba(255, 255, 255, .12); }
	.is-style-aktionsleiste a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-height: 64px;
		padding: 8px 4px;
		color: #fff;
		text-decoration: none;
		font-family: var(--hnt-titel);
		font-weight: 500;
		font-size: 12px;
		line-height: 1.2;
		letter-spacing: .02em;
	}
	.is-style-aktionsleiste a::before {
		content: "";
		width: 22px;
		height: 22px;
		background-color: currentColor;
		-webkit-mask: var(--hnt-sym) center / contain no-repeat;
		mask: var(--hnt-sym) center / contain no-repeat;
	}
	.is-style-aktionsleiste a[href^="tel:"] { --hnt-sym: var(--hnt-i-telefon); background: var(--hnt-rot); }
	.is-style-aktionsleiste a[href*="/fernwartung-hnt"] { --hnt-sym: var(--hnt-i-fernwartung); }
	.is-style-aktionsleiste a[href*="/beratungstermin"] { --hnt-sym: var(--hnt-i-termin); }
	.is-style-aktionsleiste a[href$="/kontakt/"] { --hnt-sym: var(--hnt-i-mail); }
	.is-style-aktionsleiste a:hover { background: var(--hnt-tinte-tief); }
	.is-style-aktionsleiste a[href^="tel:"]:hover { background: var(--hnt-rot-tief); }
	.is-style-aktionsleiste a[aria-current="page"] { box-shadow: inset 0 3px 0 var(--hnt-rot); font-weight: 600; }
}

/* ==========================================================================
   10. Rechtsseiten
   ========================================================================== */

.wp-block-columns.is-style-recht { gap: 48px 96px; margin: 0; }
.is-style-rechtstext { max-width: 760px; }
.is-style-rechtstext h2.wp-block-heading { font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
.is-style-rechtstext h3.wp-block-heading { font-size: 17px; line-height: 1.35; letter-spacing: .02em; margin: 36px 0 8px; }
.is-style-rechtstext > * + p { margin-block-start: 12px; }
.is-style-randnavigation { padding-top: 20px; border-top: 2px solid var(--hnt-tinte); }
.is-style-randnavigation .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; gap: 0 !important; width: 100%; margin-top: 12px; }
.is-style-randnavigation .wp-block-navigation-item { width: 100%; }
.is-style-randnavigation .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	min-height: 44px;
	width: 100%;
	color: var(--hnt-tinte);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--hnt-linie);
}
.is-style-randnavigation .wp-block-navigation-item__content:hover { color: var(--hnt-rot-tief); }
.is-style-randnavigation .current-menu-item > .wp-block-navigation-item__content { font-weight: 600; }
.is-style-randnavigation .current-menu-item > .wp-block-navigation-item__content::before {
	content: "";
	width: 14px;
	height: 4px;
	margin-right: 10px;
	background: var(--hnt-rot);
	transform: skewX(-24deg);
}

/* ==========================================================================
   11. Kontaktangaben aus den Firmendaten (Block „Kontaktangabe“)
   ========================================================================== */

.hnt-kontakt--symbol a,
.hnt-kontakt--symbol .hnt-kontakt__wert { display: inline-flex; align-items: center; gap: 10px; }
.hnt-kontakt--symbol::before { display: none; }
.hnt-kontakt--symbol a::before,
.hnt-kontakt--symbol.hnt-kontakt--anschrift-zeile::before {
	content: "";
	display: inline-block;
	width: 17px;
	height: 17px;
	flex: none;
	background-color: var(--hnt-rot);
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.hnt-kontakt--anschrift-zeile.hnt-kontakt--symbol { display: flex; align-items: center; gap: 8px; color: var(--hnt-auf-dunkel); }
.hnt-kontakt--telefon { --hnt-sym: var(--hnt-i-telefon); }
.hnt-kontakt--email { --hnt-sym: var(--hnt-i-mail); }
.hnt-kontakt--anschrift,
.hnt-kontakt--anschrift-zeile { --hnt-sym: var(--hnt-i-ort); }
.hnt-kontakt--firma,
.hnt-kontakt--firma-inhaber { --hnt-sym: var(--hnt-i-firma); }
.hnt-kontakt--fernwartung,
.hnt-kontakt--fernwartung-seite { --hnt-sym: var(--hnt-i-fernwartung); }
.hnt-kontakt--zeiten { --hnt-sym: var(--hnt-i-uhr); }

/* Smartphone-Menü: Kontaktzeilen. */
.hnt-menue-kontakt .hnt-kontakt a { min-height: 44px; font-size: 16px; font-weight: 600; color: var(--hnt-tinte); text-decoration: none; }
.hnt-menue-kontakt .hnt-kontakt a:hover { text-decoration: underline; text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Kontaktpunkt im Startbild. */
.hnt-kontakt--punkt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: #fff; font-size: 16px; line-height: 1.5; font-style: normal; text-decoration: none; }
a.hnt-kontakt--punkt { text-decoration: none; }
.hnt-kontakt--punkt::before {
	content: "";
	width: 22px;
	height: 22px;
	margin-top: 2px;
	background-color: var(--hnt-rot);
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.hnt-kontakt__label { display: block; font-family: var(--hnt-titel); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hnt-auf-dunkel); }
.hnt-kontakt--punkt .hnt-kontakt__wert { font-weight: 600; font-size: 20px; line-height: 1.35; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a.hnt-kontakt--punkt:hover .hnt-kontakt__wert { text-decoration-color: var(--hnt-rot); text-decoration-thickness: 2px; }
.hnt-kontakt--punkt.hnt-kontakt--gross .hnt-kontakt__wert { font-size: clamp(24px, calc(23.26px + .19vw), 26px); }
.hnt-kontakt--punkt.hnt-kontakt--anschrift .hnt-kontakt__wert { font-weight: 400; font-size: 16px; text-decoration: none; }

/* Eintrag in den Kontaktdaten (Kontakt, Beratungstermin). */
.hnt-kontakt--eintrag { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 17px; line-height: 1.55; }
.hnt-kontakt--eintrag::before {
	content: "";
	width: 22px;
	height: 22px;
	margin-top: 2px;
	background-color: var(--hnt-rot-tief);
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.hnt-kontakt--eintrag .hnt-kontakt__label { color: var(--hnt-grau); font-size: 13px; letter-spacing: .09em; }
.hnt-kontakt--eintrag a { color: var(--hnt-rot-tief); }
.hnt-kontakt--eintrag a:hover { color: var(--hnt-rot-dunkel); }
.hnt-kontakt--eintrag.hnt-kontakt--gross a,
.hnt-kontakt--gross-link a {
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--hnt-tinte);
	text-decoration-color: var(--hnt-rot);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.hnt-kontakt--eintrag.hnt-kontakt--gross a:hover,
.hnt-kontakt--gross-link a:hover { color: var(--hnt-rot-tief); }
.hnt-kontakt--ohne-symbol { grid-template-columns: minmax(0, 1fr); }
.hnt-kontakt--ohne-symbol::before { display: none; }

/* Zeile mit Beschriftung (Fuß, Impressum). */
.hnt-kontakt--zeile a { white-space: nowrap; }

/* Aktion „Anrufen“ in der Aktionsleiste. */
.hnt-kontakt--aktion { margin: 0; }

/* ==========================================================================
   12. Piktogramme (Block „Piktogramm“)
   ========================================================================== */

.hnt-piktogramm { display: block; width: 88px; height: 88px; flex: none; }
.hnt-piktogramm svg { width: 100%; height: 100%; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hnt-piktogramm .linie { stroke: var(--hnt-schiefer); }
.hnt-piktogramm .akzent { stroke: var(--hnt-rot); }
.hnt-piktogramm .punkt { fill: var(--hnt-rot); stroke: none; }

/* ==========================================================================
   13. Formular (Block „Formular“)
   ========================================================================== */

.hnt-formular,
.hnt-formular *,
.hnt-formular *::before,
.hnt-formular *::after { box-sizing: border-box; }
.hnt-formular { display: grid; gap: 24px; margin-top: 24px; }
.hnt-formular > * { margin: 0; }
.hnt-formular__reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hnt-formular__pflicht,
.hnt-formular__hinweis { font-size: 15px; line-height: 1.5; color: var(--hnt-grau); }
.hnt-formular__hinweis a { color: var(--hnt-rot); }
.hnt-feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.hnt-feld__label { font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--hnt-tinte); padding: 0; }
.hnt-feld__stern { color: var(--hnt-rot); font-weight: 600; }
.hnt-feld__hilfe { margin: 0; font-size: 15px; line-height: 1.45; color: var(--hnt-grau); }
.hnt-eingabe {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1.5px solid var(--hnt-feldrand);
	border-radius: 2px;
	background: #fff;
	color: var(--hnt-tinte);
	font: 400 17px/1.4 var(--hnt-text);
	transition: border-color .15s ease;
}
.hnt-eingabe:hover { border-color: var(--hnt-schiefer); }
.hnt-eingabe:focus { outline: 3px solid var(--hnt-tinte); outline-offset: 1px; border-color: var(--hnt-tinte); }
textarea.hnt-eingabe { min-height: 168px; resize: vertical; }
.hnt-auswahl { position: relative; }
.hnt-auswahl .hnt-eingabe { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.hnt-auswahl::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border: solid var(--hnt-tinte); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hnt-feld--fehler .hnt-eingabe { border-color: var(--hnt-rot); border-width: 2px; }
.hnt-feld__fehler { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--hnt-rot-tief); }
.hnt-feld__fehler::before,
.hnt-formular__meldung::before {
	content: "";
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--hnt-i-fehler) center / contain no-repeat;
	mask: var(--hnt-i-fehler) center / contain no-repeat;
}
.hnt-optionen { display: flex; flex-wrap: wrap; gap: 12px; }
.hnt-option { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border: 1.5px solid var(--hnt-feldrand); border-radius: 2px; cursor: pointer; font-size: 17px; }
.hnt-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--hnt-tinte); }
.hnt-option:hover { border-color: var(--hnt-schiefer); }
.hnt-option:has(input:checked) { border-color: var(--hnt-tinte); background: var(--hnt-flaeche); }
.hnt-option:has(input:focus-visible) { outline: 3px solid var(--hnt-tinte); outline-offset: 2px; }
.hnt-formular__meldung { display: flex; gap: 12px; padding: 16px 20px; border: 1px solid var(--hnt-rot-rand); border-radius: 4px; background: var(--hnt-rot-hell); font-weight: 500; font-size: 16px; color: var(--hnt-tinte); }
.hnt-formular__meldung::before { width: 22px; height: 22px; color: var(--hnt-rot-tief); }
.hnt-formular__meldung p { margin: 0; }
.hnt-formular__senden { justify-self: start; }
.hnt-formular__senden::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--hnt-sym) center / contain no-repeat;
	mask: var(--hnt-sym) center / contain no-repeat;
}
.hnt-formular--kontakt .hnt-formular__senden { --hnt-sym: var(--hnt-i-senden); }
.hnt-formular--termin .hnt-formular__senden { --hnt-sym: var(--hnt-i-termin); }
.hnt-formular__falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hnt-erfolg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 24px; padding: 32px; border: 2px solid var(--hnt-tinte); border-radius: 4px; background: #fff; }
.hnt-erfolg::before {
	content: "";
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--hnt-tinte) 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.hnt-erfolg p { margin: 0; padding-top: 10px; font: 600 20px/1.3 var(--hnt-titel); }

/* ==========================================================================
   14. Umbruchpunkte
   ========================================================================== */

@media (max-width: 1319px) {
	.is-style-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ul.is-style-referenzen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.is-style-logoreihe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	ul.is-style-referenzen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-columns.is-style-startbild { flex-wrap: wrap !important; }
	.wp-block-columns.is-style-startbild > .wp-block-column { flex-basis: 100% !important; }
	.is-style-startbild > .wp-block-column:first-child { padding: 56px var(--wp--custom--rand) 64px; }
	.is-style-startbild > .wp-block-column:last-child { min-height: 320px; }
	.is-style-startbild > .wp-block-column:last-child:not(:has(img)) { display: none; }
	ul.is-style-karten { grid-template-columns: minmax(0, 1fr); }
	.is-style-fuss .wp-block-columns { flex-wrap: wrap !important; }
	.is-style-fuss .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 24px) !important; }
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-seitenkopf { min-height: 0 !important; padding-top: 44px; padding-bottom: 52px; }
	/* Keine automatische Silbentrennung: Browser mit Wörterbuch trennten „IT- und Netz-werkleistungen“, obwohl das
	   Wort in eine eigene Zeile passt. Der Titel bricht zwischen den Wörtern; break-word bleibt als Notnagel. */
	.is-style-seitenkopf h1.wp-block-heading { line-height: 1.15; letter-spacing: .01em; hyphens: manual; overflow-wrap: break-word; }
	.is-style-seitenkopf p.is-style-leitsatz { margin-top: 12px; line-height: 1.35; }
	.is-style-seitenkopf p.has-lead-font-size { margin-top: 14px; }
	.is-style-seitenkopf .wp-block-buttons { margin-top: 28px; }
	.is-style-seitenkopf-schmal { padding-top: 36px; padding-bottom: 40px; }
	h2.wp-block-heading { line-height: 1.25; hyphens: auto; }

	.is-style-startbild > .wp-block-column:first-child { padding: 36px 20px 44px; }
	.is-style-startbild .wp-block-heading.is-style-starttitel { line-height: 1.2; }
	.is-style-startbild p.is-style-startzeile { margin-top: 18px; }
	.is-style-startbild > .wp-block-column:last-child { min-height: 200px; }
	.is-style-startkontakt { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px !important; padding-top: 24px; }
	.is-style-startkontakt > .hnt-kontakt--anschrift { grid-column: auto; grid-row: auto; }

	.is-style-vorteile { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.is-style-vorteil { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; align-items: start; }
	.is-style-vorteil .hnt-piktogramm { width: 64px; height: 64px; grid-row: span 2; }

	.is-style-kacheln { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.is-style-kachel { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; min-height: 0; padding: 22px 20px 20px; }
	.is-style-kachel::before { grid-column: 1 / -1; margin-bottom: 4px; }
	.is-style-kachel .wp-block-heading { grid-column: 1; grid-row: 2; align-self: center; }
	.is-style-kachel::after { grid-column: 2; grid-row: 2; margin: 0; }
	.is-style-kachel p { grid-column: 1 / -1; grid-row: 3; }

	.wp-block-columns.is-style-spalten { gap: 40px; }
	ul.is-style-haken-zweispaltig { columns: 1; }
	ul.is-style-referenzen { gap: 8px; }
	ul.is-style-referenzen > li { min-height: 96px; padding: 18px 30px 16px; }
	.wp-block-columns.is-style-leistung { padding-block: 24px; gap: 8px; }
	ul.is-style-karten > li { padding: 24px 20px; }
	.is-style-kontaktdaten { padding: 24px 20px; }
	.is-style-logofeld { min-height: 0; padding: 32px; }
	.is-style-logofeld img { width: 200px; }
	.is-style-hinweis,
	.is-style-achtung,
	.is-style-hinweis-zeit { padding: 16px 18px 16px 56px; }
	.is-style-hinweis::before,
	.is-style-achtung::before,
	.is-style-hinweis-zeit::before { left: 18px; top: 17px; }
	.wp-block-buttons:not(.is-style-kopf-aktionen):not(.is-style-sprungmarken) > .wp-block-button,
	.wp-block-buttons:not(.is-style-kopf-aktionen):not(.is-style-sprungmarken) .wp-block-button__link { width: 100%; }
	.hnt-knopfreihe { flex-direction: column; align-items: stretch; }
	.hnt-knopfreihe .wp-block-button__link { width: 100%; }

	.is-style-kontaktaufruf { padding-top: 52px; padding-bottom: 52px; }
	.hnt-kontaktaufruf-innen { flex-direction: column; align-items: stretch; gap: 28px; }

	.is-style-fuss .wp-block-columns { padding-block: 44px 28px; gap: 24px; }
	.is-style-fuss .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.is-style-fuss .wp-block-image img { width: 176px; }
	.hnt-fuss-unten { padding-block: 8px 20px; }
	.hnt-fuss-unten .wp-block-navigation__container { gap: 0 22px; }

	.hnt-formular__reihe { grid-template-columns: minmax(0, 1fr); }
	.hnt-erfolg { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}

/* Unter 600 px eine Kachel je Zeile: lange Namen wie „Siebengebirgsapotheke“ würden in zwei Spalten mitten im Wort brechen. */
@media (max-width: 599px) {
	ul.is-style-referenzen { grid-template-columns: minmax(0, 1fr); }
	.is-style-logoreihe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.is-style-logoreihe > .wp-block-image { min-height: 96px; padding: 16px 12px; }
	ul.is-style-referenzen > li { min-height: 0; padding: 16px 30px 14px; gap: 6px; }
}

/* Sehr schmale Handys (320 px): Bei 26 px passten „Telekommunikation“ und „Netzwerkleistungen“ nicht in eine Zeile
   (285 und 296 px bei 280 px Platz) und brachen mitten im Wort. Bei 24 px passen beide. */
@media (max-width: 359px) {
	.is-style-seitenkopf h1.wp-block-heading { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	.is-style-kachel:hover { transform: none; }
}
