/* Gemeinsamer Rahmen für die Mathematikfilme. Modelle und Formeln behalten ihre eigenen Fachfarben. */
:root {
  color-scheme: light;
  --ink: #193947;
  --teal: #14665f;
  --border: #aec4cc;
  --paper: #f9fcfc;
  --mist: #e5f1ed;
  --series-muted: #436571;
  --series-gold: #f0cb82;
  --edge: clamp(16px, 3.6vw, 57px);
  background: #e3eff1;
}
body {
  min-height: 100svh;
  color: var(--ink);
  background: linear-gradient(125deg, #f1f7f8, #dcebf0 78%, #dcefe9);
}
body > header, body > main, body > footer { max-width: 1560px; }
body > header {
  width: min(calc(100% - var(--edge) - var(--edge)), calc(1560px - var(--edge) - var(--edge)));
  min-height: 56px;
  padding: 12px 0;
  font-size: .91rem;
  border-bottom-color: var(--border);
}
.brand { gap: .6rem; }
.brand img { width: 30px; height: 30px; }
.brand strong { letter-spacing: .015em; }
body > header a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
body > main { padding-block: clamp(18px, 2.2vw, 27px) 36px; }
.intro { margin-bottom: clamp(15px, 1.6vw, 22px); align-items: flex-end; }
.series-label {
  display: block;
  margin: 0 0 5px;
  color: #22655f;
  font-size: .77rem;
  font-weight: 760;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.intro h1 { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.052em; }
.intro p { margin: .3rem 0 0; color: var(--series-muted); font-size: clamp(.98rem, 1.35vw, 1.12rem); }
.meta { color: var(--series-muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.screen, .lower { grid-template-columns: minmax(0, 1fr) minmax(230px, 24%); gap: 18px; align-items: start; }
.lower { margin-top: 18px; }
.theater, .chapters, .study, .print { background: #f8fbfb; border-color: var(--border); border-radius: 16px; }
.theater { overflow: hidden; border-color: #96afb6; border-radius: 18px; box-shadow: 0 12px 36px #21404a12; }
.theater video { background: #132f36; object-fit: contain; }
.theater video::cue { color: #fff; background: #152b35ee; font-family: sans-serif; }
.timeline { padding: 10px 14px 0; gap: 12px; }
.timeline input { accent-color: var(--teal); min-height: 21px; }
.timeline output { color: var(--series-muted); }
.transport { padding: 7px 12px 12px; gap: 7px; }
.transport button, .transport select, .quiz .choices button, .materials a, .swap a, #activity-next {
  min-height: 39px;
  padding: .45rem .8rem;
  border: 1px solid #97b2ba;
  border-radius: 9px;
  background: #f6fbfb;
  color: #1b4e53;
  font-size: .93rem;
  line-height: 1.3;
  font-weight: 640;
}
.transport button:hover, .quiz .choices button:hover, .materials a:hover, .swap a:hover, #activity-next:hover {
  border-color: #729891;
  background: #e4f1ed;
}
.transport button[aria-pressed="true"], .quiz .choices button[aria-pressed="true"] {
  border-color: #699e8c;
  background: #dcece5;
  color: #184f4b;
}
.transport #play {
  min-width: 102px;
  border-radius: 22px;
  border-color: #cca968;
  background: var(--series-gold);
  color: #223d42;
  font-weight: 750;
}
.transport #play:hover { background: #f3d69a; border-color: #ad873f; }
.activity-toggle { color: var(--series-muted); }
.chapters { padding: 14px; }
.chapters h2, .print h2 { margin: 0 2px 9px; font-size: 1.04rem; }
.chapters nav { display: grid; gap: 2px; max-height: clamp(340px, 40vw, 610px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a8bfbe transparent; }
.chapter {
  width: 100%;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 8px;
  line-height: 1.23;
}
.chapter:hover { border-color: transparent; background: #edf4f5; }
.chapter[aria-current="true"] { border-color: #a1c6bb; background: #dfefe9; color: #184f4b; }
.chapter span { min-width: 0; overflow-wrap: break-word; font-weight: 650; }
.chapter time { color: #486874; font-size: .82rem; text-align: right; }
.chapter small { color: #4d6872; font-size: .7rem; letter-spacing: .045em; line-height: 1.35; }
.chapter-group {
  grid-column: 1 / -1;
  margin: 8px 3px 2px;
  padding: 8px 3px 3px;
  border-top: 1px solid #cbdbdf;
  color: #345c62;
  font-size: .85rem;
  font-weight: 740;
  line-height: 1.25;
}
.chapter-group:first-child { margin-top: 0; padding-top: 3px; border-top: 0; }
.study, .print { padding: clamp(13px, 1.5vw, 22px); }
.study h2 { margin: .2rem 0 .65rem; line-height: 1.21; }
.tools {
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  margin: 0 0 17px;
  padding: 4px;
  border: 1px solid #a6c0c5;
  border-radius: 24px;
  background: #f4faf9;
}
.tools button { min-height: 38px; border-radius: 20px; padding: .38rem .85rem; font-weight: 650; }
.tools button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.rule { border-color: #468f80; border-radius: 0 8px 8px 0; background: #e8f2ed; color: var(--ink); }
.formula-law {
  display: block;
  padding: .58rem .78rem;
  margin: .55rem 0;
  border: 1px solid #bed4ce;
  border-radius: 9px;
  background: #eff7f3;
  overflow-x: auto;
  color: var(--ink);
  line-height: 1.45;
}
.steps button .why { color: var(--series-muted); }
.steps button.current { border-color: #bdcfc9; background: #edf5f1; }
#activity-next.ready { background: var(--teal); color: white; border-color: var(--teal); }
#activity-next.ready:hover { background: #11584f; }
.materials a, .swap a { display: flex; align-items: center; text-decoration: none; }
.swap { padding-top: 12px; margin-top: 16px; border-top: 1px solid #c5d5d9; }
.swap h3 { color: var(--series-muted); font-size: .94rem; }
.transcript { border-top: 1px solid #c6d6da; padding-top: .6rem; }
body :is(button, a, select, summary, video, input):focus-visible { outline: 3px solid #92600c; outline-offset: 3px; }
@media (max-width: 880px) {
  .screen, .lower { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .chapters nav { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .chapters { padding: 12px; }
  .chapter-group { margin-top: 4px; }
  .transport .mode { margin-left: auto; }
}
@media (max-width: 630px) {
  :root { --edge: 12px; }
  body > header { min-height: 46px; padding-block: 9px; }
  body > header a { font-size: .85rem; }
  body > main { padding-block: 17px 26px; }
  .intro { display: block; margin-bottom: 13px; }
  .meta { display: block; margin-top: 6px; font-size: .86rem; }
  .theater { border-radius: 12px; }
  .chapters, .study, .print { border-radius: 13px; }
  .chapters nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { min-height: 44px; padding: 6px; }
  .timeline { padding: 7px 9px 0; gap: 7px; }
  .transport { gap: 5px; padding: 4px 9px 9px; }
  .transport button, .transport select { min-height: 39px; font-size: .85rem; padding-inline: .6rem; }
  .transport #play { min-width: 89px; }
  .transport .mode { margin-left: 0; }
  .study, .print { padding: 13px; }
  .tools { gap: 2px; border-radius: 16px; }
  .tools button { min-height: 38px; border-radius: 13px; font-size: .89rem; padding-inline: .6rem; }
}
@media (max-width: 400px) {
  .chapters nav { grid-template-columns: minmax(0, 1fr); }
  .chapter small { display: inline; margin-right: .45rem; }
  .brand strong { font-size: .8rem; }
}

.basis-compare{display:grid;grid-template-columns:1fr 1fr;gap:.72rem;width:100%}
.basis-side{display:grid;align-content:start;gap:.3rem;min-width:0}
.basis-side small{color:#436571;font:650 .78rem/1.2 system-ui}
.steps button:has(.basis-compare){grid-template-columns:minmax(0,1fr);padding:.55rem .65rem}
.steps button:has(.basis-compare) .equals{display:none}
.steps button:has(.basis-compare) .why{font-size:.8rem}
@media(max-width:750px){.basis-compare{grid-template-columns:minmax(0,1fr);gap:.45rem}}
