/* ==========================================================================
   Servicewohnen – Seiten-Template page-servicewohnen.php
   Farben aus Logo/Broschuere. Gruen nur als Flaeche/Deko, Textfarben auf
   Gruen dunkel (Kontrast AA).
   ========================================================================== */

.sw {
	--sw-blue: #2f539c;
	--sw-blue-dark: #1f3a73;
	--sw-green: #7dbb32;
	--sw-green-soft: #eef6e4;
	--sw-green-text: #3b6a10;
	--sw-pink: #c8006a;
	--sw-ink: #1f2733;
	--sw-muted: #4b5563;
	--sw-tint: #f4f7fb;
	--sw-radius: 18px;
	--sw-shadow: 0 18px 40px -22px rgba(31, 58, 115, .45);

	font-family: 'Varela Round', Arial, sans-serif;
	color: var(--sw-ink);
	font-size: 17px;
	line-height: 1.7;
	overflow-x: clip;
}

.sw *,
.sw *::before,
.sw *::after { box-sizing: border-box; }

.sw img { display: block; max-width: 100%; height: auto; }
.sw figure { margin: 0; }
.sw p { margin: 0 0 1em; }

.sw-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Typografie ------------------------------------------------------- */
.sw-h2 {
	font-family: inherit;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.2;
	color: var(--sw-blue);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

.sw-kicker,
.sw-eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sw-green-text);
	margin: 0 0 .8em;
}

.sw-kicker::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--sw-green);
	vertical-align: middle;
	margin: -2px 10px 0 0;
}

.sw-kicker--pink { color: var(--sw-pink); }
.sw-kicker--pink::before { background: var(--sw-pink); }

.sw-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--sw-muted); }

.sw-section { padding: clamp(64px, 8vw, 110px) 0; }
.sw-section--tint { background: var(--sw-tint); }
.sw-section__head { max-width: 720px; margin-bottom: 44px; }

/* --- Buttons ---------------------------------------------------------- */
.sw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sw a.sw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.sw a.sw-btn:hover { transform: translateY(-2px); }

