/* «Für Schulen» (site/school.py): dark band, the admissions demo, three captions that follow it. */
.schools {
  background: var(--green);
  color: #eaf1ec;
  padding: clamp(72px, 9vw, 120px) 0;
}
.schools .kicker {
  color: var(--mint);
}
.schools h2 {
  color: #fff;
}
.schools .sec-head p:not(.kicker) {
  color: rgb(234 241 236 / 0.82);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* The demo sits in the flow: every part is in the DOM from the start, so playing it never moves the page. */
.sch-demo {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(12px, 2.6vw, 28px);
  border-radius: 24px;
  background: var(--paper-2);
}
.sch-demo .demo-ui {
  position: relative;
  inset: auto;
}
.sch {
  background: #fff;
  border: 1px solid rgb(22 33 28 / 0.06);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgb(22 33 28 / 0.05),
    0 20px 40px -18px rgb(15 61 46 / 0.3);
  overflow: hidden;
}
.sch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 18px;
  padding-right: 56px; /* room for the pause button */
  border-bottom: 1px solid var(--line);
}
.sch-head > b {
  font-size: 15px;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-type {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sch-head .lc-status {
  display: inline-block;
  margin-left: auto;
}
.sch-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 16px 18px 18px;
}
.sch-l {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

/* Timeline (ProcessTimeline.tsx): ring, step, date; done steps green, the next one outlined */
.sch-steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 34px;
  font-size: 12.5px;
}
.sch-steps b {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sk {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--g300);
  color: #fff;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.sk svg {
  width: 11px;
  height: 11px;
  opacity: 0;
}
.sch-steps .is-done .sk {
  background: var(--b400);
  border-color: var(--b400);
}
.sch-steps .is-done .sk svg {
  opacity: 1;
}
.sch-steps .is-done b,
.sch-steps .is-next b {
  color: var(--ink);
}
.sch-steps .is-next .sk {
  border-color: var(--green);
}
.sd {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.sd > span {
  display: none;
  align-items: center;
  gap: 4px;
}
.sd svg {
  width: 12px;
  height: 12px;
}
.is-next .d-plan {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed var(--g300);
}
.is-done .d-date,
.is-planned .d-date {
  display: inline-flex;
}
.is-planned .d-plan {
  display: none;
}
/* Without JS the dates stay empty: no empty pill, no lone icon */
.sd .d-date:has(> span:empty) {
  display: none;
}
.is-planned .d-date {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--b50);
  color: var(--b700);
  font-weight: 600;
}

/* Note from the call template and the documents of the inquiry */
.sch-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.sch-ct {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.sch-ct svg {
  width: 15px;
  height: 15px;
}
.sch-note dl {
  margin: 0;
  flex: 1;
}
.sch-note dl > div {
  padding: 5px 0;
  border-bottom: 1px solid var(--paper-2);
}
.sch-note dt {
  font-size: 11px;
  color: var(--muted);
}
/* One line per answer, typed in place: the height never changes while it grows */
.sch-note dd {
  margin: 0;
  height: 1.45em;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-btn {
  display: grid;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.15s;
}
.sch-btn > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease);
}
.sch-btn svg {
  width: 13px;
  height: 13px;
}
.sch-btn .s2,
.sch-btn.is-done .s1 {
  opacity: 0;
  transform: translateY(8px);
}
.sch-btn.is-done .s2 {
  opacity: 1;
  transform: none;
}
.sch-btn.is-press {
  transform: scale(0.96);
}
.sch-save {
  align-self: flex-end;
  margin-top: 10px;
  background: var(--green);
  color: #fff;
}
.sch-save.is-done {
  background: var(--b400);
}
.sch-copy {
  border: 1px solid var(--line);
  color: var(--green);
}
.sch-copy.is-done {
  background: var(--m100);
  border-color: var(--m200);
}
.sch-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
}
.sl-t {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-weight: 600;
}
.sl-t > span {
  line-height: 1.3;
  text-wrap: balance;
}
.sl-t svg {
  width: 14px;
  height: 14px;
  color: var(--b400);
}
.sch-files + .sch-l {
  margin-top: 10px;
}
.sch-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--paper-2);
  transition: opacity 0.3s;
}
.sch-files li.is-out {
  opacity: 0;
}
.sf-i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c50);
  color: var(--coral-text);
  flex: none;
}
.sf-i svg {
  width: 15px;
  height: 15px;
}
.sf-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sf-t b,
.sf-t small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-t b {
  font-size: 12.5px;
  font-weight: 600;
}
.sf-t small {
  font-size: 11px;
  color: var(--muted);
}

/* Captions: one per scene; while the demo plays, the current one is lit and its line fills */
.sch-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 1040px;
  margin: 36px auto 0;
}
.sch-caps li {
  position: relative;
  padding-top: 16px;
  border-top: 2px solid rgb(255 255 255 / 0.16);
  transition: opacity 0.4s;
}
.sch-caps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
}
.sch-caps b {
  display: block;
  font-size: 17px;
  color: #fff;
}
.sch-caps span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(234 241 236 / 0.78);
}
.sch-caps.is-live li:not(.on) {
  opacity: 0.72;
}
.sch-caps.is-live li.on::before {
  transform: none;
  transition: transform 4s linear;
}
.sch-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  max-width: 1040px;
  margin: 44px auto 0;
  text-align: center;
}
.sch-foot p {
  font-size: 16px;
  color: rgb(234 241 236 / 0.82);
  text-wrap: balance;
}

/* Tablets: timeline and note side by side, the documents below across both */
@media (max-width: 960px) {
  .sch-body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
  .sch-docs {
    grid-column: 1 / -1;
  }
}
/* Phones: one column */
@media (max-width: 760px) {
  .sch-head {
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 12px 14px;
    padding-right: 52px;
  }
  .sch-head .lc-status {
    display: none;
  }
  .sch-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px 14px;
  }
  .sch-docs {
    grid-column: auto;
  }
  .sch-steps li {
    height: 30px;
  }
  .sch-caps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }
  .sch-foot {
    margin-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sch-caps li,
  .sch-caps li::before,
  .sch-btn,
  .sch-btn > span,
  .sk,
  .sch-files li {
    transition: none;
  }
}
