/* =========================================================================
   home — page layout (tokens only; no colour literals, no font-size literals, no important flags)
   Loaded after theme.css, only on the front page. Plan: plans/home.plan.md
   ========================================================================= */

/* 1. Hero — poster pair: the keyword line big, the promise as a smaller sub-line (one <h1>) */
.home-hero .hero__title { max-width: none; }
.home-hero .hero__title-main { display: block; max-width: 16ch; }
.home-hero .hero__title-sub {
	display: block; margin-top: var(--s-3); max-width: 36ch;
	font-size: var(--fs-xl); font-weight: 600; line-height: 1.15; letter-spacing: .01em;
	color: var(--c-on-night-soft); text-shadow: none;
}
.home-hero .hero__lead { max-width: 56ch; }

/* 2. Intro — the three "So arbeiten wir" items as a ledger of rows */
.home-intro .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.home-intro .fact { display: grid; gap: .2rem 1.25rem; border-top-width: 1px; border-left: 4px solid var(--c-brand); }
.home-intro .fact__text { margin-top: 0; font-size: var(--fs-base); }
@media (min-width: 40em) {
	.home-intro .fact { grid-template-columns: 10.5rem minmax(0, 1fr); align-items: baseline; }
}

/* 3. Services — asymmetric 2 + 3 grid (the default 3 + 2 would leave an orphan row) */
.home-svc__wide .svc-card__title { font-size: var(--fs-lg); }
@media (min-width: 40em) {
	.home-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 40em) and (max-width: 59.99em) {
	.home-svc__grid > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 60em) {
	.home-svc__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.home-svc__grid > li { grid-column: span 2; }
	.home-svc__grid > li.home-svc__wide { grid-column: span 3; }
	.home-svc__wide .svc-card__media { aspect-ratio: 16 / 9; }
}

/* 4. Ganz Dortmund — text + number left, staggered photo pair right, dark cog watermark */
.home-city::after {
	content: ""; position: absolute; right: -10rem; bottom: -12rem; width: 36rem; height: 36rem; pointer-events: none;
	background: var(--c-night-950); opacity: .16; -webkit-mask: var(--mask-cog) center / contain no-repeat; mask: var(--mask-cog) center / contain no-repeat;
}
.home-city__grid { position: relative; z-index: 1; display: grid; gap: var(--s-7); align-items: center; }
.home-city__text > * + * { margin-top: var(--s-5); }
.home-city__title { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
.home-city__text p { max-width: 58ch; }
.home-city__text .btn { max-width: 100%; }
.home-city__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; width: 100%; max-width: 34rem; justify-self: center; }
.home-city__photo { box-shadow: var(--sh-lg); }
.home-city__photos > :nth-child(2) { margin-top: var(--s-6); }
.home-city__photos > :first-child > img { object-position: 82% 55%; }
@media (max-width: 39.99em) {
	.home-city__photo .frame__tag { left: var(--s-2); bottom: var(--s-2); max-width: calc(100% - var(--s-4)); padding: .45rem .75rem; line-height: 1.2; }
	.home-city__photo .frame__tag .i { display: none; }
}
/* very narrow phones: the two photos stack as wide frames so the tags keep their full word */
@media (max-width: 29.99em) {
	.home-city__photos { grid-template-columns: minmax(0, 1fr); }
	.home-city__photo { --ratio: 3 / 2; }
	.home-city__photos > :nth-child(2) { margin-top: 0; }
}
@media (min-width: 60em) {
	.home-city__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
	.home-city__photos { gap: var(--s-4); max-width: none; }
	.home-city__photos > :nth-child(2) { margin-top: var(--s-8); }
}

/* 5. Ablauf — the checklist aside stays in view next to the timeline */
.home-ablauf .split { align-items: start; }
@media (min-width: 56em) {
	.home-ablauf__aside { position: sticky; top: calc(var(--header-real, var(--header-h)) + 1.5rem); }
}