.sw a.sw-btn--primary { background: var(--sw-blue); color: #fff; box-shadow: var(--sw-shadow); }
.sw a.sw-btn--primary:hover { background: var(--sw-blue-dark); color: #fff; }

.sw a.sw-btn--ghost { border-color: var(--sw-blue); color: var(--sw-blue); background: #fff; }
.sw a.sw-btn--ghost:hover { background: var(--sw-blue); color: #fff; }

.sw a.sw-btn--light { background: #fff; color: var(--sw-blue); }
.sw a.sw-btn--light:hover { background: var(--sw-green-soft); color: var(--sw-blue-dark); }

.sw a.sw-btn--outline-light { border-color: #fff; color: #fff; }
.sw a.sw-btn--outline-light:hover { background: #fff; color: var(--sw-blue); }

.sw a:focus-visible {
	outline: 3px solid #ffcc00;
	outline-offset: 3px;
}

/* --- Hero ------------------------------------------------------------- */
.sw-hero {
	position: relative;
	min-height: clamp(520px, 72vh, 720px);
	display: flex;
	align-items: center;
	padding: 60px 0 140px;
	background: var(--sw-tint);
	isolation: isolate;
}

.sw-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.sw-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 30%;
}

.sw-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 38%, rgba(255,255,255,0) 68%);
}

.sw-hero__card { max-width: 560px; }

.sw-hero__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(42px, 6vw, 76px);
	line-height: 1.02;
	color: var(--sw-blue);
	margin: 0 0 .35em;
	letter-spacing: -.02em;
}

.sw-hero__title span {
	font-family: 'Varela Round', Arial, sans-serif;
	font-size: .62em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--sw-green-text);
	vertical-align: .12em;
}

.sw-hero .sw-lead { color: var(--sw-ink); }

.sw-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: clamp(60px, 9vw, 120px);
}

.sw-wave__blue { fill: var(--sw-blue); }
.sw-wave__green { fill: var(--sw-green); }

/* --- Kennzahlen ------------------------------------------------------- */
.sw-facts { background: var(--sw-green); padding: 0 0 34px; }

.sw-facts__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.sw-facts__list li {
	background: #fff;
	border-radius: var(--sw-radius);
	padding: 22px 24px;
	box-shadow: var(--sw-shadow);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sw-facts__list strong {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
	color: var(--sw-blue);
	font-weight: 400;
}

.sw-facts__list span { font-size: 15px; color: var(--sw-muted); line-height: 1.4; }

/* --- Grusswort -------------------------------------------------------- */
.sw-intro__grid {
	display: grid;
	grid-template-columns: minmax(220px, 360px) 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.sw-intro__portrait {
	position: relative;
	aspect-ratio: 1;
}

.sw-intro__portrait::before {
	content: "";
	position: absolute;
	inset: -14px -14px 14px 14px;
	border-radius: 50%;
	border: 3px dotted var(--sw-green);
}

.sw-intro__portrait img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	transform: scale(1.04);
	box-shadow: var(--sw-shadow);
}

.sw-dropcap::first-letter {
	float: left;
	font-family: Georgia, serif;
	font-size: 4.2em;
	line-height: .85;
	padding: 6px 10px 0 0;
	color: #c2410c;
}

.sw-signature { margin-top: 1.6em; padding-left: 18px; border-left: 4px solid var(--sw-green); }
.sw-signature__name { display: block; font-size: 20px; color: var(--sw-blue); }
.sw-signature__role { display: block; font-size: 15px; color: var(--sw-muted); }

/* --- Split-Layout ----------------------------------------------------- */
.sw-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.sw-split--reverse .sw-split__text { order: 2; }

/* --- Bild-Mosaik ------------------------------------------------------ */
.sw-mosaic {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	grid-template-rows: repeat(3, 150px);
	gap: 12px;
}

.sw-mosaic__item {
	position: relative;
	border-radius: var(--sw-radius);
	overflow: hidden;
	box-shadow: var(--sw-shadow);
}

.sw-mosaic__item--tall { grid-row: span 3; }

.sw-mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.sw-mosaic__item--tall img { object-position: 50% 85%; }

.sw-mosaic__item:hover img { transform: scale(1.05); }

.sw-mosaic__item figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(255,255,255,.92);
	color: var(--sw-blue);
	font-size: 13px;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 999px;
}

/* --- Karten ----------------------------------------------------------- */
.sw-cards { display: grid; gap: 24px; }
.sw-cards--3 { grid-template-columns: repeat(3, 1fr); }
.sw-cards--4 { grid-template-columns: repeat(2, 1fr); }

.sw-card {
	position: relative;
	background: #fff;
	border-radius: var(--sw-radius);
	padding: 32px 28px;
	border: 1px solid #e3e9f2;
	box-shadow: 0 2px 0 rgba(47,83,156,.04);
	transition: box-shadow .25s ease, transform .25s ease;
}

.sw-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	right: 28px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: var(--sw-green);
}

.sw-card:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow); }

.sw-card__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--sw-green-soft);
	color: var(--sw-green-text);
	margin-bottom: 18px;
}

.sw-card__icon svg { width: 28px; height: 28px; }

.sw-card__title { font-size: 21px; color: var(--sw-blue); margin: 0 0 16px; font-family: inherit; }

.sw-checklist { list-style: none; margin: 0; padding: 0; }

.sw-checklist li {
	position: relative;
	padding: 7px 0 7px 32px;
	line-height: 1.5;
	border-top: 1px dashed #e3e9f2;
}

.sw-checklist li:first-child { border-top: 0; }

.sw-check {
	position: absolute;
	left: 0;
	top: 9px;
	width: 22px;
	height: 22px;
	color: var(--sw-pink);
}

/* --- Grundrisse ------------------------------------------------------- */
.sw-section--green {
	background:
		radial-gradient(circle at 85% 15%, rgba(255,255,255,.55), transparent 45%),
		var(--sw-green-soft);
}

.sw-plans {
	display: grid;
	grid-template-columns: 1fr minmax(240px, 320px);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.sw-plans__groups { display: grid; gap: 22px; margin-top: 28px; }

.sw-plan-group__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	font-family: inherit;
	font-size: 19px;
	color: var(--sw-blue);
	margin: 0 0 10px;
}

.sw-plan-group__title span {
	font-size: 14px;
	color: var(--sw-green-text);
	background: #fff;
	padding: 3px 10px;
	border-radius: 999px;
}

