/**
 * Theme Name:   Pace 4 Child
 * Description:  Child theme for Pace 4
 * Template:     pace4
 * Version:      1.0.0
 * Author:       Wordliner GmbH
 * Author URI:   https://wordliner.com
 * Text Domain:  pace4-child
 */




/* ============================================================================== */
/* ============ Anfang wlac setting expose und objektlist alex =========== ======== */
/* ============================================================================== */

/* Searchbar wlac  */
.searchbox .p-inputtext.p-component.p-autocomplete-input {
	max-width: 150px;
}

.searchbox #filter_address_range {
	width: 130px!important;
}


@media(max-width:768px){
	.searchbox .p-inputtext.p-component.p-autocomplete-input {
	max-width: 100%!important;
	}
}


/* teaser-setting wlac lists /suchende */
.teaser .p-paginator {display:none!important}
.teaser .searchbox {display:none!important}


/* Wlac objectlist searchbar style */
.searchbox *::placeholder,
.searchbox .p-select-label,
.searchbox .p-multiselect-label,
.searchbox .p-multiselect-label.p-placeholder,
.searchbox .p-placeholder,
.searchbox .p-button-icon.pi.pi-sort-alt,
.p-inputtext.p-component.p-autocomplete-input {
	font-weight:500!important;
	color:var(--wp--preset--color--black)!important;
	font-size:1.1rem!important;	
}




/* Expose custom css */

.header_mobile .p-carousel-indicator-list{
	display:none;
}

@media (max-width: 768px) {
  .header_mobile img {
    aspect-ratio: 1/1 !important;
  }
}
.button_expose span{
	margin-bottom:0!important;
}

.header_mobile div:nth-child(2){
	margin-top:0px;
}


.flexrow div{
	flex-direction:row!important;
	margin:auto 0;
}

@media(max-width:768px){
	.column-gap > div{
		display:block!important;
	}
	
}

.space-between div {
	justify-content:space-between!important;
}


/* Expose energieausweis letter not centered corrction (unitl wlac update) */

#energy-class-pointer {
	justify-content: center !important;
}

/* Expose texts formatting */

.beschreibung, .ausstattung, .sonstige_angaben, .lage {
	overflow-wrap: break-word!important; 
    word-break: break-word!important; 
}


/* Headline Font in Expose */
#wlac-expose h1,
#wlac-expose h2{
/* 	color: var(--wlac-primary-color) !important; */
	font-weight:600!important;
}

a.expose_searchorder_button:hover{
	background:#fff!important;
	color:var(--wp--preset--color--secondary-color, #ff9a00)!important;
}


div#broker-infos-photo-and-infos * {
    word-wrap: break-word;
    word-break: break-word;
}


/* ============================================================================== */
/* ============ Ende wlac setting expose und objektlist alex =========== ======== */
/* ============================================================================== */



/* ============================================================================== */
/* OptiWert — type scale                                                          */
/* H1 = 44px, H2 = large, H3..H5 = medium, paragraphs = medium, and "small" only   */
/* on fine print. H3..H5 sit at the same size as body text on purpose — weight     */
/* carries the hierarchy, as on the start page.                                    */
/* Pace4's styles.blocks."core/heading" pins EVERY heading block to                */
/* "extra-large" via :root :where(.wp-block-heading) (specificity 0,1,0), which    */
/* outranks the per-level h1..h6 element rules (0,0,1) — so the scale has to be    */
/* restated here at (0,1,1) to win.                                                */
/* Paragraphs are NOT handled here on purpose: theme.json emits :root :where(p)    */
/* at 16px, and a rule specific enough to beat it would also beat                  */
/* .has-small-font-size and flatten the fine print. The size travels as a preset   */
/* class on each paragraph block instead.                                          */
/* ============================================================================== */
h1.wp-block-heading {
	font-size: 44px;
	line-height: 1.15;
}
h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}


/* ============================================================================== */
/* OptiWert — vertical rhythm inside page content                                 */
/* Pace4's main.css hard-resets flow spacing:                                      */
/*   :root :where(.is-layout-flow) > * { margin-block-start: 0 !important }        */
/* so headings and paragraphs collide unless every pattern places explicit         */
/* spacers. Restore a consistent rhythm within .entry-content, and guarantee a     */
/* minimum gap on the column grids.                                                */
/* ============================================================================== */
/* Section rhythm (Abstand / H2 / Abstand / Inhalt / Abstand) is carried by
   explicit spacer blocks now — here we only keep paragraphs/lists from
   colliding when they sit next to each other inside one content block. */
