/*
Theme Name: Harling – Maler & Trockenbau
Theme URI: https://hmt-schwerin.de
Author: bytemeer
Author URI: https://bytemeer.de
Description: Modernes, schnelles Theme für Harling Maler & Trockenbau, Schwerin. Alle Texte sind im Backend pflegbar: Seiten im Block-Editor, Leistungen als eigener Inhaltstyp, feste Texte und Kontaktdaten im Customizer. Lokale Schrift, keine externen Dienste, eingebautes Kontaktformular, Einrichtungsassistent unter Design → Harling Einrichtung.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harling
*/
/* Schriften: Fraunces (Überschriften) + Montserrat (Text, wie im Logo-Schriftzug),
   lokal eingebunden über theme.json (assets/fonts, SIL OFL). */

/* ---------- Tokens (Farben aus dem Logo) ---------- */
:root {
	--navy: #1b3257;
	--navy-700: #2d507e;
	--navy-900: #111f38;
	--blue: #3d73ac;
	--sky: #56a2de;
	--aqua: #e9f5f9;
	--red: #b31c18;
	--red-600: #951612;
	--silver: #c1c6d5;
	--silver-200: #e3e6ee;
	--paper: #f4f6f9;
	--ink: #16213a;
	--muted: #5c687d;
	--white: #fff;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(17, 31, 56, .06), 0 10px 28px -12px rgba(17, 31, 56, .22);
	--shadow-lg: 0 2px 4px rgba(17, 31, 56, .06), 0 28px 56px -20px rgba(17, 31, 56, .35);
	--font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--container: 1200px;
	--content: 760px;
	--gutter: clamp(1.15rem, 4vw, 2rem);
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	/* Mauerwerk wie im Logo */
	--bricks-silver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cpath d='M0 .5h72M0 18.5h72M.5 0v18M36.5 18v18' fill='none' stroke='%23c1c6d5' stroke-opacity='.55'/%3E%3C/svg%3E");
	--bricks-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cpath d='M0 .5h72M0 18.5h72M.5 0v18M36.5 18v18' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
	/* Wappenschild */
	--shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 60'%3E%3Cpath d='M26 1.5 50.5 8.5V28c0 15.5-11 25.5-24.5 30.5C12.5 53.5 1.5 43.5 1.5 28V8.5z' fill='%231b3257'/%3E%3Cpath d='M26 5.5 47 11.5V28c0 13-9 21.8-21 26.4C14 49.8 5 41 5 28V11.5z' fill='none' stroke='%2356a2de' stroke-width='1.5'/%3E%3C/svg%3E");
	--shield-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 60'%3E%3Cpath d='M26 1.5 50.5 8.5V28c0 15.5-11 25.5-24.5 30.5C12.5 53.5 1.5 43.5 1.5 28V8.5z' fill='%23b31c18'/%3E%3C/svg%3E");
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 650; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.2em; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.screen-reader-text, .hp-field {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: 700 .92rem/1.2 var(--font); letter-spacing: .03em;
	padding: .95em 1.5em; border-radius: var(--radius-sm); border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .icon-arrow { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--lg { font-size: .98rem; padding: 1.05em 1.75em; }
.btn--block { width: 100%; }
.btn--primary, .btn--accent, .wp-block-button__link, .wp-element-button { background: var(--red); color: #fff; }
.btn--primary:hover, .btn--accent:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--red-600); color: #fff; box-shadow: 0 12px 24px -12px rgba(179, 28, 24, .7); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.is-style-outline > .wp-block-button__link:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--red); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 14px; height: 16px; background: var(--shield-red) center / contain no-repeat; }
.eyebrow--light { color: #8fc6ee; }
.eyebrow--light::before { background-image: var(--shield-red); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 500; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.topbar__contact { gap: 1.6rem !important; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: var(--sky); }
@media (max-width: 760px) { .topbar__claim { display: none !important; } .topbar__inner { justify-content: center; } }
@media (max-width: 480px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid var(--silver-200);
	transition: box-shadow .25s var(--ease);
}
.site-header::before {
	/* Eigene Ebene, sonst wird der Header zum Bezugsrahmen für das fixierte Mobilmenü. */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
.nav-open .site-header::before { background: #fff; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(17, 31, 56, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand-logo, .custom-logo-link { display: block; line-height: 0; }
.brand-logo img, .custom-logo { height: 62px; width: auto; max-width: 100%; }
@media (max-width: 480px) { .brand-logo img, .custom-logo { height: 46px; } }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav .menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a {
	position: relative; display: block; padding: .6rem .8rem;
	font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none;
	transition: color .2s var(--ease);
}
.site-nav .menu > li > a::after {
	content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--red);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav .menu > li > a:hover::after,
.site-nav .menu > .current-menu-item > a::after,
.site-nav .menu > .current_page_item > a::after,
.site-nav .menu > .current-menu-ancestor > a::after,
.site-nav .menu > .current-menu-parent > a::after { transform: scaleX(1); }
.site-nav .menu a:hover { color: var(--red); }
.submenu-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -.55rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.site-nav .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
	list-style: none; margin: 0; padding: .5rem;
	background: #fff; border: 1px solid var(--silver-200); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.site-nav .sub-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.site-nav .sub-menu a { border-radius: var(--radius-sm); padding: .6rem .8rem; font-weight: 500; }
.site-nav .sub-menu a:hover { background: var(--aqua); color: var(--navy); }
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu,
.site-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__cta { padding: .85em 1.3em; font-size: .88rem; white-space: nowrap; }
.site-nav__phone { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--silver); border-radius: var(--radius-sm); background: #fff; cursor: pointer; padding: 0; place-items: center; }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
	:root { --header-h: 74px; }
	.nav-toggle { display: grid; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--gutter) 2rem; background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; background: #fff; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--silver-200); }
	.site-nav .menu > li > a { flex: 1; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; padding: .95rem .25rem; }
	.site-nav .menu > li > a::after { display: none; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.site-nav .menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.site-nav .sub-menu { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .75rem .75rem; }
	.site-nav .menu > li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: .55rem .5rem; color: var(--muted); }
	.site-nav__cta { justify-content: center; padding: 1.1em; font-size: 1rem; }
	.site-nav__phone { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: 1em; border: 2px solid var(--navy); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); text-decoration: none; background: #fff; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(84vh, 740px); display: flex; align-items: center;
	padding: clamp(4rem, 9vw, 7rem) 0 clamp(7.5rem, 12vw, 9.5rem);
	background: var(--bricks-white), linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
	color: #fff;
}
.hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--bg) center / cover no-repeat;
}
.hero--image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(100deg, rgba(17, 31, 56, .95) 0%, rgba(27, 50, 87, .86) 45%, rgba(45, 80, 126, .45) 100%),
		var(--bricks-white);
}
.hero__inner { max-width: 740px; }
.hero__title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 650; line-height: 1.05; margin-bottom: 1.4rem; }
.hero__text { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .86); max-width: 600px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__phone { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2.5rem; color: #fff; text-decoration: none; }
.hero__phone:hover { color: #fff; }
.hero__phone-icon { display: grid; place-items: center; width: 44px; height: 50px; background: var(--shield) center / contain no-repeat; color: #fff; }
.hero__phone-icon .icon { width: 18px; height: 18px; margin-top: -3px; }
.hero__phone small { display: block; font-size: .72rem; color: #8fc6ee; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero__phone strong { font-size: 1.15rem; font-weight: 700; }

/* ---------- USPs ---------- */
.usps-wrap { position: relative; z-index: 2; margin-top: calc(clamp(4.5rem, 8vw, 6rem) * -1); }
.usps {
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	border-top: 4px solid var(--red); overflow: hidden;
}
.usp { display: flex; gap: 1.1rem; padding: clamp(1.4rem, 2.6vw, 2rem); }
.usp + .usp { border-left: 1px solid var(--silver-200); }
.usp__icon { display: grid; place-items: center; flex: none; width: 52px; height: 60px; background: var(--shield) center / contain no-repeat; color: #fff; }
.usp__icon .icon { width: 22px; height: 22px; margin-top: -4px; }
.usp__title { font-size: 1.15rem; margin: .1rem 0 .3rem; }
.usp__text { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) {
	.usps { grid-template-columns: 1fr; }
	.usp + .usp { border-left: 0; border-top: 1px solid var(--silver-200); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--leistungen { padding-top: clamp(4.5rem, 7vw, 6rem); }
.section--alt { background: var(--paper) var(--bricks-silver); }
.section--content { padding-top: 0; }
.section--page { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--leistungen { margin-inline: auto; text-align: center; }
.section-head--leistungen .section-title::after {
	content: ""; display: block; width: 150px; height: 18px; margin: 1rem auto 0;
	background:
		var(--shield-red) center / 14px 16px no-repeat,
		linear-gradient(var(--silver), var(--silver)) left center / 62px 1px no-repeat,
		linear-gradient(var(--silver), var(--silver)) right center / 62px 1px no-repeat;
}
.section-title { margin-bottom: .5rem; }
.section-lead { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.section--leistungen .cards { grid-template-columns: repeat(6, 1fr); }
.section--leistungen .card { grid-column: span 2; }
.section--leistungen .card:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
@media (max-width: 1020px) {
	.section--leistungen .cards { grid-template-columns: repeat(2, 1fr); }
	.section--leistungen .card, .section--leistungen .card:nth-last-child(2):nth-child(3n + 1) { grid-column: auto; }
}
@media (max-width: 640px) { .section--leistungen .cards { grid-template-columns: 1fr; } }
.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--silver-200); border-radius: var(--radius); overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(17, 31, 56, .25)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--navy); opacity: .35; }
.card__placeholder .icon { width: 56px; height: 56px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.card__title { margin: 0 0 .45rem; font-size: 1.4rem; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0 0 1.1rem; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.card__more .icon { transition: transform .2s var(--ease); }
.card:hover .card__more .icon { transform: translateX(4px); }

/* ---------- Seitenkopf ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
	background: var(--bricks-white), linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
	border-bottom: 4px solid var(--red);
}
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 31, 56, .94) 0%, rgba(27, 50, 87, .82) 55%, rgba(45, 80, 126, .5) 100%), var(--bricks-white); }
.page-hero__title { color: #fff; margin: 0; max-width: 820px; }
.page-hero__lead { margin: 1rem 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .84); max-width: 640px; }

/* ---------- Inhalte aus dem Block-Editor ---------- */
.entry { padding-inline: var(--gutter); }
.entry > * { max-width: var(--content); margin-inline: auto; }
.entry > .alignwide { max-width: var(--container); }
.entry > .alignfull { max-width: none; margin-inline: calc(var(--gutter) * -1); }
.entry--flush { padding-inline: 0; }
.entry--flush > * { max-width: none; }
.entry > :first-child { margin-top: 0; }
.entry h2 { margin-top: 2.2em; }
.entry h3 { margin-top: 1.8em; }
.entry ul, .entry ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.entry li { margin-bottom: .35em; }
.entry li::marker { color: var(--red); }
.entry .is-style-checklist { list-style: none; padding-left: 0; }
.entry .is-style-checklist li { position: relative; padding-left: 2rem; }
.entry .is-style-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.35rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center 42% / 58% no-repeat,
		var(--shield) center / contain no-repeat;
}
.entry img { border-radius: var(--radius-sm); }
.entry figure { margin: 2rem auto; }
.entry figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry blockquote { border-left: 4px solid var(--red); margin: 2rem auto; padding: .5rem 0 .5rem 1.4rem; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.entry .wp-block-buttons { margin: 1.8rem auto; }
.entry .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.entry .wp-block-media-text { gap: 0; }
.entry .wp-block-media-text .wp-block-media-text__content { padding: 0 0 0 clamp(1.5rem, 5vw, 4.5rem); }
.entry .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding: 0 clamp(1.5rem, 5vw, 4.5rem) 0 0; }
.entry .wp-block-media-text__media { position: relative; z-index: 0; }
.entry .wp-block-media-text__media::before {
	/* Versetzter Rahmen mit Mauerwerk – Anspielung auf die Mauer im Logo */
	content: ""; position: absolute; z-index: -1; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border-radius: var(--radius); background: var(--aqua) var(--bricks-silver);
}
.entry .has-media-on-the-right .wp-block-media-text__media::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.entry .wp-block-media-text__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 600px) {
	.entry .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { padding: 2.5rem 0 0 !important; }
	.entry .wp-block-media-text__media::before { inset: .75rem -.75rem -.75rem .75rem !important; }
}
.entry .wp-block-gallery { gap: .8rem; }
.entry .wp-block-gallery .wp-block-image img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease), filter .3s; }
.entry .wp-block-gallery .wp-block-image a { display: block; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.entry .wp-block-gallery .wp-block-image a:hover img { transform: scale(1.04); filter: brightness(1.05); }
.entry .wp-block-group.has-background { border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.entry .wp-block-group.alignfull.has-background { border-radius: 0; padding-inline: var(--gutter); }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--silver-200); margin: 3rem auto; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border-bottom: 1px solid var(--silver-200); padding: .6rem .4rem; text-align: left; }
.entry .cards { max-width: var(--container); margin-block: 2.5rem; }
.entry > .contact-form-wrap, .entry > .contact-list { max-width: var(--content); }
.entry .has-large-font-size { line-height: 1.6; color: var(--navy); }

/* Leistung-Detail */
.leistung-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.leistung-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-card { background: var(--paper) var(--bricks-silver); border: 1px solid var(--silver-200); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.75rem; }
.aside-card__title { font-size: 1.35rem; margin-bottom: .5rem; }
.aside-card p { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) {
	.leistung-layout { grid-template-columns: 1fr; }
	.leistung-aside { position: static; }
}

/* ---------- Kontaktdaten ---------- */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.5; }
.contact-list small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.contact-list a { color: inherit; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.contact-list__icon { display: grid; place-items: center; flex: none; width: 38px; height: 44px; background: var(--shield) center / contain no-repeat; color: #fff; }
.contact-list__icon .icon { width: 16px; height: 16px; margin-top: -3px; }
.contact-list--card { margin-top: 1.5rem; background: var(--paper) var(--bricks-silver); border: 1px solid var(--silver-200); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.75rem; gap: 1.4rem; }
.contact-list--compact { gap: .9rem; font-size: .92rem; }
.contact-list--compact .contact-list__icon { width: 32px; height: 37px; }

/* ---------- Formular ---------- */
.contact-form-wrap { background: #fff; border: 1px solid var(--silver-200); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row--2 { grid-template-columns: 1fr; gap: 0; } }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--navy); }
.field input:not([type="checkbox"]), .field select, .field textarea {
	width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
	padding: .8rem 1rem; border: 1.5px solid var(--silver); border-radius: var(--radius-sm); background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(86, 162, 222, .2); }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--navy); flex: none; }
.field--check label { font-weight: 400; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.form-submit small { color: var(--muted); }
.form-msg { display: flex; gap: .6rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 600; font-size: .93rem; }
.form-msg--ok { background: #e7f5ec; color: #17603a; }
.form-msg--err { background: #fdecea; color: #9b1c1c; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.cta__inner {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius);
	background: var(--bricks-white), linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff;
	border-left: 6px solid var(--red);
}
.cta__inner::before {
	content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 260px; height: 300px;
	background: var(--shield) center / contain no-repeat; opacity: .35; transform: rotate(-8deg);
}
.cta__copy { max-width: 620px; }
.cta__title { color: #fff; margin: 0 0 .5rem; }
.cta__text { margin: 0; color: rgba(255, 255, 255, .82); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bricks-white), var(--navy-900); color: rgba(255, 255, 255, .72); font-size: .92rem; border-top: 4px solid var(--red); }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #8fc6ee; }
.site-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.site-footer .brand-logo, .site-footer .custom-logo-link { display: inline-block; background: #fff; padding: .8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.site-footer .brand-logo img, .site-footer .custom-logo { height: 54px; }
.footer-col--brand p { max-width: 380px; }
.footer-title { font-family: var(--font); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: .4rem 0 1.3rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-list--footer small { color: rgba(255, 255, 255, .5); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.legal-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
@media (max-width: 860px) { .site-footer__main { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(10, 18, 32, .94); padding: 4rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
.lb-open { overflow: hidden; }

/* ---------- Sonstiges ---------- */
.post-list { display: grid; gap: 2rem; max-width: var(--content); }
.post-item__date { color: var(--muted); font-size: .9rem; margin: 0 0 .3rem; }
.post-item__title { font-size: 1.5rem; }
.post-item__title a { text-decoration: none; color: var(--navy); }
.notice-editor { padding: 1rem 1.2rem; border: 2px dashed var(--red); border-radius: var(--radius-sm); background: #fff6f5; }
.has-text-align-center { text-align: center; }
.wp-block-image.is-style-rounded img { border-radius: 999px; }
