@font-face {
  font-family: Manrope;
  src: url(assets/manrope-latin-variable.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #142321;
  --muted: #52635f;
  --line: #cbdad5;
  --teal: #05616c;
  --wash: #edf4f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    520 1rem/1.48 Manrope,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select,
a {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #1957a1;
  outline-offset: 3px;
}
a {
  text-underline-offset: 0.22em;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: white;
  padding: 0.6rem;
  z-index: 5;
}
.skip:focus {
  top: 0;
}
.wrap {
  width: min(92%, 1390px);
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
}
.mast,
.tools,
.top,
.navline,
.bookfoot,
.overviewHead,
.chapterHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mast {
  min-height: 65px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.075em;
  text-decoration: none;
}
.brand img {
  width: 1.65rem;
  height: 1.65rem;
}
.edition {
  margin-right: auto;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 720;
}
.edition i {
  font-style: normal;
  color: #8fa69e;
  margin: 0 0.3rem;
}
.tools button,
.tools a,
.plain,
.link {
  background: none;
  border: 0;
  font-size: 0.9rem;
  font-weight: 720;
}
.tools a,
.link {
  display: inline-flex;
  align-items: center;
}
.tools button,
.plain {
  padding: 0 0.2rem;
}
.tools {
  gap: 1.2rem;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2 {
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.overviewHead {
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding: 1.45rem 0 0.9rem;
}
.overviewHead h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
}
.meta {
  color: var(--muted);
  font-size: 0.86rem;
}
.overview {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  padding: 1.25rem 0 2rem;
}
.feature {
  margin: 0;
}
.feature img {
  width: 100%;
  display: block;
  aspect-ratio: 1.65;
  object-fit: cover;
}
.feature h2 {
  font-size: 1.7rem;
  margin: 0.65rem 0;
}
.feature .meta {
  margin-top: 0.8rem;
}
.primary,
.secondary {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.primary {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
}
.secondary {
  border: 1px solid #9aafa8;
  background: white;
}
.index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.index li {
  border-bottom: 1px solid var(--line);
}
.index a {
  display: grid;
  grid-template-columns: 2.25em 1fr auto;
  gap: 0.5rem;
  padding: 0.5rem 0.15rem;
  text-decoration: none;
  align-items: center;
}
.index a:is(:focus-visible, :hover) strong,
.feature a:hover {
  text-decoration: underline;
}
.index .idx {
  font-size: 1.2rem;
  color: var(--teal);
  font-weight: 800;
}
.index strong {
  display: block;
  font-weight: 800;
}
.index small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.index .count {
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--muted);
}
.chapterHead {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  gap: 0.8rem;
}
.chapterHead h1 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  margin-right: auto;
}
.back {
  color: var(--teal);
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
}
.tasknav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.tasknav a {
  min-width: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 730;
}
.tasknav a[aria-current="step"] {
  color: var(--teal);
  border-color: var(--teal);
}
.tasknav .finished:after {
  content: "✓";
  font-size: 0.63rem;
}
.tasknav .finished {
  display: flex;
  justify-content: center;
  gap: 0.13rem;
  align-items: center;
}
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4.5rem);
  align-items: start;
  padding: 1.2rem 0;
}
.visual {
  min-width: 0;
}
.right {
  padding: 0.5rem 0;
}
.kicker {
  font-weight: 800;
  color: var(--teal);
  font-size: 0.86rem;
  margin-bottom: 0.55rem;
}
.right h2 {
  font-size: clamp(1.9rem, 3.1vw, 3.3rem);
}
.brief {
  margin: 0.85rem 0 1rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  max-width: 44ch;
}
.scene {
  position: relative;
  overflow: hidden;
}
.scene > img,
.scene > svg {
  display: block;
  width: 100%;
  height: auto;
}
.scene > img {
  aspect-ratio: 1.58;
  object-fit: cover;
}
.map svg {
  display: block;
  width: 100%;
}
.overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  border-radius: 5px;
  min-width: 44px;
  min-height: 44px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
}
.overlay.target {
  height: 12%;
  width: 16%;
  background: transparent;
  border: 0;
}
.overlay.target:hover {
  background: #00595922;
}
.caption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.exhibit {
  background: var(--wash);
  padding: clamp(1rem, 2vw, 2rem);
  min-height: 180px;
}
.exhibit h3 {
  font-size: 1.13rem;
  margin: 0 0 0.7rem;
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(6rem, 0.8fr) minmax(0, 1.4fr);
  gap: 0.75rem;
  border-top: 1px solid #b8cac4;
  padding: 0.7rem 0;
}
.facts dt {
  font-weight: 800;
}
.exhibit .large {
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--teal);
}
.row,
.controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.steps,
.answers {
  display: grid;
  gap: 0.45rem;
}
.answers button {
  text-align: left;
  justify-content: flex-start;
}
.secondary[aria-pressed="true"] {
  background: var(--teal);
  color: white;
}
.result:not(:empty) {
  margin: 0.85rem 0;
  color: #174e47;
  background: var(--wash);
  padding: 0.65rem 0.8rem;
}
.progressAction {
  margin: 0.65rem 0;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.pair img {
  width: 100%;
  height: auto;
  display: block;
}
.pair figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}
textarea,
input,
select {
  border: 1px solid #79928b;
  border-radius: 4px;
  background: white;
  font-size: 1rem;
  padding: 0.5rem;
}
textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
}
input[type="number"] {
  width: 6rem;
}
label {
  display: block;
  font-weight: 750;
}
.modebar {
  border-top: 1px solid var(--line);
  margin: 1rem 0 0;
  padding-top: 0.4rem;
}
.modebar select {
  min-height: 44px;
  font-size: 0.86rem;
}
.modebar p {
  font-size: 0.92rem;
  margin-top: 0.45rem;
}
.bookfoot {
  border-top: 1px solid var(--line);
  padding: 0.45rem 0 1.4rem;
}
.bookfoot a {
  color: var(--teal);
  font-size: 0.87rem;
}
.bottomtxt {
  font-size: 0.83rem;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1.4rem;
  width: min(94vw, 26rem);
  color: var(--ink);
}
dialog::backdrop {
  background: #17323770;
}
dialog p,
dialog input {
  margin: 0.65rem 0;
}
dialog input {
  width: 100%;
}
.top button {
  background: white;
  border: 0;
  font-size: 1.65rem;
  min-width: 44px;
}
.bar {
  height: 12px;
  background: #c6d7d0;
  margin: 0.6rem 0;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.reading {
  padding: 0.65rem 0;
  display: block;
}
.map legend {
  font-size: 0.8rem;
}
.exhibit output {
  display: block;
  border-top: 1px solid #9bb1a9;
  padding-top: 0.65rem;
  margin-top: 0.8rem;
  font-weight: 750;
}
.unitsel {
  min-height: 44px;
  max-width: 12rem;
}
button[hidden] {
  display: none;
}
@media (max-width: 860px) {
  .wrap {
    width: 94%;
  }
  .spread {
    gap: 1.35rem;
  }
  .tasknav a {
    min-width: 40px;
  }
  .chapterHead {
    flex-wrap: wrap;
  }
  .chapterHead h1 {
    max-width: 50%;
  }
}
@media (max-width: 690px) {
  .mast {
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    padding: 0.4rem 0;
  }
  .edition {
    font-size: 0.75rem;
    padding-left: 0.6rem;
  }
  .tools {
    gap: 0.55rem;
  }
  .brand {
    font-size: 1.35rem;
  }
  .tools button,
  .tools a {
    font-size: 0.78rem;
  }
  .overview {
    grid-template-columns: 1fr;
  }
  .feature img {
    aspect-ratio: 2.6;
  }
  .overviewHead {
    display: block;
  }
  .overviewHead p {
    margin-top: 0.4rem;
  }
  .chapterHead h1 {
    max-width: none;
  }
  .chapterHead {
    gap: 0.25rem 0.75rem;
  }
  .tasknav {
    width: 100%;
  }
  .spread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .right {
    display: contents;
  }
  .kicker {
    order: 0;
    margin-bottom: 0;
  }
  .right h2 {
    order: 1;
  }
  .brief {
    order: 2;
    margin: 0.3rem 0;
  }
  .visual {
    order: 3;
    width: 100%;
  }
  #response {
    order: 4;
    width: 100%;
  }
  .modebar {
    order: 5;
    width: 100%;
  }
  .overlay {
    font-size: 0.8rem;
    padding: 0.2rem;
  }
  .bookfoot {
    flex-wrap: wrap;
  }
  .index a {
    min-height: 54px;
  }
  .facts > div {
    grid-template-columns: minmax(5rem, 0.8fr) 1.2fr;
  }
}

