/* ==========================================================================
   Main pages — the layer that turned the one-pager into seven real pages.
   Loaded alongside site.css on the home page and every subpage.
   ========================================================================== */

/* ---------------------------------------------------------- page header -- */

.phead--page {
  background: var(--bg); color: var(--fg);
  padding: clamp(8rem, 13vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
  border-radius: 0 0 clamp(14px, 2.5vw, 26px) clamp(14px, 2.5vw, 26px);
}
.phead--page::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 82% -8%, rgba(176,137,79,0.09), transparent 58%);
}
.phead--page .phead__in { position: relative; z-index: 1; }
.phead--page .level {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 1.5rem;
}
.phead--page .level b { color: var(--acc); font-weight: 500; }
.phead--page .level i { flex: 0 0 3.5rem; height: 1px; background: var(--line); font-style: normal; }
.phead--page h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.125rem, 1.05rem + 4.4vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1.25rem; max-width: 18ch;
}
.phead--page .lede { color: var(--fg-dim); max-width: 52ch; margin-top: 0; }
.phead--page .phead__facts {
  display: flex; flex-wrap: wrap; margin-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.phead--page .phead__facts li {
  padding: 1rem clamp(1.5rem, 3vw, 2.75rem) 0 0;
  margin-right: clamp(1.5rem, 3vw, 2.75rem);
  border-right: 1px solid var(--line); display: grid; gap: 0.25rem;
}
.phead--page .phead__facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.phead--page .phead__facts b {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: 400; line-height: 1;
}
.phead--page .phead__facts span {
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-mute);
}

/* subpages carry their body on paper under the dark head */
body.page { background: var(--paper); color: var(--paper-ink); }
body.page .nav { color: var(--fg); }
body.page .nav.on-light { color: var(--paper-ink); }
body.page .nav.on-light .logo__mark { color: var(--acc-dim); }
body.page .nav.is-stuck { background: rgba(16,16,18,0.9); border-bottom-color: var(--line); }
body.page .nav.is-stuck.on-light { background: rgba(237,234,228,0.93); border-bottom-color: var(--paper-line); }
body.page .sec { background: var(--paper); color: var(--paper-ink); }
body.page .sectitle, body.page h3 { color: var(--paper-ink); }
body.page .tag { color: var(--paper-dim); }
body.page .lede, body.page p { color: var(--paper-dim); }
body.page .btn { border-color: var(--paper-line); color: var(--paper-ink); }
body.page .btn:hover { border-color: var(--acc); color: var(--acc); }
/* the nav sits over the dark head until it passes it — its button has to
   follow the nav's colour, not the paper body's */
body.page .nav .btn { border-color: var(--line-2); color: var(--fg); }
body.page .nav.on-light .btn { border-color: var(--paper-line); color: var(--paper-ink); }
body.page .nav .btn:hover { border-color: var(--acc); color: var(--acc); }
body.page .btn--solid { background: var(--acc); border-color: var(--acc); color: #fff; }
body.page .phead--page .lede, body.page .phead--page p { color: var(--fg-dim); }
body.page .phead--page h1 { color: var(--fg); }

/* the current page is marked in the nav */
.nav__links a[aria-current="page"] { color: var(--acc); border-bottom-color: var(--acc); }
.drawer__links a[aria-current="page"] { color: var(--acc); }

/* ================================================== where to go next ---- */

.next-sec { background: var(--paper); color: var(--paper-ink); }
.nextgrid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
@media (min-width: 40rem) { .nextgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .nextgrid { grid-template-columns: repeat(4, 1fr); } }

.nextcard {
  position: relative; background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem) clamp(3rem, 5vw, 3.5rem);
  display: block; overflow: hidden;
  transition: background 0.4s var(--e);
}
.nextcard::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--e);
}
.nextcard:hover { background: #fff; }
.nextcard:hover::before { transform: scaleX(1); }
.nextcard__n { color: var(--acc-dim); display: block; margin-bottom: 1.5rem; }
.nextcard h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.8vw, 1.5rem); margin-bottom: 0.625rem;
  transition: color 0.3s var(--e);
}
.nextcard:hover h3 { color: var(--acc-dim); }
.nextcard p { font-size: 0.875rem; color: var(--paper-dim); }
.nextcard__go {
  position: absolute; left: clamp(1.25rem, 2.5vw, 1.75rem); bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--acc); transition: transform 0.35s var(--e);
}
.nextcard:hover .nextcard__go { transform: translateX(6px); }

