/*
 * Passion to Grow – ein Stylesheet für alle Bereiche (GmbH, IT, Praxis, Impact)
 *
 * 1. Farben je Bereich (body.p2g-section-<bereich>, gesetzt in functions.php)
 * 2. Abschnittsstile im BeTheme-Builder (Section → Style / Custom class):
 *      (ohne)       heller Grund, Links und Buttons in der Markenfarbe
 *      dark         dunkler Grund, Text weiß, Links hell, Buttons Markenfarbe
 *      p2g-brand    Markenfarbe als Grund, Text und Links weiß, Button weiß
 *      p2g-pale     heller Ton der Markenfarbe als Grund
 *    Feste Farbe unabhängig vom Bereich (z. B. Kacheln, die auf einen anderen
 *    Bereich verweisen): p2g-bg-gmbh, p2g-bg-it, p2g-bg-praxis, p2g-bg-impact.
 * 3. Markenleiste oben (IT, Praxis, Impact)
 * 4. Hilfsklassen
 *
 * Die Themenfarben im BeTheme-CSS ersetzt functions.php durch
 * var(--p2g-brand…); deshalb hier nur, was BeTheme nicht selbst färbt.
 */

/* Carlito (OFL-1.1, @fontsource/carlito 5.3.0, fonts/carlito/LICENSE): frei,
   gleiche Maße wie Calibri. Lokal ausgeliefert, keine fremden Server. */

@font-face {
	font-family: "Carlito";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/carlito/carlito-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
	font-family: "Carlito";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/carlito/carlito-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
	font-family: "Carlito";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/carlito/carlito-latin-ext-700-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
	font-family: "Carlito";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/carlito/carlito-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* 1. Farben ------------------------------------------------------------- */

:root {
	--p2g-gmbh: #5c84c3;   /* GmbH: Akzent wie IT */
	--p2g-it: #5c84c3;
	--p2g-praxis: #8da553;
	--p2g-impact: #6eaeb7;

	--p2g-gray: #e3e3e3;   /* helle Abschnitte, Titelleiste, Fach „Passion to Grow“ */
	--p2g-text: #2b3035;   /* Fließtext auf hellem Grund (statt BeTheme #626262); auch auf Grün/Türkis ≥ 4.5 */
	--p2g-muted: #5f656b;  /* Nebentext: Datum, Meta (statt BeTheme #a8a8a8) */
	--p2g-dark: #19222b;
	--p2g-dark-2: #141b22;
	--p2g-on-dark: rgba(255, 255, 255, .85);

	/* Schrift in Bereichsfarbe, geprüft auf Kontrast (WCAG AA, 4.5:1):
	   ink = auf hellem Grund (#e3e3e3, pale, weiß), on-dark = auf #19222b */
	--p2g-ink-it: #466494;
	--p2g-ink-praxis: #5a6a35;
	--p2g-ink-impact: #446c71;
	--p2g-on-dark-it: #7499d1;
	--p2g-on-dark-praxis: #8da553;
	--p2g-on-dark-impact: #6eaeb7;
}

/* Option „aa“ (wp option p2g_kontrast = aa): Flächen hinter weißer Schrift
   (Header, Markenleiste, Buttons, Kacheln, p2g-brand) in abgedunkelten Tönen,
   die 4.5:1 erreichen. Standard „marke“: Markenfarben wie im Logo. */
body.p2g-kontrast-aa {
	--p2g-gmbh: #5377b0;
	--p2g-it: #5377b0;
	--p2g-praxis: #6b7d3f;
	--p2g-impact: #4f7d84;
	--p2g-on-dark: #fff;   /* auf den knappen AA-Flächen nur volles Weiß */
}

body,
body.p2g-section-gmbh {
	--p2g-brand: var(--p2g-gmbh);
	--p2g-ink: var(--p2g-ink-it);
	--p2g-brand-on-dark: var(--p2g-on-dark-it);
	--p2g-brand-dark: #43608f;
	--p2g-brand-light: #adc1e0;
	--p2g-brand-pale: #eef2f9;
}

body.p2g-section-it {
	--p2g-brand: var(--p2g-it);
	--p2g-ink: var(--p2g-ink-it);
	--p2g-brand-on-dark: var(--p2g-on-dark-it);
	--p2g-brand-dark: #43608f;
	--p2g-brand-light: #adc1e0;
	--p2g-brand-pale: #eef2f9;
}

body.p2g-section-praxis {
	--p2g-brand: var(--p2g-praxis);
	--p2g-ink: var(--p2g-ink-praxis);
	--p2g-brand-on-dark: var(--p2g-on-dark-praxis);
	--p2g-brand-dark: #6b7f3c;
	--p2g-brand-light: #c2d39a;
	--p2g-brand-pale: #f2f6ea;
}

body.p2g-section-impact {
	--p2g-brand: var(--p2g-impact);
	--p2g-ink: var(--p2g-ink-impact);
	--p2g-brand-on-dark: var(--p2g-on-dark-impact);
	--p2g-brand-dark: #4c8a93;
	--p2g-brand-light: #b5dade;
	--p2g-brand-pale: #eef6f7;
}

/* Schrift in Bereichsfarbe (Links, farbige Überschriften): --p2g-link passt
   sich dem Grund an. BeTheme-Linkfarbe und Inhalte nutzen diese Variable. */
body {
	--p2g-link: var(--p2g-ink);
}

body :is(.section, .wrap):is(.dark, .p2g_dark_section),
#Footer,
#Side_slide {
	--p2g-link: var(--p2g-brand-on-dark);
	--p2g-muted: #a9afb5;
	--p2g-text: var(--p2g-on-dark);
}

