/* Design language of hfm-weimar.de: white, black, one green; uppercase headings under a green bar. */
:root {
  --green: #008a00;
  --green-dark: #006b00;
  --ink: #000;
  --muted: #5f5f5f;
  --line: #d6d6d6;
  --soft: #f2f2f2;
  --red: #c4262e;
  --amber: #a86400;
  --blue: #1f5fae;
  --wide: 1360px;
  --radius: 4px;  /* controls, pills and small boxes; layout surfaces stay square */
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.55 "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
small { font-size: 13px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 48px; }

/* Headings: the green bar is the house mark; sentence case keeps it a tool, not the website */
h1, h2 {
  display: inline-block;
  margin: 0 0 24px;
  padding-top: 10px;
  border-top: 6px solid var(--green);
  font-family: "SF Pro Display", -apple-system, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 21px; line-height: 1.25; border-top-width: 4px; margin-bottom: 18px; font-weight: 500; }
h3 { margin: 0 0 8px; color: var(--green); font-size: 17px; font-weight: 700; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.lead { margin: -12px 0 28px; color: var(--muted); font-size: 17px; }
section { margin-top: 52px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head .actions { margin-bottom: 24px; }

/* Application bar: dark, so Campus never looks like a page of the website */
.appbar { background: #161616; color: #fff; }
.appbar-row { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.product { display: flex; align-items: center; gap: 14px; color: #fff; }
.product:hover { text-decoration: none; }
.product .house { padding-right: 14px; border-right: 1px solid #4a4a4a; font-size: 12px; line-height: 1.25; color: #d8d8d8; white-space: nowrap; }
.product .house span { color: #7fd17f; font-variant: small-caps; letter-spacing: 0.03em; }
.product .name { font-size: 22px; font-weight: 300; letter-spacing: 0.01em; }
.apps { display: flex; gap: 20px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.apps a { padding: 21px 0 18px; border-bottom: 3px solid transparent; color: #cfcfcf; }
.apps a:hover { color: #fff; text-decoration: none; }
.apps a.on { border-bottom-color: var(--green); color: #fff; }
.me { display: flex; flex: 0 1 auto; align-items: center; gap: 18px; min-width: 0; margin-left: auto; font-size: 14px; white-space: nowrap; }
.me > a { color: #cfcfcf; }
.me > a:hover { color: #fff; }
.search input { width: 100%; padding: 6px 10px; border: 1px solid #3c3c3c; background: #262626; color: #fff; font-size: 14px; }
.search input::placeholder { color: #9a9a9a; }
.search input:focus { border-color: var(--green); outline: none; }
.count { display: inline-block; min-width: 20px; margin-left: 5px; padding: 0 6px; border-radius: var(--radius); background: var(--green); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.menu { position: relative; }
.menu summary { color: #fff; cursor: pointer; list-style: none; }
.menu summary::after { content: " ▾"; color: #9a9a9a; }
.menu[open] > div { position: absolute; right: 0; top: 30px; z-index: 10; display: grid; gap: 8px; min-width: 240px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.subnav { display: flex; gap: 28px; margin: 0 0 36px; border-bottom: 1px solid var(--line); font-weight: 600; }
.subnav:not(:has(a + a)) { display: none; }  /* one page is no choice */
.subnav a { margin-bottom: -1px; padding: 12px 0; border-bottom: 3px solid transparent; color: var(--ink); }
.subnav a:hover { color: var(--green); text-decoration: none; }
.subnav a.on { border-bottom-color: var(--green); color: var(--green); }
main.page { min-height: 70vh; padding-top: 32px; padding-bottom: 96px; }
.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: var(--muted); }
.wordmark { display: flex; flex-direction: column; color: var(--ink); font-size: 24px; line-height: 1.2; }
.wordmark span + span { color: var(--green); font-variant: small-caps; letter-spacing: 0.03em; }

/* Buttons and forms */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--green); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { border-color: var(--red); background: #fff; color: var(--red); }
.btn.small { padding: 4px 10px; font-size: 14px; }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.link { padding: 0; border: 0; background: none; color: var(--green); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }
.more::before { content: "→ "; }
.more { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
input, select, textarea {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #8a8a8a;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.toolbar input[type=search], .head input[type=search] { width: 280px; }
input.cell { width: 76px; padding: 4px 8px; text-align: right; }
select.cell { padding: 4px 6px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 640px; }
.form > div:not(.actions) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.form fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: 6px; padding: 0; font-weight: 600; }
.form label.option { position: relative; padding-left: 30px; font-weight: 400; }
.form label.option input { position: absolute; top: 2px; left: 0; margin: 0; }
.form label.option + .helptext { margin-left: 30px; }
.form label { font-weight: 600; }
.form .helptext { color: var(--muted); font-size: 13px; }
.form textarea { min-height: 120px; }
.form input.filter { margin-bottom: 6px; }
.form div[id^="id_"]:has(input[type=checkbox]) { max-height: 300px; overflow-y: auto; padding: 8px 12px; border: 1px solid #8a8a8a; }
.form div[id^="id_"] label:has(input[type=checkbox]) { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form div[id^="id_"] > div > label:not(:has(input)) { margin-top: 10px; font-weight: 700; }
.errorlist { margin: 0; padding: 0; color: var(--red); list-style: none; font-weight: 600; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline > div, .inline label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.filters a { color: var(--ink); }
.filters a.on { color: var(--green); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 10px; }
.panel { padding: 24px; background: var(--soft); }
.panel h3 { color: var(--ink); }

/* Feedback */
.flash { margin: 0 0 24px; padding: 12px 16px; border-left: 6px solid var(--green); background: var(--soft); font-weight: 600; }
.flash.error { border-left-color: var(--red); }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::first-letter { text-transform: uppercase; }
.badge.green, .badge.enrolled, .badge.admitted, .badge.yes { background: #e5f3e5; color: var(--green-dark); }
.badge.applied, .badge.open { background: #e3eefb; color: var(--blue); }
.badge.waitlisted, .badge.wait { background: #fbefd9; color: var(--amber); }
.badge.rejected, .badge.no, .badge.hold { background: #fbe3e4; color: var(--red); }
.empty { color: var(--muted); font-style: italic; }
.fail { color: var(--red); font-weight: 700; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: 10px 12px; border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; cursor: pointer; }
th button:hover, th[aria-sort] button { color: var(--green); }
th[aria-sort="ascending"] button::after { content: " ↑"; }
th[aria-sort="descending"] button::after { content: " ↓"; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.mid { vertical-align: middle; }
.num { text-align: right; }
.nowrap { white-space: nowrap; }
tr.wait td { color: var(--muted); }
tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }
.scroll { overflow-x: auto; }

/* Start page: tasks first, then a compact launcher */
.todo { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.todo a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.todo a:hover { background: var(--soft); text-decoration: none; }
.todo a::before { content: none; }
.todo .what { font-weight: 600; }
.todo .what::before { content: "→ "; color: var(--green); }
.todo .where { color: var(--muted); font-size: 14px; }
.todo .due { min-width: 92px; color: var(--muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.todo .due.soon { color: var(--red); font-weight: 600; }
.agenda a { grid-template-columns: 112px 1fr auto; }
.agenda .what::before { content: none; }
.agenda .due { min-width: 0; color: var(--ink); text-align: left; }
.agenda .empty { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.demo-entry { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
dialog.demo { width: min(560px, calc(100vw - 32px)); padding: 28px 32px 32px; border: 0; border-radius: var(--radius); }
dialog.demo::backdrop { background: rgba(0, 0, 0, 0.45); }
.demo h2 { margin: 0 0 12px; }
.demo .people { display: grid; border-top: 2px solid var(--ink); }
.demo .people button { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.demo .people button:hover { background: var(--soft); }
@container (max-width: 880px) { .cols { grid-template-columns: minmax(0, 1fr); } }  /* the side panel stacks what sits side by side on a page */
.calm { color: var(--muted); }
.launch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-left: 6px solid var(--green); color: var(--ink); }
.app:hover { border-color: var(--green); text-decoration: none; }
.app svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app b { display: block; font-size: 17px; }
.app small { color: var(--muted); font-size: 14px; }

/* Day strip, as in the website's event calendar */
.days { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 28px; overflow-x: auto; }
.day { display: flex; flex-direction: column; align-items: center; min-width: 40px; color: var(--ink); line-height: 1.4; }
.day small { font-size: 14px; }
.day b { font-weight: 400; font-size: 17px; }
.day.busy b { color: var(--green); font-weight: 700; }
.day.on b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.day:hover { text-decoration: none; }


/* Figures */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 56px; }
.stat { border-top: 2px solid var(--ink); padding-top: 10px; }
.stat b { display: block; font-size: 30px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.bar { height: 8px; margin-top: 10px; overflow: hidden; background: var(--soft); }
.bar i { display: block; height: 100%; background: var(--green); }
.facts { display: grid; grid-template-columns: 200px 1fr; align-content: start; gap: 8px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cols > section, .cols > div > section:first-child { margin-top: 0; }

/* Studienverlaufs- und Prüfungsplan */
.svpp { font-size: 14px; }
.svpp th, .svpp td { padding: 6px 8px; }
.svpp tr.group td { padding-top: 14px; background: #e8e8e8; }
.svpp tr.module td { border-top: 6px solid #fff; background: var(--soft); }
.svpp tr.module.complete td:first-child { box-shadow: inset 4px 0 var(--green); }
.svpp tr.part td { border-bottom: 1px solid #ececec; }
.svpp td.num { width: 44px; }
.svpp td.done { background: #e5f3e5; color: var(--green); font-weight: 700; }
.svpp td.now { outline: 2px solid var(--green); outline-offset: -3px; font-weight: 700; }
.tag-exam { padding: 0 5px; border: 1px solid var(--amber); color: var(--amber); font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* Curriculum tree */
.tree { border-top: 2px solid var(--ink); }
.node { display: grid; grid-template-columns: 22px 110px 1fr 90px 120px; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.node .title { padding-left: calc(var(--depth) * 22px); }
.node.branch { font-weight: 700; }
.node.top { background: var(--soft); }
.node .code, .node .sem { color: var(--muted); font-weight: 400; font-size: 14px; }
.node .credits { text-align: right; font-variant-numeric: tabular-nums; }
.check { display: block; width: 14px; height: 14px; border: 2px solid var(--line); }
.check.done { border-color: var(--green); background: var(--green); }
.check.part { border-color: var(--green); background: linear-gradient(135deg, var(--green) 50%, transparent 50%); }

/* Applications: what is handed in, videos to watch */
.checklist { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.checklist > li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.checklist .check { margin-top: 5px; }
.checklist .handed { margin-top: 8px; }
.checklist .handed form { display: inline; }
.checklist .video { max-width: 640px; }
.video { margin: 0 0 16px; }
.video video { display: block; width: 100%; max-height: 64vh; background: #000; }
.video figcaption { margin-top: 6px; font-size: 14px; }
.review { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; align-items: start; }

/* Admissions board */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: start; }
.board h3 { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; }
.tickets { display: grid; gap: 10px; }
.ticket { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 15px; }
.ticket:hover { border-color: var(--green); text-decoration: none; }
.ticket b { display: block; }
.ticket small { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip.yes { border-color: var(--green); color: var(--green); }
.chip.no { border-color: var(--red); color: var(--red); }

/* Room plan: rooms down, 5-minute columns across */
.plan { overflow-x: auto; border-top: 2px solid var(--ink); }
.prow {
  display: grid;
  grid-template-columns: 190px repeat(168, minmax(0, 1fr));
  min-width: 1180px;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  /* one line per hour: 14 hours after the 190px room column */
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 190px 0 / calc((100% - 190px) / 14) 100% repeat-x;
}
.prow > * { grid-row: 1; }
.prow.hours { min-height: 0; color: var(--muted); font-size: 13px; }
.prow .room { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 4px 12px 4px 0; background: #fff; color: var(--ink); line-height: 1.25; }
.prow .room small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.hour { padding: 6px 4px; }
.slot:hover { background: var(--soft); }
.slot.picked { background: #e5f3e5; }
.booking {
  z-index: 1;
  margin: 4px 1px;
  padding: 3px 7px;
  overflow: hidden;
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking:hover { text-decoration: none; filter: brightness(0.95); }
.booking.teach { border-left-color: var(--green); background: #e5f3e5; }
.booking.exam { border-left-color: var(--amber); background: #fbefd9; }
.booking.event { border-left-color: var(--blue); background: #e3eefb; }
.booking.service { border-left-color: var(--line); background: repeating-linear-gradient(135deg, var(--soft) 0 6px, #fff 6px 12px); }
.booking.blocked { border-left-color: var(--red); background: #fbe3e4; }
.booking.cancelled { border-left-color: var(--line); background: #fff; color: var(--muted); text-decoration: line-through; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.legend .booking { margin: 0; }
.booking.mine { outline: 2px solid var(--ink); outline-offset: -2px; }
.prow .now { z-index: 3; width: 2px; background: var(--red); }

/* Week view: days across, 5-minute rows down */
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); grid-template-rows: 40px repeat(168, 5px); border-top: 2px solid var(--ink); }
.week .dayhead { grid-row: 1; padding: 8px; font-weight: 700; border-left: 1px solid var(--line); }
.week .dayhead.today { color: var(--green); }
.week .tick { grid-column: 1; padding-right: 8px; color: var(--muted); font-size: 12px; text-align: right; border-top: 1px solid var(--line); }
.week .line { grid-column: 2 / -1; border-top: 1px solid var(--line); }
.week .booking { margin: 1px 3px; white-space: normal; }
.week .booking.clash { outline: 2px solid var(--red); outline-offset: -2px; }
.week .booking.split { width: calc(100% / var(--lanes) - 4px); margin-left: calc(100% / var(--lanes) * var(--lane) + 2px); }

/* Print: certificates and transcripts */
.document { max-width: 820px; }
.document .letterhead { display: flex; justify-content: space-between; margin-bottom: 48px; }
.document h1 { margin-top: 24px; }
.document .sign { margin-top: 64px; display: flex; justify-content: space-between; color: var(--muted); }
.letter .address { margin: 0 0 40px; }
.letter .dated { color: var(--muted); text-align: right; }
.letter + .letter { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.picked { margin-bottom: 12px; }
@media print {
  .appbar, .foot, .subnav, .no-print, .flash { display: none !important; }
  .letter + .letter { break-before: page; margin-top: 0; padding-top: 0; border-top: 0; }
  main.page { padding: 0; }
  .wrap { padding: 0; }
  body { font-size: 12pt; }
}

@media (max-width: 1100px) {
  .launch, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .review { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .launch, .stats, .board { grid-template-columns: 1fr; }
  .appbar-row { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .me { margin-left: 0; }
  .facts { grid-template-columns: 1fr; }
}

/* Date fields: what was understood shows beneath while typing */
.when { position: relative; display: inline-block; }
.form .when { display: grid; }
.when .hint { position: absolute; left: 0; top: 100%; margin-top: 2px; color: var(--green); font-size: 12px; line-height: 16px; white-space: nowrap; }
.when .hint.bad { color: var(--red); }
.when:not(:focus-within) .hint { display: none; }

/* Search palette under the search box */
.search { position: relative; flex: 0 1 230px; min-width: 150px; }  /* gives way before the menu wraps */
.search:focus-within { flex-basis: 300px; }
.palette { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 560px; max-height: 72vh; overflow-y: auto; padding: 8px 0; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); background: #fff; color: var(--ink); }
.search.open .palette { display: block; }
.palette .empty { margin: 8px 16px; }
.found h4 { margin: 10px 16px 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.found a { display: flex; justify-content: space-between; gap: 16px; padding: 7px 16px; color: var(--ink); font-size: 15px; }
.found a small { color: var(--muted); text-align: right; }
.found a:hover, .found a.on { background: var(--soft); text-decoration: none; }
.found a.on b { color: var(--green); }
.results .found { margin-bottom: 24px; border-top: 2px solid var(--ink); }
.results .found h4 { margin: 12px 0 6px; }
.results .found a { padding: 10px 4px; border-bottom: 1px solid var(--line); }

/* Side panel: details beside the page, which stays where it was */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(var(--width, 840px), 100vw); overflow-y: auto; border-left: 6px solid var(--green); background: #fff; transform: translateX(100%); visibility: hidden; transition: transform 0.16s ease, visibility 0.16s; }
.drawer.open { transform: none; visibility: visible; }
.drawer.wide { width: calc(100vw - 96px); }
.drawer.edge { border-left-color: var(--green-dark); cursor: ew-resize; }
.drawer-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 24px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.drawer-bar .page { margin-right: auto; }
.drawer-body { padding: 28px 32px 64px; container-type: inline-size; }
@container (max-width: 900px) { .cols, .review { grid-template-columns: 1fr; } }
@media print {
  body:has(.drawer.open) > :not(.drawer), .drawer-bar { display: none !important; }
  .drawer.open { position: static; width: auto; overflow: visible; border: 0; }
  .drawer-body { padding: 0; }
}

/* Auswertungen: one green for what is counted, grey for context; every number also stands as text */
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.sections > section { grid-column: 1 / -1; }
.sections > section.half { grid-column: auto; }
.half .stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; }
.half .charts { grid-template-columns: 1fr; }
.chart.wide { grid-column: 1 / -1; }
.figures .stats { margin-bottom: 8px; }
.stat .was { display: block; color: var(--muted); font-size: 13px; }
.spark { display: block; width: 100%; height: 24px; margin-top: 8px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.chart { margin: 32px 0 0; }
.chart figcaption { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-weight: 700; }
.chart figcaption a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.bars { display: grid; gap: 6px; font-size: 14px; }
.bars .row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr minmax(64px, auto) auto; gap: 12px; align-items: center; }
.bars .name a, .columns .tick a, .heat td > a { color: var(--ink); text-decoration: underline dotted #b5b5b5; text-underline-offset: 3px; }
.bars .name a:hover, .columns .tick a:hover, .heat td > a:hover { color: var(--green); text-decoration: underline; }
.tail summary { padding: 6px 4px; color: var(--green); font-weight: 600; cursor: pointer; list-style: none; }
.tail summary::-webkit-details-marker { display: none; }
.tail summary::before { content: "+ "; }
.tail[open] summary::before { content: "– "; }
.tail .row { margin-top: 6px; }
.bars .track { height: 10px; background: var(--soft); }
.bars .track i { display: block; height: 100%; background: var(--green); }
.bars .value { text-align: right; font-variant-numeric: tabular-nums; }
.bars .extra { min-width: 120px; color: var(--muted); font-size: 13px; }
.bars .extra:empty { display: none; }
.columns { display: flex; gap: 3px; padding-top: 22px; }
.columns .col { flex: 1; min-width: 0; max-width: 88px; }
.columns .plot { display: flex; flex-direction: column; justify-content: flex-end; height: 180px; }
.columns .bar { display: block; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--green); }
.columns.timed .bar { background: #8a8a8a; }
.columns.timed .now .bar { background: var(--green); }
.columns .top { overflow: visible; font-size: 12px; line-height: 20px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.columns .tick { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; white-space: nowrap; }
.columns.dense .col:nth-child(even):not(.now) .tick { visibility: hidden; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; transform: translateX(-50%);
  padding: 4px 8px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none;
}
.heat td[style] { background: color-mix(in srgb, var(--green) var(--v), #fff); }
.heat td.dark, .heat td.dark > a { color: #fff; }
.heat.hours td { padding: 6px 4px; min-width: 34px; font-size: 12px; text-align: center; }
.heat.hours th { padding: 6px 4px; text-align: center; }
.filters-on { margin: -8px 0 20px; }
.filters-on .chip { padding: 2px 8px; color: var(--ink); font-size: 13px; }
.chart figcaption .links { display: flex; gap: 16px; }
.lines .canvas { position: relative; }
.lines svg { display: block; width: 100%; height: 280px; overflow: visible; }
.lines .grid { stroke: #ececec; }
.lines .base { stroke: #b5b5b5; }
.lines text { font-size: 12px; font-variant-numeric: tabular-nums; }
.lines .ytick { fill: var(--muted); text-anchor: end; dominant-baseline: middle; }
.lines .xtick { fill: var(--muted); text-anchor: middle; }
.lines .end { fill: var(--ink); dominant-baseline: middle; }
.lines .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.15s, stroke-width 0.15s; }
.lines svg.focus .line { opacity: 0.18; }
.lines svg.focus .line.on { opacity: 1; stroke-width: 3.5; }
.lines .area { opacity: 0.1; }
.lines .dot { stroke: #fff; stroke-width: 2; }
.lines .cross { stroke: #b5b5b5; }
.lines .tip { position: absolute; top: 8px; z-index: 5; min-width: 170px; padding: 8px 12px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.6; pointer-events: none; }
.lines .tip small { display: block; margin-bottom: 2px; color: #cfcfcf; }
.lines .tip div { color: #cfcfcf; }
.lines .tip div.on { color: #fff; }
.lines .tip div::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 8px; border-radius: 2px; vertical-align: middle; background: var(--c); }
.lines .tip b { color: #fff; font-variant-numeric: tabular-nums; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 12px; font-size: 14px; }
.key { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.key::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--c); }
.key[aria-pressed="false"] { color: var(--muted); }
.key[aria-pressed="false"]::before { background: var(--line); }
@media (max-width: 1100px) { .charts, .sections { grid-template-columns: 1fr; } }
