/*
Theme Name:        CENIT ABC
Theme URI:         https://www.cenit-abc.com/
Author:            CENIT ABC GmbH
Description:       Block-Theme der CENIT-ABC-Website nach Entwurf v2. Farben, Schriften und Abstände in theme.json, alle Abschnitte als Vorlagen (Patterns) im Editor. Benötigt das Plugin „CENIT ABC – Kern“.
Version:           2.3.0
Requires at least: 6.6
Tested up to:      6.9
Requires PHP:      8.1
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       cenit-abc
Tags:              block-patterns, full-site-editing, wide-blocks
*/

/* ==========================================================================
   Grundlagen
   ========================================================================== */

:root {
	--cabc-dunkel: var(--wp--preset--color--dunkel);
	--cabc-teal: var(--wp--preset--color--teal);
	--cabc-teal-hell: var(--wp--preset--color--teal-hell);
	--cabc-flaeche: var(--wp--preset--color--flaeche);
	--cabc-rahmen: var(--wp--preset--color--rahmen);
	--cabc-linie: var(--wp--preset--color--linie);
	--cabc-chip: var(--wp--preset--color--chip);
	--cabc-text: var(--wp--preset--color--fliesstext);
	--cabc-condensed: var(--wp--preset--font-family--roboto-condensed);
}

body {
	-webkit-font-smoothing: antialiased;
	text-wrap: pretty;
}