body :is(.section, .wrap).p2g-brand,
body :is(.p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) {
	--p2g-link: #fff;
	--p2g-muted: #fff;
	--p2g-text: #fff;
}

/* Überschriften in Calibri bzw. Carlito (lokal), überall */
body :is(h1, h2, h3, h4, h5, h6),
body :is(h1, h2, h3, h4, h5, h6) a,
body #Subheader .title {
	font-family: Calibri, Carlito, sans-serif !important;
}

/* Helle Flächen in Grau: Seitengrund (helle Abschnitte ohne eigene Farbe),
   helle Abschnitte mit eigener heller Farbe und die Titelleiste */
#Wrapper,
#Content,
#Content .mcb-section:not(.dark):not(.p2g-brand):not(.p2g-pale):not([class*="p2g-bg-"]) {
	background-color: var(--p2g-gray);
}

/* Titelleiste (Seiten- und Beitragstitel): grau und niedrig */
body #Subheader {
	background-color: var(--p2g-gray);
	background-image: none;
	padding-top: 28px;
	padding-bottom: 28px;
}

body #Subheader .title {
	margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
	body #Subheader {
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

/* Team-Einträge (Builder „Our team list“): Überschrift, Telefon und Linie in
   der Farbe des Bereichs, auf den der Eintrag verlinkt (z. B. Achim → IT,
   Steffi → Praxis); sonst in der Farbe des aktuellen Bereichs. */
.team_list:has(a[href*="/it/"]) { --p2g-team: var(--p2g-it); --p2g-team-ink: var(--p2g-ink-it); --p2g-team-on-dark: var(--p2g-on-dark-it); }
.team_list:has(a[href*="/praxis/"], a[href*="/counseling/"]) { --p2g-team: var(--p2g-praxis); --p2g-team-ink: var(--p2g-ink-praxis); --p2g-team-on-dark: var(--p2g-on-dark-praxis); }
.team_list:has(a[href*="/impact/"]) { --p2g-team: var(--p2g-impact); --p2g-team-ink: var(--p2g-ink-impact); --p2g-team-on-dark: var(--p2g-on-dark-impact); }

/* Schrift (Überschrift, Telefon) kontrastgeprüft, Icons und Linie in Bereichsfarbe */
body .team_list :is(.desc_wrapper .title, .desc_wrapper .title a, .desc_wrapper .phone a, .desc_wrapper .phone i, .links a, .links i) {
	color: var(--p2g-team-ink, var(--p2g-ink)) !important;
}

