/* kosten — page layout only (tokens from theme.css; no colour literals, no new font sizes, no priority overrides) */

/* ===== 01 hero: consultation photo in a roof gable, right ===== */
.kst-hero .hero__visual { --ratio: 5 / 4; max-width: 35rem; width: 100%; justify-self: end; }

/* ===== 02 answer: direct answer left, "Handwerk" card right, four factor cards below ===== */
.kst-answer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(2rem, 1rem + 4.5vw, 5rem); row-gap: var(--s-7); align-items: center; }
.kst-answer__note { padding: var(--s-7) var(--s-6) var(--s-6); }
.kst-answer__note p { font-size: var(--fs-lead); color: var(--c-heading); line-height: 1.5; }
.kst-factors { list-style: none; padding: 0; margin: clamp(2.5rem, 1.8rem + 3vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: var(--s-6) var(--s-5); }
.kst-factor { padding-top: var(--s-7); }
.kst-factor .card__title { margin-top: var(--s-2); }
.kst-factor p:not(.card__title) { color: var(--c-text); }

/* ===== 03 trades: chapter cards next to the sticky contents ===== */
.kst-trades__list { display: grid; gap: clamp(2.5rem, 1.8rem + 3vw, 4rem); min-width: 0; }
.kst-trade { position: relative; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.kst-trade::before { content: ""; position: absolute; top: -.95rem; left: clamp(1.5rem, 1rem + 2vw, 2.75rem); width: 2.75rem; aspect-ratio: 40 / 22; background: var(--c-orange); -webkit-mask: var(--roof-mask) center / contain no-repeat; mask: var(--roof-mask) center / contain no-repeat; }
.kst-trade > * + * { margin-top: var(--s-5); }
.kst-trade .notice__title { font-weight: 650; }
.kst-trade__head { display: flex; align-items: center; gap: var(--s-4); }
.kst-trade__badge { flex: none; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--c-sky-100); color: var(--c-blue-deep); }
.kst-trade__badge .i { width: 1.9rem; height: 1.9rem; }
.kst-trade__title { font-size: var(--fs-h2); scroll-margin-top: calc(var(--header-h) + 4rem); }
.kst-trade__lead { font-size: var(--fs-lead); color: var(--c-heading); line-height: 1.5; max-width: var(--measure); }
.kst-trade p { max-width: var(--measure); }
.kst-trade .kst-defs p, .kst-trade .kst-more p, .kst-trade .kst-example p, .kst-trade .kst-duo__card p, .kst-trade .notice p { max-width: none; }

/* Schlüsseldienst: two definitions side by side */
.kst-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s-4); }
.kst-def { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-radius: var(--r); background: var(--c-sky-50); border: 1px solid var(--c-line); font-size: var(--fs-h4); line-height: 1.35; color: var(--c-heading); }
.kst-def:first-child { border-left: 6px solid var(--c-blue); }
.kst-def:last-child { background: var(--c-cream); border-color: var(--c-orange-tint); border-left: 6px solid var(--c-orange); }
.kst-def__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-white); color: var(--c-blue-deep); }
.kst-def__icon .i { width: 1.5rem; height: 1.5rem; }
.kst-def b { font-weight: 700; }

/* pulled sentence */
.kst-pull { padding: var(--s-5) var(--s-6); background: var(--c-cream); border-left: 6px solid var(--c-orange); border-radius: 0 var(--r) var(--r) 0; color: var(--c-heading); font-size: var(--fs-lead); line-height: 1.5; font-weight: 600; }

/* "weiterlesen" panel with the in-text links */
.kst-more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-5) var(--s-6); background: var(--c-sky-50); border: 1px solid var(--c-line); border-radius: var(--r); }
.kst-more__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-white); color: var(--c-blue-deep); }
.kst-more__icon .i { width: 1.4rem; height: 1.4rem; }

/* Kammerjäger: two example cards */
.kst-examples__label { font-weight: 650; font-size: var(--fs-h4); color: var(--c-heading); }
.kst-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--s-5); }
.kst-trade .kst-examples__label + .kst-examples { margin-top: var(--s-3); }
.kst-example { height: 100%; }

/* Heizung vs. Wasser */
.kst-duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s-5); }
.kst-duo__card { height: 100%; }
.kst-duo__card .card__title { margin-top: var(--s-2); font-weight: 650; color: var(--c-heading); }

/* related pages */
.kst-trade__also { padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.kst-trade__also-label { margin-bottom: var(--s-3); color: var(--c-heading); font-size: var(--fs-sm); font-weight: 650; }

/* ===== 04 phone: photo left, steps, callout, button ===== */
.kst-phone__top .media-round { max-width: 36rem; margin-inline: auto; }
.kst-steps .step__title { font-size: var(--fs-h3); }
.kst-steps .step__text { color: var(--c-text); font-size: var(--fs-base); }
.kst-phone__callout { align-items: start; background: var(--c-white); max-width: 62rem; margin-inline: auto; }
.kst-phone__callout p + p { margin-top: var(--s-2); }
.kst-phone__call { justify-content: center; }

/* ===== 05 rights: head + our answer, then the six checks ===== */
.kst-rights__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(2rem, 1rem + 4.5vw, 5rem); row-gap: var(--s-7); align-items: center; margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.kst-rights__answer { padding: var(--s-7) var(--s-6) var(--s-6); }
.kst-rights__answer p { font-size: var(--fs-lead); color: var(--c-heading); line-height: 1.45; }
.kst-rights__sub { font-size: var(--fs-h3); color: var(--c-slate); }
.kst-checks { gap: var(--s-5); }
.kst-checks .icon-list__item { height: 100%; }
@media (min-width: 1020px) {
	.kst-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kst-rights__notice { max-width: none; }
.kst-rights__notice .notice__body > p + p { margin-top: var(--s-3); }
.kst-rights__notice .notice__title { font-weight: 650; }

/* ===== 06 tax: heading left, notice right ===== */
.kst-tax__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); column-gap: clamp(2rem, 1rem + 4.5vw, 5rem); row-gap: var(--s-6); align-items: center; }
.kst-tax__head { display: grid; gap: var(--s-4); justify-items: start; }
.kst-tax__badge { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--c-white); color: var(--c-blue-deep); box-shadow: var(--sh-xs); }
.kst-tax__badge .i { width: 1.9rem; height: 1.9rem; }
.kst-tax__notice { background: var(--c-white); }

/* ===== 07 Käuferschutz ===== */
.kst-ks__text { max-width: 52rem; margin-inline: auto; }
.kst-ks__text .eyebrow { justify-content: center; margin-bottom: var(--s-3); }

/* ===== 08 faq aside ===== */
.kst-faq__related { margin-top: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--c-line-strong); }
.kst-faq__related-label { margin-bottom: var(--s-3); color: var(--c-heading); font-size: var(--fs-sm); font-weight: 650; }

/* ===== responsive ===== */
@media (max-width: 900px) {
	.kst-hero .hero__visual { --ratio: 16 / 11; max-width: none; justify-self: stretch; }
	.kst-answer__top, .kst-rights__top, .kst-tax__grid { grid-template-columns: minmax(0, 1fr); }
	.kst-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.kst-trade__title { font-size: var(--fs-h3); }
	.kst-trade__head { align-items: flex-start; }
	.kst-trade__badge { width: 3rem; height: 3rem; }
	.kst-trade__badge .i { width: 1.5rem; height: 1.5rem; }
	.kst-def { padding: var(--s-4) var(--s-5); }
	.kst-more { grid-template-columns: minmax(0, 1fr); }
	.kst-phone__call .btn { width: 100%; }
}