.entry-content .wp-block-group > :not(.wp-block-spacer):not(.wp-block-columns):not(figure) + :not(.wp-block-spacer):not(.wp-block-columns):not(figure) {
	margin-block-start: 0.9rem !important;
}
.entry-content .wp-block-column > * + * {
	margin-block-start: 0.7rem !important;
}
.entry-content .wp-block-columns {
	gap: clamp(12px, 2vw, 32px) !important;
	margin-block-start: 1.5rem !important;
}
/* Any flex container in content keeps at least a 10px gap */
.entry-content [class*="is-layout-flex"] {
	gap: max(10px, var(--wp--style--block-gap, 12px));
}

/* ------------------------------------------------------------------------------ */
/* Same rhythm for the Greenshift layout blocks.                                    */
/* Section Advanced / Row-Columns Advanced replace core group / columns / column,   */
/* so none of the rules above match any more once a page is swapped over. A         */
/* Greenshift column is a plain div (no .is-layout-flow), so theme.json's           */
/* core/paragraph margin:0 — which lands as :root :where(p) — is the last word      */
/* unless we restore the gap here.                                                  */
/* A section wrapper is always the full-width column (--12); anything narrower is   */
/* a real grid column, and gets the tighter column rhythm.                          */
/* ------------------------------------------------------------------------------ */
.entry-content .gspb_row__col--12 > :not(.wp-block-spacer):not(.gspb_row):not(figure) + :not(.wp-block-spacer):not(.gspb_row):not(figure) {
	margin-block-start: 0.9rem !important;
}
.entry-content [class*="gspb_row__col--"]:not(.gspb_row__col--12) > * + * {
	margin-block-start: 0.7rem !important;
}
.entry-content .gspb_row__col--12 > .gspb_row {
	margin-block-start: 1.5rem !important;
}
.entry-content [class*="gspb_row__col--"]:not(.gspb_row__col--12) .wp-block-image img {
	max-height: 260px;
	object-fit: cover;
}


/* ============================================================================== */
/* OptiWert — Greenshift accordion state + skin                                   */
/* Hand-authored accordion blocks don't carry the per-instance inlineCssStyles    */
/* the editor normally bakes in, so the collapsed state and the +/- icon have no  */
/* styling and every panel shows open. Provide a generic on-brand skin; the       */
/* Greenshift accordion JS still drives the open/close (inline max-height).        */
/* ============================================================================== */
.entry-content .gs-accordion { margin-block-start: 1.5rem !important; }
.entry-content .gs-accordion-item {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--main-color) 16%, transparent);
}
.entry-content .gs-accordion-item:first-child {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--main-color) 16%, transparent);
}
.entry-content .gs-accordion-item__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	cursor: pointer;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
	color: var(--wp--preset--color--main-color);
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}
.entry-content .gs-accordion-item__heading { margin: 0 !important; font: inherit; }
.entry-content .gs-accordion-item__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height .28s ease;
}
.entry-content .gs-accordion-item__text { padding: 2px 0 20px; }
.entry-content .gs-accordion-item__text > * + * { margin-block-start: .6rem !important; }
.entry-content .iconfortoggle {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}
.entry-content .iconfortoggle .gs-iconbefore,
.entry-content .iconfortoggle .gs-iconafter {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--secondary-color);
}
.entry-content .iconfortoggle .gs-iconafter {
	transform: rotate(90deg);
	transition: transform .28s ease;
}
.entry-content .gs-accordion-item.gsopen .iconfortoggle .gs-iconafter { transform: rotate(0); }


/* Placeholder images: rounded, and don't let a banner get taller than ~440px */
.entry-content .wp-block-image img { border-radius: var(--pace-radius); display: block; width: 100%; height: auto; }
.entry-content .wp-block-image.size-large img { max-height: 440px; object-fit: cover; }
.entry-content .wp-block-columns .wp-block-image img { max-height: 260px; object-fit: cover; }
.entry-content figure.wp-block-image { margin: 0; }


