/* Subpages in the homepage's visual language (spec S1).

   Only templates that set `{% set subpage = true %}` load this file, after
   foundations.css and components.css, and wrap their content in
   `<main class="subpage">`. Because no other page loads it, its rules may
   override the shared blocks: the homepage, /preise, /hardware and /bestellen
   never see them, and the homepage's byte budget does not pay for them.
   Colours only through tokens, no motion (homepage V4-5). */

/* ---------------- Column and rhythm ---------------- */
/* Every subpage sits in the homepage's 830 px column; sections keep the
   rhythm of the homepage's card sections. */
.subpage .container { max-width: calc(var(--column) + 48px); }
.subpage .section { padding: 48px 0 56px; }

@media (max-width: 640px) {
  .subpage .section { padding: 40px 0 48px; }
}

/* ---------------- Page hero ---------------- */
/* The title band sits on the homepage's pixel ground. White holds 8.55:1 on
   the lightest cell, so no veil. */
.subpage .page-hero {
  padding: 40px 0 44px;
  background: var(--indigo-850) url("/img/home/hero-ground.webp") center / cover no-repeat;
  color: var(--white);
}
.subpage .page-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white);
  margin: 0;
  max-width: 640px;
  overflow-wrap: break-word;
}
.subpage .page-hero .eyebrow { color: var(--white); margin-bottom: 16px; }
.subpage .page-hero .lede {
  font-size: 17.5px;
  line-height: 20px;
  font-weight: 500;
  color: var(--white);
  max-width: 560px;
  margin: 18px 0 0;
}
.subpage .breadcrumb {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--white);
  margin-bottom: 20px;
}
.subpage .page-hero .accent, .subpage .breadcrumb a { color: var(--white); }
.subpage .breadcrumb a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 640px) {
  .subpage .page-hero { padding: 28px 0 32px; }
  .subpage .page-hero h1 { font-size: 34px; line-height: 1.05; }
}

/* Button rows of subpages: the homepage's pills, wrapped with its gap. */
.pill-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }

/* ---------------- Cards ---------------- */
/* Daniel's pillow (spec S4): the backdrop and edge are the comparison cards'
   `::before`/`::after` in components.css; this is the box. Three columns;
   exactly four cards pair up 2 x 2 instead of leaving an orphan. The title is the homepage's magenta bar, flush in the
   top-left corner. Hover recolours only. */
.subpage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.subpage-cards--pairs { grid-template-columns: repeat(2, 1fr); }
.subpage-card {
  --card-edge: var(--edge-psd); --card-edge-w: 0.7px;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; min-height: 179px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(var(--shadow-psd-pillow));
  color: var(--fg-1);
}
a.subpage-card:hover { text-decoration: none; color: var(--fg-1); }
.subpage-card:hover .subpage-card__link { text-decoration: underline; }
.subpage-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.subpage-card__title {
  align-self: flex-start;
  margin: 0;
  border-radius: var(--radius-lg) 0 0 0;
  overflow-wrap: break-word;
}
.subpage-card__eyebrow {
  padding: 14px 14px 0;
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--fg-1);
}
.subpage-card__desc {
  margin: 0;
  padding: 14px 14px 22px;
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--fg-1);
}
.subpage-card__link {
  margin: auto 14px 14px; align-self: flex-end;
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--magenta);
}
.subpage-card__link::after { content: "\2192"; font-family: var(--font-arrow); font-weight: 700; margin-left: 3px; }

@media (max-width: 1024px) {
  .subpage-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .subpage-cards, .subpage-cards--pairs { grid-template-columns: 1fr; }
  .subpage-card { filter: none; box-shadow: var(--shadow-psd-lift); }
}
/* One column at every width (the contact channels beside the details):
   after the media blocks, so it wins at each of them. */
.subpage-cards--stack { grid-template-columns: 1fr; }

/* ---------------- Splits, bullets, panel ---------------- */
/* Image-and-copy rows (spec S5): copy beside the homepage product card's
   frame. Product shots sit contained at 80 x 85 %; `--fill` photos cover the
   frame, whose overflow rounds their corners. */
