/* Page CSS for the hub pages. Only what sits inside a visual or a list and the
   taste kit lacks; everything else comes from /assets/system.css and layout.css. */

/* A split's photograph: fills the frame at 4:5 on desktop, 4:3 when stacked. */
.pg-photo { aspect-ratio: auto; width: 100%; height: min(708px, calc(100svh - var(--padt) - var(--padb))); }
.pg-photo > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .pg-photo { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* Numbered steps as rows: the number sits before the name. */
.pg-steps { list-style: none; margin: 0; padding: 0; }
.pg-steps .step-num { margin-right: var(--s-3); }
.pg-after { margin-top: var(--s-5); }

/* The founder portrait: the file is only 540px wide, so it is shown small
   (360px at most, 260px on a phone) and stays sharp. */
.pg-portrait { margin: 0; width: min(100%, 360px); aspect-ratio: 540 / 670; border-radius: var(--r-lg); overflow: hidden; }
.pg-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .pg-portrait { margin-top: var(--s-7); } }

/* The turquoise accent marks the strong word of the statement. */
.mo-wh__text strong { color: var(--p-accent); }

/* Phone: a split section is two screens (--hm: 2). Its words come first and the
   photograph fills what is left of the second screen, so the section ends on the
   picture and never on an empty band. */
@media (max-width: 639px) {
  .pg-stack-m { display: flex; flex-direction: column; row-gap: var(--s-7); }
  .pg-stack-m > .pg-photo { flex: 1 1 0; min-height: 240px; height: auto; aspect-ratio: auto; max-width: none; margin-top: 0; }
  .pg-stack-m > .pg-portrait { flex: none; width: min(100%, 260px); margin-top: 0; }
}

/* The ABL logo: three stacked lines, white on the black bar and the black
   footer (larger there). The current page and a hovered word turn turquoise. */
.nav__logo svg.pg-logo { height: 46px; width: auto; color: var(--ink); overflow: visible; }
.pg-logo text { font: 600 15px/1 var(--font-display); }
.footer .nav__logo svg.pg-logo { height: 96px; }
.nav .nav__link:hover, .nav .nav__link[aria-current="page"] { color: var(--accent); }