.sw-plan-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.sw a.sw-plan {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: #fff;
	border-radius: 14px;
	border: 2px solid transparent;
	color: var(--sw-ink);
	text-decoration: none;
	box-shadow: 0 6px 18px -12px rgba(31,58,115,.5);
	transition: border-color .2s ease, transform .2s ease;
}

.sw a.sw-plan:hover { border-color: var(--sw-blue); transform: translateY(-2px); }

.sw-plan svg { width: 30px; height: 30px; flex: none; color: var(--sw-blue); }
.sw-plan__label { font-size: 17px; white-space: nowrap; }

.sw-plan__meta {
	margin-left: auto;
	font-size: 12px;
	letter-spacing: .08em;
	color: #fff;
	background: var(--sw-pink);
	padding: 3px 8px;
	border-radius: 6px;
}

.sw-video { text-align: center; }

.sw-video__frame {
	padding: 10px;
	background: var(--sw-ink);
	border-radius: 34px;
	box-shadow: 0 30px 60px -30px rgba(31,39,51,.7);
}

.sw-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 26px;
	background: #000;
}

.sw-video figcaption { margin-top: 14px; font-size: 15px; color: var(--sw-muted); }

/* --- Der Mensch ------------------------------------------------------- */
.sw-quote {
	position: relative;
	margin: 1.4em 0;
	padding: 22px 26px 20px 60px;
	background: #fdf0f6;
	border: 0;
	border-radius: var(--sw-radius);
	font-size: 18px;
	font-style: normal;
	color: var(--sw-ink);
}

.sw-quote::before {
	content: "\201E";
	position: absolute;
	left: 18px;
	top: -6px;
	font-family: Georgia, serif;
	font-size: 64px;
	line-height: 1;
	color: var(--sw-pink);
}

.sw-quote p { margin: 0 0 .5em; }
.sw-quote footer { font-size: 15px; color: var(--sw-pink); }
.sw-quote footer::before { content: "– "; }

.sw-stack { position: relative; padding: 0 0 70px 0; }

.sw-stack__main img {
	border-radius: var(--sw-radius);
	box-shadow: var(--sw-shadow);
	transform: rotate(1.2deg);
}

.sw-stack__inset {
	position: absolute;
	left: -24px;
	bottom: 0;
	width: 52%;
	padding: 8px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--sw-shadow);
	transform: rotate(-3deg);
}

.sw-stack__inset img { border-radius: 10px; }

/* --- Partner (blau) --------------------------------------------------- */
.sw-section--blue {
	background: linear-gradient(135deg, var(--sw-blue) 0%, var(--sw-blue-dark) 100%);
	color: #fff;
}

.sw-section--blue .sw-h2,
.sw-section--blue .sw-kicker { color: #fff; }

.sw-quote--light { background: rgba(255,255,255,.1); color: #fff; }
.sw-quote--light::before,
.sw-quote--light footer { color: #ffd1e6; }

.sw-photo--portrait {
	border-radius: 200px 200px var(--sw-radius) var(--sw-radius);
	overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
	max-width: 460px;
	justify-self: center;
}

/* --- Betreuung -------------------------------------------------------- */
.sw-care-card {
	background: #fff;
	border-radius: var(--sw-radius);
	padding: 32px 32px 30px;
	border: 1px solid #e3e9f2;
	border-top: 5px solid var(--sw-blue);
	font-size: 16px;
	line-height: 1.65;
}

.sw-care-card:nth-child(even) { border-top-color: #6b4c9a; }

.sw-care-card h3 {
	font-family: inherit;
	font-size: 19px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--sw-blue);
	margin: 0 0 12px;
}

.sw-care-card p { color: var(--sw-muted); margin: 0; }

.sw-care-card__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sw-tint);
	color: var(--sw-blue);
	margin-bottom: 14px;
}

.sw-care-card__icon svg { width: 26px; height: 26px; }

/* --- 5 gute Gruende --------------------------------------------------- */
.sw-reasons__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.sw-reasons__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: sw-reason;
}

.sw-reasons__list li {
	counter-increment: sw-reason;
	position: relative;
	padding: 0 0 30px 84px;
}