/* ===================================================== the process ladder */
/* The pinned horizontal track left whole empty screens behind. A ruled
   ladder holds the same six stages in a fraction of the height, and the rail
   fills as you read down it. */

.ladder-sec { background: var(--paper); color: var(--paper-ink); }
.ladder { position: relative; list-style: none; margin: 0; padding: 0; }

.ladder__rail {
  position: absolute; left: 0; top: 0.75rem; bottom: 0.75rem; width: 1px;
  background: var(--paper-line);
}
@media (min-width: 46rem) { .ladder__rail { left: 3.5rem; } }
.ladder__rail b {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: var(--acc); display: block;
}

.rung {
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem; padding: clamp(1.125rem, 2.2vw, 1.75rem) 0 clamp(1.125rem, 2.2vw, 1.75rem) 2rem;
  border-bottom: 1px solid var(--paper-line);
}
.rung:last-child { border-bottom: 0; }
@media (min-width: 46rem) {
  .rung {
    grid-template-columns: 3.5rem minmax(0, 7fr) minmax(0, 3fr);
    align-items: baseline; padding-left: 0;
  }
  .rung__body { grid-column: 2; }
  .rung__when { grid-column: 3; text-align: right; }
}

.rung__dot {
  position: absolute; left: -4px; top: calc(clamp(1.125rem, 2.2vw, 1.75rem) + 0.45em);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--paper-line);
  transition: background 0.4s var(--e), border-color 0.4s var(--e), transform 0.4s var(--e);
}
@media (min-width: 46rem) { .rung__dot { left: calc(3.5rem - 4px); } }
.rung.is-in .rung__dot { border-color: var(--acc); }
.rung:hover .rung__dot { background: var(--acc); border-color: var(--acc); transform: scale(1.25); }

.rung__n { color: var(--acc-dim); align-self: baseline; }
.rung__body h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.8vw, 1.625rem);
  margin-bottom: 0.375rem; transition: color 0.3s var(--e);
}
.rung:hover .rung__body h3 { color: var(--acc-dim); }
.rung__body p { color: var(--paper-dim); font-size: 0.9375rem; max-width: 62ch; }
.rung__when { color: var(--paper-dim); white-space: nowrap; }

/* ============================================================= corridor -- */

/* the corridor is a dark band inside a paper page — it has to outrank the
   blanket `body.page .sec` rule, hence the doubled selector */
.corridor, body.page .sec.corridor {
  background: var(--bg); color: var(--fg);
  position: relative; overflow: hidden;
  border-radius: clamp(14px, 2.5vw, 26px);
  margin-block: clamp(2rem, 4vw, 3.5rem);
}
body.page .sec.corridor .sectitle,
body.page .sec.corridor h2 { color: var(--fg); }
body.page .sec.corridor .lede,
body.page .sec.corridor p { color: var(--fg-dim); }
body.page .sec.corridor .tag { color: var(--fg-mute); }
body.page .sec.corridor .cmode__note { color: var(--fg-mute); }
body.page .sec.corridor .cmode__meta { color: var(--fg-dim); }
body.page .sec.corridor .cmode__meta b { color: var(--fg); }

.corridor__stage {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gut);
}
.corridor__stage canvas { width: 100%; height: auto; aspect-ratio: 16 / 7; display: block; }

.corridor__readout {
  position: absolute; right: var(--gut); top: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem;
  pointer-events: none;
}
.corridor__mode { color: var(--acc); letter-spacing: 0.18em; }
.corridor__days {
  font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1; color: var(--fg);
}

.corridor__modes {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 52rem) { .corridor__modes { grid-template-columns: repeat(3, 1fr); } }

.cmode {
  position: relative; background: var(--bg); color: inherit;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: grid; gap: 0.4375rem; text-align: left;
  transition: background 0.4s var(--e);
}
.cmode:hover { background: var(--bg-2); }
.cmode__n { color: var(--fg-mute); }
.cmode__name {
  font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.1; transition: color 0.3s var(--e);
}
.cmode__meta { color: var(--fg-dim); letter-spacing: 0.12em; }
.cmode__meta b { color: var(--fg); font-weight: 500; }
.cmode__note { font-size: 0.8125rem; color: var(--fg-mute); line-height: 1.5; max-width: 34ch; }
.cmode__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--e);
}
.cmode.is-on { background: var(--bg-2); }
.cmode.is-on .cmode__name { color: var(--acc); }
.cmode.is-on .cmode__n { color: var(--acc-dim); }
.cmode.is-on .cmode__bar { transform: scaleX(1); }

/* =========================================================== footer cols -- */

.foot__cols {
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) { .foot__cols { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); } }

