:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --ink: #0a0a0a;
  --muted: #71717a;
  --border: #e4e4e7;
  --radius: 14px;
  --alert: #e11d48;
  --alert-wash: #ffe4e6;
  --warn: #a16207;
  --warn-mark: #eab308;
  --warn-wash: #fef9c3;
  --jukes: #00d4aa;
  --jukes-wash: #b8f5e4;
  --mediatenor: #A61E30;
  --mediatenor-wash: #FDE9EC;
  --evelyn: #7C3AED;
  --evelyn-wash: #EDE9FE;
  --cellmove: #1A56A0;
  --cellmove-wash: #d5e3f5;
  --cvd: #6A3CB3;
  --cvd-wash: #e6d8f5;
  --mythos: #0F766E;
  --mythos-wash: #ccfbf1;
  --iq: #D97706;
  --iq-wash: #FFF7ED;
  --keramiko: #a0522d;
  --keramiko-wash: #f3e2d3;
  --immo: #1d4ed8;
  --immo-wash: #c7dbfc;
  --neutral: #a1a1aa;
  --neutral-wash: #e4e4e7;
  --focus: #0a0a0a;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --space: 1.15rem;
  --max: 76rem;
  --label: 14rem;
}

.is-jukes { --c: var(--jukes); --c-wash: var(--jukes-wash); }
.is-mediatenor { --c: var(--mediatenor); --c-wash: var(--mediatenor-wash); }
.is-evelyn { --c: var(--evelyn); --c-wash: var(--evelyn-wash); }
.is-cellmove { --c: var(--cellmove); --c-wash: var(--cellmove-wash); }
.is-cvd { --c: var(--cvd); --c-wash: var(--cvd-wash); }
.is-mythos { --c: var(--mythos); --c-wash: var(--mythos-wash); }
.is-iq { --c: var(--iq); --c-wash: var(--iq-wash); }
.is-keramiko { --c: var(--keramiko); --c-wash: var(--keramiko-wash); }
.is-immo { --c: var(--immo); --c-wash: var(--immo-wash); }
.is-neutral { --c: var(--neutral); --c-wash: var(--neutral-wash); }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--space) 4.5rem;
}

