/* ==========================================================================
   /kosten/ — page layout only. Tokens from theme.css (var(--…) only), no new colours or sizes, no forced overrides.
   Idea: "Der Preis entsteht am Telefon" — a calm title-card hero with three marquee tiles, a sticky-question
   factor grid, a light/dark day-night pair, a dark four-step run, an invoice table and a three-weight notice set.
   Prefix: kst-
   ========================================================================== */

/* 01 · hero: centred title card + three marquee tiles ----------------------- */
.kst-hero .breadcrumbs ol { justify-content: center; }
.kst-hero .hero__content { gap: var(--sp-5); }
.kst-hero .hero__title { font-size: var(--fs-3xl); max-width: 21ch; margin-inline: auto; }
.kst-hero .hero__lead { max-width: 44rem; }
.kst-hero .hero__actions { justify-content: center; }
.kst-hero .hero__note { justify-content: center; text-align: center; }
.hero__checks.kst-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); width: 100%; max-width: 56rem; margin-block: var(--sp-2); justify-items: stretch; }
.kst-tile {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; text-align: left;
	padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
	background: color-mix(in srgb, var(--ink-950) 58%, transparent);
	border: 1px solid color-mix(in srgb, var(--violet-300) 32%, transparent);
	transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.kst-tile:hover { border-color: color-mix(in srgb, var(--violet-300) 70%, transparent); transform: translateY(-3px); background: color-mix(in srgb, var(--ink-950) 72%, transparent); }
.kst-tile__badge { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; flex: none; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.hero__checks.kst-tiles .kst-tile__badge .i { width: 1.45rem; height: 1.45rem; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; color: var(--white); }
.kst-tile__text { font-weight: 700; line-height: 1.3; color: var(--white); }
@media (min-width: 48em) {
	.hero__checks.kst-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
	.kst-tile { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); }
}

/* 02 · editorial intro ------------------------------------------------------ */
.kst-why .intro__text strong { color: var(--c-heading); }
.kst-why .intro__text .answer { font-size: var(--fs-md); }
.kst-why .intro__media .frame { box-shadow: var(--sh-lg); }

/* 03 · six factors: sticky question left, cards right ----------------------- */
.kst-factors__layout { display: grid; gap: var(--sp-7); align-items: start; }
.kst-factors__head > * + * { margin-top: var(--sp-4); }
@media (min-width: 64em) {
	.kst-factors__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: var(--sp-8); }
	.kst-factors__head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}
.kst-factors__list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 40em) {
	.kst-factors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kst-factor {
	position: relative; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--sp-3);
	padding: var(--sp-5); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.kst-factor:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--violet-500) 45%, transparent); }
.kst-factor .icon-list__icon { width: 3.25rem; height: 3.25rem; border-radius: 0; clip-path: var(--oct); background: var(--violet-500); color: var(--white); box-shadow: none; }
.kst-factor .icon-list__body { display: grid; gap: var(--sp-2); }
.kst-factor__title { font-size: var(--fs-md); color: var(--c-heading); }
.kst-factor__text { color: var(--c-fg); }
.kst-factor__text a { font-weight: 600; }
.kst-factor__no {
	position: absolute; top: var(--sp-4); right: var(--sp-4); display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	clip-path: var(--oct); background: var(--c-surface-2); color: var(--c-accent);
	font-family: var(--font-display); font-size: var(--fs-md); line-height: 1;
}
.kst-statement {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; max-width: none;
	margin-top: var(--sp-7); padding: var(--sp-5) var(--sp-6);
	background: var(--ink-900); color: var(--on-dark);
	font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.3;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.kst-statement__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
@media (max-width: 30em) { .kst-statement { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5); } }