body :is(.section, .wrap):is(.dark, .p2g_dark_section) .team_list :is(.desc_wrapper .title, .desc_wrapper .title a, .desc_wrapper .phone a, .desc_wrapper .phone i, .links a, .links i) {
	color: var(--p2g-team-on-dark, var(--p2g-brand-on-dark)) !important;
}

body .team_list .desc_wrapper hr.hr_color {
	background-color: var(--p2g-team, var(--p2g-brand)) !important;
	border-color: var(--p2g-team, var(--p2g-brand)) !important;
}

/* Buttons und Formular-Knöpfe überall in der Markenfarbe */
body .button_theme,
body a.button_theme,
body .button-theme,
body input[type="submit"],
body .wpcf7-submit {
	background-color: var(--p2g-brand);
	border-color: var(--p2g-brand);
	color: #fff;
}

body .button_theme:hover,
body .button-theme:hover,
body input[type="submit"]:hover,
body .wpcf7-submit:hover {
	background-color: var(--p2g-brand-dark);
	border-color: var(--p2g-brand-dark);
	color: #fff;
}

body input:focus,
body textarea:focus,
body select:focus {
	border-color: var(--p2g-brand) !important;
}

/* 2. Abschnittsstile ------------------------------------------------------ */

/* dark (auch die alte eigene Klasse p2g_dark_section) */
body :is(.section, .wrap).dark,
body :is(.section, .wrap).p2g_dark_section {
	background-color: var(--p2g-dark);
	color: var(--p2g-on-dark);
}

body :is(.section, .wrap).dark :is(h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a),
body :is(.section, .wrap).p2g_dark_section :is(h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a) {
	color: #fff;
}

body :is(.section, .wrap).dark :is(p, li, .desc, .column_attr, blockquote),
body :is(.section, .wrap).p2g_dark_section :is(p, li, .desc, .column_attr, blockquote) {
	color: var(--p2g-on-dark);
}

body :is(.section, .wrap).dark .column a:not(.button):not(.button_theme),
body :is(.section, .wrap).dark a:not(.button):not(.button_theme):not(.p2g-cell),
body :is(.section, .wrap).p2g_dark_section a:not(.button):not(.button_theme) {
	color: var(--p2g-brand-light);
}

body :is(.section, .wrap).dark a:not(.button):not(.button_theme):hover,
body :is(.section, .wrap).p2g_dark_section a:not(.button):not(.button_theme):hover {
	color: #fff;
}

body :is(.section, .wrap).dark :is(.themecolor, .highlight, .counter .number-wrapper, .icon_box .icon_wrapper i) {
	color: var(--p2g-brand-light);
}

body :is(.section, .wrap).dark :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select) {
	background-color: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .2);
	color: #fff;
}

/* p2g-brand: Markenfarbe als Grund */
body :is(.section, .wrap).p2g-brand {
	background-color: var(--p2g-brand);
	color: #fff;
}

body :is(.section, .wrap).p2g-brand :is(h1, h2, h3, h4, h5, h6, p, li, .desc, .themecolor, .highlight, blockquote, blockquote a) {
	color: #fff;
}

body :is(.section, .wrap).p2g-brand a:not(.button):not(.button_theme) {
	color: #fff;
	text-decoration: underline;
}

body :is(.section, .wrap).p2g-brand :is(.button_theme, .button-theme, input[type="submit"], .wpcf7-submit) {
	background-color: #fff;
	border-color: #fff;
	color: var(--p2g-ink);
}

body :is(.section, .wrap).p2g-brand :is(.button_theme, .button-theme, input[type="submit"], .wpcf7-submit):hover {
	background-color: var(--p2g-brand-dark);
	border-color: var(--p2g-brand-dark);
	color: #fff;
}

/* p2g-pale: heller Ton */
body :is(.section, .wrap).p2g-pale {
	background-color: var(--p2g-brand-pale);
}

/* Feste Bereichsfarbe (Kacheln, Leiste) */
.p2g-bg-gmbh { --p2g-tile: var(--p2g-gmbh); }
.p2g-bg-it { --p2g-tile: var(--p2g-it); }
.p2g-bg-praxis { --p2g-tile: var(--p2g-praxis); }
.p2g-bg-impact { --p2g-tile: var(--p2g-impact); }