.foot__claim {
  font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + 1.5vw, 2.25rem);
  line-height: 1.2; letter-spacing: -0.018em; margin-bottom: 1.5rem;
}
.foot__nav, .foot__contact { display: grid; align-content: start; gap: 0.5rem; }
.foot__nav .mono, .foot__contact .mono { color: var(--fg-mute); margin-bottom: 0.375rem; }
.foot__nav a, .foot__contact a {
  font-size: 0.9375rem; color: var(--fg-dim); width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.24s var(--e), border-color 0.24s var(--e);
}
.foot__nav a:hover, .foot__contact a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.foot__contact .mono:not(:first-child) { margin-top: 1rem; }

/* ================================================================ motion -- */

@media (prefers-reduced-motion: reduce) {
  .nextcard::before, .nextcard__go, .rung__dot, .cmode__bar { transition: none !important; }
  .ladder__rail b { height: 100% !important; }
}

/* ================================================================ mobile -- */

@media (max-width: 40rem) {
  .phead--page { padding-top: 6.5rem; }
  .phead--page h1 { max-width: none; }
  .corridor__readout { position: static; align-items: flex-start; margin-bottom: 0.75rem; padding-inline: var(--gut); }
  .corridor__stage canvas { aspect-ratio: 4 / 3; }
  .rung__when { display: none; }
  .nextcard { padding-bottom: 2.75rem; }
}

/* ==================================================================== */
/*  Content blocks shared by the home page and the sub-pages.           */
/*  They all sit on paper ground (home: inside .chapter, sub-pages:     */
/*  body.page), except .stance and .ctaband, which are deliberately     */
/*  dark so a long page still has a rhythm of light and dark.           */
/* ==================================================================== */

/* ------------------------------------------------- two-column split -- */
.split2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-top: 1px solid var(--paper-line);
}
.split2__col { padding: clamp(1.75rem, 3vw, 2.75rem) 0 0; }
.split2__col + .split2__col {
  border-left: 1px solid var(--paper-line);
  padding-left: clamp(1.75rem, 4vw, 3.5rem);
}
.split2__col:first-child { padding-right: clamp(1.75rem, 4vw, 3.5rem); }
.split2__head {
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-dim); margin-bottom: 1.5rem;
}
.split2__col--acc .split2__head { color: var(--acc-dim); }

.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li {
  position: relative; padding: 0.9375rem 0 0.9375rem 1.75rem;
  border-top: 1px solid var(--paper-line);
  font-size: 0.9375rem; line-height: 1.55; color: var(--paper-ink);
}
.ticklist li:first-child { border-top: 0; padding-top: 0; }
.ticklist li::before {
  content: ''; position: absolute; left: 0; top: 1.5rem;
  width: 0.625rem; height: 1px; background: var(--paper-line);
}
.ticklist li:first-child::before { top: 0.625rem; }
.split2__col--acc .ticklist li::before { background: var(--acc); }

/* ---------------------------------------------------- numbered band -- */
.factband {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--paper-line);
}
.factband__item {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) 0 0;
}
.factband__item + .factband__item {
  border-left: 1px solid var(--paper-line);
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
}
.factband__item b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--paper-ink);
}
.factband__item > span {
  display: block; margin-top: 0.75rem;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acc-dim);
}
.factband__item p {
  margin-top: 1rem; font-size: 0.9375rem; line-height: 1.6;
  color: var(--paper-dim); max-width: 34ch;
}

/* ----------------------------------------------------- question list -- */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--paper-line); }
.qa__item {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 2.6vw, 2.25rem) 0;
  border-bottom: 1px solid var(--paper-line);
}
.qa__item:nth-child(even) {
  border-left: 1px solid var(--paper-line);
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
}
.qa__item h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.3; letter-spacing: -0.01em; color: var(--paper-ink);
}
.qa__item h3::before {
  content: '—'; color: var(--acc); margin-right: 0.625rem;
}
.qa__item p {
  margin-top: 0.8125rem; font-size: 0.9375rem; line-height: 1.62;
  color: var(--paper-dim); max-width: 46ch;
}

