:root {
  color-scheme: light;
  --ink: #172f2b;
  --forest: #102b26;
  --primary: #17684f;
  --primary-hover: #11533f;
  --sage: #dfede4;
  --page: #f3f5ef;
  --paper: #fff;
  --line: #d7dfd7;
  --muted: #50665e;
  --warning: #834031;
  --radius: 16px;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid #cb7e23; outline-offset: 3px; }
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 20; background: white; padding: .5rem; }
.skip:focus { top: .5rem; }
.masthead { color: #fff; background: var(--forest); }
.topbar, .shell { max-width: 81rem; margin-inline: auto; padding-inline: clamp(1.05rem, 3vw, 2.75rem); }
.topbar { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; color: #fff; text-decoration: none; }
.brand:hover { color: #d3efe2; }
.brand strong, .brand small { display: block; line-height: 1.24; }
.brand strong { font-size: 1.13rem; }
.brand small { color: #c6d6ce; margin-top: .2rem; }
.mark { color: var(--forest); background: #d3efe2; border-radius: 12px; font-size: .92rem;
  font-weight: 850; padding: .5rem; width: 2.55rem; height: 2.55rem; display: grid; place-items: center; }
.account { display: flex; gap: .8rem; align-items: center; font-size: .9rem; }
.shell { padding-block: 2.2rem 5rem; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(2.1rem, 4vw, 3.65rem); line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.022em; }
h3 { font-size: 1.1rem; }
p { max-width: 70ch; }
.eyebrow { color: var(--primary); font-weight: 750; margin: 0 0 .55rem; font-size: .86rem; }
.muted, small, .helptext { color: var(--muted); }
small, .helptext { font-size: .85rem; }
.back { display: inline-block; font-size: .91rem; margin-bottom: 1.2rem; }
.page-head, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head { margin-bottom: 1.3rem; }
.page-head p:last-child { margin-bottom: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.45rem; }
.section { margin-block: 1.1rem; }
.section-head { margin-bottom: .65rem; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.event-card { min-height: 12rem; }
.event-card h2 { margin-top: .85rem; font-size: 1.55rem; }
.home-wish-status { width: fit-content; padding: .3rem .65rem; border-radius: 7px; color: #23573f; background: var(--sage);
  font-size: .88rem; font-weight: 650; }
.home-wish-status.wishes-missing { color: #604515; background: #fff3d6; }
.pill { display: inline-flex; align-items: center; background: var(--sage); padding: .21rem .65rem; border-radius: 100px;
  color: #214f40; font-size: .83rem; font-weight: 700; width: fit-content; }
.pill.negative { background: #f7e5df; color: var(--warning); }
button, .button { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: .9rem;
  font-weight: 650; color: var(--ink); background: white; border: 1px solid #aebfb4;
  border-radius: 8px; padding: .5rem .85rem; cursor: pointer; min-height: 2.55rem; text-decoration: none; }
button:hover, .button:hover { background: #edf4ee; color: var(--ink); }
.primary { background: var(--primary); border-color: var(--primary); color: white; }
.primary:hover { color: white; background: var(--primary-hover); }
button:disabled { opacity: .58; cursor: default; }
.ghost { border-color: #789389; color: white; background: transparent; }
.ghost:hover { background: #254741; color: white; }
.danger { color: var(--warning); border-color: #c98e7d; margin-block: .35rem; }
.text-link { margin: .25rem .4rem; display: inline-block; }
.actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); gap: .65rem; }
.stats .panel { padding: .8rem 1rem; display: flex; flex-direction: column-reverse; gap: .2rem; }
.stats span { font-size: .85rem; color: var(--muted); }
.stats strong { font-size: 1.7rem; letter-spacing: -.06em; line-height: 1.2; }
.notice { padding: .75rem 1rem; background: #edf5ef; border: 1px solid #bed4c6; border-radius: 8px; max-width: none; }
.notice.error, .errorlist, .notice.warning { background: #fbefea; color: #783524; border-color: #e8baaa; }
.errorlist { border-radius: 8px; padding: .45rem .8rem .45rem 1.8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .56rem .72rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .88rem; color: var(--muted); background: #f5f8f4; }
tbody tr:last-child td { border-bottom: 0; }
.filter { margin-bottom: .9rem; }
.import { margin-top: .9rem; }
.stack { display: grid; gap: .65rem; }
.stack button { justify-self: start; }
.editor { max-width: 43rem; margin-top: 1.2rem; }
.editor p { margin-bottom: 1.15rem; }
.editor label { display: inline-block; }
.editor label[for] { font-weight: 650; }
.editor input:not([type=checkbox]), .editor textarea, .editor select, .stack textarea { width: 100%; display: block; margin-top: .2rem; }
.leader-picker { display: block; }
.leader-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .4rem .55rem; }
.leader-chips:empty, .leader-search-status:empty { display: none; }
.leader-chip { gap: .55rem; min-height: 2.25rem; max-width: 100%; padding: .3rem .6rem .3rem .75rem;
  border-color: var(--line); border-radius: 100px; background: var(--sage); text-align: left; overflow-wrap: anywhere; }
.leader-chip-remove { flex: 0 0 auto; font-size: 1.15rem; line-height: 1; }
.leader-search-status { display: block; margin-top: .3rem; font-size: .85rem; }
.leader-results { display: grid; max-height: 15rem; overflow: auto; margin-block: .35rem .7rem;
  padding: .25rem; border: 1px solid var(--line); border-radius: 8px; }
.leader-result { justify-content: flex-start; text-align: left; border: 0; overflow-wrap: anywhere; }
.leader-result:focus-visible { outline-offset: -3px; }
input:not([type=checkbox]), textarea, select {
  font: inherit; min-height: 2.6rem; padding: .44rem .64rem; border-radius: 8px;
  color: var(--ink); background: white; border: 1px solid #aebfb4; max-width: 100%;
}
input[type=checkbox] { width: 1.12rem; height: 1.12rem; accent-color: var(--primary); vertical-align: middle; margin-right: .25rem; }
.note { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .85rem; }
.login-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); margin: clamp(1rem, 7vw, 5rem) auto; max-width: 60rem; }
.login-intro { padding: clamp(1.8rem, 4vw, 4rem); background: var(--sage); align-content: center; }
.login-intro h1 { font-size: clamp(3rem, 7vw, 5.75rem); }
.login-panel { border: 0; border-radius: 0; padding: clamp(1.8rem, 4vw, 4rem); align-content: center; }
.login-panel button { margin-top: .75rem; width: 100%; }
.selections { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem .85rem; margin-bottom: .85rem; min-width: 0; }
legend { font-weight: 760; }
.selections { display: grid; gap: .45rem; }
.selections label { display: block; }
.selections small { margin-left: .35rem; }
summary { font-weight: 650; cursor: pointer; }
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.schedule article { padding: 1rem; background: #edf3ee; border-radius: 12px; }
.schedule article > * { display: block; margin-bottom: .3rem; }
[hidden] { display: none !important; }
@media (max-width: 48rem) {
  .login-layout { grid-template-columns: 1fr; }
  .account > span { display: none; }
  .panel { padding-inline: .95rem; }
}
@media print {
  .masthead, .back, form, .skip { display: none; }
  .shell { padding: 0; }
}

.day-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.day-row .day-remove, .day-row > .errorlist { grid-column: 1 / -1; }

.date-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.period-days { display: grid; gap: .3rem; padding: .6rem 0; }
.period-days label { display: flex; align-items: center; gap: .55rem; }
.period-days strong { margin-left: auto; }
#period-picker, #manual-days { margin-block: 1rem; }
.automatically-blocked::after { content: " (automatisch)"; color: var(--muted); font-weight: normal; }
.edition-field { margin-bottom: .9rem; }

.org-nav {
  min-height: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .45rem 1.4rem;
  padding-bottom: .85rem;
}
.org-nav a { color: #e0ede6; font-weight: 650; }
.org-nav a:hover { color: white; }
.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: flex-end;
  margin-block: 1.1rem;
}
.directory-filters label { display: grid; gap: .2rem; }
.pager { justify-content: center; margin-top: 1rem; }

.class-matrix { margin-bottom: 1rem; }
.class-matrix .class-tick { text-align: center; min-width: 7rem; }
.class-matrix .tick-target { display: grid; place-items: center; min-height: 2rem; }
.class-matrix tr[hidden], #class-search-control[hidden], #class-search-empty[hidden] { display: none; }