.page--wide {
  width: min(100%, var(--max));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.site-header {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.15rem var(--space) 0.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  min-width: 0;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.wordmark--hero {
  font-size: clamp(3.2rem, 13vw, 4.6rem);
  margin: 0.2rem 0 0.45rem;
  letter-spacing: -0.045em;
}

.status-line {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.text-btn,
.btn {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  cursor: pointer;
}

.text-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
}

.text-btn:hover {
  color: var(--ink);
}

.inline-form {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  background: #18181b;
  color: #fff;
}

.btn--quiet {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.flash {
  width: min(100%, var(--max));
  margin: 0.75rem auto 0;
  padding: 0 var(--space);
  font-size: 0.95rem;
}

.flash--notice { color: #166534; }
.flash--alert { color: var(--alert); }

.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem var(--space) 4rem;
  text-align: center;
}

.login__kicker,
.sheet__kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.login__lede {
  margin: 0 auto 1.5rem;
  max-width: 24rem;
  color: var(--muted);
}

.login__form {
  width: min(100%, 22rem);
  margin: 0 auto;
  text-align: left;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.field span {
  color: var(--muted);
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.seg {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}

.seg a {
  flex: 0 1 auto;
  text-align: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.seg a:hover { color: var(--ink); }

.seg a.is-active {
  background: var(--ink);
  color: #fff;
}

.month-nav {
  display: grid;
  grid-template-columns: 2.25rem auto 2.25rem;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  width: max-content;
}

.month-nav__title {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  line-height: 1.1;
}

.month-nav__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  border: 1px solid var(--border);
  background: var(--card);
}

.month-nav__arrow:hover {
  background: #fff;
  color: var(--ink);
}

.today-jump {
  margin: 0;
}

.board {
  display: grid;
  gap: 1.05rem;
}

.board__top {
  display: grid;
  gap: 1.05rem;
  align-items: stretch;
}

.board__top > .card,
.board__mid > .card,
.board__bottom > .card {
  min-width: 0;
  min-height: 100%;
}

.board__mid > .card {
  display: flex;
  flex-direction: column;
}

.board__mid,
.board__bottom {
  display: grid;
  gap: 1.05rem;
  align-items: stretch;
}

/* Nächste Termine */

.agenda__list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.agenda__row {
  display: grid;
  grid-template-columns: 3.6rem 16px minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.35;
}

.agenda__date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.agenda__row.is-late .agenda__date {
  color: var(--alert);
  font-weight: 600;
}

.agenda__row.is-warn .agenda__date {
  color: var(--warn);
  font-weight: 600;
}

.agenda__icon {
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
  color: var(--c);
}

.agenda__row.is-late .agenda__icon { color: var(--alert); }
.agenda__row.is-warn .agenda__icon { color: var(--warn); }

.agenda__body {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  text-decoration: none;
}

.agenda__body:hover .agenda__label {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.agenda__label {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agenda__empty,
.agenda__more {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Firmen-Cards */

.crew__kicker {
  color: var(--c);
}

.crew__list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.crew__project {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.crew__project:first-child {
  padding-top: 0.15rem;
  border-top: 0;
}

.crew__project:last-child {
  padding-bottom: 0;
}

.crew__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.crew__name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.crew__name .ico--project {
  color: var(--c);
}

.crew__name:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.crew__project.is-paused .crew__name {
  color: var(--muted);
  font-weight: 500;
}

.crew__heat {
  display: inline-flex;
  flex-shrink: 0;
}

.crew__bar {
  height: 4px;
  margin: 0.4rem 0 0;
  background: var(--c-wash);
  border-radius: 999px;
  overflow: hidden;
}

.crew__bar-fill {
  display: block;
  height: 100%;
  background: var(--c);
  border-radius: 999px;
}

.crew__project.is-paused .crew__bar-fill {
  background: repeating-linear-gradient(135deg, var(--c), var(--c) 3px, transparent 3px, transparent 6px);
}

.crew__task {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.crew__task-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.crew__task.is-waiting .crew__task-title {
  color: var(--muted);
}

.crew__task-due {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.crew__task.is-late .crew__task-due { color: var(--alert); }
.crew__task.is-warn .crew__task-due { color: var(--warn); }

.burn {
  padding: 0.55rem 0 0.15rem;
  border-bottom: 1px solid var(--border);
}

.task-group__list li:last-child.burn,
.task-group__list li.burn:last-child {
  border-bottom: 0;
}

.burn .task {
  border-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
}

.burn__project {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.burn__project a {
  color: var(--c);
  font-weight: 600;
  text-decoration: none;
}

.burn__project a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.burn__project span {
  color: var(--muted);
}

#detail:empty {
  display: none;
}

.focus__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  margin: 0.3rem 0 0.6rem;
  max-width: 28ch;
}

.focus__chunks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.chunk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.chunk__link {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  column-gap: 0.4rem;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.chunk:hover .chunk__title,
.chunk__link:hover .chunk__title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.chunk__index {
  color: var(--muted);
  font-size: 0.82rem;
}

.chunk__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chunk__project {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus__empty {
  margin: 0.4rem 0 0.25rem;
  color: var(--muted);
}

.deadline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  color: var(--warn);
  font-size: 0.82rem;
}

.deadline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--warn-mark);
  flex-shrink: 0;
}

.timeline {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 1.1rem;
  scroll-margin-top: 1rem;
}

.timeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.timeline__lead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.timeline__head .seg {
  margin-left: auto;
}

.timeline__board {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.timeline__names {
  min-width: 0;
  position: relative;
  z-index: 1;
  background: var(--card);
  box-shadow: 10px 0 12px -10px rgb(10 10 10 / 0.12);
}

.timeline__scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.timeline__canvas {
  position: relative;
}

.timeline__names-axis,
.timeline__months {
  position: relative;
  min-height: 2.25rem;
  margin-bottom: 0.35rem;
}

.strand--name,
.strand--track {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.25rem;
  text-decoration: none;
  color: inherit;
}

.strand--track {
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.strand__track {
  position: relative;
  display: block;
  width: 100%;
  min-height: 2.25rem;
}

.timeline__month {
  position: absolute;
  top: 0;
  transform: translateX(0);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.today__label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.timeline__body {
  position: relative;
}

.timeline__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline__gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--alert) 70%, transparent);
}

.timeline__empty {
  margin: 0;
  min-height: 6.75rem;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.group {
  margin-top: 0;
}

.group + .group {
  margin-top: 0.85rem;
}

.group__label,
.group__lane {
  display: flex;
  align-items: center;
  height: 1.35rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group__lane {
  pointer-events: none;
}

.group__label {
  gap: 0.4rem;
  color: var(--c);
}

.group__label .ico {
  color: var(--c);
}

.strand {
  text-decoration: none;
  color: inherit;
}

.strand__label {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strand.is-paused .strand__label,
.strand.is-done .strand__label {
  color: var(--muted);
}

.strand:hover .strand__label {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.strand.is-selected .strand__label {
  font-weight: 600;
}

.bar {
  position: absolute;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--c-wash);
  overflow: hidden;
  container-type: inline-size;
}

.bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: color-mix(in srgb, var(--c) 55%, white);
  min-width: 0;
}

.bar__label {
  position: relative;
  z-index: 3;
  display: block;
  padding: 0 0.55rem 0 0.5rem;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 22px;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-jukes .bar__label {
  color: #134e4a;
}

.is-evelyn .bar__label,
.is-iq .bar__label,
.is-mediatenor .bar__label,
.is-cellmove .bar__label,
.is-cvd .bar__label {
  color: #fff;
}

@container (max-width: 90px) {
  .bar__label { display: none; }
}

.bar__heat,
.bar__done {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
}

.strand:hover .bar {
  filter: brightness(0.96);
}

.strand.is-selected .bar {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bar--cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar--cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.bar--ongoing {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.bar--paused {
  background: repeating-linear-gradient(
    135deg,
    var(--c-wash),
    var(--c-wash) 4px,
    color-mix(in srgb, var(--c) 18%, #fff) 4px,
    color-mix(in srgb, var(--c) 18%, #fff) 8px
  );
}

.bar--paused .bar__fill {
  opacity: 0.45;
}

.bar--done {
  background: var(--c-wash);
}

.milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--ink);
  line-height: 0;
  filter: drop-shadow(0 0 1px #fff);
}

.milestone.is-done {
  color: var(--ink);
  opacity: 0.72;
}

.milestone__text {
  position: absolute;
  top: calc(50% + 12px);
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.pay-mark {
  display: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--ink);
  border: 1px solid #fff;
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.detail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
}

.icon-btn:hover {
  color: var(--ink);
}

.icon-btn:active {
  transform: scale(0.96);
}

.detail__head .kicker {
  color: var(--c);
}

.detail__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  font-size: 1.35rem;
  margin: 0.2rem 0 0.2rem;
}

.detail__title .ico--project {
  color: var(--c);
}

.detail__meta,
.detail__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.task-group {
  margin-top: 0.85rem;
}

.task-group__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin: 0 0 0.2rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
}

.task-group__title span {
  color: var(--muted);
  font-weight: 500;
}

.task-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail__switch {
  margin: 0.85rem 0 0;
  display: inline-flex;
  width: auto;
}

.detail__switch a {
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
}

.task-subs {
  list-style: none;
  margin: 0;
  padding: 0 0 0.2rem 1.55rem;
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.task--branched {
  padding-bottom: 0.08rem;
  border-bottom: 0;
}

.task--sub {
  padding: 0.1rem 0;
  border-bottom: 0;
}

.task--sub .task__title {
  font-size: 0.88rem;
}

.task-group__list > li:last-child > .task:not(.task--branched) {
  border-bottom: 0;
}

.task__title {
  margin: 0;
  font-size: 0.92rem;
}

.task.is-highlight {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 8px;
}

.task.is-done .task__title {
  color: var(--muted);
  text-decoration: line-through;
}

.task.is-late .due { color: var(--alert); }
.task.is-warn .due { color: var(--warn); }
.task.is-late .task__check { color: var(--alert); }
.task.is-warn .task__check { color: var(--warn); }

.task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.due--late { color: var(--alert); }
.due--warn { color: var(--warn); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.tag--urgent {
  gap: 0.18rem;
  padding: 0.04rem 0.4rem;
  font-size: 0.68rem;
}

.tag--urgent .ico {
  width: 10px;
  height: 10px;
}

.task__main {
  min-width: 0;
  flex: 1;
}

.task__check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px 0 0 -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.task__menu {
  position: relative;
  flex-shrink: 0;
}

.task__more {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}

.task__more::-webkit-details-marker {
  display: none;
}

.task__actions {
  position: absolute;
  right: 0;
  top: 2.2rem;
  z-index: 5;
  display: grid;
  gap: 0.25rem;
  min-width: 8rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(10 10 10 / 0.08);
}

.task__actions .text-btn {
  font-size: 0.82rem;
  justify-content: flex-start;
}

.task-group--done summary {
  cursor: pointer;
  list-style: none;
}

.task-group--done summary::-webkit-details-marker {
  display: none;
}

body.sessions .page {
  padding: 0;
}

@media (min-width: 640px) {
  :root { --space: 1.4rem; }
}

.score {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.score__dial {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.score__dial:hover .score__number {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.score__gauge {
  position: relative;
  width: min(100%, 13rem);
  margin: 0.7rem auto 0;
}

.score__svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.score__track,
.score__value {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}

.score__track {
  stroke: var(--border);
}

.score__value {
  stroke: var(--ink);
  stroke-dashoffset: 0;
}

.score__number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-align: center;
}

.score__unit {
  margin-left: 0.1rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0;
  font-weight: 500;
}

.score__status {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.score__label {
  font-weight: 600;
}

.score__fire {
  position: relative;
  color: var(--warn);
  text-decoration: none;
  font-weight: 500;
}

.score__fire-count {
  font-variant-numeric: tabular-nums;
}

.score__fire::after {
  content: "";
  position: absolute;
  inset: -0.6rem -0.5rem;
}

.score__fire:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lage__lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42ch;
}

.lage__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lage__row {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
}

.lage__row:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.lage__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.lage__name {
  font-weight: 600;
  text-decoration: none;
}

.lage__name:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lage__score {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lage__row.is-behind .lage__score {
  color: var(--warn);
}

.lage__meta,
.lage__note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.lage__row.is-behind .lage__note {
  color: var(--ink);
}

.revenue {
  min-width: 0;
}

.revenue__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0.65rem;
}

.revenue__total {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.revenue__estimate {
  text-align: right;
  flex-shrink: 0;
}

.revenue__estimate-total {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #a1a1aa;
}

.revenue__estimate-meta {
  color: #a1a1aa;
}

.revenue__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.revenue__row {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}

.revenue__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--c);
}

.revenue__amount {
  white-space: nowrap;
}

.revenue__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revenue__due {
  color: var(--muted);
  white-space: nowrap;
}

.revenue__row.is-overdue .revenue__due,
.revenue__row.is-overdue .revenue__amount {
  color: var(--alert);
}

.revenue__row.is-estimate {
  color: #a1a1aa;
}

.revenue__row.is-estimate .revenue__due,
.revenue__row.is-estimate .revenue__amount {
  color: #a1a1aa;
}

.revenue__more {
  margin: 0.6rem 0 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem var(--space);
  pointer-events: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgb(24 24 27 / 0.38);
  text-decoration: none;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  max-height: min(85dvh, 46rem);
  overflow: auto;
  box-shadow: 0 24px 48px -28px rgb(24 24 27 / 0.45);
  pointer-events: auto;
}

body.is-modal-open {
  overflow: hidden;
}

.project-page__back {
  display: inline-block;
  margin: 0 0 0.75rem;
}

.detail--page {
  padding: 1.35rem 1.4rem 1.5rem;
}

.project-strip {
  margin-top: 0.85rem;
}

.milestone-lane {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.milestone-lane__item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.88rem;
}

.milestone-lane__date {
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.pay {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.pay:last-child {
  border-bottom: 0;
}

.pay .ico {
  margin-top: 0.2rem;
}

.pay.is-estimate,
.pay.is-estimate .pay__title,
.pay.is-estimate .pay__amount {
  color: #a1a1aa;
}

.pay__title {
  margin: 0;
  font-size: 0.92rem;
}

.pay__meta {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pay__amount {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ico {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.ico--muted { color: var(--muted); }
.ico--alert { color: var(--alert); }
.ico--warn { color: var(--warn); }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1;
}

.legend__item .ico {
  flex-shrink: 0;
  display: block;
}

.tag--stale {
  gap: 0.25rem;
}

.tag--stale {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn-mark) 50%, var(--border));
}

.quick__empty,
.workload__empty {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.quick__list,
.notes__list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  max-width: 34rem;
}

.quick {
  font-size: 0.92rem;
}

.quick__row {
  border-bottom: 1px solid var(--border);
}

.quick__row:last-child {
  border-bottom: 0;
}

.quick__row .task {
  align-items: flex-start;
  border-bottom: 0;
  padding: 0.5rem 0;
}

.quick__row .task__title {
  line-height: 1.25;
}

.quick__row .task__meta {
  margin-top: 0.12rem;
}

.quick__row .task__check {
  width: 16px;
  height: 16px;
  margin: 0.15rem 0 0;
  position: relative;
}

.quick__row .task__check::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.quick__more {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.quick .kicker span,
.kicker span {
  color: var(--muted);
  font-weight: 400;
}

.workload__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.workload__cap {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.workload__status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.workload__bars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  align-items: stretch;
  flex: none;
  height: 8.6rem;
}

.workload__col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 0.3rem;
  height: 100%;
}

.workload__stack {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 2.2rem;
  height: 6.5rem;
  min-height: 6.5rem;
  max-height: 6.5rem;
  background: #f4f4f5;
  border-radius: 6px;
  overflow: hidden;
}

.workload__fill {
  width: 100%;
  background: var(--c);
  border-radius: 0;
}

.workload__over {
  width: 100%;
  background: var(--alert);
}

.workload__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--cap);
  border-top: 2px solid #f4f4f5;
}

.workload__kw,
.workload__hours {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.15;
}

.workload__kw {
  font-variant-numeric: tabular-nums;
}

.workload__col.is-current .workload__kw {
  color: var(--ink);
  font-weight: 600;
}

.workload__projects {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.workload__project {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.78rem;
}

.workload__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--c);
}

.workload__project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workload__project-meta {
  color: var(--muted);
  white-space: nowrap;
}

.workload__foot {
  margin: 0.55rem 0 0;
}

.notes__form {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
  max-width: 34rem;
}

.notes__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
}

.notes__row {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.notes__body {
  margin: 0;
  font-size: 0.88rem;
}

.notes__more,
.notes__done {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.notes__row.is-done .notes__body {
  text-decoration: line-through;
  color: var(--muted);
}

.focus__review {
  font-family: var(--font-display);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score__week {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
}

.score__day {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.score__day.is-today { color: var(--ink); }

@media (min-width: 640px) {
  .board__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .focus {
    grid-column: 1 / -1;
  }

  .board__mid,
  .board__bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .board__top {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr) minmax(0, 1fr);
  }

  .board__top > .card {
    min-height: 16.5rem;
  }

  .focus {
    grid-column: auto;
  }
}




.board__revenue {
  display: grid;
  gap: 1.05rem;
  align-items: stretch;
}
.board__revenue > .card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1200px) {
  .board__revenue {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.revenue-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.revenue-chart__total {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.revenue-chart__empty {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.revenue-chart__plot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  margin-top: 0.85rem;
  flex: 1;
  min-height: 11rem;
}
.revenue-chart__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.62rem;
  color: var(--muted);
  padding-bottom: 1.35rem;
  white-space: nowrap;
}
.revenue-chart__canvas {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.revenue-chart__grid {
  position: absolute;
  inset: 0 0 1.35rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.revenue-chart__gridline {
  display: block;
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.revenue-chart__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr));
  gap: 0.28rem;
  align-items: end;
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 9.5rem;
}
.revenue-chart__col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 0.35rem;
  height: 100%;
  min-width: 0;
}
.revenue-chart__stack {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 1.35rem;
  height: 100%;
  min-height: 8.5rem;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  background: transparent;
}
.revenue-chart__stack > .revenue-chart__fill:last-of-type {
  border-radius: 5px 5px 0 0;
}
.revenue-chart__fill {
  display: block;
  width: 100%;
  background: var(--c, var(--ink));
  min-height: 2px;
  border-radius: 0;
}
.revenue-chart__label {
  margin: 0;
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.revenue-chart__col.is-current .revenue-chart__label {
  color: var(--ink);
  font-weight: 650;
}

@media (min-width: 1200px) {
  .board__mid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board__bottom {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .board__bottom {
    grid-template-columns: 1fr;
  }
  .board__revenue {
    grid-template-columns: 1fr;
  }
  .board__mid {
    grid-template-columns: 1fr;
  }
  .revenue-chart__plot {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }
  .revenue-chart__bars {
    gap: 0.18rem;
  }
  .workload__bars,
  .arbeitszeit__bars {
    gap: 0.28rem;
  }
  .habits__title {
    font-size: 0.7rem;
  }

  .board { overflow-x: clip; }
  .workload__bars, .arbeitszeit__bars, .revenue-chart__bars { min-width: 0; }
  .revenue-chart__yaxis { font-size: 0.55rem; }

  :root {
    --label: 7rem;
    --space: 0.9rem;
  }

  .page {
    padding-bottom: 2.5rem;
  }

  .site-header {
    padding-top: 0.85rem;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .status-line {
    font-size: 0.78rem;
    max-width: none;
  }

  .card {
    padding: 1rem 1.05rem;
  }

  .focus__title {
    font-size: 1.2rem;
    max-width: none;
    margin: 0.3rem 0 0.5rem;
  }

  .month-nav {
    width: max-content;
    max-width: none;
    grid-template-columns: 2.25rem auto 2.25rem;
  }

  .month-nav__title {
    font-size: 1.05rem;
  }

  .month-nav__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

  .seg {
    max-width: none;
    width: auto;
  }

  .timeline {
    padding: 0.85rem 0.7rem 0.95rem;
  }

  .timeline__head {
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .strand__label {
    font-size: 0.8rem;
  }

  .timeline__month,
  .today__label {
    font-size: 0.58rem;
  }

  .revenue__row {
    grid-template-columns: 0.5rem 1fr auto;
    gap: 0.15rem 0.45rem;
  }

  .revenue__due {
    grid-column: 2;
    font-size: 0.75rem;
  }

  .modal {
    padding: 0.45rem;
    align-items: end;
  }

  .modal__panel {
    width: 100%;
    max-height: 92dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .detail__head {
    gap: 0.6rem;
  }

  .detail__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 559px) {
  .score__gauge {
    width: 10rem;
  }

  .score__number {
    font-size: 2.9rem;
  }

  .score__status {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Timeline hide / accordion */
.strand-name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.35rem;
}
.strand-name-row .strand--name {
  flex: 1;
  min-width: 0;
}
.strand-hide {
  margin: 0;
  flex-shrink: 0;
}
.strand-hide__btn {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
}
.strand-name-row:hover .strand-hide__btn,
.strand-hide__btn:focus-visible,
.strand-hide__btn.is-always {
  opacity: 1;
}
.strand-hide__btn:hover {
  color: var(--ink);
  background: var(--border);
}
.timeline-hidden {
  margin: 0.85rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
}
.timeline-hidden__summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}
.timeline-hidden__summary::-webkit-details-marker { display: none; }
.timeline-hidden__list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.timeline-hidden__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.5rem;
}
.timeline-hidden__name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--c, var(--ink));
}




/* Accordion summary: count pill + chevron */
.ops-block__summary,
.timeline-hidden__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.acc-label {
  font: inherit;
  color: inherit;
}
.acc-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, #fff);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.acc-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.7;
  margin-left: 0.1rem;
  flex-shrink: 0;
}
details[open] > .ops-block__summary .acc-chevron,
details[open] > .timeline-hidden__summary .acc-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

/* —— Ops / Nebenbei (A) —— */
.ops-block {
  margin: 0.85rem 0 0;
  padding: 0;
}

.ops-block__summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  padding: 0.35rem 0;
  user-select: none;
}

.ops-block__summary::-webkit-details-marker { display: none; }

.ops-block__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.15rem 0 0.35rem;
}

.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
}

.ops-chip:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--border));
  background: color-mix(in srgb, var(--c-wash) 55%, #fff);
}

.ops-chip.is-overdue {
  border-color: color-mix(in srgb, var(--alert) 45%, var(--border));
  background: color-mix(in srgb, var(--alert-wash) 70%, #fff);
}

.ops-chip__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--c);
  flex-shrink: 0;
}

.ops-chip__body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.ops-chip__title {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-chip__meta {
  display: flex;
  gap: 0.45rem;
  font-size: 0.66rem;
  color: var(--muted);
}

.ops-chip.is-overdue .ops-chip__due,
.ops-chip.is-overdue .ops-chip__status {
  color: var(--alert);
  font-weight: 600;
}


/* Expandable "+ weitere" footers */
.card-more {
  margin: 0.45rem 0 0;
}
.card-more__summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  user-select: none;
}
.card-more__summary::-webkit-details-marker { display: none; }
.card-more__summary:hover { color: var(--ink); }
.card-more[open] > .card-more__summary { margin-bottom: 0.35rem; }
.agenda__list--more { margin-top: 0.25rem; }

/* —— Arbeitszeit (Ist) —— */
.arbeitszeit__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.arbeitszeit__cap {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.arbeitszeit__empty {
  margin: 0.7rem 0 0;
  color: var(--muted);
}
.arbeitszeit__status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}
.arbeitszeit__bars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  align-items: stretch;
  flex: none;
  height: 8.6rem;
  direction: ltr;
}
.arbeitszeit__col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 0.3rem;
  height: 100%;
  min-width: 0;
}
.arbeitszeit__stack {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 1.6rem;
  height: 6.5rem;
  min-height: 6.5rem;
  max-height: 6.5rem;
  background: #f4f4f5;
  border-radius: 6px;
  overflow: hidden;
}
.arbeitszeit__fill {
  width: 100%;
  background: var(--c);
  border-radius: 0;
}
.arbeitszeit__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--cap);
  border-top: 2px solid #f4f4f5;
}
.arbeitszeit__kw,
.arbeitszeit__hours {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.arbeitszeit__col.is-current .arbeitszeit__kw {
  color: var(--ink);
  font-weight: 600;
}
.arbeitszeit__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.arbeitszeit__item {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.78rem;
}
.arbeitszeit__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--c);
}
.arbeitszeit__item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arbeitszeit__item-meta {
  color: var(--muted);
  white-space: nowrap;
}
.arbeitszeit__foot {
  margin: 0.45rem 0 0;
}
.arbeitszeit__weeks {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.arbeitszeit__week-head {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}
.arbeitszeit__week.is-current .arbeitszeit__week-head {
  color: var(--ink);
}
.arbeitszeit__week details,
details.arbeitszeit__week {
  margin: 0;
}



/* Habits / Nebenbei card */
.habits__empty { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.72rem; }
.habits__kicker { font-size: 0.8rem; letter-spacing: 0.12em; }
.habits__nebenbei-kicker { margin-top: 0.75rem; }
.habits__list { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
.habits__row {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: start;
  padding: 0.22rem 0;
  border-bottom: 1px solid var(--border);
}
.habits__row:last-child { border-bottom: 0; }
.habits__swatch { width: 0.4rem; height: 0.4rem; margin-top: 0.28rem; border-radius: 2px; background: var(--c, var(--muted)); }
.habits__body { min-width: 0; line-height: 1.15; }
.habits__title {
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.habits__title:hover { text-decoration: underline; }
.habits__meta {
  margin: 0.02rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.22rem;
  font-size: 0.62rem;
  line-height: 1.15;
  color: var(--muted);
}
.habits__row.is-overdue .habits__due { color: var(--alert); font-weight: 650; }

/* Tageslage */
.tageslage {
  margin-top: 1rem;
}

.tageslage__block {
  margin-top: 0.75rem;
}

.tageslage__block + .tageslage__block {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tageslage__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.tageslage__html {
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 42rem;
}

.tageslage__html p {
  margin: 0 0 0.45rem;
}

.tageslage__html p:last-child {
  margin-bottom: 0;
}

.tageslage__html ul {
  margin: 0.25rem 0 0.45rem;
  padding-left: 1.1rem;
}

.tageslage__html li {
  margin: 0.15rem 0;
}

.tageslage__html span[class^="is-"] {
  color: var(--c);
}


/* PHASE0 board-section + add-ui */
.board-section {
  display: grid;
  gap: 1.05rem;
  padding-top: 0.35rem;
}

.board-section + .board-section {
  margin-top: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.board-section__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-head .kicker {
  margin: 0;
}

.card-head--nebenbei {
  margin-top: 0.55rem;
  align-items: center;
}

.card-head--nebenbei .habits__nebenbei-kicker {
  margin-top: 0;
}

.add-ui {
  position: relative;
  flex-shrink: 0;
}

.add-ui > summary {
  list-style: none;
  cursor: pointer;
}

.add-ui > summary::-webkit-details-marker {
  display: none;
}

.add-ui__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  background: transparent;
}

.add-ui__btn:hover,
.add-ui[open] > .add-ui__btn {
  color: var(--ink);
  border-color: var(--ink);
}

.add-ui__btn--label {
  min-width: 0;
  height: auto;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.add-ui__panel {
  margin-top: 0.45rem;
}

.add-ui:not(.add-ui--block) .add-ui__panel {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: min(18rem, 78vw);
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card, var(--bg, #fff));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.add-ui__form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.add-ui__form--stack {
  flex-direction: column;
  align-items: stretch;
}

.add-ui__input,
.add-ui__select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  background: transparent;
  color: inherit;
}

.add-task-block {
  margin: 0.65rem 0 0.35rem;
}

@media (max-width: 559px) {
  .board-section + .board-section {
    margin-top: 0.55rem;
    padding-top: 0.85rem;
  }

  .add-ui:not(.add-ui--block) .add-ui__panel {
    position: static;
    min-width: 0;
    box-shadow: none;
  }

  .add-ui__form {
    flex-wrap: wrap;
  }
}

/* —— Phase 2 Analyse widgets —— */
.board__work-time,
.board__rates {
  display: grid;
  gap: 1.05rem;
  align-items: stretch;
}
.board__work-time > .card,
.board__rates > .card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1200px) {
  .board__rates {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}
@media (max-width: 799px) {
  .board__rates {
    grid-template-columns: 1fr;
  }
}

.billable-week__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.billable-week__cap {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.billable-week__empty {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.billable-week__bar {
  display: flex;
  height: 0.85rem;
  margin: 0.85rem 0 0.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: #f4f4f5;
}
.billable-week__seg {
  display: block;
  height: 100%;
  min-width: 0;
}
.billable-week__seg.is-billable { background: #00d4aa; }
.billable-week__seg.is-unbillable { background: #a1a1aa; }
.billable-week__seg.is-rest { background: transparent; }
.billable-week__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.billable-week__stat {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}
.billable-week__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
}
.billable-week__dot.is-billable { background: #00d4aa; }
.billable-week__dot.is-unbillable { background: #a1a1aa; }
.billable-week__dot.is-rest { background: #e4e4e7; }
.billable-week__label { min-width: 0; }
.billable-week__value { white-space: nowrap; font-variant-numeric: tabular-nums; }

.hourly-rates__meta {
  margin: 0.25rem 0 0;
}
.hourly-rates__empty,
.rate-summary__empty {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.hourly-rates__list,
.rate-summary__list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.hourly-rates__row {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto auto auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}
.rate-summary__row {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}
.hourly-rates__swatch,
.rate-summary__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--c);
}
.hourly-rates__name,
.rate-summary__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hourly-rates__due,
.hourly-rates__hours,
.rate-summary__hours {
  color: var(--muted);
  white-space: nowrap;
}
.hourly-rates__rate,
.rate-summary__rate {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rate-summary__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0.65rem;
}
.rate-summary__total {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1;
}
.rate-summary__side {
  text-align: right;
  flex-shrink: 0;
}
.rate-summary__side-total {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #a1a1aa;
}
.rate-summary__side-meta {
  color: #a1a1aa;
}
