/*
Theme Name: XOLUTION Astra Child
Theme URI: https://xolcon.com/
Description: Updatefeste XOLUTION-Anpassungen auf Basis von Astra.
Author: Codex
Template: astra
Version: 1.1.0
Text Domain: xolution-astra-child
*/

/* Astra preview style guide must never bleed into the public child render. */
body.wp-child-theme-xolution-astra-child .ast-style-guide-wrapper {
	display: none !important;
}

/* Normalize footer grouping to logo/address, company, topics, contact. */
body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap {
	display: grid !important;
	grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(170px, 1fr));
	column-gap: 32px;
	row-gap: 24px;
	align-items: start;
}

body.wp-child-theme-xolution-astra-child .site-footer-primary-section-1 {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2,
body.wp-child-theme-xolution-astra-child .site-footer-primary-section-3 {
	display: contents;
}

body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-1"] {
	grid-column: 2;
}

body.wp-child-theme-xolution-astra-child .site-footer-primary-section-3 [data-section="sidebar-widgets-footer-widget-2"] {
	grid-column: 3;
}

body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-3"] {
	grid-column: 4;
}

body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .widget-title,
body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .menu-link,
body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .address-meta {
	font-family: "Source Sans 3", sans-serif;
}

body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .widget-title {
	font-size: 16px;
	line-height: 1.24;
	margin-bottom: 16px;
}

html[lang^="en"]
	body.wp-child-theme-xolution-astra-child
	.site-primary-footer-wrap
	aside[data-section="sidebar-widgets-footer-widget-2"]
	.widget-title {
	display: block !important;
}

body.wp-child-theme-xolution-astra-child
	.site-primary-footer-wrap
	aside[data-section="sidebar-widgets-footer-widget-2"]::before,
body.wp-child-theme-xolution-astra-child
	.site-primary-footer-wrap
	aside[data-section="sidebar-widgets-footer-widget-3"]::before {
	display: none !important;
}

body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .menu-link,
body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap .address-meta {
	font-size: 16px;
	line-height: 1.5;
}

/* Contact form pages must not render the generic CTA side column. */
body.page-id-141 .elementor-element-f3037a4,
body.page-id-494 .elementor-element-f1fd6e4 {
	width: 100%;
}

body.page-id-141 .entry-content::before,
body.page-id-494 .entry-content::before,
body.page-id-41 .entry-content::before,
body.page-id-487 .entry-content::before {
	display: block;
	font-family: "Manrope", sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.18;
	color: #005c99;
	margin-bottom: 18px;
}

body.page-id-141 .entry-content::before {
	content: "Kontaktformular";
}

body.page-id-494 .entry-content::before {
	content: "Contact Form";
}

body.page-id-41 .entry-content::before {
	content: "Über Uns";
}

body.page-id-487 .entry-content::before {
	content: "About us";
}

body.page-id-141 .elementor-element-566eec8,
body.page-id-494 .elementor-element-e5284f8 {
	display: none !important;
}

body.page-id-141 .elementor-element-8b567e8 .elementor-container,
body.page-id-494 .elementor-element-5a78de9 .elementor-container {
	display: block;
}

body.page-id-472 .entry-content h2,
body.page-id-472 .elementor-widget-text-editor h2 {
	font-family: "Manrope", sans-serif;
	font-size: 18px !important;
	line-height: 1.24 !important;
	color: #005c99 !important;
	margin: 34px 0 16px !important;
}

body.page-id-472 .elementor-element-19f2fdac h2 {
	font-size: 18px !important;
	line-height: 1.24 !important;
}

body.page-id-41 .elementor-element-fda05dc h2,
body.page-id-487 .elementor-element-a59f1d9 h2 {
	font-size: 18px !important;
	line-height: 1.55 !important;
}

body.page-id-41 .elementor-element.elementor-element-fda05dc .elementor-heading-title.elementor-size-default,
body.page-id-487 .elementor-element.elementor-element-a59f1d9 .elementor-heading-title.elementor-size-default {
	font-size: 18px !important;
	line-height: 1.55 !important;
}

body.page-id-472 .elementor-element.elementor-element-19f2fdac .elementor-widget-container > h2 {
	font-size: 18px !important;
	line-height: 1.24 !important;
}

body.page-id-472.page .entry-content h2:not(.widget-title):not(.elementor-image-box-title),
body.page-id-472.page .entry-content h3:not(.widget-title):not(.elementor-image-box-title),
body.page-id-472.page .entry-content .elementor-widget-text-editor h2,
body.page-id-472.page .entry-content .elementor-widget-text-editor h3,
body.page-id-472.page .entry-content .elementor-widget-heading h2.elementor-heading-title,
body.page-id-472.page .entry-content .elementor-widget-heading h3.elementor-heading-title {
	font-family: "Manrope", sans-serif !important;
	font-size: 18px !important;
	line-height: 1.24 !important;
	color: #005c99 !important;
	margin: 34px 0 16px !important;
}

body.page-id-41.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h1.elementor-heading-title,
body.page-id-41.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h2.elementor-heading-title,
body.page-id-41.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h3.elementor-heading-title,
body.page-id-487.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h1.elementor-heading-title,
body.page-id-487.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h2.elementor-heading-title,
body.page-id-487.page .entry-content > .elementor .elementor-top-section:first-of-type .elementor-widget-heading:first-of-type h3.elementor-heading-title {
	font-size: 18px !important;
	line-height: 1.55 !important;
}

@media (max-width: 1024px) {
	body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 32px;
	}

	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-1 {
		grid-column: 1;
	}

	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-1"] {
		grid-column: 2;
	}

	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-3 [data-section="sidebar-widgets-footer-widget-2"] {
		grid-column: 1;
	}

	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-3"] {
		grid-column: 2;
	}
}

@media (max-width: 767px) {
	body.wp-child-theme-xolution-astra-child .site-primary-footer-inner-wrap {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 28px;
	}

	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-1,
	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-1"],
	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-3 [data-section="sidebar-widgets-footer-widget-2"],
	body.wp-child-theme-xolution-astra-child .site-footer-primary-section-2 [data-section="sidebar-widgets-footer-widget-3"] {
		grid-column: 1;
	}
}