/* 04 · day | night contrast pair -------------------------------------------- */
.kst-pair .section-head { max-width: 52rem; }
.kst-pair .answer { text-align: left; margin-inline: auto; }
.kst-pair__rule { max-width: 46rem; color: var(--c-muted); }
.kst-pair__panels { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.kst-panel {
	display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	background: var(--c-bg); color: var(--c-fg); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-md);
}
.kst-panel__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.kst-panel__media > img, .kst-panel__media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.kst-panel--night .kst-panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ink-950) 70%, transparent)); }
.kst-panel__body { position: relative; display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-6) var(--sp-6) var(--sp-6); flex: 1; }
.kst-panel__badge {
	position: relative; z-index: 2; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-top: calc(var(--sp-6) * -1 - 1.75rem);
	clip-path: var(--oct); background: var(--violet-500); color: var(--white);
}
.kst-panel--night .kst-panel__badge { background: var(--violet-500); color: var(--spark); }
.kst-panel__badge .i { width: 1.6rem; height: 1.6rem; }
.kst-panel__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.12; }
.kst-panel p { color: var(--c-fg); }
.kst-pair__or {
	position: relative; z-index: 3; display: grid; place-items: center; justify-self: center; width: 4.25rem; height: 4.25rem;
	margin-block: calc(var(--sp-4) * -1); background: var(--violet-500); color: var(--white);
	font-family: var(--font-display); font-size: var(--fs-md); line-height: 1; box-shadow: var(--rim);
}
@media (min-width: 64em) {
	.kst-pair__panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); }
	.kst-pair__or { position: absolute; left: 50%; top: 38%; margin: 0; transform: translate(-50%, -50%); }
}

/* 05 · four steps on the dark band ------------------------------------------ */
.kst-steps .step { transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.kst-steps .step:hover { border-color: color-mix(in srgb, var(--violet-300) 60%, transparent); transform: translateY(-4px); }
.kst-steps .step__title { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.kst-steps .step__text { color: var(--c-fg); }
.kst-flow__actions { display: flex; justify-content: center; margin-top: var(--sp-7); }

/* 06 · call strip ------------------------------------------------------------ */
.kst-call .callstrip__text { max-width: 46rem; }
.kst-call__num { color: var(--white); font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kst-call__num:hover { color: var(--violet-100); }

/* 07 · invoice table --------------------------------------------------------- */
.kst-ledger__label { display: inline-flex; align-items: center; gap: 0.65em; }
.kst-ledger__label .i { color: var(--c-accent); }
.kst-ledger .compare__table tbody th { min-width: 13rem; }
.kst-ledger .compare__table td:last-child { border-left: 3px solid var(--violet-500); font-weight: 600; color: var(--c-heading); background: color-mix(in srgb, var(--violet-500) 5%, var(--c-surface)); }
.kst-ledger .compare__table tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.kst-ledger .compare__table tbody tr:hover td { background-color: color-mix(in srgb, var(--violet-500) 8%, var(--c-surface)); }

/* 08 · Wucher: answer + two weights of notice -------------------------------- */
.kst-law__layout { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 64em) { .kst-law__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); } }
.kst-law__main > * + * { margin-top: var(--sp-4); }
.kst-law__badge { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; background: var(--violet-700); color: var(--white); }
.kst-law__badge .i { width: 2rem; height: 2rem; }
.kst-law__notices { display: grid; gap: var(--sp-5); }
.kst-law__notices .notice { max-width: none; }


/* 07b · invoice table on phones: one card per row (roles on the table keep the table semantics) */
@media (max-width: 47.99em) {
	.kst-ledger .compare { overflow: visible; border: 0; background: none; border-radius: 0; }
	.kst-ledger .compare__table, .kst-ledger .compare__table tbody, .kst-ledger .compare__table tr,
	.kst-ledger .compare__table th, .kst-ledger .compare__table td, .kst-ledger .compare__table caption { display: block; min-width: 0; width: 100%; }
	.kst-ledger .compare__table caption { padding: 0 0 var(--sp-3); }
	.kst-ledger .compare__table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.kst-ledger .compare__table tbody tr { margin-bottom: var(--sp-3); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
	.kst-ledger .compare__table tbody th { position: static; min-width: 0; padding: var(--sp-3) var(--sp-4); border-top: 0; }
	.kst-ledger .compare__table td { padding: var(--sp-3) var(--sp-4); }
	.kst-ledger .compare__table td::before { content: attr(data-label); display: block; margin-bottom: 0.2rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
	.kst-ledger .compare__table td:last-child { border-left: 3px solid var(--violet-500); }
}
