/*
Theme Name:   ARTECH Blueprint
Theme URI:    https://artech-consulting.de
Description:  Modernes Design für ARTECH Consulting (CAD & PLM) – Child-Theme von Kadence. Inhalte bleiben normale WordPress-Blöcke; Gestaltung und Interaktion kommen ausschließlich aus diesem Theme.
Author:       ARTECH Consulting GmbH
Template:     kadence
Version:      1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain:  artech-blueprint
*/

/* ==========================================================================
   1. Design tokens  (Farben aus dem ARTECH-Logo)
   ========================================================================== */
:root {
	--ab-ink: #231f20;          /* „TECH“ */
	--ab-blue: #22429b;         /* „AR“ */
	--ab-blue-light: #8fa8ff;   /* Blau auf dunklem Grund */
	--ab-red: #a61e34;          /* drei Streifen im „E“ */
	--ab-red-light: #ff5a72;
	--ab-grey: #8a8b8c;         /* „CONSULTING“ */
	--ab-paper: #f5f6f8;
	--ab-line: #e2e5eb;
	--ab-night: #0c1229;
	--ab-night-2: #131c3f;
	--ab-grid: rgba(143, 168, 255, .09);
	--ab-grid-strong: rgba(143, 168, 255, .17);
	--ab-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
	--ab-radius: 4px;
	--ab-shadow: 0 18px 40px -22px rgba(12, 18, 41, .45);
	--ab-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Blueprint grid used on dark surfaces */
.ab-blueprint, .is-style-ab-blueprint,
.ab-hero,
.ab-lifecycle,
.ab-cta,
.entry-hero.page-hero-section .entry-hero-container-inner,
.site-footer .site-middle-footer-wrap {
	background-color: var(--ab-night) !important;
	background-image:
		linear-gradient(var(--ab-grid-strong) 1px, transparent 1px),
		linear-gradient(90deg, var(--ab-grid-strong) 1px, transparent 1px),
		linear-gradient(var(--ab-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--ab-grid) 1px, transparent 1px) !important;
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px !important;
	background-position: -1px -1px !important;
	color: #e9edf8;
}

::selection { background: var(--ab-blue); color: #fff; }

body { background: var(--ab-paper); color: var(--ab-ink); }

/* ==========================================================================
   2. Signature: die drei roten Streifen aus dem Logo
   ========================================================================== */
.ab-stripes::before,
:is(.ab-eyebrow, .is-style-ab-eyebrow)::before,
.entry-content > h2.wp-block-heading::before,
.entry-hero .entry-title::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 13px;
	margin-right: .6em;
	vertical-align: .08em;
	background: repeating-linear-gradient(to bottom, var(--ab-red) 0 3px, transparent 3px 5px);
}

:is(.ab-eyebrow, .is-style-ab-eyebrow) {
	font-family: var(--ab-mono) !important;
	font-size: .78rem !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ab-blue) !important;
	margin-bottom: .6rem !important;
}
.ab-hero :is(.ab-eyebrow, .is-style-ab-eyebrow), .ab-lifecycle :is(.ab-eyebrow, .is-style-ab-eyebrow), .ab-cta :is(.ab-eyebrow, .is-style-ab-eyebrow) { color: var(--ab-blue-light) !important; }

.ab-mono { font-family: var(--ab-mono); letter-spacing: .04em; }

/* ==========================================================================
   3. Kopfbereich
   ========================================================================== */
#masthead .site-main-header-wrap .site-header-row-container-inner {
	background: rgba(255, 255, 255, .92) !important;
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--ab-line);
	transition: box-shadow .3s var(--ab-ease);
}
body.ab-scrolled #masthead .site-main-header-wrap .site-header-row-container-inner { box-shadow: 0 8px 24px -16px rgba(12, 18, 41, .35); }

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	position: relative;
	font-weight: 500;
	color: var(--ab-ink);
	letter-spacing: .01em;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a::after {
	content: "";
	position: absolute;
	left: var(--global-menu-padding, 1em); right: 100%; bottom: .55em;
	height: 2px;
	background: var(--ab-red);
	transition: right .3s var(--ab-ease);
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a::after,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a::after { right: calc(var(--global-menu-padding, 1em) + 1.2em); }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: var(--ab-blue); }

.header-navigation .header-menu-container ul ul.sub-menu {
	border-top: 3px solid var(--ab-blue);
	box-shadow: var(--ab-shadow);
	border-radius: 0 0 var(--ab-radius) var(--ab-radius);
	background: #fff;
}
.header-navigation .header-menu-container ul ul li.menu-item > a { color: var(--ab-ink); font-size: .92rem; }
.header-navigation .header-menu-container ul ul li.menu-item > a:hover { color: var(--ab-blue); background: var(--ab-paper); }

/* Lesefortschritt (Artikel) */
.ab-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 100%;
	transform-origin: 0 50%; transform: scaleX(0);
	background: linear-gradient(90deg, var(--ab-blue), var(--ab-red));
	z-index: 10000; pointer-events: none;
}
body.admin-bar .ab-progress { top: 32px; }

/* ==========================================================================
   4. Titelbereich der Unterseiten (dunkles Konstruktionsraster)
   ========================================================================== */
.entry-hero.page-hero-section .entry-hero-container-inner { position: relative; overflow: hidden; }
.entry-hero.page-hero-section .hero-section-overlay { background: radial-gradient(1200px 300px at 85% 10%, rgba(34, 66, 155, .45), transparent 60%) !important; opacity: 1 !important; }
.entry-hero.page-hero-section .entry-hero-container-inner::after {
	content: "ARTECH / " attr(data-ab-ref);
	position: absolute; right: 24px; bottom: 14px;
	font-family: var(--ab-mono); font-size: .7rem; letter-spacing: .14em;
	color: rgba(143, 168, 255, .55);
}
.entry-hero .entry-header { position: relative; z-index: 2; }
.entry-hero .entry-title {
	color: #fff !important;
	font-size: clamp(1.9rem, 3.6vw, 3rem) !important;
	letter-spacing: -.02em;
	line-height: 1.12 !important;
}
.entry-hero .kadence-breadcrumbs,
.entry-hero .kadence-breadcrumbs a {
	font-family: var(--ab-mono);
	font-size: .78rem;
	letter-spacing: .06em;
	color: rgba(233, 237, 248, .72) !important;
}
.entry-hero .kadence-breadcrumbs a:hover { color: #fff !important; }

/* Beitragsbild unter dem Titel */
.content-area .post-thumbnail img,
.entry-content-wrap .post-thumbnail img { border-radius: var(--ab-radius); }

/* ==========================================================================
   5. Inhalte (Überschriften, Listen, Tabellen, Kästen)
   ========================================================================== */
.entry-content h2.wp-block-heading { letter-spacing: -.015em; margin-top: 2.2em; }
.entry-content h3.wp-block-heading { letter-spacing: -.01em; }
.entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--ab-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover { color: var(--ab-red); }

/* Aufzählungen: kleine blaue Quadrate */
.entry-content ul.wp-block-list { list-style: none; padding-left: 1.3em; }
.entry-content ul.wp-block-list > li { position: relative; margin: .35em 0; }
.entry-content ul.wp-block-list > li::before {
	content: ""; position: absolute; left: -1.2em; top: .62em;
	width: 7px; height: 7px; background: var(--ab-blue);
}
.entry-content ul.wp-block-list > li:hover::before { background: var(--ab-red); }

/* Technisches Datenblatt: Spaltenüberschriften auf Trainings-/Workshopseiten */
.entry-content > .wp-block-columns { gap: 0 !important; border: 1px solid var(--ab-line); background: #fff; border-radius: var(--ab-radius); margin: 1.6em 0; }
.entry-content > .wp-block-columns > .wp-block-column { padding: 1.4em 1.5em; }
.entry-content > .wp-block-columns > .wp-block-column + .wp-block-column { border-left: 1px solid var(--ab-line); }
.entry-content > .wp-block-columns > .wp-block-column > h3.wp-block-heading:first-child {
	font-family: var(--ab-mono);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ab-blue);
	padding-bottom: .7em;
	margin-bottom: .9em;
	border-bottom: 1px dashed var(--ab-line);
}
@media (max-width: 781px) {
	.entry-content > .wp-block-columns > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--ab-line); }
}