/* Icon placeholder (benefit/feature items) */
.entry-content .pace-icon-ph { margin: 0 0 6px; display: block; }
.entry-content .pace-icon-ph img {
	width: 56px !important;
	height: 56px !important;
	max-height: none !important;
	border-radius: 16px;
	object-fit: contain !important;
}


/* Pace4 Forms addon: .pace-form__success sets display:flex unconditionally,
   which defeats the [hidden] attribute the form JS toggles — so the "Danke"
   panel shows on top of the empty form on first load. Restore [hidden]. */
.pace-form__success[hidden] { display: none !important; }
.pace-form__body[hidden] { display: none !important; }


/* [pace_map] embed — the wlac map widget div has no intrinsic height */
.pace-map-embed { position: relative; }
.pace-map-embed [id^="wlac-map-widget"],
.pace-map-embed .maplibregl-map,
.pace-map-embed .mapboxgl-map {
	width: 100% !important;
	height: 420px !important;
	border-radius: var(--pace-radius);
	overflow: hidden;
}


/* ============================================================================== */
/* OptiWert — article column that carries its own rhythm                          */
/* Ratgeber articles used stacked 48px spacer blocks (often two in a row, i.e.    */
/* 96px) between sections. Those are gone; the column is a flex column with a     */
/* row-gap instead. The generic .gspb_row__col--12 rule above would otherwise     */
/* stack its margin on top of that gap, so it is zeroed here — the selector       */
/* repeats that rule's shape plus .pace-flow so it wins on specificity, not on    */
/* source order. Headings get their extra breathing room from padding, which      */
/* nothing else competes for.                                                     */
/* ============================================================================== */
.entry-content .gspb_row__col--12.pace-flow > :not(.wp-block-spacer):not(.gspb_row):not(figure) + :not(.wp-block-spacer):not(.gspb_row):not(figure) {
	margin-block-start: 0 !important;
}
.entry-content .pace-flow > h2 {
	padding-block-start: 16px;
}


/* ============================================================================== */
/* OptiWert — feature icons (Material Symbols, inline SVG)                        */
/* Replaces the ph-icon.png placeholders. The tile tint is derived from the brand */
/* accent rather than hardcoded, so it stays legible on both the white and the    */
/* light-gray section backgrounds. The glyph follows `color` via currentColor.    */
/* ============================================================================== */
.entry-content .pace-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 6px;
	border-radius: var(--pace-radius);
	background: color-mix(in srgb, var(--wp--preset--color--secondary-color) 12%, transparent);
	color: var(--wp--preset--color--secondary-color);
}
.entry-content .pace-icon svg {
	display: block;
	width: 30px;
	height: 30px;
}


