/* ==========================================================================
   /sanitaer-heizung/ — page layout only (tokens from theme.css, no new colours / sizes)
   Sections: sa-hero · sa-gas · sa-grid (+ sa-region) · sa-notfall · sa-scope · sa-frost · sa-tax · sa-ks · sa-faq
   ========================================================================== */

/* ===== 01 Hero: white house panel LEFT, the man in the bright bathroom photo stays visible on the right ===== */
.sa-hero { background: linear-gradient(105deg, var(--c-white) 0%, var(--c-sky-100) 100%); }
.sa-hero .hero__inner { justify-content: flex-start; }
.sa-hero .hero__img { object-position: 75% 30%; }
.sa-hero .hero__title { font-size: var(--fs-h2); overflow-wrap: break-word; hyphens: auto; }
.sa-hero .hero__spokes { margin-top: var(--s-5); padding-top: var(--s-4); }
@media (max-width: 900px) {
	.sa-hero .hero__img { object-position: 78% 30%; }
}
/* 901–1199 px: stacked hero (photo on top, panel overlaps from below) so the panel never hides the man */
@media (min-width: 901px) and (max-width: 1199px) {
	.sa-hero .hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 7; max-height: 48vh; }
	.sa-hero .hero__inner { display: block; min-height: 0; margin-top: calc(-1 * (var(--gable-h) + 2rem)); padding-top: 0; padding-bottom: clamp(3.5rem, 3rem + 3vw, 5rem); z-index: 1; }
	.sa-hero .hero__panel { max-width: 46rem; }
}

/* ===== 02 Gas board: danger-tinted card, six numbered rule tiles ===== */
.sa-gas__card { position: relative; background: var(--c-danger-tint); border: 1px solid var(--c-danger-tint); border-left: 8px solid var(--c-danger); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--sh-sm); }
.sa-gas__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.sa-gas__icon { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--c-white); color: var(--c-danger); box-shadow: var(--sh-xs); }
.sa-gas__icon .i { width: 2rem; height: 2rem; }
.sa-gas__title { font-size: var(--fs-h3); color: var(--c-danger); margin-bottom: var(--s-2); }
.sa-gas__lead { color: var(--c-text); }
.sa-gas__rules { counter-reset: rule; list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.sa-rule { counter-increment: rule; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--s-4); align-items: start; background: var(--c-white); border: 1px solid var(--c-danger-tint); border-radius: var(--r); padding: var(--s-4) var(--s-5); box-shadow: var(--sh-xs); }
.sa-rule::before { content: counter(rule); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c-danger-tint); border: 2px solid var(--c-danger); color: var(--c-danger); font-weight: 700; font-size: 1.1875rem; }
.sa-rule__text { line-height: 1.5; }
.sa-rule__text strong { color: var(--c-heading); }
.sa-rule__text a { font-weight: 700; color: var(--c-danger); }
.sa-gas__foot { align-items: center; margin-top: var(--s-6); }
.sa-gas__foot .emergency-call { min-height: 56px; }
@media (max-width: 1000px) {
	.sa-gas__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.sa-gas__card { border-left-width: 6px; padding: var(--s-5); }
	.sa-gas__head { grid-template-columns: minmax(0, 1fr); }
	.sa-gas__rules { grid-template-columns: minmax(0, 1fr); }
	.sa-gas__foot .emergency-call { width: 100%; justify-content: center; }
}