.sw-reasons__list li::before {
	content: counter(sw-reason);
	position: absolute;
	left: 0;
	top: -4px;
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--sw-green);
	font-family: Georgia, serif;
	font-size: 30px;
	color: var(--sw-blue);
}

.sw-reasons__list li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 29px;
	top: 62px;
	bottom: 4px;
	border-left: 3px dotted #c8dcae;
}

.sw-reasons__list h3 {
	font-family: inherit;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--sw-blue);
	margin: 10px 0 8px;
}

.sw-reasons__list p { color: var(--sw-muted); margin: 0; }

.sw-reasons__photos {
	position: sticky;
	top: 120px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.sw-reasons__photos img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid #fff;
	box-shadow: var(--sw-shadow);
}

.sw-reasons__photos img:nth-child(2) { margin-top: 60px; }

.sw-reasons__photos img:nth-child(3) {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 10;
	border-radius: 200px;
	margin-top: -30px;
}

/* --- Kontakt / CTA ---------------------------------------------------- */
.sw-cta {
	position: relative;
	background: var(--sw-blue);
	color: #fff;
	padding: clamp(110px, 12vw, 150px) 0 40px;
}

.sw-cta__wave {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: clamp(50px, 7vw, 90px);
	fill: var(--sw-green);
}

.sw-cta__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.sw-cta .sw-h2 { color: #fff; }
.sw-cta .sw-lead { color: #e4ebf7; }

.sw-address {
	font-style: normal;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.25);
	line-height: 1.8;
	color: #e4ebf7;
}

.sw-address strong { color: #fff; font-weight: 400; font-size: 18px; }

.sw-cta a:not(.sw-btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Sidebar-Widgets (Havarienummer, Sprechzeiten) im Kontaktbereich */
.sw-cta__hours {
	background: #fff;
	color: var(--sw-ink);
	border-radius: var(--sw-radius);
	padding: 28px;
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
	font-size: 15.5px;
	line-height: 1.6;
}

.sw-cta__hours h3,
.sw-cta__hours h3:last-of-type { font-family: inherit; font-size: 18px; color: var(--sw-blue); margin: 18px 0 8px; }
.sw-cta__hours p { margin: 0 0 10px; }

/* Theme-Widgets (style.css .widget/.widget_text) neutralisieren */
.sw-cta__hours .widget,
.sw-cta__hours .widget_text {
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	border-radius: 0;
}

.sw-cta__hours .highlight-box {
	background: #fdf0f6;
	color: var(--sw-pink);
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 6px;
}

.sw-credits {
	margin-top: 40px !important;
	font-size: 12px;
	color: #c9d5ec;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 991px) {
	.sw-facts__list { grid-template-columns: repeat(2, 1fr); }
	.sw-cards--3 { grid-template-columns: 1fr; max-width: 640px; }
	.sw-split,
	.sw-plans,
	.sw-reasons__grid,
	.sw-cta__grid { grid-template-columns: 1fr; }
	.sw-split--reverse .sw-split__text { order: 0; }
	.sw-video { max-width: 320px; margin: 0 auto; }
	.sw-reasons__photos { position: static; max-width: 520px; }
	.sw-hero__media::after {
		background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.97) 100%);
	}
	.sw-hero { align-items: flex-end; padding-top: 240px; }
}

@media (max-width: 640px) {
	.sw { font-size: 16px; }
	.sw-intro__grid { grid-template-columns: 1fr; }
	.sw-intro__portrait { max-width: 240px; margin: 14px auto 0; }
	.sw-facts__list,
	.sw-cards--4 { grid-template-columns: 1fr; }
	.sw-mosaic { grid-template-rows: repeat(3, 110px); }
	.sw-stack__inset { left: 0; }
	.sw-reasons__list li { padding-left: 70px; }
	.sw-reasons__list li::before { width: 50px; height: 50px; font-size: 24px; }
	.sw-reasons__list li:not(:last-child)::after { left: 24px; top: 52px; }
	.sw-actions .sw-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.sw *,
	.sw *::before,
	.sw *::after { transition: none !important; }
	.sw a.sw-btn:hover,
	.sw a.sw-plan:hover,
	.sw-card:hover,
	.sw-mosaic__item:hover img { transform: none; }
}