/* ============================================================================== */
/* OptiWert — Abstand Text → Buttons (Gerta-2, 15.10.2026)                        */
/* Buttons direkt nach Text (Absatz, Liste, Überschrift, Zitat) bekommen überall  */
/* ca. 36px Abstand (= Preset spacing-60).                                        */
/* Block-Spalten (Rhythmus 0.9rem/0.7rem): margin = 36px.                          */
/* Flex-Spalten/Container (.pace-flow, .gspb_container, gap 15–20px): margin 18px, */
/* zusammen mit dem gap 33–38px.                                                  */
/* :not(#ow-btn) hebt die Spezifität über die Rhythmus-Regeln mit !important.     */
/* Buttons nach einem Spacer sind nicht betroffen. Rollback: diesen Block löschen. */
/* ============================================================================== */
.entry-content :is(p, ul, ol, .wp-block-heading, .wp-block-quote) + .wp-block-buttons:not(#ow-btn),
.entry-content :is(p, ul, ol, .wp-block-heading, .wp-block-quote) + style + .wp-block-buttons:not(#ow-btn) {
	margin-block-start: var(--wp--preset--spacing--60, 2.25rem) !important;
}
.entry-content :is(.pace-flow, .gspb_container) > :is(p, ul, ol, .wp-block-heading, .wp-block-quote) + .wp-block-buttons:not(#ow-btn),
.entry-content :is(.pace-flow, .gspb_container) > :is(p, ul, ol, .wp-block-heading, .wp-block-quote) + style + .wp-block-buttons:not(#ow-btn) {
	margin-block-start: calc(var(--wp--preset--spacing--60, 2.25rem) - 18px) !important;
}

/* === Wordliner QS 2026-10-15: Listen, Modultitel, Tabellen (global) === */
/* Bullets bündig mit dem Fließtext */
.entry-content ul.wp-block-list{padding-left:1.1em}
/* Modultitel: gleicher Abstand zum Inhalt wie Module mit Spacer (--pace-spacer) */
body .entry-content .gspb_row .gspb_row__col--12 > h2.wp-block-heading + :not(.wp-block-spacer):not(.gspb_row):not(figure){margin-block-start:var(--pace-spacer)!important}
/* Tabellen: Schriftgröße wie Fließtext, kein Überlauf im Responsive */
body .entry-content .wp-block-table,body .entry-content .wp-block-table table,body .entry-content .wp-block-table th,body .entry-content .wp-block-table td{font-size:var(--wp--preset--font-size--medium)!important;line-height:1.5}
body .entry-content .wp-block-table{overflow-x:visible;max-width:100%}
body .entry-content .wp-block-table table{width:100%;max-width:100%;table-layout:fixed}
body .entry-content .wp-block-table th,body .entry-content .wp-block-table td{word-break:normal;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
/* Mobile: jede Tabellenzeile als Karte, Spaltenköpfe via data-label (assets/js/custom.js) */
@media (max-width:767px){
body .entry-content .wp-block-table table.wl-stack,body .entry-content .wp-block-table table.wl-stack tbody,body .entry-content .wp-block-table table.wl-stack tr,body .entry-content .wp-block-table table.wl-stack td{display:block;width:100%}
body .entry-content .wp-block-table table.wl-stack{border:0}
body .entry-content .wp-block-table table.wl-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .entry-content .wp-block-table table.wl-stack tr{border:1px solid currentColor;margin-bottom:1em}
body .entry-content .wp-block-table table.wl-stack td{border:0;border-bottom:1px solid rgba(0,0,0,.15);padding:.6em .8em;-webkit-hyphens:manual;hyphens:manual}
body .entry-content .wp-block-table table.wl-stack td:last-child{border-bottom:0}
body .entry-content .wp-block-table table.wl-stack td[data-label]::before{content:attr(data-label);display:block;font-weight:700;margin-bottom:.2em}
}

/* ============================================================================ */
/* OptiWert — einheitlicher Abstand Ueberschrift -> Text: 20px (H2-H6).         */
/* Gilt nur, wenn direkt Inhalt folgt. Spacer-Bloecke nach Ueberschriften und   */
/* Greenshift-/Pace4-Module (.gspb_container-Karten) bleiben unveraendert.     */
/* ============================================================================ */
:root{--ow-heading-gap:20px}
body .entry-content :not(.gspb_container) > .wp-block-heading:not(h1):not(#ow):has(+ :not(.wp-block-spacer):not(style):not(.wp-block-buttons)),
body .entry-content :not(.gspb_container) > .wp-block-heading:not(h1):not(#ow):has(+ style + :not(.wp-block-spacer):not(.wp-block-buttons)){margin-block-end:0 !important}
body .entry-content :not(.gspb_container) > .wp-block-heading:not(h1):not(#ow) + :not(.wp-block-spacer):not(style):not(.wp-block-buttons),
body .entry-content :not(.gspb_container) > .wp-block-heading:not(h1):not(#ow) + style + :not(.wp-block-spacer):not(.wp-block-buttons){margin-block-start:var(--ow-heading-gap) !important}

/* OptiWert — Tabellen mobil: gestapelt statt seitlich abgeschnitten (JS in functions.php setzt .wl-stack + data-label) */
@media (max-width:767px){
	body .entry-content .wp-block-table:not(#ow){overflow-x:visible !important}
	body .entry-content .wp-block-table:not(#ow) table.wl-stack{min-width:0 !important;width:100% !important}
	body .entry-content .wp-block-table:not(#ow) table.wl-stack tr.wl-head{display:none !important}
	body .entry-content .wp-block-table:not(#ow) table.wl-stack td{width:auto !important}
}
