/* ==========================================================================
   VIA-Abiball — per-school page (school.html)
   Builds on the editorial variant from styles.css.
   ========================================================================== */

/* Strip — show active state */
.abi-strip-link.is-active .abi-strip-name { color: #0A1628; font-weight: 700; }
.abi-strip-link.is-active .abi-strip-code { background: var(--accent); color: #0A1628; }
.abi-strip-tail {
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(0, 0, 0, .45);
  white-space: nowrap;
}

/* ------- Hero (smaller than landing — this is a sub-page) ------- */
.school-hero {
  padding: 100px 40px 80px;
  background: linear-gradient(180deg, var(--abi-ivory) 0%, var(--abi-ivory-2) 100%);
  border-bottom: 1px solid var(--abi-cream-line);
}
.school-hero-inner { max-width: 1280px; margin: 0 auto; }
.school-hero-eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: 32px;
  color: var(--accent);
}
.school-hero-code {
  font-family: var(--font-display-sans); font-weight: 700; font-size: 11px;
  border: 1px solid var(--accent); padding: 5px 9px; letter-spacing: .14em;
}
.school-hero-title {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 84px; line-height: 1.04; letter-spacing: -.01em;
  color: #0A1628; margin: 0;
}
.school-hero-year { font-style: italic; font-weight: 500; color: var(--accent); }

.school-hero-meta {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 32px; border-top: 1px solid var(--abi-cream-line);
}
.school-hero-meta-l {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(10, 22, 40, .55); margin-bottom: 10px;
}
.school-hero-meta-v {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 24px; color: #0A1628; line-height: 1.2;
  display: flex; gap: 12px; align-items: center;
}
.school-hero-meta-s {
  font-family: var(--font-body); font-size: 13px;
  color: rgba(10, 22, 40, .55); margin-top: 6px;
}
.school-status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }

/* ------- Section base ------- */
.school-section { padding: 96px 40px; max-width: 1280px; margin: 0 auto; }
.school-section-alt { max-width: 100%; background: #fff; border-top: 1px solid var(--abi-cream-line); border-bottom: 1px solid var(--abi-cream-line); }
.school-section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.school-eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px;
  color: var(--accent);
}
.school-h2 {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 52px; line-height: 1.08; letter-spacing: -.005em;
  color: #0A1628; margin: 0;
}
.school-h2-spaced { margin-bottom: 56px; }

.school-grid-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }

.school-prose p, .school-prose-p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.75;
  color: #44506A; margin: 0 0 18px;
}
.school-prose strong { color: #0A1628; font-weight: 600; }
.school-callout {
  margin-top: 28px;
  padding: 22px 26px;
  background: rgba(200, 164, 100, .08);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display-serif); font-style: italic; font-size: 19px;
  line-height: 1.5;
  color: #0A1628;
  display: grid; gap: 6px;
}
.school-callout-l {
  font-family: var(--font-body); font-style: normal;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}

/* ------- Timeline ------- */
.school-timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  position: relative;
}
.school-timeline::before {
  content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px;
  background: var(--accent); opacity: .3;
}
.school-tl-step { position: relative; padding-top: 32px; }
.school-tl-dot {
  position: absolute; top: 0; left: 0;
  width: 12px; height: 12px; border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
}
.school-tl-step.done .school-tl-dot,
.school-tl-step.current .school-tl-dot { background: var(--accent); }
.school-tl-step:not(.done):not(.current) { opacity: .6; }
.school-tl-step.current .school-tl-dot {
  box-shadow: 0 0 0 4px rgba(200, 164, 100, .2);
}
.school-tl-phase {
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px;
  color: var(--accent);
}
.school-tl-title {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 19px; line-height: 1.2; margin: 0 0 8px; color: #0A1628;
}
.school-tl-desc {
  font-family: var(--font-body); font-size: 12px; line-height: 1.55;
  color: #44506A; margin: 0;
}
.school-tl-now {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-body); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent);
}

/* ------- Komitee ------- */
.school-people { display: grid; gap: 18px; }
.school-people + .school-people { margin-top: 36px; }
.school-people-h {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(10, 22, 40, .55); margin-bottom: 6px;
}
.school-person {
  padding: 18px 22px; background: #fff; border: 1px solid var(--abi-cream-line);
  display: grid; gap: 4px;
}
.school-person-name {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 22px; color: #0A1628;
}
.school-person-role {
  font-family: var(--font-body); font-size: 13px; color: #44506A;
}
.school-person-mail {
  font-family: var(--font-body); font-size: 13px; margin-top: 4px;
  text-decoration: none; color: var(--accent);
}
.school-person-mail + .school-person-mail { margin-top: 0; }