/* Kopf, Inhalt und Fuß stoßen ohne Abstand aneinander; Sektionen ebenso. */
.wp-site-blocks > * + *,
:where(.wp-block-post-content) > .alignfull,
:where(.wp-block-post-content) > section {
	margin-block-start: 0;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

.cabc-max-15 { max-width: 15em; }
.cabc-max-16 { max-width: 16em; }
.cabc-max-18 { max-width: 18em; }
.cabc-max-20 { max-width: 20em; }
.cabc-max-24 { max-width: 24em; }
.cabc-max-30 { max-width: 30em; }
.cabc-max-34 { max-width: 34em; }
.cabc-max-36 { max-width: 36em; }
.cabc-max-40 { max-width: 40em; }
.cabc-max-42 { max-width: 42em; }
.cabc-max-44 { max-width: 44em; }
.cabc-fett, .cabc-fett a { font-weight: 500; }
.cabc-rechts { margin-left: auto !important; }

/* Begrenzte Breite bleibt linksbündig – auch in Gruppen mit begrenztem Layout. */
:where(:not(.is-layout-constrained)) > [class*="cabc-max-"] { margin-left: 0 !important; margin-right: auto !important; }
.is-layout-constrained > [class*="cabc-max-"] {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}
.is-layout-constrained > .cabc-max-15 { max-width: 15em; }
.is-layout-constrained > .cabc-max-16 { max-width: 16em; }
.is-layout-constrained > .cabc-max-18 { max-width: 18em; }
.is-layout-constrained > .cabc-max-20 { max-width: 20em; }
.is-layout-constrained > .cabc-max-24 { max-width: 24em; }
.is-layout-constrained > .cabc-max-30 { max-width: 30em; }
.is-layout-constrained > .cabc-max-34 { max-width: 34em; }
.is-layout-constrained > .cabc-max-36 { max-width: 36em; }
.is-layout-constrained > .cabc-max-40 { max-width: 40em; }
.is-layout-constrained > .cabc-max-42 { max-width: 42em; }
.is-layout-constrained > .cabc-max-44 { max-width: 44em; }

/* Links und Knöpfe auf dunklem und Teal-Grund */
:where(.has-dunkel-background-color, .has-teal-background-color) a:where(:not(.wp-element-button)) { color: var(--cabc-teal-hell); }
:where(.has-dunkel-background-color, .has-teal-background-color) a:where(:not(.wp-element-button)):hover { color: #fff; }
.has-teal-background-color a:where(:not(.wp-element-button)) { color: #fff; }
:where(.has-dunkel-background-color, .has-teal-background-color) .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover {
	background: #fff;
	color: var(--cabc-dunkel);
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.cabc-topbar { min-height: 6px; }
.cabc-kopfleiste {
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--cabc-linie);
}
.cabc-logo img { height: 42px; width: auto; }
.cabc-hauptmenue .wp-block-navigation-item__content {
	color: var(--cabc-dunkel);
	padding: 6px 0;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.cabc-hauptmenue .wp-block-navigation-item__content:hover,
.cabc-hauptmenue .current-menu-item > .wp-block-navigation-item__content {
	color: var(--cabc-teal);
	border-bottom-color: var(--cabc-teal);
}
.wp-block-button.is-style-kopf .wp-block-button__link {
	padding: 12px 22px;
	font-size: 16px;
	white-space: nowrap;
}
@media (max-width: 1180px) {
	.cabc-hauptmenue { --wp--style--block-gap: 8px 20px; gap: 8px 20px; }
	.cabc-hauptmenue .wp-block-navigation-item__content { font-size: 15px; }
}
@media (max-width: 640px) {
	header.wp-block-template-part { position: static; }
	.wp-block-button.is-style-kopf { display: none; }
}

/* ==========================================================================
   Typografie-Stile (im Editor unter „Stile“ wählbar)
   ========================================================================== */

.is-style-eyebrow {
	font-family: var(--cabc-condensed);
	font-size: 16px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cabc-teal);
	line-height: 1.3;
}
.is-style-eyebrow-klein,
.is-style-eyebrow-klein a {
	font-family: var(--cabc-condensed);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cabc-teal);
}
.is-style-eyebrow-band {
	font-family: var(--cabc-condensed);
	font-size: 15px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}
.is-style-untertitel {
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.3;
	color: #808080;
}
.is-style-nummer {
	font-family: var(--cabc-condensed);
	font-size: 15px;
	letter-spacing: 0.16em;
	color: var(--cabc-teal);
	line-height: 1.3;
}
.is-style-kennzahl {
	font-family: var(--cabc-condensed);
	font-size: clamp(32px, 3.4vw, 42px);
	line-height: 1;
	color: var(--cabc-teal);
}
.is-style-label {
	font-family: var(--cabc-condensed);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cabc-teal);
	line-height: 1.3;
}
.is-style-label-grau {
	font-size: 15px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #808080;
}
.is-style-label-weiss {
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}
.is-style-label-fuss {
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}
.is-style-jahr {
	font-family: var(--cabc-condensed);
	font-size: 22px;
	color: var(--cabc-teal);
	padding-bottom: 12px;
	border-bottom: 6px solid var(--cabc-teal);
	margin-bottom: 12px !important;
}
.is-style-sektion {
	font-size: var(--wp--preset--font-size--titel);
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--cabc-teal);
}
.is-style-seiten-titel {
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--cabc-teal-hell);
}
.is-style-detail-titel {
	font-size: var(--wp--preset--font-size--titel-l);
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
	max-width: 18em;
}
.is-style-zurueck a {
	font-family: var(--cabc-condensed);
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cabc-teal-hell);
}
.cabc-zurueck-klein a { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.cabc-detail-kopf .wp-block-group > .is-style-zurueck { margin-bottom: 8px; }

/* ==========================================================================
   Knöpfe
   ========================================================================== */

.wp-block-button__link { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.wp-block-button.is-style-outline-hell .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.5);
	font-weight: 400;
}
.wp-block-button.is-style-outline-hell .wp-block-button__link:hover {
	background: var(--cabc-teal);
	border-color: var(--cabc-teal);
	color: #fff;
}
.wp-block-button.is-style-outline-dunkel .wp-block-button__link {
	background: transparent;
	color: var(--cabc-dunkel);
	border: 1px solid var(--cabc-dunkel);
	padding: 13px 24px;
	font-size: 16px;
	font-weight: 400;
}
.wp-block-button.is-style-outline-dunkel .wp-block-button__link:hover {
	background: var(--cabc-teal);
	border-color: var(--cabc-teal);
	color: #fff;
}
.wp-block-button.is-style-dunkel .wp-block-button__link { background: var(--cabc-dunkel); color: #fff; }
.wp-block-button.is-style-dunkel .wp-block-button__link:hover { background: #fff; color: var(--cabc-dunkel); }
.wp-block-button.is-style-klein .wp-block-button__link { padding: 10px 18px; font-size: 16px; }
.wp-block-button.is-style-scfp .wp-block-button__link {
	background: #2E9E99;
	padding: 14px 22px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* „Mehr erfahren →“ – Link am Kartenende, macht die ganze Karte klickbar */
.cabc-mehr,
.cabc-mehr a,
a.cabc-mehr {
	font-size: 15px;
	font-weight: 500;
	color: var(--cabc-teal);
}
.cabc-mehr { margin-top: auto !important; padding-top: 10px; }
.has-dunkel-background-color .cabc-mehr a,
.cabc-prozess-kopf .cabc-mehr a { color: var(--cabc-teal-hell); }

/* ==========================================================================
   Karten (Gruppen-Stile)
   ========================================================================== */

.is-style-karte,
.is-style-akzent-karte,
.is-style-akzent-weiss,
.is-style-akzent-flaeche,
.is-style-balken-flaeche,
.is-style-balken-rahmen,
.cabc-kachel {
	color: var(--cabc-dunkel);
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	height: 100%;
}
.is-style-karte {
	background: #fff;
	border: 1px solid var(--cabc-rahmen);
	padding: 28px;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.is-style-akzent {
	border-top: 6px solid var(--cabc-teal);
	padding-top: 24px;
}
.is-style-akzent-karte {
	background: #fff;
	border: 1px solid var(--cabc-rahmen);
	border-top: 6px solid var(--cabc-teal);
	padding: 24px 26px 26px;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.is-style-akzent-weiss {
	background: #fff;
	border-top: 6px solid var(--cabc-teal);
	padding: 24px;
}
.is-style-akzent-flaeche {
	background: var(--cabc-flaeche);
	border-top: 6px solid var(--cabc-teal);
	padding: 26px;
}
.is-style-akzent-flaeche.cabc-klein { padding: 18px; }
.cabc-akzent-4 { border-top-width: 4px; }
.cabc-akzent-5 { border-top-width: 5px; }
.is-style-akzent.cabc-akzent-4 { padding-top: 14px; }
.is-style-akzent.cabc-akzent-5 { padding-top: 22px; }
.is-style-balken-flaeche { background: var(--cabc-flaeche); padding: 26px; }
.is-style-balken-rahmen { border: 1px solid var(--cabc-rahmen); padding: 26px; }
.is-style-balken-flaeche::before,
.is-style-balken-rahmen::before {
	content: "";
	display: block;
	width: 36px;
	height: 6px;
	background: var(--cabc-teal);
	margin-bottom: 20px;
}

/* Klickbare Karten: Link am Kartenende spannt über die ganze Fläche */
.is-style-karte:has(.cabc-mehr):hover,
.is-style-akzent-karte:has(.cabc-mehr):hover,
.is-style-akzent-karte:has(.wp-block-post-title a):hover {
	border-color: var(--cabc-teal);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 52, 51, 0.12);
}
.is-style-karte .cabc-mehr a::after,
.is-style-akzent-karte .cabc-mehr a::after,
.is-style-karte a.cabc-mehr::after,
.is-style-akzent-karte a.cabc-mehr::after,
.cabc-kachel .wp-block-post-title a::after,
.cabc-kachel-branche .wp-block-post-title a::after,
.cabc-prozess-kopf .cabc-mehr a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.is-style-karte .wp-block-post-title a,
.is-style-akzent-karte .wp-block-post-title a,
.cabc-kachel .wp-block-post-title a { color: inherit; }
.is-style-karte:hover .wp-block-post-title a,
.cabc-kachel:hover .wp-block-post-title a { color: var(--cabc-teal); }

.wp-block-post-template > li { height: 100%; }

/* Leistungs-Kacheln (Startseite) */
.cabc-kachel {
	background: #fff;
	border: 1px solid var(--cabc-rahmen);
	padding: 20px 22px;
	flex-direction: row;
	align-items: baseline !important;
	transition: border-color 0.15s;
}
.cabc-kachel:hover { border-color: var(--cabc-teal); }
.cabc-kachel .is-style-nummer { font-size: 14px; flex: 0 0 auto; }
.cabc-kachel-branche { padding: 20px 18px; }
.cabc-kachel-branche .wp-block-post-title,
.cabc-kachel .wp-block-post-title { hyphens: auto; overflow-wrap: normal; word-break: normal; }
.cabc-kachel-branche:hover { background: var(--cabc-flaeche); }

/* Fallbeispiele */
.cabc-fall-text strong { font-weight: 500; color: var(--cabc-dunkel); }
.cabc-fall-ergebnis,
.cabc-unten {
	margin-top: auto !important;
	padding-top: 12px;
}
.cabc-fall-ergebnis { border-top: 1px solid #EDF3F3; }
.cabc-trenner { padding-top: 12px; border-top: 1px solid #D8E6E6; }

/* ==========================================================================
   Sektionen
   ========================================================================== */

/* End-to-End-Block */
.cabc-kette-gross { background: rgba(255, 255, 255, 0.22); }
.cabc-kette-gross .is-style-nummer { letter-spacing: 0.18em; color: var(--cabc-teal-hell); }
.has-dunkel-background-color .is-style-nummer { color: var(--cabc-teal-hell); }
.has-dunkel-background-color .is-style-karte .is-style-nummer,
.has-dunkel-background-color .is-style-akzent-karte .is-style-nummer { color: var(--cabc-teal); }
.cabc-prozess-kacheln .is-style-akzent-karte { padding: 24px; }

/* Warum CENIT ABC – Zahlen */
.cabc-zahlen-zeile {
	margin-top: 44px !important;
	padding-top: 32px;
	border-top: 1px solid var(--cabc-linie);
}
.cabc-zahl-dunkel {
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	padding: 8px 28px;
}

/* Kennzahlen (Detailseiten) */
.cabc-kennzahlen {
	border-left: 1px solid var(--cabc-rahmen);
	border-right: 1px solid var(--cabc-rahmen);
}

/* Leistungen nach Phasen */
.cabc-phase-kopf {
	border-bottom: 2px solid var(--cabc-teal);
	padding-bottom: 12px;
}
.cabc-phase-kopf .is-style-nummer { letter-spacing: 0.18em; }

/* Prozess-Karten (Übersicht) */
.cabc-prozess-karte {
	box-shadow: 0 1px 0 var(--cabc-rahmen);
	transition: transform 0.15s, box-shadow 0.15s;
	margin-bottom: 0 !important;
}
.cabc-prozess-karte:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 52, 51, 0.16);
}
.cabc-prozess-kopf { position: relative; }
.cabc-prozess-kopf .is-style-nummer { color: var(--cabc-teal-hell); letter-spacing: 0.18em; }
.cabc-link-weiss a { color: #fff !important; }
.cabc-stufe {
	background: rgba(255, 255, 255, 0.14);
	border-top: 4px solid #fff;
	padding: 16px 16px 18px;
}
@media (min-width: 782px) {
	.cabc-prozess-karte > .wp-block-column:first-child { flex: 0 0 340px !important; }
}

/* Teal-CTA mit Ansprechperson (Stellen) */
.cabc-ansprechperson { border-top: 3px solid #fff; padding-top: 16px; }
.cabc-kontaktzeilen > * {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	padding: 14px 0;
	margin: 0 !important;
}
.cabc-kontaktzeilen > *:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.cabc-teal-cta a:where(:not(.wp-element-button)) { color: #fff; }
.cabc-gehalt {
	border-top: 4px solid var(--wp--preset--color--gold);
	width: 220px;
	padding-top: 14px;
}

/* Team */
.cabc-team { border-top: 1px solid var(--cabc-rahmen); }
.cabc-team-zeile {
	padding: 28px 0;
	margin: 0 !important;
	border-bottom: 1px solid var(--cabc-rahmen);
}
.cabc-portrait { margin: 0; background: #EDF3F3; }
.cabc-portrait img { aspect-ratio: 1; object-fit: cover; object-position: center top; width: 100%; }
@media (min-width: 782px) {
	.cabc-team-zeile > .wp-block-column:first-child { flex: 0 0 150px !important; }
}

/* Logos */
.cabc-logos.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: center; }
.cabc-logo-kachel {
	border: 1px solid #EDF3F3;
	background: #fff;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 24px;
	margin: 0;
	box-sizing: border-box;
}
.cabc-logo-kachel img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

/* Bild, das die ganze Spalte füllt (Hero) */
.cabc-hero-split { margin-block: 0 !important; }
.cabc-bildspalte { align-self: stretch !important; position: relative; }
.cabc-fuellbild {
	position: relative;
	height: 100%;
	min-height: 480px;
	margin: 0 !important;
	overflow: hidden;
}
.cabc-fuellbild--420 { min-height: 420px; }
.cabc-fuellbild img,
.cabc-fuellbild .wp-block-post-featured-image__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 68% center;
}
.cabc-fuellbild--420 img { object-position: center 30%; }
.cabc-fuellbild figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 4px 8px;
	font-size: 11px;
	line-height: 1.4;
	background: rgba(0, 52, 51, 0.75);
	color: rgba(255, 255, 255, 0.85);
}
.cabc-fuellbild figcaption a { color: inherit !important; text-decoration: underline; }
@media (max-width: 781px) {
	.cabc-hero-split .cabc-bildspalte { min-height: 300px; }
	.cabc-fuellbild { min-height: 300px; }
}
@media (max-width: 640px) {
	.cabc-fuellbild, .cabc-hero-split .cabc-bildspalte { min-height: 230px; }
}

/* Karten-Box (Kontakt) */
.cabc-karten-box { border: 1px solid var(--cabc-rahmen); }
.cabc-karte { position: relative; aspect-ratio: 4 / 3; background: #E8EFEF; }
.cabc-karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Avatar */
.cabc-avatar { margin: 0; flex: 0 0 auto; }
.cabc-avatar img { width: 72px; height: 72px; object-fit: cover; object-position: center top; background: #EDF3F3; }

/* ==========================================================================
   Listen
   ========================================================================== */

ul.is-style-quadrat,
ul.is-style-chips,
ul.is-style-linie,
ul.is-style-zeilen {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
ul.is-style-quadrat { display: flex; flex-direction: column; gap: 14px; }
ul.is-style-quadrat > li {
	position: relative;
	padding-left: 30px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--cabc-text);
	margin: 0;
}
ul.is-style-quadrat > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 10px;
	height: 10px;
	background: var(--cabc-teal);
}
ul.is-style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
ul.is-style-chips > li {
	border: 1px solid var(--cabc-chip);
	background: #fff;
	padding: 8px 15px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--cabc-text);
	margin: 0;
}
ul.is-style-linie { display: flex; flex-direction: column; gap: 8px; margin-top: 16px !important; }
ul.is-style-linie > li {
	border-left: 3px solid var(--cabc-chip);
	padding-left: 12px;
	font-size: 16px;
	color: var(--cabc-text);
	margin: 0;
}
ul.is-style-zeilen { border-top: 3px solid var(--cabc-teal); margin-top: 24px !important; }
ul.is-style-zeilen > li {
	position: relative;
	padding: 16px 0 16px 22px;
	border-bottom: 1px solid var(--cabc-linie);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
}
ul.is-style-zeilen > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(16px + 0.55em);
	width: 8px;
	height: 8px;
	background: var(--cabc-teal);
}

/* ==========================================================================
   Häufige Fragen
   ========================================================================== */

.cabc-faq {
	background: var(--cabc-rahmen);
	border: 1px solid var(--cabc-rahmen);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.cabc-faq > .cabc-faq-zeile {
	background: #fff;
	padding: 28px 32px;
	margin: 0 !important;
}
@media (min-width: 700px) {
	.cabc-faq-zeile.is-layout-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

/* ==========================================================================
   Tabelle (Impressum)
   ========================================================================== */

.wp-block-table.is-style-daten { margin: 0; }
.wp-block-table.is-style-daten table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-daten th,
.wp-block-table.is-style-daten td {
	border: 0;
	padding: 6px 0;
	vertical-align: top;
	text-align: left;
}
.wp-block-table.is-style-daten th {
	width: 15em;
	padding-right: 28px;
	font-weight: 400;
	font-size: 16px;
	color: var(--wp--preset--color--grau-2);
}
.wp-block-table.is-style-daten td { font-size: 17px; color: var(--cabc-dunkel); }
@media (max-width: 640px) {
	.wp-block-table.is-style-daten th, .wp-block-table.is-style-daten td { display: block; width: auto; padding: 0; }
	.wp-block-table.is-style-daten td { padding-bottom: 12px; }
}

/* ==========================================================================
   News
   ========================================================================== */

.cabc-news-aufmacher .wp-block-columns { transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.cabc-news-aufmacher .wp-block-columns:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 52, 51, 0.16); }
.cabc-news-aufmacher .cabc-mehr a::after,
.cabc-news-aufmacher a.cabc-mehr::after { content: ""; position: absolute; inset: 0; }
.cabc-news-aufmacher .wp-block-post-title a { color: var(--cabc-dunkel); }
.cabc-news-bildspalte { position: relative; min-height: 280px; }
.cabc-news-bild { position: absolute !important; inset: 0; margin: 0; height: 100% !important; }
.cabc-news-bild img { width: 100%; height: 100% !important; object-fit: cover; }

.is-style-badge a,
.is-style-badge span:not(.wp-block-post-terms__separator) {
	display: inline-block;
	background: var(--cabc-teal);
	color: #fff !important;
	padding: 5px 12px;
	font-family: var(--cabc-condensed);
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.3;
}
.wp-block-post-terms__separator { display: none; }

.cabc-filter { margin-block: 44px 28px; }
.cabc-filter-alle a,
.is-style-chips-filter a {
	display: inline-block;
	border: 1px solid var(--cabc-chip);
	padding: 8px 16px;
	font-size: 15px;
	color: var(--cabc-dunkel);
	background: #fff;
}
.cabc-filter-alle a:hover,
.is-style-chips-filter a:hover,
.is-style-chips-filter .current-cat a { background: var(--cabc-dunkel); color: #fff; border-color: var(--cabc-dunkel); }
.wp-block-categories.is-style-chips-filter {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cabc-artikel > * + * { margin-block-start: 22px !important; }
.cabc-artikel p,
.cabc-textinhalt p { font-size: 19px; line-height: 1.7; color: var(--cabc-text); }
.cabc-textinhalt > * + * { margin-block-start: 20px; }
.cabc-artikel-fuss {
	margin-top: 36px !important;
	border-top: 4px solid var(--cabc-teal);
	padding-top: 20px;
}
.cabc-weitere { margin-top: 24px; }

/* ==========================================================================
   Stellen
   ========================================================================== */

.cabc-stellenliste .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--cabc-rahmen);
	border-top: 1px solid var(--cabc-rahmen);
	border-bottom: 1px solid var(--cabc-rahmen);
	padding: 0;
	margin: 0;
}
.cabc-stellenliste .wp-block-post-template > li { margin: 0; background: #fff; }
.cabc-stelle { padding: 22px; }
.cabc-stelle-titel { flex: 1 1 22rem; }
.cabc-stelle-titel a { color: var(--cabc-dunkel); }
.cabc-stelle-titel a:hover { color: var(--cabc-teal); }
.cabc-stelle .cabc-mehr { margin-top: 0 !important; padding-top: 0; font-size: 16px; }

/* ==========================================================================
   Formulare (Contact Form 7)
   ========================================================================== */

.cabc-formular .wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.cabc-formular .wpcf7-form > p { margin: 0; }
.cabc-formular fieldset.hidden-fields-container { display: none; }
.cabc-formular label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--cabc-text); }
.cabc-formular .wpcf7-form-control-wrap { display: block; }
.cabc-formular input[type="text"],
.cabc-formular input[type="email"],
.cabc-formular input[type="tel"],
.cabc-formular input[type="file"],
.cabc-formular select,
.cabc-formular textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cabc-rahmen);
	background: #fff;
	padding: 13px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--cabc-dunkel);
	border-radius: 0;
}
.cabc-formular textarea { resize: vertical; }
.cabc-formular input:focus,
.cabc-formular select:focus,
.cabc-formular textarea:focus { outline: none; border-color: var(--cabc-teal); }
.cabc-formular .wpcf7-acceptance label,
.cabc-formular .wpcf7-list-item label { flex-direction: row; align-items: flex-start; gap: 12px; line-height: 1.6; color: var(--wp--preset--color--text-grau); }
.cabc-formular .wpcf7-list-item { margin: 0; }
.cabc-formular input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--cabc-teal); flex: 0 0 auto; }
.cabc-formular .wpcf7-submit {
	align-self: flex-start;
	border: 0;
	background: var(--cabc-teal);
	color: #fff;
	padding: 15px 28px;
	font-size: 17px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	border-radius: 0;
}
.cabc-formular .wpcf7-submit:hover { background: var(--cabc-dunkel); }
.cabc-formular .wpcf7-not-valid-tip { font-size: 14px; color: #A12626; margin-top: 4px; }
.cabc-formular .wpcf7-response-output {
	margin: 8px 0 0 !important;
	padding: 14px 18px !important;
	border: 0 !important;
	background: var(--cabc-flaeche);
	color: var(--cabc-dunkel);
	font-size: 16px;
}
.cabc-formular .wpcf7-response-output:empty { display: none; }
.cabc-formular form.invalid .wpcf7-response-output { background: #FDECEC; color: #8A2020; }
.cabc-formular .wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cabc-formular .wpcf7-form.submitting .wpcf7-submit { opacity: 0.85; cursor: wait; }
/* Kreisel neben dem Knopf – nur während des Sendens (CF7 setzt die Klasse „submitting“) */
.cabc-formular .wpcf7-spinner {
	display: inline-block;
	visibility: hidden;
	width: 20px;
	height: 20px;
	margin: 0 0 0 14px;
	vertical-align: middle;
	border: 2px solid var(--cabc-teal);
	border-right-color: transparent;
	border-radius: 50%;
}
.cabc-formular .wpcf7-form.submitting .wpcf7-spinner { visibility: visible; animation: cabc-drehen 0.8s linear infinite; }
.cabc-formular--dunkel .wpcf7-spinner { border-color: var(--cabc-teal-hell); border-right-color: transparent; }
@keyframes cabc-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cabc-formular .wpcf7-form.submitting .wpcf7-spinner { animation-duration: 2.4s; } }
/* Fehler: Feld rot umranden, Hinweis darunter (auch beim Datenschutz-Häkchen) */
.cabc-formular .wpcf7-not-valid:not(.wpcf7-acceptance) { border-color: #A12626; }
.cabc-formular .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] { outline: 2px solid #A12626; outline-offset: 2px; }
.cabc-formular .wpcf7-acceptance + .wpcf7-not-valid-tip { margin: 6px 0 0 30px; }
.cabc-formular--dunkel .wpcf7-not-valid-tip { color: #FFB4B4; }
.cabc-formular--dunkel .wpcf7-not-valid:not(.wpcf7-acceptance) { border-color: #FFB4B4; }
.cabc-formular--dunkel .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] { outline-color: #FFB4B4; }
.cabc-formular .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cabc-formular-link { margin-top: 14px; font-size: 16px; }

.cabc-formular--dunkel { background: rgba(255, 255, 255, 0.07); padding: 32px; }
.cabc-formular--dunkel label { color: rgba(255, 255, 255, 0.8); }
.cabc-formular--dunkel input[type="text"],
.cabc-formular--dunkel input[type="email"],
.cabc-formular--dunkel textarea {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
}
.cabc-formular--dunkel input:focus,
.cabc-formular--dunkel textarea:focus { border-color: var(--cabc-teal-hell); }
.cabc-formular--dunkel .wpcf7-acceptance label { color: rgba(255, 255, 255, 0.75); }
.cabc-formular--dunkel .wpcf7-submit:hover { background: #fff; color: var(--cabc-dunkel); }
.cabc-formular--dunkel .wpcf7-response-output { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cabc-formular--bewerbung { background: #fff; border: 1px solid var(--cabc-rahmen); padding: 32px; }

.cabc-danke { display: none; }
.cabc-formular.is-gesendet .wpcf7,
.cabc-formular.is-gesendet .cabc-formular-link { display: none; }
.cabc-formular.is-gesendet .cabc-danke {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 6px solid var(--cabc-teal);
	background: var(--cabc-flaeche);
	padding: 40px;
	color: var(--cabc-text);
}
.cabc-formular--dunkel.is-gesendet,
.cabc-formular--bewerbung.is-gesendet { background: none; border: 0; padding: 0; }
.cabc-formular--dunkel.is-gesendet .cabc-danke,
.cabc-formular--bewerbung.is-gesendet .cabc-danke { background: var(--cabc-teal); border-top: 0; color: #fff; padding: 36px; }
.cabc-danke__titel { font-family: var(--cabc-condensed); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: inherit; }
.cabc-formular:not(.cabc-formular--dunkel):not(.cabc-formular--bewerbung) .cabc-danke__titel { color: var(--cabc-dunkel); }
.cabc-danke__zurueck {
	align-self: flex-start;
	margin-top: 8px;
	border: 1px solid currentColor;
	background: none;
	color: inherit;
	padding: 12px 22px;
	font-size: 16px;
	font-family: inherit;
	cursor: pointer;
}
.cabc-danke__zurueck:hover { background: var(--cabc-dunkel); color: #fff; border-color: var(--cabc-dunkel); }
.cabc-formular-hinweis { background: var(--cabc-flaeche); border-top: 6px solid var(--cabc-teal); padding: 24px 26px; font-size: 17px; color: var(--cabc-text); }
.cabc-formular--dunkel .cabc-formular-hinweis { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, 0.8); }

/* ==========================================================================
   Video (Speak the Truth)
   ========================================================================== */

.cabc-video {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	width: 100%;
	text-align: left;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.07);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background 0.15s;
}
.cabc-video.is-leer { cursor: default; }
button.cabc-video:hover { background: rgba(255, 255, 255, 0.13); }
.cabc-video__bild {
	position: relative;
	min-height: 112px;
	background-color: var(--wp--preset--color--dunkel-2);
	background-size: cover;
	background-position: center;
}
.cabc-video__play {
	position: absolute;
	left: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 153, 152, 0.92);
}
.cabc-video__play::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 10px;
	border-left: 11px solid #fff;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}
.cabc-video.is-leer .cabc-video__play { opacity: 0.35; }
.cabc-video__text { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.cabc-video__folge { font-family: var(--cabc-condensed); font-size: 14px; letter-spacing: 0.16em; color: var(--cabc-teal-hell); }
.cabc-video__titel { font-family: var(--cabc-condensed); font-size: 22px; line-height: 1.15; }
.cabc-video__beschreibung { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.cabc-video__hinweis { font-size: 14px; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 640px) {
	.cabc-video { grid-template-columns: minmax(0, 1fr); }
}
.cabc-video-dialog {
	width: min(1100px, calc(100% - 32px));
	max-width: none;
	border: 0;
	padding: 0;
	background: transparent;
	color: #fff;
}
.cabc-video-dialog::backdrop { background: rgba(0, 20, 20, 0.86); }
.cabc-video-dialog__kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.cabc-video-dialog__titel { font-family: var(--cabc-condensed); font-size: 20px; margin: 0; }
.cabc-video-dialog__zu { border: 1px solid rgba(255, 255, 255, 0.5); background: none; color: #fff; padding: 8px 16px; cursor: pointer; font-size: 15px; font-family: inherit; }
.cabc-video-dialog__zu:hover { background: #fff; color: var(--cabc-dunkel); }
.cabc-video-dialog__rahmen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cabc-video-dialog__rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */

.cabc-fuss a { color: rgba(255, 255, 255, 0.75); }
.cabc-fuss a:hover { color: var(--cabc-teal-hell); }
.cabc-fuss .cabc-fuss-akzent a { color: var(--cabc-teal-hell); }
.cabc-fuss p { font-size: 16px; }
.cabc-fuss-logo { margin: 0; }
.cabc-fuss-logo img { height: 46px; width: auto; }
.cabc-fuss-liste .wp-block-post-template { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cabc-fuss-liste .wp-block-post-template > li { margin: 0; height: auto; }
.cabc-fuss-titel { font-family: inherit; font-size: 16px; line-height: 1.4; }
.cabc-fuss-leiste { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cabc-fuss-leiste,
.cabc-fuss-leiste p,
.cabc-fuss-leiste a { font-size: 14px !important; color: rgba(255, 255, 255, 0.45); }

/* ==========================================================================
   Kopfzeile Social Care Finance Platform
   ========================================================================== */

.cabc-scfp-kopf { border-bottom: 1px solid #164F4D; }
.cabc-scfp-marke a {
	display: block;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.15;
}
.cabc-scfp-marke-2 {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--cabc-teal-hell);
}
.cabc-scfp-logos { border-left: 1px solid #2A6B68; padding: 4px 0 4px 18px; }
.cabc-scfp-logos figure { margin: 0; }
.cabc-scfp-menue a { color: #E3EEED !important; font-size: 15px; }
.cabc-scfp-menue a:hover { color: var(--cabc-teal-hell) !important; }

/* ==========================================================================
   Kleine Bildschirme
   ========================================================================== */

@media (max-width: 640px) {
	.is-style-karte,
	.is-style-akzent-flaeche,
	.cabc-bewerbung,
	.cabc-cta { padding: 26px !important; }
	.cabc-formular--dunkel,
	.cabc-formular--bewerbung { padding: 22px; }
	.cabc-faq > .cabc-faq-zeile { padding: 22px; }
	.cabc-zahl-dunkel { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 18px 0; }
	.cabc-rechts { margin-left: 0; }
}

.cabc-nowrap { flex-wrap: nowrap !important; }
.cabc-nowrap > .is-style-kennzahl { flex: 0 0 auto; }

/* ==========================================================================
   Video-Player (YouTube/Vimeo-Link im Beitrag – lädt erst beim Klick)
   ========================================================================== */

.cabc-player { margin: 0; }
.cabc-player__start {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: var(--wp--preset--color--dunkel-2) center / cover no-repeat;
	color: #fff;
	font: inherit;
	overflow: hidden;
}
.cabc-player__start::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 52, 51, 0.15) 0%, rgba(0, 52, 51, 0.65) 100%);
	transition: background 0.15s;
}
.cabc-player__start:hover::before { background: linear-gradient(180deg, rgba(0, 52, 51, 0.05) 0%, rgba(0, 52, 51, 0.55) 100%); }
.cabc-player__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(0, 153, 152, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% center / 34px no-repeat;
	transition: transform 0.15s;
}
.cabc-player__start:hover .cabc-player__play { transform: scale(1.06); }
.cabc-player__label {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% + 50px);
	text-align: center;
	font-family: var(--cabc-condensed);
	font-size: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cabc-player__hinweis {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
}
.cabc-player__hinweis a { color: inherit !important; text-decoration: underline; }
.cabc-player__rahmen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cabc-player__rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cabc-player figcaption { margin-top: 8px; font-size: 14px; color: var(--wp--preset--color--grau-2); }

/* Videokarten (Speak the Truth auf der Karriereseite) */
.cabc-video-liste .wp-block-post-template { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
.cabc-video-liste .wp-block-post-template > li { margin: 0; height: auto; }
.cabc-video-karte {
	position: relative;
	display: grid !important;
	grid-template-columns: 180px minmax(0, 1fr);
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.15s;
}
.cabc-video-karte:hover { background: rgba(255, 255, 255, 0.13); }
.cabc-video-karte > * { margin: 0 !important; }
.cabc-video-karte__bild { position: relative; margin: 0; min-height: 112px; height: 100%; }
.cabc-video-karte__bild img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.cabc-video-karte:not(:has(.cabc-video-karte__bild))::before {
	content: "";
	min-height: 112px;
	background: var(--wp--preset--color--dunkel-2);
}
.cabc-video-karte::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 66px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 153, 152, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 56% center / 16px no-repeat;
	pointer-events: none;
}
.cabc-video-karte__inhalt { padding: 20px 24px; }
.cabc-video-karte__datum { color: var(--cabc-teal-hell); letter-spacing: 0.06em; }
.cabc-video-karte__titel a { color: #fff !important; }
.cabc-video-karte__titel a::after { content: ""; position: absolute; inset: 0; }
.cabc-video-karte__text { color: rgba(255, 255, 255, 0.7); }
.cabc-video-karte__text p { margin: 0; }
@media (max-width: 640px) {
	.cabc-video-karte { grid-template-columns: minmax(0, 1fr); }
	.cabc-video-karte::after { top: auto; bottom: auto; top: 74px; }
	.cabc-video-karte__bild { min-height: 180px; }
}