/* Alte graue Titelkästen → dunkle „Zeichnungskopf“-Leiste */
.entry-content .wp-block-group.has-background[style*="#d8d8d8"], .entry-content .ab-titlebar {
	background: var(--ab-night) !important;
	color: #fff;
	border-radius: var(--ab-radius);
	border-left: 6px solid var(--ab-red);
	padding: 1.1em 1.4em !important;
}
.entry-content .wp-block-group.has-background[style*="#d8d8d8"] h3, .entry-content .ab-titlebar h3 { color: #fff; margin: 0; text-align: left !important; font-size: 1.35rem; }

/* Tabellen */
.entry-content .wp-block-table table { border-collapse: collapse; background: #fff; border: 1px solid var(--ab-line); }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 1px solid var(--ab-line); padding: .7em .9em; }
.entry-content .wp-block-table tr:first-child td { background: var(--ab-night); color: #fff; font-weight: 600; }
.entry-content .wp-block-table tr:first-child td a { color: #fff; }
.entry-content .wp-block-table tr:nth-child(even):not(:first-child) td { background: var(--ab-paper); }

/* Bilder */
.entry-content .wp-block-image img { border-radius: var(--ab-radius); }

/* Buttons */
.wp-block-button__link, .wp-element-button, .button, button.wpcf7-submit, input[type="submit"] {
	border-radius: 3px !important;
	font-weight: 600 !important;
	letter-spacing: .02em;
	transition: transform .2s var(--ab-ease), background-color .2s, box-shadow .2s !important;
}
.wp-block-button__link:hover, .wp-element-button:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--ab-blue); color: #fff; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover { background: var(--ab-red); }

/* Formulare */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	border: 1px solid var(--ab-line); border-radius: 3px; background: #fff; padding: .7em .8em;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 2px solid var(--ab-blue); outline-offset: 1px; }

/* ==========================================================================
   6. Startseite – Bausteine
   ========================================================================== */
.ab-section { padding-top: clamp(3.5rem, 7vw, 6.5rem) !important; padding-bottom: clamp(3.5rem, 7vw, 6.5rem) !important; }
.ab-section-head { max-width: 720px; margin-bottom: 2.4rem !important; }
.ab-section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important; letter-spacing: -.025em; line-height: 1.1 !important; margin-top: 0 !important; }
.ab-section-head h2::before { display: none !important; }
.ab-lead { font-size: 1.15rem !important; color: #4b5266; }
.ab-hero .ab-lead, .ab-lifecycle .ab-lead, .ab-cta .ab-lead { color: rgba(233, 237, 248, .82) !important; }

/* --- Hero / CAD-Ansichtsfenster --- */
.ab-hero { position: relative; overflow: hidden; margin-top: 0 !important; }
.ab-hero .ab-hero-main { align-items: center !important; min-height: min(64vh, 600px); padding: 2.5rem 0 1.5rem; }
.ab-hero h1 {
	color: #fff !important;
	font-size: clamp(2.4rem, 5.4vw, 4.6rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -.035em;
	margin: .2em 0 .35em !important;
}
.ab-hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.ab-hero .wp-block-button__link, .ab-cta .wp-block-button__link { background: #fff !important; color: var(--ab-ink) !important; }
.ab-hero .wp-block-button__link:hover, .ab-cta .wp-block-button__link:hover { background: var(--ab-red) !important; color: #fff !important; }
.ab-hero .is-style-outline .wp-block-button__link, .ab-cta .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .6) !important; }
.ab-hero .is-style-outline .wp-block-button__link:hover, .ab-cta .is-style-outline .wp-block-button__link:hover { border-color: #fff !important; background: rgba(255, 255, 255, .08) !important; }

.ab-viewport {
	position: relative;
	aspect-ratio: 5 / 4;
	max-height: 470px;
	border: 1px solid rgba(143, 168, 255, .25);
	border-radius: 6px;
	background: radial-gradient(closest-side, rgba(34, 66, 155, .35), transparent) !important;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}
.ab-viewport:active { cursor: grabbing; }
.ab-viewport .wp-block-group__inner-container, .ab-viewport > p { display: none; } /* Platzhaltertext im Editor */
.ab-viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-hud {
	position: absolute; z-index: 2; pointer-events: none;
	font-family: var(--ab-mono); font-size: .68rem; letter-spacing: .12em;
	color: rgba(143, 168, 255, .85); text-transform: uppercase;
}
.ab-hud--tl { top: 12px; left: 14px; }
.ab-hud--tr { top: 12px; right: 14px; text-align: right; }
.ab-hud--bl { bottom: 12px; left: 14px; }
.ab-hud--br { bottom: 12px; right: 14px; color: var(--ab-red-light); }
.ab-hud b { color: #fff; font-weight: 500; }
.ab-viewport-hint {
	position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
	font-family: var(--ab-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
	color: rgba(233, 237, 248, .55); pointer-events: none; transition: opacity .6s;
}
.ab-viewport.is-touched .ab-viewport-hint { opacity: 0; }

/* --- Software-Laufband --- */
.ab-marquee { overflow: hidden; border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line); background: #fff; padding: 1.4rem 0 !important; }
.ab-marquee .ab-track { display: flex; width: max-content; gap: 3.5rem; animation: ab-marquee 38s linear infinite; }
.ab-marquee:hover .ab-track { animation-play-state: paused; }
.ab-marquee p {
	margin: 0 !important; white-space: nowrap;
	font-family: var(--global-heading-font-family, inherit);
	font-size: clamp(1.6rem, 3.2vw, 2.6rem) !important; font-weight: 700; letter-spacing: -.02em;
	color: transparent; -webkit-text-stroke: 1px var(--ab-ink);
	transition: color .25s;
}
.ab-marquee p:hover { color: var(--ab-blue); -webkit-text-stroke-color: var(--ab-blue); }
.ab-marquee p::after { content: "◆"; font-size: .4em; vertical-align: middle; margin-left: 3.5rem; color: var(--ab-red); -webkit-text-stroke: 0; }
@keyframes ab-marquee { to { transform: translateX(-50%); } }

/* --- Karten mit CAD-Eckmarken --- */
:is(.ab-card, .is-style-ab-card) {
	position: relative; height: 100%;
	background: #fff !important;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius);
	padding: 1.8rem 1.6rem 1.6rem !important;
	transition: transform .35s var(--ab-ease), box-shadow .35s var(--ab-ease), border-color .35s;
}
:is(.ab-card, .is-style-ab-card)::before, :is(.ab-card, .is-style-ab-card)::after {
	content: ""; position: absolute; width: 14px; height: 14px;
	border-color: var(--ab-blue); border-style: solid; opacity: 0; transition: opacity .3s, inset .3s var(--ab-ease);
}
:is(.ab-card, .is-style-ab-card)::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
:is(.ab-card, .is-style-ab-card)::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
:is(.ab-card, .is-style-ab-card):hover { transform: translateY(-6px); box-shadow: var(--ab-shadow); border-color: transparent; }
:is(.ab-card, .is-style-ab-card):hover::before, :is(.ab-card, .is-style-ab-card):hover::after { opacity: 1; }
:is(.ab-card, .is-style-ab-card) .ab-num { font-family: var(--ab-mono); font-size: .75rem; letter-spacing: .14em; color: var(--ab-red) !important; margin: 0 0 1.2rem !important; }
:is(.ab-card, .is-style-ab-card) h3 { font-size: 1.35rem !important; margin: 0 0 .6rem !important; }
:is(.ab-card, .is-style-ab-card) h3 a { color: var(--ab-ink) !important; text-decoration: none !important; }
:is(.ab-card, .is-style-ab-card) h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
:is(.ab-card, .is-style-ab-card) p { color: #4b5266; font-size: .97rem; }
:is(.ab-card, .is-style-ab-card) .ab-more { margin-top: 1rem !important; font-family: var(--ab-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ab-blue) !important; }
:is(.ab-card, .is-style-ab-card) .ab-more::after { content: " →"; display: inline-block; transition: transform .3s var(--ab-ease); }
:is(.ab-card, .is-style-ab-card):hover .ab-more::after { transform: translateX(6px); }
:is(.ab-card, .is-style-ab-card) .wp-block-image { margin: -1.8rem -1.6rem 1.3rem !important; overflow: hidden; border-radius: var(--ab-radius) var(--ab-radius) 0 0; }
:is(.ab-card, .is-style-ab-card) .wp-block-image img { border-radius: 0 !important; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .6s var(--ab-ease); }
:is(.ab-card, .is-style-ab-card):hover .wp-block-image img { transform: scale(1.05); }
.ab-cards > .wp-block-column { display: flex; }
.ab-cards > .wp-block-column > * { flex: 1; }

/* --- Kennzahlen --- */
.ab-facts { border-top: 1px solid var(--ab-line); }
.ab-facts .wp-block-column { border-left: 1px solid var(--ab-line); padding: 1.2rem 1.4rem; }
.ab-facts .wp-block-column:first-child { border-left: 0; }
.ab-facts .ab-figure { font-family: var(--global-heading-font-family, inherit); font-size: clamp(2.4rem, 5vw, 3.6rem) !important; font-weight: 700; letter-spacing: -.04em; line-height: 1 !important; color: var(--ab-blue) !important; margin: 0 0 .4rem !important; }
.ab-facts .ab-figure-label { font-family: var(--ab-mono); font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase; color: #5b6275 !important; margin: 0 !important; }

/* --- Produktlebenszyklus --- */
.ab-lifecycle { overflow: hidden; }
.ab-lifecycle h2 { color: #fff !important; }
.ab-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 2.5rem 0 2rem; }
.ab-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 23px; height: 2px; background: rgba(143, 168, 255, .25); }
.ab-steps::after { content: ""; position: absolute; left: 10%; top: 23px; height: 2px; width: calc(var(--ab-progress, 0) * 80%); background: linear-gradient(90deg, var(--ab-blue-light), var(--ab-red-light)); transition: width .5s var(--ab-ease); }
.ab-step {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: .8rem;
	background: none; border: 0; padding: 0 .4rem; cursor: pointer; color: rgba(233, 237, 248, .65);
	font: inherit; text-align: center;
}
.ab-step .ab-node {
	width: 48px; height: 48px; display: grid; place-items: center;
	border-radius: 50%; border: 2px solid rgba(143, 168, 255, .45); background: var(--ab-night);
	font-family: var(--ab-mono); font-size: .8rem; color: var(--ab-blue-light);
	transition: all .35s var(--ab-ease);
}
.ab-step .ab-step-label { font-size: .92rem; font-weight: 600; line-height: 1.25; }
.ab-step:hover, .ab-step:focus-visible { color: #fff; }
.ab-step:focus-visible { outline: none; }
.ab-step:focus-visible .ab-node { box-shadow: 0 0 0 4px rgba(143, 168, 255, .35); }
.ab-step[aria-selected="true"] { color: #fff; }
.ab-step[aria-selected="true"] .ab-node { background: var(--ab-red); border-color: var(--ab-red); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(166, 30, 52, .18); }
.ab-step.is-done .ab-node { border-color: var(--ab-blue-light); background: rgba(143, 168, 255, .15); }
.ab-stages .ab-stage {
	display: none;
	border: 1px solid rgba(143, 168, 255, .22); border-radius: 6px;
	background: rgba(19, 28, 63, .72); backdrop-filter: blur(4px);
	padding: 2rem 2.2rem !important;
	animation: ab-fade .45s var(--ab-ease);
}
.ab-stages .ab-stage.is-active { display: block; }
.ab-lifecycle.no-js .ab-stages .ab-stage, .ab-stages.no-js > .ab-stage { display: block; margin-bottom: 1rem; }
.ab-stage h3 { color: #fff !important; font-size: 1.5rem !important; margin-top: 0 !important; }
.ab-stage p { color: rgba(233, 237, 248, .85); max-width: 70ch; }
.ab-stage a { color: var(--ab-blue-light) !important; font-family: var(--ab-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.ab-stage a:hover { color: #fff !important; }
.ab-stage .ab-tags { font-family: var(--ab-mono); font-size: .74rem !important; letter-spacing: .1em; color: var(--ab-red-light) !important; text-transform: uppercase; }
@keyframes ab-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 781px) {
	.ab-steps { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
	.ab-step { scroll-snap-align: center; }
	.ab-step .ab-step-label { font-size: .78rem; }
	.ab-stages .ab-stage { padding: 1.4rem !important; }
}

/* --- Wissen & Impulse (Query Loop) --- */
.ab-news .wp-block-post { position: relative; background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); overflow: hidden; transition: transform .35s var(--ab-ease), box-shadow .35s; display: flex; flex-direction: column; }
.ab-news .wp-block-post:hover { transform: translateY(-6px); box-shadow: var(--ab-shadow); }
.ab-news .wp-block-post-featured-image { margin: 0 !important; overflow: hidden; }
.ab-news .wp-block-post-featured-image img { transition: transform .6s var(--ab-ease); }
.ab-news .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.ab-news .wp-block-post-date { font-family: var(--ab-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ab-red); padding: 1.2rem 1.4rem 0; }
.ab-news .wp-block-post-title { font-size: 1.15rem !important; padding: .4rem 1.4rem 0; margin: 0 !important; line-height: 1.3; }
.ab-news .wp-block-post-title a { color: var(--ab-ink); text-decoration: none; }
.ab-news .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.ab-news .wp-block-post-excerpt { padding: .2rem 1.4rem 1.4rem; color: #4b5266; font-size: .93rem; }
.ab-news .wp-block-post-excerpt__more-text { display: none; }

/* --- Abschluss-Band --- */
.ab-cta { position: relative; overflow: hidden; }
.ab-cta::after {
	content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
	width: 380px; height: 190px; opacity: .9;
	background: repeating-linear-gradient(to bottom, var(--ab-red) 0 40px, transparent 40px 75px);
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.ab-cta h2 { color: #fff !important; font-size: clamp(1.8rem, 3.6vw, 3rem) !important; letter-spacing: -.025em; position: relative; z-index: 1; }
.ab-cta .wp-block-group__inner-container, .ab-cta > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .ab-cta::after { width: 180px; height: 90px; opacity: .35; } }

/* ==========================================================================
   7. Fußbereich
   ========================================================================== */
.site-footer .site-middle-footer-wrap { color: rgba(233, 237, 248, .78); }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { background: #070b1b !important; }
.site-footer, .site-footer p, .site-footer .widget-title, .site-footer h2, .site-footer h3 { color: #fff; }
.site-footer .site-middle-footer-wrap p { color: rgba(233, 237, 248, .78); }
.site-footer h3.wp-block-heading { font-size: 1rem; font-family: var(--ab-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-blue-light) !important; }
.site-footer a { color: #fff !important; }
.site-footer a:hover { color: var(--ab-red-light) !important; }
.site-footer .footer-html, .site-footer .footer-navigation a { font-family: var(--ab-mono); font-size: .76rem; letter-spacing: .08em; }
.site-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, .08) !important; }
.site-footer .wp-block-social-links .wp-social-link:hover { background: var(--ab-red) !important; }

/* Nach-oben-Knopf */
#kt-scroll-up, .scroll-up-wrap .scroll-up-button { background: var(--ab-blue) !important; border-radius: 3px !important; }

/* ==========================================================================
   8. Einblend-Animationen
   ========================================================================== */
.ab-js .ab-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ab-ease), transform .8s var(--ab-ease); }
.ab-js .ab-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ab-js .ab-reveal { opacity: 1; transform: none; }
	.ab-marquee .ab-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

@media (max-width: 781px) {
	.ab-hero .ab-hero-main { min-height: 0; padding: 2rem 0 1.5rem; }
	.ab-viewport { aspect-ratio: 4 / 3; }
	.ab-facts .wp-block-column { border-left: 0; border-top: 1px solid var(--ab-line); }
	.entry-hero.page-hero-section .entry-hero-container-inner::after { display: none; }
}

/* Seitenränder für Abschnitte der Startseite (volle Breite) */
.home .entry-content > .wp-block-group, .content-width-fullwidth .entry-content > .wp-block-group { padding-left: clamp(1rem, 4vw, 2.5rem) !important; padding-right: clamp(1rem, 4vw, 2.5rem) !important; }
.home .entry-content > .wp-block-group.ab-marquee, .content-width-fullwidth .entry-content > .wp-block-group.ab-marquee { padding-left: 0 !important; padding-right: 0 !important; }
.ab-news .wp-block-post:not(:has(.wp-block-post-featured-image img))::before {
	content: ""; display: block; aspect-ratio: 16 / 9;
	background-color: var(--ab-night);
	background-image: linear-gradient(var(--ab-grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid-strong) 1px, transparent 1px), repeating-linear-gradient(to bottom, var(--ab-red) 0 6px, transparent 6px 11px);
	background-size: 40px 40px, 40px 40px, 44px 28px;
	background-position: 0 0, 0 0, 24px 24px;
	background-repeat: repeat, repeat, no-repeat;
}
/* Lesbare Zeilenlänge für Fließtext auf Unterseiten */
body:not(.home) .entry-content > :is(p, h2, h3, h4, h5, ul, ol, blockquote, .wp-block-quote) { max-width: 46rem; }
body:not(.home) .entry-content > p { font-size: 1.05rem; }
body:not(.home) .entry-content > p > strong:only-child { display: block; font-family: var(--global-heading-font-family, inherit); font-size: 1.3rem; color: var(--ab-ink); margin-top: 1.4em; letter-spacing: -.01em; }
/* Kennzahlen im Hero (sofort sichtbar) */
.ab-hero .ab-facts { border-top: 1px solid rgba(143, 168, 255, .22); margin: 0 0 0 !important; padding: .4rem 0 1.6rem; }
.ab-hero .ab-facts .wp-block-column { border-left: 1px solid rgba(143, 168, 255, .18); padding: 1rem 1.4rem .2rem; }
.ab-hero .ab-facts .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.ab-hero .ab-facts .ab-figure { color: #fff !important; font-size: clamp(2rem, 4vw, 3.1rem) !important; }
.ab-hero .ab-facts .ab-figure-label { color: rgba(233, 237, 248, .7) !important; }
@media (max-width: 781px) {
	.ab-hero .ab-facts { display: grid !important; grid-template-columns: 1fr 1fr; }
	.ab-hero .ab-facts .wp-block-column { border-left: 0; border-top: 1px solid rgba(143, 168, 255, .18); padding: .9rem .4rem .2rem; }
}
.ab-lifecycle { padding-top: clamp(3rem, 5vw, 4.5rem) !important; }
/* Beitragsbild auf Unterseiten: so breit wie die Textspalte */
body:not(.home) .entry-content-wrap > .post-thumbnail, body:not(.home) .content-area .post-thumbnail { max-width: 46rem; margin-bottom: 2rem; border-radius: var(--ab-radius); overflow: hidden; }body:not(.home) .post-thumbnail .post-thumbnail-inner { padding-bottom: 0 !important; height: auto !important; position: static !important; }
body:not(.home) .post-thumbnail img { position: static !important; display: block; width: 100% !important; height: auto !important; aspect-ratio: 2 / 1; object-fit: cover; }
/* ==========================================================================
   9. Geteilter Kopfbereich für Unterseiten mit Beitragsbild
   ========================================================================== */
.ab-split .entry-hero.page-hero-section .entry-hero-container-inner { min-height: 0 !important; }
.ab-split .entry-hero.page-hero-section .entry-hero-container-inner::after { display: none; }
.ab-split .entry-hero .hero-container, .ab-split .entry-hero .entry-header { width: 100%; }
.ab-split-hero {
	display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center; padding: clamp(2.2rem, 5vw, 3.8rem) 0; text-align: left;
}
.ab-crumbs { font-family: var(--ab-mono); font-size: .76rem; letter-spacing: .06em; color: rgba(233, 237, 248, .6); }
.ab-crumbs a { color: rgba(233, 237, 248, .78) !important; text-decoration: none; }
.ab-crumbs a:hover { color: #fff !important; }
.ab-split-text .entry-title { margin: .55em 0 .5em !important; font-size: clamp(2rem, 4.2vw, 3.4rem) !important; line-height: 1.06 !important; letter-spacing: -.03em; }
.ab-split-lead p { color: rgba(233, 237, 248, .86); font-size: 1.12rem; line-height: 1.7; max-width: 36rem; margin: 0; }
.ab-split-lead a { color: var(--ab-blue-light) !important; }
.ab-viewport--image { aspect-ratio: 4 / 3; max-height: 430px; background: var(--ab-night) !important; cursor: crosshair; }
.ab-viewport--image .ab-viewport-img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important;
	transform: none;
	transition: transform .5s var(--ab-ease);
}
.ab-viewport--image::after { /* Fadenkreuz folgt der Maus */
	content: ""; position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 26px; height: 26px; transform: translate(-50%, -50%);
	background: linear-gradient(var(--ab-red-light), var(--ab-red-light)) center / 1px 100% no-repeat, linear-gradient(var(--ab-red-light), var(--ab-red-light)) center / 100% 1px no-repeat;
	opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3;
}
.ab-viewport--image:hover::after { opacity: .9; }
.ab-split .content-area { margin-top: clamp(2rem, 4vw, 3rem) !important; }
@media (max-width: 900px) {
	.ab-split-hero { grid-template-columns: 1fr; padding: 1.8rem 0 2.2rem; }
	.ab-viewport--image { aspect-ratio: 16 / 10; }
}
/* Plot-Illustration (Inline-SVG) im Ansichtsfenster */
.ab-plot .ab-plot-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-plot .ab-plot-svg text { transition: opacity .8s; }

.ab-plot .ab-plot-svg :is(.l, .r) { transition: stroke .2s, stroke-width .2s; }
.ab-plot .ab-plot-svg.is-plotted .l:hover { stroke: #fff; stroke-width: 4.5; }
.ab-plot .ab-plot-svg.is-plotted .r:hover { stroke: #ffd0d8; stroke-width: 5; }

/* Kompakter Produktlebenszyklus rechts im Kopfbereich (Leistungsseite) */
.ab-split-hero.has-aside { grid-template-columns: .9fr 1.1fr; }
.ab-split-aside .ab-lifecycle { background: none !important; padding: 0 !important; margin: 0 !important; }
.ab-split-aside .ab-eyebrow { margin-bottom: .2rem !important; }
.ab-split-aside .ab-steps { margin: .8rem 0 1rem; }
.ab-split-aside .ab-steps::before, .ab-split-aside .ab-steps::after { top: 19px; }
.ab-split-aside .ab-step .ab-node { width: 40px; height: 40px; font-size: .72rem; }
.ab-split-aside .ab-step .ab-step-label { font-size: .74rem; }
.ab-split-aside .ab-stages { min-height: 250px; }
.ab-split-aside .ab-stage { padding: 1.4rem 1.5rem !important; }
.ab-split-aside .ab-stage h3 { font-size: 1.25rem !important; }
.ab-split-aside .ab-stage p { font-size: .97rem; }
@media (max-width: 900px) { .ab-split-hero.has-aside { grid-template-columns: 1fr; } .ab-split-aside .ab-stages { min-height: 0; } }

/* 3D-Bauteil im Kopfbereich der Unterseiten */
.ab-split-media .ab-viewport--model { aspect-ratio: 4 / 3; max-height: 430px; }
/* Alter Titelkasten direkt unter dem neuen Kopfbereich wiederholt nur den Titel */
.ab-split .entry-content > .ab-titlebar:first-child { display: none; }

/* Rasterspalten dürfen nicht breiter als der Bildschirm werden */
.ab-split-hero > * { min-width: 0; }
.ab-split-aside .ab-steps { overflow-x: auto; scrollbar-width: none; }
.ab-split-aside .ab-eyebrow { white-space: normal; }

/* ==========================================================================
   10. Illustrations-Animationen (laufen nach dem Einplotten in Schleife)
   ========================================================================== */
.ab-plot [class*="a-"] { transform-box: fill-box; transform-origin: center; }
.ab-plot .a-fill, .ab-plot .a-slide { transform-origin: left center; }
.ab-plot .a-cw     { animation: ab-spin 16s linear infinite; }
.ab-plot .a-ccw    { animation: ab-spin 11s linear infinite reverse; }
.ab-plot .a-gear1  { animation: ab-spin 22s linear infinite; }
.ab-plot .a-gear2  { animation: ab-spin 15s linear infinite reverse; }
.ab-plot .a-swing  { animation: ab-swing 6s ease-in-out infinite; }
.ab-plot .a-float  { animation: ab-float 4.2s ease-in-out infinite; }
.ab-plot .a-bob    { animation: ab-bob 3s ease-in-out infinite; }
.ab-plot .a-pulse  { animation: ab-pulse 2.6s ease-in-out infinite; }
.ab-plot .a-tap    { animation: ab-tap 2.6s ease-in-out infinite; }
.ab-plot .a-nudge  { animation: ab-nudge 2.2s ease-in-out infinite; }
.ab-plot .a-flow   { animation: ab-flow 1.1s linear infinite; }
.ab-plot .a-flow.a-rev { animation-direction: reverse; }
.ab-plot .a-zebra  { animation: ab-zebra-move 6s ease-in-out infinite alternate; }
.ab-plot .a-zebra .zb { animation: ab-zebra 2.4s linear infinite; }
.ab-plot .a-fill   { animation: ab-fill 6s ease-in-out infinite; }
.ab-plot .a-seq    { animation: ab-seq 4.5s ease-in-out infinite; }
.ab-plot .a-seq2   { animation-delay: 1.5s; }
.ab-plot .a-seq3   { animation-delay: 3s; }
.ab-plot .a-extrude { animation: ab-extrude 3.4s cubic-bezier(.3,.6,.3,1) infinite; }
.ab-plot .a-scale  { animation: ab-scale 8s ease-in-out infinite; }
.ab-plot .a-slide  { animation: ab-slide 8s ease-in-out infinite; }
.ab-plot .a-alt1   { animation: ab-alt1 8s step-end infinite; }
.ab-plot .a-alt2   { animation: ab-alt2 8s step-end infinite; }
.ab-plot .a-cursor { animation: ab-cursor 9s ease-in-out infinite; }
.ab-plot .a-blink  { animation: ab-blink 1s step-end infinite; }
.ab-plot .a-drift  { animation: ab-drift 7s ease-in-out infinite; }
.ab-plot .a-d2     { animation-delay: -2.4s; animation-duration: 8s; }
.ab-plot .a-d3     { animation-delay: -4.6s; animation-duration: 9s; }
.ab-plot .a-stamp  { animation: ab-stamp 5.5s ease-out infinite; }
.ab-plot .a-scan   { animation: ab-scan 7s ease-in-out infinite alternate; }
.ab-plot .a-write  { animation: ab-write 2.4s ease-in-out infinite; }
.ab-plot .a-orbit  { animation: ab-orbit 6s ease-in-out infinite; }

@keyframes ab-spin   { to { transform: rotate(360deg); } }
@keyframes ab-swing  { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } }
@keyframes ab-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes ab-bob    { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -26px); } }
@keyframes ab-pulse  { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .75; } }
@keyframes ab-tap    { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(.88); } }
@keyframes ab-nudge  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@keyframes ab-flow   { to { stroke-dashoffset: -26; } }
@keyframes ab-zebra  { to { stroke-dashoffset: -76; } }
@keyframes ab-zebra-move { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes ab-fill   { 0% { transform: scaleX(0); } 70%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ab-seq    { 0%, 100% { stroke: inherit; } 12%, 30% { filter: drop-shadow(0 0 6px #ff5a72); } }
@keyframes ab-extrude { 0% { transform: translate(0, 0); opacity: 1; } 75% { transform: translate(110px, -70px); opacity: .9; } 100% { transform: translate(110px, -70px); opacity: 0; } }
@keyframes ab-scale  { 0%, 10% { transform: scale(1); } 40%, 60% { transform: scale(1.5); } 90%, 100% { transform: scale(1); } }
@keyframes ab-slide  { 0%, 10% { transform: translateX(0); } 40%, 60% { transform: translateX(620px); } 90%, 100% { transform: translateX(0); } }
@keyframes ab-alt1   { 0% { opacity: 1; } 30% { opacity: 0; } 72% { opacity: 1; } }
@keyframes ab-alt2   { 0% { opacity: 0; } 30% { opacity: 1; } 72% { opacity: 0; } }
@keyframes ab-cursor { 0%, 4% { transform: translate(0, 0); } 25%, 29% { transform: translate(880px, 0); } 50%, 54% { transform: translate(880px, 460px); } 75%, 79% { transform: translate(0, 460px); } 100% { transform: translate(0, 0); } }
@keyframes ab-blink  { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ab-drift  { 0% { transform: translate(-30px, 24px) rotate(-6deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(60px, -44px) rotate(10deg); opacity: 0; } }
@keyframes ab-stamp  { 0%, 8% { transform: scale(1.7); opacity: 0; } 16% { transform: scale(.94); opacity: 1; } 20%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ab-scan   { from { transform: translateX(-700px); } to { transform: translateX(0); } }
@keyframes ab-write  { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-14px, 10px); } 50% { transform: translate(-4px, 18px); } 75% { transform: translate(-18px, 4px); } }
@keyframes ab-orbit  { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-40px, -30px); } 66% { transform: translate(20px, -50px); } }
@media (prefers-reduced-motion: reduce) { .ab-plot [class*="a-"] { animation: none !important; } .ab-plot .a-alt2 { opacity: 0; } }
/* Sechs Kennzahlen im Hero */
.ab-hero .ab-facts { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 0 !important; }
.ab-hero .ab-facts .wp-block-column { padding: 1rem 1.1rem .2rem; }
.ab-hero .ab-facts .ab-figure { font-size: clamp(1.8rem, 3vw, 2.6rem) !important; white-space: nowrap; }
.ab-hero .ab-facts .ab-figure-label { font-size: .7rem !important; line-height: 1.4; }
@media (max-width: 1100px) { .ab-hero .ab-facts { grid-template-columns: repeat(3, 1fr); } .ab-hero .ab-facts .wp-block-column:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .ab-hero .ab-facts { grid-template-columns: repeat(2, 1fr); } .ab-hero .ab-facts .wp-block-column { border-left: 0 !important; padding-left: 0 !important; } }
/* Kennzahlen über die volle Breite des Hero-Bereichs (randlos) */
.ab-hero .ab-facts {
	max-width: none !important; width: auto !important;
	margin-left: calc(-1 * clamp(1rem, 4vw, 2.5rem)) !important; margin-right: calc(-1 * clamp(1rem, 4vw, 2.5rem)) !important;
	padding-left: clamp(1rem, 4vw, 2.5rem) !important; padding-right: clamp(1rem, 4vw, 2.5rem) !important;
}
.ab-hero .ab-facts .wp-block-column { padding-left: clamp(.8rem, 2vw, 2rem); }
/* ==========================================================================
   11. Echte Fotos im Blaupausen-Konzept
   ========================================================================== */
/* 11a. Kopfbereich: Foto wird „gerendert“ – erst Blaupause, dann läuft eine Scanlinie und dahinter erscheint das Farbfoto */
.ab-viewport--image.ab-photo { cursor: pointer; }
.ab-viewport--image.ab-photo .ab-hud { z-index: 4; text-shadow: 0 1px 3px rgba(12, 18, 41, .9); }
.ab-viewport--image.ab-photo::before { /* dezente Abdunklung oben/unten, damit die Anzeige lesbar bleibt */
	content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: linear-gradient(rgba(12, 18, 41, .55), transparent 22%, transparent 78%, rgba(12, 18, 41, .6));
}
.ab-render-veil {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	-webkit-backdrop-filter: grayscale(1) contrast(1.2) brightness(.8); backdrop-filter: grayscale(1) contrast(1.2) brightness(.8);
	background-color: rgba(34, 66, 155, .55);
	background-image: linear-gradient(var(--ab-grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid-strong) 1px, transparent 1px);
	background-size: 28px 28px;
	clip-path: inset(0 0 0 0);
	animation: ab-render 2.4s .6s cubic-bezier(.45, 0, .25, 1) forwards;
}
.ab-render-scan {
	position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 2; pointer-events: none;
	background: var(--ab-red-light); box-shadow: 0 0 14px 3px rgba(255, 90, 114, .65);
	animation: ab-scan 2.4s .6s cubic-bezier(.45, 0, .25, 1) forwards;
}
@keyframes ab-render { to { clip-path: inset(0 0 0 100%); } }
@keyframes ab-scan { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* 11b. Fotos und Grafiken in Artikeln: wie Detailansichten auf einem Zeichnungsblatt */
.ab-article .entry-content { counter-reset: ab-detail; }
.ab-article .entry-content figure.wp-block-image {
	--c: var(--ab-blue);
	counter-increment: ab-detail;
	position: relative; padding: 14px; box-sizing: border-box;
	border: 1px solid var(--ab-line); border-radius: var(--ab-radius);
	background:
		linear-gradient(var(--c), var(--c)) top left / 18px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) top left / 2px 18px no-repeat,
		linear-gradient(var(--c), var(--c)) top right / 18px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) top right / 2px 18px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / 18px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / 2px 18px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / 18px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / 2px 18px no-repeat,
		#fff;
}
.ab-article .entry-content figure.wp-block-image img { border-radius: 0 !important; display: block; }
.ab-article .entry-content figure.wp-block-image::after { /* Kennung oben am Rahmen, wenn keine Bildunterschrift da ist */
	content: "Detail " counter(ab-detail, upper-alpha);
	position: absolute; top: 0; left: 24px; transform: translateY(-50%);
	background: #fff; padding: 0 .5em;
	font-family: var(--ab-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ab-blue);
}
.ab-article .entry-content figure.wp-block-image:has(figcaption)::after { display: none; }
.ab-article .entry-content figure.wp-block-image figcaption {
	margin: 12px 0 0 !important; padding-top: 9px; border-top: 1px dashed #c9cfdc;
	font-family: var(--ab-mono); font-size: .76rem; line-height: 1.5; letter-spacing: .02em; color: #4b5266; text-align: left;
}
.ab-article .entry-content figure.wp-block-image figcaption::before {
	content: "Detail " counter(ab-detail, upper-alpha) " — ";
	color: var(--ab-red); text-transform: uppercase; letter-spacing: .14em;
}
/* Galerien: ein gemeinsamer Rahmen, die Bilder als Ansicht A, B, C … */
.ab-article .entry-content .wp-block-gallery {
	counter-reset: ab-view; padding: 14px !important; border: 1px solid var(--ab-line); border-radius: var(--ab-radius);
	background:
		linear-gradient(var(--ab-blue), var(--ab-blue)) top left / 18px 2px no-repeat,
		linear-gradient(var(--ab-blue), var(--ab-blue)) top left / 2px 18px no-repeat,
		linear-gradient(var(--ab-blue), var(--ab-blue)) bottom right / 18px 2px no-repeat,
		linear-gradient(var(--ab-blue), var(--ab-blue)) bottom right / 2px 18px no-repeat,
		#fff;
}
.ab-article .entry-content .wp-block-gallery figure.wp-block-image { counter-increment: ab-view; padding: 0; border: 0; background: none; }
.ab-article .entry-content .wp-block-gallery figure.wp-block-image::after {
	display: block; content: "Ansicht " counter(ab-view, upper-alpha);
	top: 8px; left: 8px; transform: none; padding: .15em .5em; border-radius: 2px;
	background: rgba(12, 18, 41, .78); color: #fff; z-index: 2;
}
html[lang^="en"] .ab-article .entry-content .wp-block-gallery figure.wp-block-image::after { content: "View " counter(ab-view, upper-alpha); }
.ab-article .entry-content .wp-block-gallery figure.wp-block-image figcaption { margin: 0 !important; padding-top: 0; border: 0; color: #fff; font-family: inherit; }
.ab-article .entry-content .wp-block-gallery figure.wp-block-image figcaption::before { content: none; }

/* 11c. Kacheln: Fotos als Blaupause getönt, beim Überfahren in Farbe */
.ab-news .wp-block-post-featured-image.ab-photo { position: relative; }
.ab-news .wp-block-post-featured-image.ab-photo::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	-webkit-backdrop-filter: grayscale(1) contrast(1.15) brightness(.85); backdrop-filter: grayscale(1) contrast(1.15) brightness(.85);
	background-color: rgba(34, 66, 155, .5);
	background-image: linear-gradient(var(--ab-grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid-strong) 1px, transparent 1px);
	background-size: 24px 24px;
	transition: opacity .6s var(--ab-ease);
}
.ab-news .wp-block-post:is(:hover, :focus-within) .wp-block-post-featured-image.ab-photo::after { opacity: 0; }
@media (hover: none) { .ab-news .wp-block-post-featured-image.ab-photo::after { opacity: .35; } }
/* 12. Eigene Illustrationen nebeneinander (Spalten): einheitliches Seitenverhältnis */
.entry-content .wp-block-columns .ab-illu img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* ==========================================================================
   13. Referenzen: Kunden-Raster wie eine Stückliste, Zitat, Projekt im Fokus
   ========================================================================== */
.ab-ref-grid > .wp-block-group__inner-container,
.ab-ref-grid:not(:has(> .wp-block-group__inner-container)) {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.1rem;
}
.ab-ref-grid { margin: 1.4rem 0 3.4rem !important; }
.ab-ref {
	--c: var(--ab-blue);
	position: relative; margin: 0 !important; min-height: 9.5rem;
	padding: 1.3rem 1.4rem 1.2rem !important; border: 1px solid var(--ab-line); border-radius: var(--ab-radius);
	background:
		linear-gradient(var(--c), var(--c)) top left / 14px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) top left / 2px 14px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / 14px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / 2px 14px no-repeat,
		#fff;
	display: flex; flex-direction: column;
	transition: transform .3s var(--ab-ease), box-shadow .3s, border-color .3s;
}
.ab-ref > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.ab-ref::after { /* drei Streifen aus dem „E“ des Logos, erscheinen beim Überfahren */
	content: ""; position: absolute; top: 1.15rem; right: 1.2rem; width: 22px; height: 14px; opacity: 0;
	background: repeating-linear-gradient(to bottom, var(--ab-red) 0 3px, transparent 3px 5.5px);
	transition: opacity .3s;
}
.ab-ref:hover { transform: translateY(-4px); box-shadow: var(--ab-shadow); border-color: #c9d3f0; }
.ab-ref:hover::after { opacity: 1; }
.ab-ref .ab-ref-meta {
	font-family: var(--ab-mono); font-size: .68rem !important; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ab-blue); margin: 0 0 .9rem !important; padding-right: 2rem;
}
.ab-ref h3 { font-size: 1.35rem !important; line-height: 1.2; letter-spacing: -.015em; margin: auto 0 .25rem !important; color: var(--ab-ink); }
.ab-ref h3 a { color: inherit; text-decoration: none; }
.ab-ref h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Kachel klickbar */
.ab-ref .ab-ref-note { font-size: .88rem !important; line-height: 1.45; color: #4b5266; margin: .2rem 0 0 !important; }
.ab-ref .wp-block-image { margin: 0 0 1rem !important; }
.ab-ref .wp-block-image img { height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; border-radius: 0 !important; }
.ab-ref:hover .wp-block-image img { filter: none; opacity: 1; }
.ab-ref--open { --c: var(--ab-red); background-color: transparent; border-style: dashed; border-color: #c9cfdc; }
.ab-ref--open h3 { color: var(--ab-blue); }
.ab-ref--open .ab-ref-meta { color: var(--ab-red); }

.entry-content .wp-block-quote.ab-quote {
	position: relative; max-width: 52rem !important; margin: 1.2rem 0 3.4rem !important;
	padding: 2.2rem 2.4rem 1.8rem 2.6rem !important; border: 0 !important; border-left: 6px solid var(--ab-red) !important;
	border-radius: var(--ab-radius); color: #e9edf8;
	background-color: var(--ab-night);
	background-image: linear-gradient(var(--ab-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid) 1px, transparent 1px);
	background-size: 24px 24px;
}
.entry-content .wp-block-quote.ab-quote::before {
	content: "\201C"; position: absolute; top: -.15em; right: 1.4rem;
	font-family: var(--global-heading-font-family, Georgia, serif); font-size: 7rem; line-height: 1; color: var(--ab-blue-light); opacity: .35;
}
.entry-content .wp-block-quote.ab-quote p { font-size: 1.12rem !important; line-height: 1.7; margin: 0; max-width: none; color: #e9edf8; }
.entry-content .wp-block-quote.ab-quote cite {
	display: block; margin-top: 1.2rem; font-style: normal;
	font-family: var(--ab-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ab-blue-light);
}
.entry-content .wp-block-quote.ab-quote cite::before { content: "— "; }

.ab-project {
	position: relative; max-width: 52rem; margin: 1rem 0 2rem !important;
	padding: 1.6rem 1.8rem !important; background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius);
	border-top: 4px solid var(--ab-blue); transition: box-shadow .3s, transform .3s var(--ab-ease);
}
.ab-project:hover { box-shadow: var(--ab-shadow); transform: translateY(-3px); }
.ab-project h3 { font-size: 1.3rem !important; margin: 0 0 .5rem !important; line-height: 1.3; }
.ab-project h3 a { color: var(--ab-ink); text-decoration: none; }
.ab-project h3 a::after { content: ""; position: absolute; inset: 0; }
.ab-project p { margin: 0 0 .6rem !important; color: #4b5266; }
.ab-project .ab-more a { font-weight: 600; color: var(--ab-blue); text-decoration: none; }
@media (max-width: 600px) { .entry-content .wp-block-quote.ab-quote { padding: 1.6rem 1.3rem 1.4rem 1.5rem !important; } }
/* ==========================================================================
   14. Cookie-Banner (Plugin „Cookie Notice“) im Blaupausen-Stil
   ========================================================================== */
#cookie-notice {
	font-family: inherit !important; font-size: .92rem !important; line-height: 1.55;
	border-top: 3px solid var(--ab-red);
	background-image: linear-gradient(var(--ab-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid) 1px, transparent 1px) !important;
	background-size: 24px 24px !important;
	box-shadow: 0 -18px 40px -20px rgba(12, 18, 41, .5);
}
#cookie-notice .cookie-notice-container {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.6rem;
	padding: 1.1rem clamp(1rem, 4vw, 2.5rem) !important; text-align: left;
}
#cookie-notice .cn-text-container { margin: 0 !important; max-width: 46rem; }
#cookie-notice .cn-buttons-container { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
#cookie-notice .cn-button {
	margin: 0 !important; padding: .62em 1.3em !important; border-radius: 3px !important; border: 1px solid transparent !important;
	font-family: inherit !important; font-size: .85rem !important; font-weight: 600 !important; letter-spacing: .02em; line-height: 1.2 !important;
	color: #fff !important; transition: background-color .2s, border-color .2s;
}
#cookie-notice #cn-accept-cookie { background-color: var(--ab-red) !important; }
#cookie-notice #cn-accept-cookie:hover { background-color: #c42740 !important; }
#cookie-notice #cn-refuse-cookie { background-color: transparent !important; border-color: rgba(233, 237, 248, .45) !important; }
#cookie-notice #cn-refuse-cookie:hover { border-color: #fff !important; }
#cookie-notice #cn-more-info, #cookie-notice #cn-revoke-cookie ~ .cn-more-info {
	background: none !important; padding-left: .4em !important; padding-right: .4em !important;
	color: var(--ab-blue-light) !important; text-decoration: underline; text-underline-offset: 3px;
}
#cookie-notice .cn-close-icon { display: none !important; } /* eindeutige Wahl statt „X“ */
/* Nach der Entscheidung: nur ein kleiner Knopf „Cookie-Einstellungen“ unten links statt einer Leiste */
#cookie-notice.cookie-revoke-visible {
	width: auto !important; min-width: 0 !important; left: 1rem !important; right: auto !important; bottom: 1rem !important;
	background: none !important; border-top: 0 !important; box-shadow: none !important;
}
#cookie-notice.cookie-revoke-visible .cookie-revoke-container { padding: 0 !important; width: auto !important; }
#cookie-notice.cookie-revoke-visible #cn-revoke-text { display: none !important; }
#cookie-notice #cn-revoke-cookie {
	background-color: var(--ab-night) !important; border: 1px solid rgba(143, 168, 255, .35) !important;
	font-family: var(--ab-mono) !important; font-size: .68rem !important; font-weight: 500 !important; letter-spacing: .12em; text-transform: uppercase;
	padding: .55em 1em !important; opacity: .8; box-shadow: 0 6px 18px -8px rgba(12, 18, 41, .6);
}
#cookie-notice #cn-revoke-cookie:hover { opacity: 1; border-color: var(--ab-red-light) !important; }
@media (max-width: 600px) {
	#cookie-notice .cookie-notice-container { justify-content: flex-start; }
	#cookie-notice .cn-buttons-container { width: 100%; }
	#cookie-notice #cn-accept-cookie, #cookie-notice #cn-refuse-cookie { flex: 1 1 40%; }
}