/* Lehrbuchrahmen, gemeinsam für alle Seiten (WP-09). Die Systemgrafik bleibt in index.html. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

html, body { margin: 0; height: 100%; overflow: hidden; background: #fff; color: #292929; }
.stage {
  container-type: inline-size;
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.page {
  --s: calc(100cqi / 736);
  --move: 620ms cubic-bezier(.22, .61, .36, 1);
  --sys: #77716f;
  --orbit-stroke: #d9d4cf;
  --orbit-o: 1;
  --line-o: .42;
  --grid-o: 0;
  --diag-o: 0;
  --crit-o: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: calc(22 * var(--s)) calc(28 * var(--s)) calc(24 * var(--s));
  font-family: Bahnschrift, "Segoe UI", Helvetica, Arial, sans-serif;
}
.page[data-state="diagnostics"] {
  --sys: #005771; --orbit-stroke: var(--sys); --orbit-o: .34; --grid-o: .5; --diag-o: 1;
}
.page[data-state="leadership"] {
  --sys: #b7126f; --orbit-stroke: var(--sys); --orbit-o: .48; --line-o: .58;
}
.page[data-state="critical"] {
  /* Raster aus: die Siedlungspunkte aus WP-12 übernehmen seine Rolle */
  --sys: #82348b; --orbit-stroke: var(--sys); --orbit-o: .2; --grid-o: 0; --crit-o: 1;
}
/* Rückfall ohne Skript: Farbe über Hover, keine Bewegung */
.page:not(.js):has(.topic-e:hover),
.page:not(.js):has(.topic-e:focus-visible),
.page:not(.js):has(.topic-e.is-active) {
  --sys: #005771; --orbit-stroke: var(--sys); --orbit-o: .34; --grid-o: .5; --diag-o: 1;
}
.page:not(.js):has(.topic-f:hover),
.page:not(.js):has(.topic-f:focus-visible),
.page:not(.js):has(.topic-f.is-active) {
  --sys: #b7126f; --orbit-stroke: var(--sys); --orbit-o: .48; --line-o: .58;
}
.page:not(.js):has(.topic-k:hover),
.page:not(.js):has(.topic-k:focus-visible),
.page:not(.js):has(.topic-k.is-active) {
  --sys: #82348b; --orbit-stroke: var(--sys); --orbit-o: .2; --grid-o: 0; --crit-o: 1;
}
.run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--s));
  padding-bottom: calc(8 * var(--s));
  border-bottom: calc(1 * var(--s)) solid #292929;
  font-size: calc(11 * var(--s));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #77716f;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--s));
  width: calc(100% + 72 * var(--s));
  max-width: none;
  margin: calc(36 * var(--s)) 0 0 calc(-100 * var(--s));
  padding-top: calc(8 * var(--s));
  border-top: calc(1 * var(--s)) solid #292929;
  font-size: calc(6.5 * var(--s));
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #b5b0ac;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: #77716f; }
.mark {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.mark img {
  display: block;
  height: calc(14 * var(--s));
  width: auto;
  transform: translateY(calc(-2 * var(--s)));
}
.spread {
  display: grid;
  grid-template-columns: calc(92 * var(--s)) minmax(0, calc(440 * var(--s))) 1fr;
  column-gap: calc(8 * var(--s));
  margin-top: calc(26 * var(--s));
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
}
.num {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: start;
  font-size: calc(64 * var(--s));
  line-height: 0.8;
  font-weight: 600;
  color: #d9d4cf;
  letter-spacing: -0.04em;
  text-decoration: none;
}
a.num:focus { outline: none; }
a.num:focus-visible {
  outline: calc(1 * var(--s)) solid #292929;
  outline-offset: calc(4 * var(--s));
}
.text {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}
.text-scroll {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-100 * var(--s));
  width: calc(100vw - 28 * var(--s));
  box-sizing: border-box;
  padding-left: calc(100 * var(--s));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d9d4cf transparent;
  z-index: 1;
}
.text-scroll > * { max-width: calc(368 * var(--s)); }
.text-scroll > .foot { max-width: none; }
.text-scroll::-webkit-scrollbar { width: calc(6 * var(--s)); }
.text-scroll::-webkit-scrollbar-thumb { background: #d9d4cf; border-radius: calc(4 * var(--s)); }
.text-scroll::-webkit-scrollbar-track { background: transparent; }
.lead {
  margin: 0;
  max-width: min(16em, calc(368 * var(--s)));
  font-size: calc(26 * var(--s));
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
ul { list-style: none; margin: calc(28 * var(--s)) 0 0; padding: 0; }
li { margin: 0; padding: 0; }
.topic {
  display: flex;
  align-items: baseline;
  gap: calc(10 * var(--s));
  width: 100%;
  margin: 0;
  padding: calc(8 * var(--s)) 0;
  border: 0;
  background: transparent;
  color: #292929;
  font: inherit;
  font-size: calc(15 * var(--s));
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
a.topic { text-decoration: none; }
.topic:focus { outline: none; }
.topic:focus-visible {
  outline: calc(1 * var(--s)) solid #292929;
  outline-offset: calc(2 * var(--s));
}
.topic span { min-width: 0; }
.topic b {
  flex: 1 0 calc(28 * var(--s));
  border-bottom: calc(1 * var(--s)) dotted #d9d4cf;
  transform: translateY(calc(-4 * var(--s)));
}
.topic-a { color: #79746f; }
.topic-e:hover, .topic-e:focus-visible, .topic-e.is-active { color: #005771; outline-color: #005771; }
.topic-e:hover b, .topic-e:focus-visible b, .topic-e.is-active b { border-bottom-color: #005771; border-bottom-style: solid; }
.topic-f:hover, .topic-f:focus-visible, .topic-f.is-active { color: #b7126f; outline-color: #b7126f; }
.topic-f:hover b, .topic-f:focus-visible b, .topic-f.is-active b { border-bottom-color: #b7126f; border-bottom-style: solid; }
.topic-k:hover, .topic-k:focus-visible, .topic-k.is-active { color: #82348b; outline-color: #82348b; }
.topic-k:hover b, .topic-k:focus-visible b, .topic-k.is-active b { border-bottom-color: #82348b; border-bottom-style: solid; }
.topic-a:hover, .topic-a:focus-visible, .topic-a.is-active { color: #292929; }
.topic-a:hover b, .topic-a:focus-visible b, .topic-a.is-active b { border-bottom-color: #292929; border-bottom-style: solid; }

/* Hochformat: eine Spalte. Ziffer unter dem Kopf, Grafik darunter, Text scrollt, nichts liegt übereinander. */
@media (max-width: 760px) {
  .page {
    --s: 1px;
    padding: 14px 18px 10px;
  }
  .mark img { height: 22px; transform: none; }
  .run { font-size: 10px; letter-spacing: .12em; padding-bottom: 8px; }
  .spread {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    overflow: hidden;
  }
  .page .num {
    order: 1;
    flex: none;
    font-size: 56px;
    line-height: 1;
    margin: 12px 0 0;
    z-index: 3;
  }
  .page .visual {
    order: 2;
    flex: none;
    align-self: stretch;
    position: relative;
    height: 210px;
    min-height: 210px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .page .hero-box,
  .page .echo {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 210px;
    margin: 0;
    pointer-events: none;
  }
  .page .hero-system,
  .page .hero-system *,
  .page .echo,
  .page .echo * { pointer-events: none; }
  .page .portrait {
    position: absolute;
    z-index: 1;
    top: 4px;
    right: 4px;
    width: 140px;
    height: auto;
    pointer-events: none;
  }
  .page .text {
    order: 3;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    z-index: 2;
  }
  .page .text-scroll {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
  }
  .page .text-scroll > *,
  .page .lead,
  .page .agb-titel { max-width: none; }
  .page .lead,
  .page .agb-titel { font-size: 21px; }
  .page .topics { margin-top: 16px; }
  .page .topic { font-size: 16px; padding: 9px 0; }
  .page .foot {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    font-size: 11px;
    flex-wrap: wrap;
    row-gap: 4px;
    position: static;
  }
  .page .agb { font-size: 13.5px; }
  .page .firmen { font-size: 12px; }
  .page .hinweis { font-size: 11px; }
}