/* The calendar opened in the close: the footer takes two screens for it. */
footer.closing.is-booking { --h: 2; --hm: 2; }
.pg-cal { height: 700px; min-width: 320px; background: #fff; border-radius: var(--r-lg); overflow: hidden; }

/* The main action is turquoise on every ground (brand), its label in ink. */
.btn--primary { --action: var(--p-accent); --action-ink: var(--p-accent-ink); }

/* A split's photograph on the inner pages. */
.pg-fig { margin: 0; border-radius: var(--r-lg); overflow: hidden; }

/* The four project packages as cards: the name, then ruled facts. */
.pg-plan dl { margin: var(--s-4) 0 0; }
.pg-plan dl > div { padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.pg-plan dl > div:last-child { border-bottom: 0; }
.pg-plan dt { color: var(--muted); font-size: var(--t-small); }
.pg-plan dd { margin: 0; }

/* The main action is turquoise on every ground (brand), its label in ink. */
.btn--primary { --action: var(--p-accent); --action-ink: var(--p-accent-ink); }
.btn--primary:focus-visible { outline-color: var(--ink); }

/* The packages on a phone: label and value share a line, so four cards fit two screens. */
@media (max-width: 639px) {
  .pg-plan { padding: var(--s-4); }
  .pg-plan dl { margin-top: var(--s-2); }
  .pg-plan dl > div { display: grid; grid-template-columns: 2fr 3fr; gap: var(--s-3); padding-block: 3px; border-bottom: 0; }
  .pg-plan dt, .pg-plan dd { font-size: var(--t-small); }
}

/* ==========================================================================
   The dark tech pages. Only what sits inside a visual.
   ========================================================================== */
/* the hero frame's painted ground when WebGL is not there */
.pg-dark .hero__window { background: radial-gradient(120% 90% at 50% 120%, #0f3f3a 0%, #0b1f1e 45%, #0b0b0b 100%); }
/* three feature cards: one panel height, so the row is level */
.pg-dark :is(#bereiche, #areas) .panel { --p-h: 320px; }
@media (max-width: 639px) { .pg-dark :is(#bereiche, #areas) .panel { --p-h: 240px; } }
/* the path as one wide diagram */
.pg-dark #weg .pg-wide, .pg-dark #path .pg-wide { height: min(420px, calc(100svh - 470px)); min-height: 300px; }
/* the statement: the type moment set very large */
.pg-dark .mo-lt__type { font-size: clamp(48px, 9vw, 132px); line-height: 1; letter-spacing: -0.045em; }
/* the assistant window in the draft hero (the kit's centred hero recipe) */
.pg-dark .d-win--dark .d-win__body { grid-template-columns: 250px 1fr; min-height: 420px; }
.pg-dark .d-win--dark .d-win__bar b { color: #eceef0; font-weight: 500; }
.pg-dark .d-win--dark .d-win__bar .sp { flex: 1; }
.pg-dark .hero__window .d-chat { padding: 14px 18px; gap: 8px; }
.pg-dark .hero__window .d-msg--me small { display: none; }
.pg-dark .hero__window .d-msg--bot { max-width: 86%; background: #22262b; color: #e9ecee; }
.pg-dark .hero__window .d-msg--bot small { display: inline; margin: 0 0 0 8px; white-space: nowrap; }
.pg-dark .inbox { border-right: 1px solid rgb(255 255 255 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; }
.pg-dark .inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #7d8389; font-size: 13px; }
.pg-dark .inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.pg-dark .inbox .t.is-on { background: rgb(255 255 255 / .07); }
.pg-dark .inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-text); font-style: normal; }
.pg-dark .inbox .t b { font-weight: 500; color: #eceef0; }
.pg-dark .inbox .t time { color: #7d8389; font-size: 13px; }
.pg-dark .inbox .t span { grid-column: 2 / -1; color: #8d9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-dark .convo { display: grid; min-width: 0; align-content: start; }
.pg-dark .acts { display: flex; gap: 8px; }
.pg-dark .acts span { height: 30px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: #00d9c0; color: #0b0b0b; }
.pg-dark .acts span + span { background: rgb(255 255 255 / .08); color: #e9ecee; }
@media (max-width: 639px) {
  .pg-dark .hero__window .d-win__bar .sp ~ span { display: none; }
  .pg-dark .d-win--dark .d-win__body { grid-template-columns: 1fr; }
  .pg-dark .inbox { display: none; }
  .pg-dark .hero__window .d-chat { font-size: 13px; padding: 12px 14px; }
}

/* The hero's shader ground and the lit frames take the brand's turquoise, not the kit's default tint. */
.pg-dark .hero__window { --fx-bg: #071a18; --fx-surface: #0c3a35; --fx-ink: #bff5ee; --fx-muted: #0f5a52; --fx-accent: #00d9c0; }

/* the stance: three points under the type moment */
.pg-points { margin-top: var(--s-9); }
.pg-points p + p { margin-top: var(--s-2); color: var(--muted); }
/* a phone keeps the exchange inside the hero frame */
@media (max-width: 639px) { .pg-dark .hero__window .acts { display: none; } }

/* Card panels, frames and diagrams on the dark pages stand on a dark surface
   with light labels (the kit's default lit ground is a pale tint that fights
   the brand's black and turquoise). */
.pg-dark :is(.frame, .panel):has(> .dg) {
  background: #141414 !important; background-image: none !important;
  border: 1px solid rgb(255 255 255 / .08);
}
/* A UI fragment needs a ground clearly lighter than its dark card: the brand's deep turquoise. */
.pg-dark .card > .panel:not(:has(> .dg)) { background: #22a89b !important; background-image: none !important; }
.pg-dark :is(.frame, .panel):has(> .dg) {
  --bg: #141414; --card: #1d1d1d; --surface: #1d1d1d;
  --ink: #f5f5f5; --muted: #b4b4b4; --accent: #00d9c0;
  --dg-ink: #f5f5f5; --dg-muted: #b4b4b4; --dg-pulse: #00d9c0;
}

/* The founder in the questions' text column: a small sharp portrait beside the name. */
.pg-person { display: grid; grid-template-columns: 1fr 96px; gap: var(--s-5); align-items: center; margin-top: var(--s-7); max-width: 360px; }
.pg-person > img { width: 96px; height: 119px; object-fit: cover; border-radius: var(--r-md); }
.pg-person .t-card { margin-bottom: var(--s-2); }
/* On a phone the founder block stacks on the left line, the portrait larger, so the
   questions fill their two screens. */
@media (max-width: 639px) {
  .pg-person { grid-template-columns: 1fr; gap: var(--s-4); }
  .pg-person > img { width: 240px; height: 298px; }
}