/* --------------------------------------------------------- CTA band -- */
.ctaband, body.page .sec.ctaband {
  background: var(--bg); color: var(--fg);
  border-radius: clamp(14px, 2.5vw, 26px);
  /* matches the corridor band: full bleed, rounded, generous block margin */
  margin-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  overflow: hidden; position: relative;
}
.ctaband::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 140% at 88% 8%, rgba(176, 137, 79, 0.16), transparent 62%);
}
.ctaband__in {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 4rem); flex-wrap: wrap;
}
.ctaband h2 {
  font-family: var(--serif); font-weight: 400; color: var(--fg);
  font-size: clamp(1.625rem, 1.15rem + 2.1vw, 2.75rem);
  line-height: 1.14; letter-spacing: -0.02em; max-width: 20ch;
}
.ctaband p {
  margin-top: 1rem; color: var(--fg-dim);
  font-size: 0.9375rem; line-height: 1.6; max-width: 46ch;
}
.ctaband__btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ctaband .btn, body.page .ctaband .btn { border-color: var(--line-2); color: var(--fg); }
.ctaband .btn:hover, body.page .ctaband .btn:hover { border-color: var(--acc); color: var(--acc); }
.ctaband .btn--solid, body.page .ctaband .btn--solid {
  background: var(--acc); border-color: var(--acc); color: #fff;
}
.ctaband .btn--solid:hover, body.page .ctaband .btn--solid:hover {
  background: var(--acc-dim); border-color: var(--acc-dim); color: #fff;
}

/* ------------------------------------------------------------ mobile -- */
@media (max-width: 860px) {
  .qa { grid-template-columns: 1fr; }
  .qa__item, .qa__item:nth-child(even) {
    border-left: 0; padding-left: 0; padding-right: 0;
  }
  .factband { grid-template-columns: 1fr; }
  .factband__item,
  .factband__item + .factband__item {
    border-left: 0; padding-left: 0; padding-right: 0;
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--paper-line);
  }
  .factband__item:first-child { border-top: 0; }
  .factband__item p { max-width: none; }
}

@media (max-width: 760px) {
  .split2 { grid-template-columns: 1fr; }
  .split2__col:first-child { padding-right: 0; padding-bottom: 0.5rem; }
  .split2__col + .split2__col {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--paper-line);
  }
  .ctaband__in { display: block; }
  .ctaband__btns { margin-top: 1.75rem; }
  .ctaband h2, .ctaband p { max-width: none; }
}

/* A page head carrying nothing but its title: no number, no lede, no figures.
   The box would otherwise shrink to one line, so it keeps its height and the
   title gets the full display size. */
.phead--title { padding-block: clamp(9rem, 15vw, 14rem) clamp(5rem, 9vw, 8rem); }
.phead--title h1 {
  font-size: clamp(2.75rem, 1.2rem + 7vw, 7rem);
  margin-bottom: 0; max-width: none;
}

/* The figures band sizes itself to how many figures it carries, so removing
   one does not leave an empty column. */
.factband[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.factband[data-n="1"] { grid-template-columns: 1fr; }

/* ------------------------------------------------------- Rechtsseiten -- */

.foot__legal { display: flex; gap: 1.25rem; }
.foot__legal a { color: inherit; }
.foot__legal a:hover { color: var(--acc); }

.legal { max-width: 46rem; }
.legal h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.2; letter-spacing: -0.015em;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--paper-line);
}
.legal h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 {
  font-size: 0.9375rem; font-weight: 600; margin-top: 1.75rem;
  color: var(--paper-ink);
}
.legal p, .legal li { font-size: 0.9375rem; line-height: 1.68; color: var(--paper-dim); }
.legal p { margin-top: 0.875rem; max-width: 62ch; }
.legal ul { margin-top: 0.875rem; padding-left: 1.125rem; list-style: none; }
.legal li { position: relative; padding-left: 0.25rem; margin-top: 0.5rem; }
.legal li::before {
  content: ''; position: absolute; left: -1rem; top: 0.72em;
  width: 0.5rem; height: 1px; background: var(--acc);
}
.legal a { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--acc); }

/* Eine Angabe, die der Mandant noch liefern muss. Soll auffallen. */
.todo {
  display: inline-block; padding: 0.0625rem 0.4375rem;
  border: 1px dashed var(--acc); border-radius: 3px;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--acc-dim);
  background: rgba(176, 137, 79, 0.08);
}
.legal__note {
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px dashed var(--acc); border-radius: 4px;
  background: rgba(176, 137, 79, 0.06);
}
.legal__note p { color: var(--paper-ink); max-width: none; }
.legal__note p:first-child { margin-top: 0; }

/* Begriffsliste für die Anbieterangaben */
.legal dl { margin-top: 1.125rem; display: grid; gap: 0.5rem 1.5rem; }
@media (min-width: 34rem) { .legal dl { grid-template-columns: 11rem 1fr; } }
.legal dt {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-dim); padding-top: 0.2em;
}
.legal dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--paper-ink); }
