/* ==========================================================================
   schluessel-verloren — page layout only. Tokens from theme.css, nothing new.
   Prefix: vl-
   ========================================================================== */

/* 1 · hero: situation photo + octagon key-bunch figure (desktop only) */
.vl-hero .hero__inner { display: grid; gap: var(--sp-7); align-items: end; }
.vl-bund { display: none; position: relative; }
@media (min-width: 60em) {
	.vl-hero .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
	.vl-bund { display: block; justify-self: end; align-self: center; width: min(100%, 24rem); filter: drop-shadow(12px 12px 0 color-mix(in srgb, var(--violet-500) 80%, transparent)); }
}
.vl-hero .hero__checks strong { color: var(--white); }

/* 3 · first steps: bento of five tiles, the last one is the dark decision tile */
.vl-bento { grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 40em) {
	.vl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vl-tile--decide { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
	.vl-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); }
	.vl-tile { grid-column: span 2; }
	.vl-tile--decide { grid-column: span 4; }
}
.vl-tile { padding: var(--sp-6) var(--sp-5) var(--sp-5); overflow: hidden; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.vl-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.vl-tile__icon { position: absolute; top: var(--sp-5); right: var(--sp-5); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-surface-2); color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-line); }
.vl-tile__icon .i { width: 1.35rem; height: 1.35rem; }
.vl-tile .step__text a { font-weight: 700; color: var(--c-link); }
.vl-tile--decide { padding: var(--sp-6); background-image: var(--grad-spot); border-color: color-mix(in srgb, var(--violet-300) 40%, transparent); }
.vl-tile--decide .step__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; color: var(--c-heading); max-width: 24ch; }
.vl-tile--decide .step__text { color: var(--on-dark); max-width: 56ch; }
.vl-tile__actions { margin-top: auto; padding-top: var(--sp-3); }

/* 4 · risk table: row markers carry the urgency, text stays the copy's */
.vl-risk__lede { max-width: 62ch; margin-bottom: var(--sp-5); }
.vl-risk .compare__table { min-width: 0; }
.vl-risk .compare__table thead th:first-child { width: 42%; }
.vl-risk .compare__table td, .vl-risk .compare__table tbody th { vertical-align: middle; }
.vl-row > th { box-shadow: inset 6px 0 0 var(--vl-mark, var(--violet-500)); }
.vl-row--tausch { --vl-mark: var(--danger); }
.vl-row--polizei { --vl-mark: var(--danger); }
.vl-row--abwaegen { --vl-mark: var(--warn); }
.vl-row--suchen { --vl-mark: var(--info); }
.vl-row--verwaltung { --vl-mark: var(--violet-500); }
.vl-row__label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.vl-row__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; clip-path: var(--oct); background: var(--vl-mark, var(--violet-500)); color: var(--white); }
.vl-row__icon .i { width: 1.2rem; height: 1.2rem; }
.vl-risk__note { margin-top: var(--sp-6); max-width: none; }
@media (max-width: 40em) {
	.vl-risk .compare { overflow: visible; border: 0; background: transparent; border-radius: 0; }
	.vl-risk .compare__table, .vl-risk .compare__table tbody, .vl-risk .compare__table tr, .vl-risk .compare__table th, .vl-risk .compare__table td { display: block; }
	.vl-risk .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.vl-risk .compare__table tr { margin-bottom: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface); }
	.vl-risk .compare__table th, .vl-risk .compare__table td { border-top: 0; }
	.vl-risk .compare__table tbody th { position: static; }
	.vl-risk .compare__table tbody td { padding-top: var(--sp-3); }
}

/* 5 · Mietshaus (dark): sticky lead + photo left, three fact cards right */
.vl-mh__layout { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (min-width: 64em) {
	.vl-mh__layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
	.vl-mh__lead { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}
.vl-mh__lead > * + * { margin-top: var(--sp-4); }
.vl-mh__photo { position: relative; max-width: 22rem; margin-top: var(--sp-6); filter: drop-shadow(10px 10px 0 color-mix(in srgb, var(--violet-500) 70%, transparent)); }
.vl-mh__cards { display: grid; gap: var(--sp-5); min-width: 0; }
.vl-fact { display: grid; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); min-width: 0; }
.vl-fact > * { margin: 0; }
.vl-fact p { color: var(--c-fg); }
.vl-fact a { font-weight: 700; color: var(--c-link); }
.vl-fact__head { display: flex; align-items: center; gap: var(--sp-4); }
.vl-fact__badge { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; background: var(--violet-500); color: var(--white); }
.vl-fact__title { font-size: var(--fs-lg); line-height: 1.2; color: var(--c-heading); }
.vl-fact--legal { background: var(--c-surface-2); border-style: dashed; border-color: var(--c-line-strong); }
.vl-fact--legal .vl-fact__badge { background: var(--c-surface); color: var(--c-accent); }
.vl-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: var(--sp-4) 0; list-style: none; }
.vl-chain__step { position: relative; display: grid; justify-items: center; gap: var(--sp-2); text-align: center; min-width: 0; }
.vl-chain__badge { position: relative; z-index: 1; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.vl-chain__badge .i { width: 1.5rem; height: 1.5rem; }
.vl-chain__step:not(:last-child)::after { content: ""; position: absolute; top: 1.55rem; left: calc(50% + 2rem); width: calc(100% - 4rem + var(--sp-2)); height: 4px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 8px, transparent 8px 13px); opacity: 0.7; }
.vl-chain__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-heading); }
@media (max-width: 30em) {
	.vl-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-2); }
	.vl-chain__step::after { display: none; }
}
.vl-mh__more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.vl-mh__more > .i { width: 2rem; height: 2rem; color: var(--c-accent); }
.vl-mh__more p { margin: 0; }
.vl-mh__more a { font-weight: 700; color: var(--c-link); }

/* 6 · Ablauf: three horizontal steps with an icon chip beside each title */
.vl-step__head { display: flex; align-items: center; gap: var(--sp-3); }
.vl-step__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; background: var(--c-surface-2); color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-line); }
.vl-step__icon .i { width: 1.25rem; height: 1.25rem; }
.vl-flow .step__text a { font-weight: 700; color: var(--c-link); }

/* 7 · call strip: links must stay readable on the gradient */
.vl-call .callstrip__text { max-width: 46rem; }
.vl-call .callstrip__sub a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.vl-call .callstrip__sub a:hover { color: var(--violet-100); }

/* 8 · insurance cards */
.vl-ins .icon-list--cards .icon-list__item { transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.vl-ins .icon-list--cards .icon-list__item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
@media (min-width: 40em) {
	.vl-ins .icon-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
	.vl-call .callstrip .btn { width: 100%; justify-content: center; text-align: center; }
	/* keep the octagon icon beside the label (the theme wraps big call buttons as whole items, which put the long label on a row of its own) */
	.vl-call .callstrip .btn--call { flex-wrap: nowrap; }
	.vl-call__label { flex: 1 1 0; }
}
.vl-call__label { min-width: 0; text-wrap: balance; }
