@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #18181c;
  --muted: #55534d;
  --soft: #6a6760;
  --line: #d9d5ca;
  --row: #eceae3;
  --sym: 28px;
  --asta: #7a3a6e;
  --stupa: #34407e;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); }
body.full { background: #f7f5f0; }
body.embed { background: transparent; }
main { max-width: 1280px; margin: 0 auto; padding: 80px 64px; display: flex; flex-direction: column; gap: 56px; }
body.embed main { padding: 8px 0 24px; }
a { color: var(--stupa); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #1f275a; }

header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
h1 { margin: 0; font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h3 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1; }
p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.asta-color { color: var(--asta); }
.stupa-color { color: var(--stupa); }

.row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 14px; }
.body-logo { height: 64px; width: auto; max-width: 100%; align-self: flex-start; }
section + section { padding-top: 48px; border-top: 1px solid var(--line); }
.stupa { display: flex; flex-direction: column; gap: 32px; }

.asta-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-content: start; }
.person { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border-radius: 14px; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.person.asta .avatar { background: #efe2ec; color: #6b2e63; }
.person.stupa .avatar { background: #e3e6f4; color: var(--stupa); }
.who { display: flex; flex-direction: column; gap: 2px; }
.name { font-weight: 500; }
.role { font-size: 13px; color: var(--soft); }

.block { display: flex; flex-direction: column; gap: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.vorstand { display: flex; flex-wrap: wrap; gap: 12px; }
.vorstand .person { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; min-width: 320px; }
.vorstand .name { font-weight: 600; }

.panel { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid #e2ded3; }
.panel.tinted { background: #e9ebf5; border: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.panel-title { font-size: 26px; font-weight: 600; }
.panel-note { font-size: 14px; color: var(--muted); }
.tinted .panel-note { color: #3f4674; }

.elected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.elected { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border-radius: 14px; }
.elected-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; }
.elected-title { font-size: 17px; font-weight: 600; }
.count { font-size: 13px; color: var(--soft); }
.seats { display: flex; flex-direction: column; font-size: 15px; }
.seats.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.seat { padding: 9px 0; border-top: 1px solid var(--row); }
.seat.free { color: #7a776f; font-style: italic; }

.faculty-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.faculty { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 4px solid; container-type: inline-size; }
.logo-row { height: 44px; display: flex; align-items: flex-start; }
.faculty-logo { width: auto; }
.faculty .count { padding: 8px 0; }

.ak-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.ak { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border-radius: 14px; }
.ak.empty { background: transparent; border: 1px dashed #bdb8ab; }
.ak-title { font-size: 17px; font-weight: 600; }
.ak-names { font-size: 14px; color: var(--muted); }
.ak a { font-size: 14px; padding-top: 6px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  main { padding: 48px 32px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .asta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
  .ak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --sym: 25px; }
  main { padding: 32px 20px; gap: 36px; }
  body.embed main { padding: 4px 0 16px; }
  h1 { font-size: 40px; }
  h3 { font-size: 32px; }
  .body-logo { height: 50px; }
  .asta-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border-radius: 14px; padding: 4px 16px; }
  .asta-grid .person { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; border-radius: 0; background: transparent; }
  .asta-grid .person + .person { border-top: 1px solid var(--row); }
  .asta-grid .avatar { display: none; }
  .asta-grid .who { flex-direction: row; justify-content: space-between; width: 100%; gap: 12px; }
  .vorstand .person { min-width: 0; width: 100%; }
  .panel { padding: 20px; }
  .panel-title { font-size: 22px; }
  .elected-grid { grid-template-columns: minmax(0, 1fr); }
  .seats.two { grid-template-columns: minmax(0, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .logo-row { height: 40px; }
  .ak-grid { grid-template-columns: minmax(0, 1fr); }
}
.f0 { border-top-color: #201f4b; }
.f0 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 0.677); }
.f1 { border-top-color: #e3c800; }
.f1 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 0.998); }
.f2 { border-top-color: #f07d00; }
.f2 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 0.786); }
.f3 { border-top-color: #00929a; }
.f3 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 1.0); }
.f4 { border-top-color: #1d6fb8; }
.f4 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 0.997); }
.f5 { border-top-color: #e2231a; }
.f5 .faculty-logo { height: calc(min(var(--sym), 100cqw / 5.68) / 0.979); }