.subpage-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.subpage-split + .subpage-split { margin-top: 64px; }
.subpage-split--reverse .subpage-split__copy { order: 2; }
/* Rows of unequal height (contact cards beside the details) start together.
   The head rule takes only the direct `h2`: the contact cards inside the copy
   column title themselves with `h2.home-bar`. */
.subpage-split--top { align-items: start; }
.subpage-split__copy .eyebrow { margin-bottom: 16px; }
.subpage-split__copy > h2 {
  font-family: var(--font-display);
  font-size: 31.5px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0;
  color: var(--fg-1);
  margin: 0 0 12px;
}
.subpage-split__copy .lede {
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--fg-1);
  max-width: none;
}
.subpage-split__copy .lede + .lede { margin-top: 12px; }
/* The homepage product card's frame, shared by the split visuals and the
   compliance panel. */
.subpage-split__visual, .subpage-panel {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0.7px var(--edge-psd), var(--shadow-psd-lift);
}
.subpage-split__visual {
  aspect-ratio: 5 / 4;
  display: grid; place-items: center;
  overflow: hidden;
}
.subpage-split__visual img {
  width: auto; height: auto;
  max-width: 80%; max-height: 85%;
  object-fit: contain;
}
.subpage-split__visual--fill img {
  display: block;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: cover;
}

/* The homepage split's bullets on navy: the tilted vivid-magenta square is
   the one rule `.home-split__bullets li::before` in components.css. */
.subpage-bullets {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 15px;
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--fg-1);
}
.subpage-bullets li { position: relative; padding-left: 32px; }

/* The compliance listing: the same bullets in the product card's frame. */
.subpage-panel { padding: 28px 32px; }
.subpage-panel .subpage-bullets { margin-top: 0; }

@media (max-width: 1024px) {
  .subpage-split { grid-template-columns: 1fr; gap: 28px; }
  .subpage-split--reverse .subpage-split__copy { order: 0; }
}

/* /faq takes the homepage's rows (the `.subpage` twins in components.css)
   but reads left: question and answer start at the column edge, the plus
   sits at its right end (spec S7). */
.subpage .faq__q { justify-content: space-between; text-align: left; padding: 0 40px 0 0; }
.subpage .faq__q::after { right: 0; }
.subpage .faq__a { text-align: left; padding: 0 40px 0 0; margin-top: 8px; }

/* A closing line and its pill below a list, centred in one column; the
   founder's name on /ueber-uns takes the same text. */
.subpage-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 30px; text-align: center;
}
.subpage-cta__text, .founder-name { font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1); }

/* Legal texts and contact details: alternating heading and paragraph in
   navy, one measure for both pages and the message pages' status callout.
   The contact details title the address with an `h2` (a sibling of the
   contact card bars), the legal pages their sections with `h3`. */
.subpage-prose, .subpage .callout { max-width: 640px; }
.subpage-prose > h2, .subpage-prose > h3 {
  margin: 32px 0 0;
  font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 24px;
  letter-spacing: 0; color: var(--fg-1);
}
.subpage-prose > p {
  margin: 8px 0 0;
  font-size: 17px; font-weight: 500; line-height: 24px; color: var(--fg-1);
}
.subpage-prose > :first-child { margin-top: 0; }

/* /ueber-uns: the founder quote takes the homepage's closing line (Archivo
   Medium 26/1.25 navy, the strong parts ExtraBold), left in the column; the
   rule above the name is a 26 x 3 px magenta-deep bar (spec S7). */
.founder-quote {
  margin: 0; max-width: 640px;
  font-family: var(--font-body); font-size: 26px; font-weight: 500; line-height: 1.25;
  color: var(--fg-1);
}
.founder-quote strong { font-family: var(--font-display); font-weight: 800; }
.founder-meta { margin-top: 24px; }
.founder-rule { width: 26px; height: 3px; background: var(--magenta-deep); margin: 0 0 12px; }
.subpage .eyebrow--tight { margin: 4px 0 0; }

/* /ueber-uns closes on the homepage's banner (`home-banner` in
   components.css); its photo sits in the render slot, rounded. */
.subpage-banner__photo { border-radius: var(--radius-lg); }