/* ------- Form ------- */
.school-form-section { padding-top: 96px; padding-bottom: 96px; }
.school-form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.school-form-meta {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 10px;
}
.school-form-meta li {
  font-family: var(--font-body); font-size: 14px; color: #44506A;
  display: flex; gap: 12px; align-items: baseline;
}
.school-form-meta i { font-style: normal; font-weight: 700; color: var(--accent); }
.school-form-meta code {
  background: rgba(200, 164, 100, .18); color: #0A1628;
  padding: 2px 8px; font-family: ui-monospace, monospace; font-size: 12px;
}

.school-form {
  position: relative;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--abi-cream-line);
  display: grid; gap: 18px;
}
.school-form-locked {
  margin-bottom: 8px; padding: 22px 26px;
  background: rgba(200, 164, 100, .08);
  border-left: 3px solid var(--accent);
}
.school-form-locked-mark {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display-sans); font-weight: 700; font-size: 16px;
  margin-bottom: 10px;
}
.school-form-locked h3 {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 24px; margin: 0 0 8px; color: #0A1628;
}
.school-form-locked p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: #44506A; margin: 0;
}
.school-form-locked-note {
  margin-top: 18px; font-size: 12px; opacity: .6;
  font-family: var(--font-body); color: #44506A;
}
.school-form-h {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 22px; margin: 0 0 8px; color: #0A1628;
}
.school-form-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.school-form-fieldset[disabled] { opacity: .55; }
.school-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.school-field { display: flex; flex-direction: column; gap: 8px; }
.school-field span {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #44506A;
}
.school-field span small { opacity: .6; font-weight: 400; }
.school-field input, .school-field select {
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px;
  background: #fff; border: 1px solid var(--abi-cream-line);
  color: #0A1628;
  outline: none;
  transition: border-color 180ms cubic-bezier(.2, .7, .2, 1);
  width: 100%; box-sizing: border-box;
}
.school-field input:focus { border-color: var(--accent); }

.school-anzahl {
  display: grid; grid-template-columns: 48px 1fr 48px;
  border: 1px solid var(--abi-cream-line);
}
.school-anzahl button {
  background: rgba(200, 164, 100, .1); border: none; color: #0A1628;
  font-family: var(--font-display-sans); font-size: 22px; font-weight: 500;
  cursor: pointer; transition: background 180ms;
}
.school-anzahl button:hover { background: rgba(200, 164, 100, .22); }
.school-anzahl button:disabled { opacity: .4; cursor: not-allowed; background: rgba(200, 164, 100, .1); }
.school-anzahl input {
  border: none; text-align: center;
  font-family: var(--font-display-serif); font-style: italic; font-size: 28px;
  color: #0A1628;
  -moz-appearance: textfield;
  background: transparent;
}
.school-anzahl input::-webkit-outer-spin-button,
.school-anzahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.school-form-submit {
  margin-top: 8px;
  padding: 16px 28px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #0A1628;
  transition: opacity 180ms cubic-bezier(.2, .7, .2, 1);
}
.school-form-submit:hover { opacity: .85; }
.school-form-submit:disabled { opacity: .4; cursor: not-allowed; }
.school-form-hint {
  font-family: var(--font-body); font-size: 12px; color: rgba(10, 22, 40, .5);
  margin: 0; line-height: 1.6;
}

.school-form-error {
  padding: 14px 18px;
  background: rgba(180, 40, 40, .08);
  border-left: 3px solid #B42828;
  color: #7A1F1F;
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
}

.school-form-success { text-align: center; padding: 24px 8px; }
.school-form-success-mark {
  width: 56px; height: 56px; border-radius: 999px; color: #0A1628;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; margin-bottom: 18px;
  background: var(--accent);
}
.school-form-success h3 {
  font-family: var(--font-display-serif); font-style: italic; font-weight: 500;
  font-size: 28px; margin: 0 0 12px; color: #0A1628;
}
.school-form-success p { color: #44506A; line-height: 1.6; margin: 0; }

@media (max-width: 1000px) {
  .school-hero-title { font-size: 56px; }
  .school-h2 { font-size: 36px; }
  .school-hero-meta, .school-grid-2, .school-form-grid, .school-timeline, .school-form-row-2 {
    grid-template-columns: 1fr;
  }
  .school-section { padding: 64px 24px; }
  .school-hero { padding: 64px 24px 56px; }
  .abi-strip-tail { display: none; }
}
