.fmst {
  --fmst-accent: #740a0f;
  --fmst-text-accent: var(--fmst-accent);
  --fmst-surface: #fff;
  --fmst-ink: #2b2b2b;
  --fmst-muted: #595959;
  --fmst-line: #dedede;
  color: var(--fmst-ink);
  background: var(--fmst-surface);
  font: inherit;
  line-height: 1.5;
  width: 100%;
  min-width: 0;
  color-scheme: light;
}
.fmst *, .fmst *::before, .fmst *::after { box-sizing: border-box; }
.fmst [hidden] { display: none !important; }
.fmst ::selection { color: #fff; background: var(--fmst-accent); }
.fmst .fmst-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.fmst h2.fmst-heading { font: inherit; font-size: clamp(20px, 2.2vw, 28px); font-weight: 650; color: var(--fmst-ink); line-height: 1.25; margin: 0 4px 0 0; }
.fmst .fmst-period { display: flex; align-items: center; gap: 12px; }
.fmst .fmst-navigation, .fmst .fmst-views { display: flex; align-items: center; gap: 4px; }
.fmst .fmst-filter { margin-left: auto; margin-bottom: 0; max-width: 100%; }
.fmst button, .fmst select {
  font: inherit; font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none;
  color: #2b2b2b; background: #fff; border: 1px solid var(--fmst-line);
  border-radius: 4px; padding: 10px 12px; min-height: 42px; margin: 0; box-shadow: none;
}
.fmst button { cursor: pointer; }
.fmst select { width: auto; max-width: 100%; padding-right: 28px; }
.fmst button:hover:not(:disabled) { background: #f5f5f5; color: var(--fmst-accent); border-color: var(--fmst-accent); }
.fmst button:disabled { opacity: .4; cursor: default; }
.fmst button:focus-visible, .fmst select:focus-visible { outline: 2px solid var(--fmst-accent); outline-offset: 3px; }
.fmst .fmst-views button[aria-pressed="true"] { background: var(--fmst-accent); border-color: var(--fmst-accent); color: #fff; }
.fmst button.fmst-arrow { padding: 9px; width: 42px; display: inline-flex; align-items: center; justify-content: center; }
.fmst .fmst-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fmst .fmst-notice { padding: 12px 16px; background: #fff5e3; color: #664200; margin: 0 0 16px; font-size: 14px; }
.fmst .fmst-loading { margin: 0; padding: 16px 0; color: var(--fmst-muted); }
.fmst table.fmst-month { table-layout: fixed; border-collapse: collapse; width: 100%; margin: 0; border: 0; font: inherit; }
.fmst .fmst-month th { width: calc(100% / 7); text-align: left; padding: 10px 8px; border: 0; color: var(--fmst-muted); font-weight: 500; font-size: 13px; }
.fmst .fmst-month td, .fmst ol.fmst-list {
  --fmst-ink: #2b2b2b;
  --fmst-muted: #595959;
  background: #fff;
  color: var(--fmst-ink);
}
.fmst .fmst-month td {
  vertical-align: top; text-align: left; border: 1px solid var(--fmst-line);
  padding: 8px; height: 112px; overflow-wrap: anywhere;
}
.fmst .fmst-day { font-size: 14px; font-weight: 600; display: inline-flex; min-width: 28px; height: 28px; align-items: center; justify-content: center; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.fmst .fmst-today .fmst-day { color: #fff; background: var(--fmst-accent); border-radius: 50%; }
.fmst .fmst-month .fmst-outside {
  background: var(--fmst-surface);
}
.fmst .fmst-unavailable:not(.fmst-today) .fmst-day { color: var(--fmst-muted); }
.fmst .fmst-event { min-width: 0; padding: 8px 0; }
.fmst .fmst-month .fmst-event + .fmst-event { border-top: 1px solid var(--fmst-line); }
.fmst .fmst-time { display: block; font-size: 12px; color: var(--fmst-muted); font-variant-numeric: tabular-nums; }
.fmst .fmst-event-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; }
.fmst .fmst-title { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; }
.fmst .fmst-event-heading > .fmst-title {
  min-inline-size: 0; max-inline-size: 100%;
  white-space: normal; overflow-wrap: anywhere;
}
.fmst .fmst-groups { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; }
.fmst .fmst-group { display: inline; font-size: 11px; line-height: 1.4; color: var(--fmst-muted); overflow-wrap: anywhere; }
.fmst .fmst-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #555; margin-right: 4px; vertical-align: 1px; outline: 1px solid #0002; }
.fmst .fmst-running {
  display: inline-flex; align-items: center; gap: 5px;
  padding-block: 2px; padding-inline: 7px 12px;
  border: 1px solid #688879; border-radius: 999px;
  background: #354d41; color: #b7efce;
  font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.fmst .fmst-running::before {
  content: ''; flex: 0 0 5px; height: 5px; border-radius: 50%; background: #78dda2;
  animation: fmst-running-pulse 1.8s ease-in-out infinite;
}
@keyframes fmst-running-pulse {
  0%, 100% { transform: scale(.85); opacity: .55; }
  50% { transform: scale(1.4); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fmst .fmst-running::before { animation: none; }
}
.fmst ol.fmst-list {
  --fmst-text-accent: var(--fmst-accent);
  list-style: none; margin: 0; padding: 0 24px;
}
.fmst li.fmst-list-row { list-style: none; margin: 0; display: grid; grid-template-columns: minmax(160px, 24%) 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--fmst-line); }
.fmst .fmst-list-row:first-child { border-top: 0; }
.fmst .fmst-list-date { font-size: 14px; font-weight: 600; }
.fmst ul.fmst-list-events { list-style: none; margin: 0; padding: 0; }
.fmst li.fmst-list-entry { list-style: none; margin: 0; padding: 0; }
.fmst .fmst-list-entry + .fmst-list-entry { margin-top: 12px; }
.fmst .fmst-list .fmst-event { padding: 0; }
.fmst .fmst-list .fmst-title { font-size: 16px; }
.fmst .fmst-list .fmst-time { font-size: 14px; }
.fmst .fmst-list .fmst-group { font-size: 12px; }
.fmst .fmst-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--fmst-muted); padding-top: 16px; border-top: 1px solid var(--fmst-line); margin-top: 12px; }
.fmst p.fmst-empty { padding: 28px 0; margin: 0; color: var(--fmst-muted); }
.fmst button.fmst-past { border: 0; background: none; color: var(--fmst-text-accent); text-decoration: underline; text-underline-offset: 3px; padding-left: 0; margin-top: 12px; }
.fmst button.fmst-more { display: block; margin-top: 12px; }
.fmst .fmst-list-entry:focus-visible { outline: 2px solid var(--fmst-accent); outline-offset: 2px; }
.fmst .fmst-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fmst.fmst-narrow .fmst-toolbar { gap: 16px; align-items: stretch; }
.fmst.fmst-narrow .fmst-filter { margin-left: 0; width: 100%; }
.fmst.fmst-narrow select { width: 100%; }
.fmst.fmst-narrow ol.fmst-list { padding-inline: 16px; }
.fmst.fmst-narrow .fmst-list-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
.fmst.fmst-narrow .fmst-list-date { color: var(--fmst-text-accent); font-size: 13px; }

.fmst.fmst-monitor {
  --fmst-monitor-font-size: 18px;
  --fmst-monitor-small-type: calc(var(--fmst-monitor-font-size) * .75);
  --fmst-ink: #f3f5f8;
  --fmst-muted: #bdc5d0;
  --fmst-line: #484e59;
  background: #2D3037;
  color-scheme: dark;
  font: var(--fmst-monitor-font-size)/1.35 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  padding: 0 8px 6px;
}
.fmst-monitor table.fmst-monitor-table {
  width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed;
  background: transparent; color: var(--fmst-ink); font: inherit;
}
.fmst-monitor .fmst-monitor-table :is(th, td) {
  padding: 6px 9px; vertical-align: top; text-align: left;
  border: 0; border-top: 1px solid #3c414b; background: transparent;
}
.fmst-monitor .fmst-monitor-table thead th {
  padding-block: 4px 5px; border-top: 0; color: var(--fmst-muted);
  font-size: var(--fmst-monitor-small-type); font-weight: 500;
}
.fmst-monitor .fmst-monitor-date { width: calc(var(--fmst-monitor-font-size) * 4.125); }
.fmst-monitor .fmst-monitor-time { width: calc(var(--fmst-monitor-font-size) * 4.75); }
.fmst-monitor .fmst-monitor-table .fmst-monitor-date-cell { background: #33373f; }
.fmst-monitor .fmst-monitor-table tbody tr:first-child > * { border-top-color: var(--fmst-line); }
.fmst-monitor .fmst-monitor-table .fmst-monitor-live td { background: #303e3a; }
.fmst-monitor :is(.fmst-monitor-weekday, .fmst-monitor-end) { display: block; color: var(--fmst-muted); font-size: var(--fmst-monitor-small-type); font-weight: 400; }
.fmst-monitor :is(.fmst-monitor-date-number, .fmst-monitor-start) { display: block; font-size: .9375em; font-weight: 600; }
.fmst-monitor .fmst-event { padding: 0; }
.fmst-monitor .fmst-title { font-size: var(--fmst-monitor-font-size); }
.fmst-monitor .fmst-running { font-size: calc(var(--fmst-monitor-font-size) * .6875); }
.fmst-monitor .fmst-groups { margin-top: 3px; }
.fmst-monitor .fmst-group { font-size: var(--fmst-monitor-small-type); }
.fmst-monitor .fmst-monitor-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding-top: 3px;
}
.fmst-monitor .fmst-monitor-meta .fmst-groups { margin-top: 0; }
.fmst-monitor :is(.fmst-monitor-detail, .fmst-monitor-responses) {
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--fmst-monitor-small-type);
  color: var(--fmst-muted); overflow-wrap: anywhere;
}
.fmst-monitor .fmst-monitor-responses { gap: 7px; }
.fmst-monitor .fmst-monitor-icon { width: 1em; height: 1em; flex: 0 0 auto; }
.fmst-monitor .fmst-monitor-icon[aria-label="Zusagen"] { color: #78dda2; }
.fmst-monitor .fmst-monitor-icon[aria-label="Absagen"] { color: #ff9a9a; }
.fmst-monitor .fmst-monitor-function-met { color: #b7efce; }
.fmst-monitor .fmst-monitor-function-missing { color: #ffb6b6; }
.fmst-monitor .fmst-monitor-equipment { padding-top: 3px; font-size: var(--fmst-monitor-small-type); color: var(--fmst-muted); overflow-wrap: anywhere; }
.fmst-monitor .fmst-notice { margin-bottom: 4px; background: #4a402d; color: #ffe4a8; padding: 7px 9px; font-size: var(--fmst-monitor-small-type); }
.fmst-monitor .fmst-empty { padding: 12px 9px; }
.fmst-monitor .fmst-monitor-footer {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px;
  padding: 4px 2px 0; color: var(--fmst-muted); font-size: var(--fmst-monitor-small-type);
}
.fmst-monitor .fmst-monitor-countdown { overflow-wrap: anywhere; }
.fmst-monitor .fmst-monitor-time-cell { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .fmst.fmst-monitor { padding-inline: 5px; }
  .fmst-monitor .fmst-monitor-table :is(th, td) { padding-inline: 6px; }
  .fmst-monitor .fmst-monitor-date { width: min(calc(var(--fmst-monitor-font-size) * 3.625), 23%); }
  .fmst-monitor .fmst-monitor-time { width: min(calc(var(--fmst-monitor-font-size) * 3.9375), 24%); }
}
