/**
 * C1 Website Feinschliff 1.0.0
 *
 * Deliberately page-scoped corrections for C1 Freiburg Theme 1.1.0-beta.15.
 * No global component or content changes.
 */

/* Ueber uns: never split the word "Generationen" within the heading. */
body.c1-page-ueber-uns .c1-about-values__grid > .wp-block-column:nth-child(2) h3.wp-block-heading {
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
	text-wrap: balance;
}

/* Leitung & Team: turn the dense copy into one calm, readable text panel. */
body.c1-page-leitung-team .c1-team-intro-v118 {
	align-items: start;
}

body.c1-page-leitung-team .c1-team-intro-v118__copy {
	box-sizing: border-box;
	display: grid;
	gap: 1.15rem;
	padding: clamp(1.4rem, 3vw, 2rem) !important;
	border: 1px solid rgba(130, 142, 143, 0.32);
	border-left: 4px solid var(--c1-green, #436e5d);
	border-radius: 18px;
	background: var(--c1-cream, #f7f5ec);
}

body.c1-page-leitung-team .c1-team-intro-v118__copy > p {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	line-height: 1.72;
}

body.c1-page-leitung-team .c1-team-intro-v118__copy > p + p {
	padding-top: 1.15rem;
	border-top: 1px solid rgba(130, 142, 143, 0.32);
}

/* Beta.15 makes every direct card child full width. Restore the intended inset. */
body.c1-page-leitung-team .c1-team-card > .c1-team-card__switch {
	box-sizing: border-box !important;
	width: auto !important;
	max-width: none !important;
	margin: 1.2rem clamp(1.4rem, 3vw, 1.9rem) 0 !important;
	padding: 4px !important;
}

/* The quote remains typographically distinct, but without the yellow stroke. */
body.c1-page-leitung-team .c1-team-card__quote blockquote::before {
	display: none !important;
	content: none !important;
}

/* Kontakt: use the existing C1 green-card language for the second contact card. */
body.c1-page-kontakt .c1-contact-stack > .c1-contact-card:nth-child(2) {
	border-color: var(--c1-green, #436e5d) !important;
	background: var(--c1-green, #436e5d) !important;
	box-shadow: 0 12px 44px rgba(20, 40, 32, 0.07);
	color: #fff !important;
}

body.c1-page-kontakt .c1-contact-stack > .c1-contact-card:nth-child(2) :where(h2, h3, p, a, strong) {
	color: #fff !important;
}

/* The generic field-label rule in Beta.15 otherwise changes this label to block. */
body.c1-page-kontakt .c1-field > label.c1-check {
	display: flex !important;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	font-weight: 400;
}

body.c1-page-kontakt .c1-field > label.c1-check > input[type="checkbox"] {
	box-sizing: border-box;
	width: 1.25rem !important;
	height: 1.25rem !important;
	min-height: 1.25rem;
	margin: 0.2rem 0 0 !important;
	padding: 0;
	flex: 0 0 1.25rem;
}

body.c1-page-kontakt .c1-field > label.c1-check > span {
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.55;
}

/* Kinder & Familien: remove Gutenberg's extra constrained-layout inset. */
body.c1-page-kinder-familien .c1-offer-card > .c1-card__body {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(1.25rem, 4vw, 2rem) !important;
	align-items: flex-start !important;
	text-align: left !important;
}

body.c1-page-kinder-familien .c1-offer-card > .c1-card__body > :not(.c1-badge) {
	width: 100%;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	text-align: left !important;
}

body.c1-page-kinder-familien .c1-offer-card > .c1-card__body > .c1-badge {
	margin-right: 0 !important;
	margin-left: 0 !important;
	align-self: flex-start;
	text-align: left !important;
}

@media (max-width: 760px) {
	body.c1-page-leitung-team .c1-team-intro-v118__copy {
		padding: 1.25rem !important;
		border-radius: 14px;
	}

	body.c1-page-leitung-team .c1-team-card > .c1-team-card__switch {
		margin-right: 1.25rem !important;
		margin-left: 1.25rem !important;
	}
}