body :is(.p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) {
	background-color: var(--p2g-tile);
	color: #fff;
}

body :is(.p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) :is(h1, h2, h3, h4, h5, h6, p, a, li, blockquote, .desc, .list_item) {
	color: #fff;
}

/* Header in den Bereichen IT, Praxis, Impact: Bereichsfarbe, Menü weiß,
   weißes Bereichslogo (functions.php). GmbH: heller Header wie bisher. */
body:not(.p2g-section-gmbh) #Top_bar,
body:not(.p2g-section-gmbh) #Top_bar.is-sticky,
body:not(.p2g-section-gmbh) #Top_bar .top_bar_left,
body:not(.p2g-section-gmbh) #Top_bar .top_bar_right,
body:not(.p2g-section-gmbh) #Top_bar .top_bar_right::before,
body:not(.p2g-section-gmbh) #Top_bar #menu {
	background-color: var(--p2g-brand) !important;
}

body:not(.p2g-section-gmbh) #Top_bar .menu > li > a,
body:not(.p2g-section-gmbh) #Top_bar .menu > li > a span,
body:not(.p2g-section-gmbh) #Top_bar a.responsive-menu-toggle,
body:not(.p2g-section-gmbh) #Top_bar .top_bar_right a {
	color: #fff !important;
}

body:not(.p2g-section-gmbh) #Top_bar .menu > li > a::after {
	background-color: #fff !important;
	border-color: #fff !important;
}

@media only screen and (max-width: 767px) {
	body:not(.p2g-section-gmbh) #Top_bar #menu ul li a {
		color: #fff !important;
	}
}

/* 3. Markenleiste und Hauptmenü-Icons (IT, Praxis, Impact) ------------- */

/* Markenleiste: schmal, drei gleich breite Fächer, Herz + Text in Calibri
   (installiert, z. B. Windows) bzw. Carlito (lokal ausgeliefert, gleiche Maße). */
#p2g_header .p2g-bar {
	display: flex;
	width: 100%;
}

#p2g_header .p2g-cell {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 32px;
	padding: 0 10px;
	overflow: hidden;
	box-sizing: border-box;
	font-family: Calibri, Carlito, sans-serif;
	font-size: 15px;
	line-height: 1;
	letter-spacing: .02em;
	white-space: nowrap;
	text-decoration: none !important;
	color: #fff;
	background-color: var(--p2g-tile);
	transition: filter .2s;
}

#p2g_header .p2g-cell span {
	overflow: hidden;
	text-overflow: ellipsis;
}

#p2g_header .p2g-cell:hover {
	filter: brightness(1.08);
}

#p2g_header .p2g-cell .p2g-heart {
	flex: none;
	width: auto;
	height: 18px;
}

#p2g_header .p2g-cell-gmbh { --p2g-tile: var(--p2g-gray); color: #000; }
#p2g_header .p2g-cell-praxis { --p2g-tile: var(--p2g-praxis); }
#p2g_header .p2g-cell-it { --p2g-tile: var(--p2g-it); }
#p2g_header .p2g-cell-impact { --p2g-tile: var(--p2g-impact); }

@media (max-width: 600px) {
	#p2g_header .p2g-cell {
		height: 28px;
		font-size: 12px;
		gap: 5px;
	}

	#p2g_header .p2g-cell .p2g-heart {
		height: 14px;
	}
}

/* Hauptmenü: P2G-Herz (→ GmbH) und Haus (→ Bereichsstart) ganz links */
#Top_bar .menu > li.p2g-menu-icon > a {
	padding-left: 12px;
	padding-right: 12px;
}

#Top_bar .menu > li.p2g-menu-icon > a::after {
	display: none !important;   /* kein Unterstrich unter dem Herz */
}

/* Haus unterstrichen, wenn die Bereichsstartseite die aktive Seite ist */
#Top_bar .menu > li.p2g-menu-home.current-menu-item > a::after {
	display: block !important;
}

/* Herz und Haus gleich hoch */
#Top_bar .menu > li.p2g-menu-icon :is(.p2g-heart, .p2g-house) {
	display: inline-block;
	width: auto;
	height: 26px;
	vertical-align: middle;
	color: currentColor;
}

