/*
 * Consiera – Block-Fassungen der Seiten (ersetzt Elementor-Abschnitte und -Spalten)
 * Jede Seite steckt in einer Gruppe .cns-sec. Abstände entsprechen Elementor:
 * 10 px Innenrand je Spalte, 20 px zwischen Blöcken.
 */

/* Abschnitt = Elementor-Spalte (10 px Innenrand); .cns-w = Elementor-Widget (eigener Container, 20 px Abstand) */
.cns-sec { position: relative; padding: 10px; }
.cns-sec.cns-pad-x { padding: 0 10px; }
.cns-sec + .cns-sec { margin-top: 0; }
.cns-w { position: relative; }
.cns-w + .cns-w { margin-top: 20px; }
.cns-sec .cns-w figure { margin: 0; }

/* Große, blasse Bildmarke oben rechts (Kompetenzen, Über uns, Kontakt) */
.cns-deco-right { overflow: visible; }
.cns-deco-right::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: 600px; height: 612px; top: -110px; right: -300px; opacity: .08;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* … oben links (Karriere) */
.cns-deco-left { overflow: visible; }
.cns-deco-left::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: 600px; height: 612px; top: -110px; left: -300px; opacity: .08;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cns-deco-right > *, .cns-deco-left > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
	.cns-deco-right::before { width: 300px; height: 306px; top: -60px; right: -150px; }
	.cns-deco-left::before { width: 300px; height: 306px; top: -60px; left: -150px; }
}

/* Leistungen: Überschrift „Häufige Fragen“ */
.cns-faq .cns-w > h4 { margin: 24px 0 14px !important; padding: 0 !important; font-size: 19px; color: #03463c; }
.cns-faq .cns-w > h4::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; border-radius: 2px; background: #b0e04b; }

/* Spalten (ersetzt Elementor-Spalten; auf dem Handy untereinander).
   WordPress legt in Gruppen einen inneren Container an – der wird zur Flex-Zeile. */
.cns-row { position: relative; }
.cns-row > .wp-block-group__inner-container,
.cns-row:not(:has(> .wp-block-group__inner-container)) { display: flex; flex-wrap: nowrap; }
.cns-row .cns-col { min-width: 0; }
.cns-col-50 { width: 50%; }
.cns-col-66 { width: 66.666%; }
.cns-col-33 { width: 33.333%; }
@media (max-width: 767px) {
	.cns-row > .wp-block-group__inner-container,
	.cns-row:not(:has(> .wp-block-group__inner-container)) { flex-direction: column; }
	.cns-row .cns-col { width: 100%; }
}

/* Abstands-Ausnahmen einzelner Blöcke */
.cns-w.cns-mb6 + .cns-w { margin-top: 6px; }

/* Kontakt: Stern vor „Kontaktformular“ (ersetzt Elementor-Icon-Schrift) */
.cns-heading .cns-star { display: inline-block; width: 22px; height: auto; vertical-align: -2px; }

/* Karriere: Fotospalte mit Bildmarke */
.krr-ph-first .krr-photos { margin-top: 30px; }
.krr-ph-first .krr-photos::before {
	content: ""; position: absolute; z-index: 0; width: 300px; height: 306px; top: -70px; right: -40px; opacity: .3;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 767px) {
	.krr-ph-first .krr-photos::before { width: 170px; height: 174px; top: -36px; right: -6px; }
}

/* Container halten Abstände ihrer Inhalte fest (wie Elementor-Widgets) */
.cns-w { display: flow-root; }

/* Kontakt: auf dem Handy 10 px Seitenrand (wie in Elementor) */
@media (max-width: 767px) { .cns-mob-px10 { padding-left: 10px; padding-right: 10px; } }

/* ---------- Startseite ---------- */
.cns-home { position: relative; overflow: hidden; background: #fff; padding: 56px 40px 64px; }
.cns-home::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: 600px; height: 612px; top: -110px; left: max(-200px, calc(50% - 850px)); opacity: .08;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cns-home::after {
	content: ""; position: absolute; pointer-events: none;
	width: 320px; height: 326px; bottom: -110px; right: -80px; opacity: .05;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%2303463c' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cns-home-row { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; }
.cns-home-c1 { width: 54%; }
.cns-home-c2 { width: 46%; }

/* Überschrift dunkelgrün mit hellgrünem Strich */
.cns-home-h1 h1 { margin: 0; padding: 0; font-weight: 400; font-size: 34px; line-height: 1.2; color: #03463c; text-align: left; }
.cns-home-h1 h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: #b0e04b; margin-top: 14px; }

/* Fließtext */
.cns-home-text p {
	color: #4a4a45; font-size: 14px; line-height: 1.6; padding-bottom: 0; margin: 0 0 12px;
	text-align: left; hyphens: auto; -webkit-hyphens: auto; /* linksbündig statt Blocksatz (v0.72) */
}

/* Foto rechts mit 30 px Einzug, Kacheln direkt darunter, danach 40 px Luft */
.cns-home-photo { margin-left: 30px; }
.cns-w.cns-home-photo + .cns-w { margin-top: 0; }
.cns-w.cns-home-teaser + .cns-w { margin-top: 40px; }

/* Rechte Spalte vertikal mittig (wie in Elementor) */
@media (min-width: 768px) {
	.cns-home-c2 > .wp-block-group__inner-container { height: 100%; display: flex; flex-direction: column; justify-content: center; }
}
/* Tablet: linke Spalte mit 60 px Abstand unten, ohne Seitenrand (wie in Elementor) */
@media (min-width: 768px) and (max-width: 1024px) {
	.cns-home-c1 { padding: 0 0 60px; }
}

@media (max-width: 767px) {
	.cns-home { padding: 36px 20px 44px; }
	.cns-home::before { width: 300px; height: 306px; top: -60px; left: -150px; }
	.cns-home-h1 h1 { font-size: 27px; }
	.cns-home-text p { text-align: left; }
	.cns-home-photo { margin-left: 0; }

	/* Reihenfolge auf dem Handy: Foto, Überschrift, Text, Button, Kacheln */
	.cns-home-row > .wp-block-group__inner-container { display: flex; flex-direction: column; }
	.cns-home-c1, .cns-home-c2,
	.cns-home-c1 > .wp-block-group__inner-container,
	.cns-home-c2 > .wp-block-group__inner-container { display: contents; }
	.cns-home-photo { order: 1; }
	.cns-home-h1 { order: 2; }
	.cns-home-text { order: 3; }
	.cns-home-cta { order: 4; }
	.cns-home-teaser { order: 5; margin-top: 26px !important; }
	.cns-home-ld { order: 6; margin-top: 0 !important; }
}