/* ===== 03 Services: one wide horizontal card + four photo cards (2 + 3 asymmetric 6-col grid) ===== */
.sa-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sa-grid > .svc-card { grid-column: span 2; }
.sa-grid > .svc-card:not(.sa-card--wide) .svc-card__media { aspect-ratio: 4 / 3; }
.sa-grid > .sa-card--wide { grid-column: span 4; flex-direction: row; }
.sa-card--wide .svc-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 20rem; border-bottom: 0; border-right: 4px solid var(--c-orange); }
.sa-card--wide .svc-card__title { font-size: var(--fs-h2); }
.sa-card--wide .svc-card__body { justify-content: center; padding: var(--s-7); }
.sa-card--wide .svc-card__text { font-size: var(--fs-base); }
.sa-card--wide .svc-card__links { margin-top: var(--s-4); }
.sa-grid .svc-card__text a { font-weight: 600; }
.sa-tag { position: absolute; left: var(--s-4); top: var(--s-4); display: inline-flex; align-items: center; gap: .4em; padding: .3rem .9rem .3rem .7rem; border-radius: var(--r-pill); background: var(--c-white); color: var(--c-heading); font-weight: 650; font-size: var(--fs-sm); line-height: 1.3; box-shadow: var(--sh-xs); }
.sa-tag .i { width: 1.15rem; height: 1.15rem; color: var(--c-blue-deep); }
@media (max-width: 1099px) {
	.sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-grid > .svc-card { grid-column: span 1; }
	.sa-grid > .sa-card--wide { grid-column: 1 / -1; }
	.sa-card--wide .svc-card__media { min-height: 17rem; }
}
@media (max-width: 699px) {
	.sa-grid { grid-template-columns: minmax(0, 1fr); }
	.sa-grid > .sa-card--wide { flex-direction: column; }
	.sa-card--wide .svc-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: 4px solid var(--c-orange); }
	.sa-card--wide .svc-card__title { font-size: var(--fs-h3); }
	.sa-card--wide .svc-card__body { padding: var(--s-6); justify-content: flex-start; }
	.sa-card--wide .svc-card__links { margin-top: auto; }
}
.sa-region { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; margin-top: clamp(2rem, 1.4rem + 2.4vw, 3rem); padding: var(--s-5) var(--s-6); background: var(--c-white); border: 1px solid var(--c-line); border-left: 6px solid var(--c-orange); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.sa-region__pin { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-sky-100); color: var(--c-blue-deep); }
.sa-region__pin .i { width: 1.5rem; height: 1.5rem; }
.sa-region a { font-weight: 600; }
@media (max-width: 520px) {
	.sa-region { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
}

/* ===== 04 Notfall: sticky text column left, five sign cards right, closing call row below ===== */
.sa-notfall__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
.sa-notfall__text > * + * { margin-top: var(--s-4); }
.sa-notfall__text .lead a, .sa-signs a { font-weight: 700; }
.sa-signs { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.sa-signs .icon-list__item { box-shadow: var(--sh-xs); }
.sa-signs .sa-sign--danger { background: var(--c-danger-tint); border-color: var(--c-danger); }
.sa-signs .sa-sign--danger .icon-list__icon { background: var(--c-white); color: var(--c-danger); }
.sa-signs .sa-sign--danger .icon-list__title { color: var(--c-danger); }
.sa-notfall__close { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; padding: var(--s-6) clamp(1.25rem, 1rem + 2vw, 2.5rem); background: var(--c-cream); border: 1px solid var(--c-orange-tint); border-radius: var(--r-lg); }
.sa-notfall__close a:not(.btn) { font-weight: 600; }
.sa-notfall__close .btn-row { margin: 0; }
@media (min-width: 960px) {
	.sa-notfall__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "text signs" "close close"; column-gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: start; }
	.sa-notfall__text { grid-area: text; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
	.sa-signs { grid-area: signs; }
	.sa-notfall__close { grid-area: close; }
}
@media (max-width: 760px) {
	.sa-notfall__close { grid-template-columns: minmax(0, 1fr); }
	.sa-notfall__close .btn-row .btn { width: 100%; }
}

/* ===== 05 Scope: "we do" card (blue outline) → "belongs to others" card with role rows ===== */
.sa-scope { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: var(--s-5); align-items: stretch; max-width: 70rem; margin-inline: auto; }
.sa-scope .card { padding: var(--s-7) var(--s-6) var(--s-6); border-radius: var(--r-xl); }
.sa-scope__yes { border: 2px solid var(--c-blue); box-shadow: var(--sh); }
.sa-scope .card__title { font-size: var(--fs-h3); }
.sa-scope__arrow { align-self: center; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-white); border: 2px solid var(--c-line); color: var(--c-slate); box-shadow: var(--sh-xs); }
.sa-scope__arrow .i { width: 1.6rem; height: 1.6rem; }
.sa-roles { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.sa-role { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--s-4); align-items: start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
.sa-role:last-child { padding-bottom: 0; border-bottom: 0; }
.sa-role__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-white); color: var(--c-slate); }
.sa-role__icon .i { width: 1.4rem; height: 1.4rem; }
.sa-role strong { color: var(--c-heading); }
.sa-scope__note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); color: var(--c-muted); }
@media (max-width: 900px) {
	.sa-scope { grid-template-columns: minmax(0, 1fr); }
	.sa-scope__arrow { display: none; }
}

/* ===== 06 Frost: roof edge, three numbered promise cards ===== */
.sa-frost .promise-grid { counter-reset: frost; }
.sa-frost .promise { counter-increment: frost; }
.sa-frost .promise::after { content: counter(frost); position: absolute; top: var(--s-5); right: var(--s-6); font-size: var(--fs-h1); font-weight: 700; line-height: 1; color: var(--c-sky-100); pointer-events: none; }
.sa-frost .promise__text a { font-weight: 600; }

/* ===== 07 Steuer-Hinweis ===== */
.sa-tax .notice__title { font-size: var(--fs-h3); }
.sa-tax .notice__body a { font-weight: 600; overflow-wrap: anywhere; }

/* ===== 08 Käuferschutz ===== */
.sa-ks .section-head { max-width: 56rem; margin-bottom: var(--s-6); }
.sa-ks .lead a { font-weight: 600; }

/* ===== 09 FAQ ===== */
.sa-faq > * + * { margin-top: var(--s-6); }
.sa-faq .section-head { margin-bottom: 0; }
.sa-faq .faq-item__a a, .sa-faq .phone-callout a { font-weight: 600; }