/* Aktiver Menüpunkt: nur Unterstrich, kein heller Kasten (ruhiger) */
body:not(.p2g-section-gmbh) #Top_bar .menu > li.current-menu-item > a,
body:not(.p2g-section-gmbh) #Top_bar .menu > li.current_page_item > a {
	background-color: transparent !important;
}

body:not(.p2g-section-gmbh) #Top_bar .menu > li > a:hover {
	background-color: rgba(255, 255, 255, .12) !important;
}

/* Sprachumschalter ganz rechts: ein Eintrag „DE · EN“, aktive Sprache fett (ohne Trennstrich) */
#Top_bar .menu > li.p2g-menu-lang {
	display: inline-flex !important;   /* BeTheme: inline-block */
	align-items: center;
	min-height: var(--p2g-menu-h, 90px);   /* so hoch wie die übrigen Menüpunkte, auch wenn er allein steht */
	margin-left: 10px;
}

#Top_bar.is-sticky .menu > li.p2g-menu-lang {
	min-height: 60px;   /* mitlaufender Header ist niedriger */
}

#Top_bar .menu > li.p2g-menu-lang > a.p2g-lang {
	display: inline-block;
	padding: 0 3px;
	font-size: 13px;
	letter-spacing: .06em;
}

#Top_bar .menu > li.p2g-menu-lang > a::after {
	display: none !important;
}

#Top_bar .menu > li.p2g-menu-lang > a.p2g-lang-active {
	font-weight: 700;
	opacity: 1;
}

#Top_bar .menu > li.p2g-menu-lang > a.p2g-lang:hover {
	opacity: 1;
	background-color: transparent !important;
}

#Top_bar .menu > li.p2g-menu-lang .p2g-lang-sep {
	opacity: .5;
}

/* Handy-Menü (Side Slide): Herz und Haus klein, Sprachen nebeneinander */
#Side_slide .menu > li.p2g-menu-icon :is(.p2g-heart, .p2g-house) {
	width: auto;
	height: 22px;
	vertical-align: middle;
}

#Side_slide .menu > li.p2g-menu-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
}

#Side_slide .menu > li.p2g-menu-lang > a.p2g-lang {
	display: inline-block !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;   /* BeTheme: Rand rechts für den Untermenü-Pfeil */
}

#Side_slide .menu > li.p2g-menu-lang > a.p2g-lang-active {
	font-weight: 700;
	opacity: 1;
}

#Side_slide .menu > li.p2g-menu-lang .p2g-lang-sep {
	opacity: .5;
}

/* Blog-Slider auf dem Handy: die 3 neuesten untereinander (js/p2g-blog-mobile.js) */
.p2g-blog-stack {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.p2g-blog-stack > li {
	margin: 0 0 30px;
	list-style: none;
}

.p2g-blog-stack .image_frame,
.p2g-blog-stack img {
	width: 100%;
	height: auto;
}

/* Blog: Datum ohne eigenes Feld, dunkleres Grau; „Read more“-Button in der
   Bereichsfarbe */
#Content .date_label {
	background: transparent !important;
	padding-left: 0;
	color: var(--p2g-muted);
}

#Content .date_label::after {
	display: none !important;
}

#Content a.button:not(.button_theme):not(.the-icon) {
	background-color: var(--p2g-brand) !important;
	color: #fff !important;
}

#Content a.button:not(.button_theme):not(.the-icon):hover {
	background-color: var(--p2g-brand-dark) !important;
}

#Content a.button:not(.button_theme):not(.the-icon) i {
	color: #fff !important;
}

/* Tabs (jQuery UI) in dunklen und farbigen Abschnitten: Reiter und Inhalt haben weißen
   Grund, Schrift deshalb dunkel bzw. in der geprüften Bereichsfarbe */
body :is(.section, .wrap):is(.dark, .p2g_dark_section, .p2g-brand, .p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) .ui-tabs .ui-tabs-panel,
body :is(.section, .wrap):is(.dark, .p2g_dark_section, .p2g-brand, .p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) .ui-tabs .ui-tabs-panel :is(p, li, h1, h2, h3, h4, h5, h6, .desc, blockquote) {
	color: #2b3035;
}