.scenePhoto {
  width: 100%;
  height: clamp(7rem, 17vw, 13rem);
  display: block;
  object-fit: cover;
  object-position: 50% 40%;
  margin: 0 0 0.85rem;
}
[hidden] {
  display: none !important;
}
.edition a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 760;
  color: var(--teal);
}
.edition i {
  margin-inline: 0.55em;
}
.edition {
  white-space: nowrap;
}
.modebar textarea {
  min-height: 5rem;
  margin: 0.35rem 0;
}
.modebar label[for="vertiefung"] {
  margin-top: 0.7rem;
}
.frames,
.pixels,
.track {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.frames {
  padding: 0.4rem 0;
}
.frames button {
  min-width: 44px;
}
.scene > img.diagram {
  aspect-ratio: auto;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
}
.instrument {
  display: block;
  font-weight: 800;
  color: var(--teal);
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  margin: 0.6em 0;
  line-height: 1.15;
}
.controlLabel {
  font-weight: 730;
  margin-top: 0.8em;
}
.meter {
  height: 0.65rem;
  background: #cfdbd6;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.track span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  min-width: 48px;
  min-height: 46px;
  background: white;
}
.track .active {
  background: var(--teal);
  color: white;
  border: 2px solid #123;
}
.pixels button {
  width: 44px;
  height: 44px;
  border: 2px solid #142321;
}
.pixels button[aria-pressed="true"] {
  background: #142321;
}
.bitGrid {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 0.3rem;
}
.caseLine {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.bench .caption {
  margin-top: 0.8rem;
}
.bitGrid + .instrument {
  font-size: 1.3rem;
}
@media (max-width: 720px) {
  .edition {
    display: flex !important;
    align-items: center;
    border: 0;
    padding: 0;
  }
  .mast {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .tools {
    margin-left: auto;
  }
  .tasknav a {
    min-width: 44px;
  }
  .bookfoot {
    flex-wrap: wrap;
  }
}
.sequence {
  display: block;
  margin: 0.5rem 0;
  color: var(--teal);
  font-weight: 750;
}
.secondary:disabled {
  opacity: 0.6;
}
.scene .frames input {min-width:0;max-width:12rem;width:46%}
.scene .controlLabel input {max-width:100%}
.scene .controlLabel input[type="range"] {display:block;width:100%;min-height:44px}

.exhibit fieldset { margin: .75rem 0; border: 1px solid #b7c9c6; border-radius: .35rem; }
.exhibit fieldset label { display: block; padding: .28rem 0; }
.exhibit fieldset input { min-width: 0; width: auto; }

.answer-versions summary,#recover summary{min-height:44px;padding:.6rem 0;cursor:pointer}
.answer-versions{margin:.6rem 0}.answer-versions section{padding:.5rem 0}.answer-versions p,#issuedKey{overflow-wrap:anywhere}.answer-versions svg{display:block;max-height:10rem;max-width:100%}.lesson-backup{flex-basis:100%;font-size:.92rem}.lesson-backup p{margin-bottom:.2rem}#issuedKey:not(:empty){display:block;margin:.5rem 0 1rem;font:600 1.1rem/1.6 ui-monospace,monospace;user-select:all}#recover form{display:grid;gap:.4rem}#recover [type=submit]{margin-top:.6rem}
.ballot-options{display:grid;gap:.5rem;margin:1rem 0}.ballot :is(button,h2){overflow-wrap:anywhere}