body :is(.section, .wrap):is(.dark, .p2g_dark_section, .p2g-brand, .p2g-bg-gmbh, .p2g-bg-it, .p2g-bg-praxis, .p2g-bg-impact) .ui-tabs :is(.ui-tabs-panel a:not(.button):not(.button_theme), .ui-tabs-nav li.ui-state-active a, .ui-tabs-nav li.ui-tabs-active a) {
	color: var(--p2g-ink);
}

/* Bereichs-Kacheln auf dem Handy: untereinander. Jede Kachel ist per
   BeTheme-Option „move up“ inline um 80 px nach oben versetzt (ragt auf dem
   Desktop ins Titelbild); untereinander schob sich so jede Kachel über die
   vorige. Nur die erste bleibt versetzt, die folgenden mit Abstand. */
@media only screen and (max-width: 767px) {
	.p2g-kacheln .section_wrapper > .wrap.move-up ~ .wrap.move-up {
		margin-top: 16px !important;
	}
}

/* Bereichs-Kacheln der Startseite (Abschnitt p2g-kacheln, tools/p2g/neu/kacheln.php):
   nebeneinander gleich hoch; Logo, Titel und Text liegen auf gemeinsamen Zeilen
   (Subgrid), die Trennlinie unter dem Titel damit auf gleicher Höhe. */
@media only screen and (min-width: 768px) {
	.p2g-kacheln .section_wrapper {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}

	/* BeTheme-Clearfix (::before/::after) würde sonst eine Rasterzelle belegen */
	.p2g-kacheln :is(.section_wrapper, .section_wrapper > .wrap, .mcb-wrap-inner)::before,
	.p2g-kacheln :is(.section_wrapper, .section_wrapper > .wrap, .mcb-wrap-inner)::after {
		display: none !important;
	}

	.p2g-kacheln .section_wrapper > .wrap {
		width: auto !important;
		height: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		display: grid !important;
		grid-template-rows: subgrid;
		grid-row: span 3;
	}

	.p2g-kacheln .section_wrapper > .wrap > .mcb-wrap-inner {
		display: grid !important;
		grid-template-rows: subgrid;
		grid-row: span 3;
		min-height: 0 !important;
		height: auto !important;
		align-items: stretch !important;   /* BeTheme „valign-top“: flex-start */
		align-content: stretch !important;
	}

	/* Titel-Spalte füllt ihre Zeile, Trennlinie unten */
	.p2g-kacheln .mcb-wrap-inner > .column_column,
	.p2g-kacheln .mcb-wrap-inner > .column_column > .mcb-column-inner,
	.p2g-kacheln .mcb-wrap-inner > .column_column .column_attr {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		width: auto;
		box-sizing: border-box;
	}

	.p2g-kacheln .mcb-wrap-inner > .column_column .column_attr > hr {
		margin-top: auto !important;   /* Divider-Shortcode setzt margin inline */
	}
}

/* Code, Bildunterschriften, Footer: kontrastgeprüft */
#Content :is(pre, code) {
	color: var(--p2g-text);
}

#Content :is(figcaption, .wp-caption-text, .wp-element-caption) {
	color: var(--p2g-muted);
}

.mfn-footer,
#Footer :is(p, li, span) {
	color: #a3a8ad;
}

/* Footer in Calibri (installiert) bzw. Carlito (lokal), wie Überschriften und
   Slogan; gilt auch für Formularfelder und Button */
#Footer,
#Footer :is(p, li, span, a, label, input, textarea, select, button, .wpcf7-list-item-label),
#Footer input[type="submit"] {
	font-family: Calibri, Carlito, sans-serif !important;
}

/* Call-to-Action-Buttons im Block-Editor (z. B. „Gespräch über lokale KI“) */
body .wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 5px;
	background-color: var(--p2g-brand);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	transition: background-color .2s;
}

body .wp-block-button .wp-block-button__link:hover {
	background-color: var(--p2g-brand-dark);
}

/* Kontaktformular (CF7) ---------------------------------------------------
   Meldungen einheitlich: Feldhinweise und Sammelmeldung bei Fehlern in einer
   Farbe, Erfolg in der Bereichsfarbe. Auswahl (Empfänger) in der Bereichsfarbe
   wie der Senden-Knopf. */
body {
	--p2g-alert: #c0392b;
}

#Footer,
:is(.section, .wrap).dark {
	--p2g-alert: #ff7b6e;   /* auf dunklem Grund lesbar */
}

body .wpcf7-not-valid-tip,
body .wpcf7 form.invalid .wpcf7-response-output,
body .wpcf7 form.unaccepted .wpcf7-response-output,
body .wpcf7 form.failed .wpcf7-response-output,
body .wpcf7 form.aborted .wpcf7-response-output,
body .wpcf7 form.spam .wpcf7-response-output,
body .wpcf7 form.payment-required .wpcf7-response-output {
	color: var(--p2g-alert) !important;
	border-color: var(--p2g-alert) !important;
}

body .wpcf7-not-valid-tip {
	font-size: 14px;
}

body .wpcf7 form .wpcf7-response-output {
	margin: 1.5em 0 0;
	padding: .6em 1em;
	border-width: 1px;
}

body .wpcf7 form.sent .wpcf7-response-output {
	color: var(--p2g-brand-light) !important;
	border-color: var(--p2g-brand) !important;
}

body .wpcf7 :is(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--p2g-brand);
}

/* 4. Hilfsklassen ------------------------------------------------------- */

#Top_bar .responsive-menu-toggle {
	color: #000;
}

#Footer .widgets_wrapper {
	padding: 15px 0;
}

/* Slogan unter dem Sprachumschalter im Footer */
#Footer .p2g-slogan {
	margin: 10px 0 0;
	text-align: center;
	font-family: Calibri, Carlito, sans-serif;
	font-size: 17px;
	font-style: italic;
	line-height: 1.4;
	letter-spacing: .02em;
	opacity: .85;
}

.p2g_gmbh_box {
	width: 200px;
	color: #fff;
}

@media only screen and (min-width: 769px) {
	.p2g_gmbh_box {
		height: 400px;
		position: relative;
	}

	/* Icon fest an der Unterkante, unabhängig von der Länge des Zitats */
	.p2g_gmbh_box .column_icon_box {
		position: absolute;
		top: calc(100% - 61px);
		left: 0;
		right: 0;
	}

	.p2g_hide_not_mobile {
		display: none;
	}
}

@media only screen and (max-width: 768px) {
	.p2g_hide_mobile {
		display: none;
	}

	.p2g_box {
		max-width: 200px;
	}
}

.p2g-hidden-element {
	display: block;
	visibility: hidden;
}

/* alte Klassen aus den Einzelseiten: Schrift ausdrücklich weiß (Kacheln mit
   eigener Hintergrundfarbe im lokalen Stil, z. B. Startseite). In dunklen
   Abschnitten entfernt alte-klassen.php sie (überflüssig), damit ein Abschnitt
   beim Umstellen auf hell lesbar bleibt. */
.p2g_white :is(h1, h2, h3, h4, p, li),
.p2g_text_white,
.p2g_text_white :is(h1, h2, h3, h4, h5, h6, p, li) {
	color: #fff;
}

.p2g-row-wrapper {
	display: flex;
	justify-content: space-between;
	min-height: 30px;
}

.p2g-row-wrapper::after {
	display: none !important;
}

.p2g-col {
	display: flex;
	align-items: center;
	height: 30px;
	padding: 5px;
}

/* Praxis-Formular: persönlicher Hinweis, Einwilligung und Krisen-Hinweis
   ruhig und gleich groß wie die übrigen Formulartexte (Einwilligung war der
   größte Text im Formular) */
.wpcf7 .p2g-form-note,
.wpcf7 .p2g-form-consent .wpcf7-list-item-label {
	font-size: 14px;
	line-height: 1.5;
}
.wpcf7 .p2g-form-note {
	margin: 4px 0 14px;
}
.wpcf7 .p2g-form-consent .wpcf7-list-item {
	margin-left: 0;
}
