:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eff3ed;
  color: #1b302b;
  --ink: #1b302b;
  --deep: #18342d;
  --dim: #52645b;
  --line: #dce5d9;
  --soft: #edf4ec;
  --paper: #fff;
  --yellow: #e7f4b8;
  --warning: #8a4c16;
  --shadow: 0 10px 26px rgba(25, 49, 35, .06);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 5.5vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; }
h2 { font-size: 1.27rem; letter-spacing: -.032em; }
h3 { font-size: 1rem; }
:focus-visible { outline: 3px solid #7e9d49; outline-offset: 3px; }
small, .muted { color: var(--dim); }
small { font-size: .83rem; }
.loading { padding: 2rem; }
.top {
  color: #fff;
  background: var(--deep);
  padding: 0 clamp(1rem, 5vw, 3rem);
}
.top-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 2.48rem; height: 2.48rem; border-radius: .64rem; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.025em; }
.brand small { display: block; color: #ccdbcf; letter-spacing: .01em; }
.account { display: flex; align-items: center; gap: .74rem; }
.account span { color: #d7e4d8; font-size: .86rem; }
.frame { max-width: 1180px; margin: auto; padding: clamp(1.1rem, 4.4vw, 3.15rem) clamp(.95rem, 3.5vw, 2rem) 4rem; }
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.pagehead p { margin-top: .5rem; color: var(--dim); }
.filters { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.filters input, .filters select { min-width: 8.8rem; }
.tabs { display: flex; gap: .15rem; border-bottom: 1px solid #cfdecf; margin-bottom: 1.3rem; overflow-x: auto; }
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: .71rem .85rem .64rem;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 650;
  font-size: .94rem;
}
.tabs button[aria-current] { border-color: var(--deep); color: var(--deep); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card + .card { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; margin-bottom: 1rem; }
.card-head p { margin-top: .32rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18.3rem, 1fr); gap: 1rem; align-items: start; }
.layout-tight { grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 1fr); }
.layout > * { min-width: 0; }
.hero {
  background: #1f4133;
  color: #fff;
  border-color: #1f4133;
}
.hero small, .hero .muted { color: #d0e3d2; }
.hero .card-head { margin-bottom: .65rem; }
.hero .fact { border-color: #476858; }
.hero .fact dt { color: #deebdf; }
.hero .highlight { color: #e7f7ad; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin: .7rem 0 1rem; }
.kpi { padding: .85rem .9rem; background: var(--soft); border-radius: .75rem; min-width: 0; }
.kpi span { display: block; color: var(--dim); font-size: .85rem; font-weight: 550; }
.kpi strong, .big-number { display: block; font-size: clamp(1.35rem, 3vw, 2rem); margin-top: .2rem; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero .kpi { background: #315346; }
.hero .kpi span { color: #dbe9de; }
.hero .big-number { font-size: clamp(1.48rem, 3.2vw, 2.1rem); margin: .14rem 0; }
.account-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: .85rem 0 .7rem; }
.account-results > div { background: #315346; border-radius: .65rem; padding: .68rem; }
.account-results small { display: block; line-height: 1.28; }
.account-minus { color: #ffd5c4; }
.account-credits { margin-top: .65rem; }
.account-credits summary { color: #deebdf; cursor: pointer; font-size: .86rem; }
.facts { margin: .4rem 0 0; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: .51rem 0; border-top: 1px solid var(--line); }
.fact dt { color: var(--dim); font-size: .89rem; }
.fact dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
label { display: grid; gap: .32rem; align-content: start; min-width: 0; font-size: .87rem; font-weight: 620; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  border: 1px solid #c9d7ca;
  background: #fff;
  border-radius: .56rem;
  padding: .58rem .63rem;
  font-size: 1rem;
  font-weight: 400;
}
input[type="date"], input[type="month"], input[type="time"] { appearance: none; -webkit-appearance: none; }
select {
  appearance: none;
  padding-right: 1.85rem;
  background-image: linear-gradient(45deg, transparent 50%, #52645b 50%), linear-gradient(135deg, #52645b 50%, transparent 50%);
  background-position: calc(100% - 14px) 54%, calc(100% - 9px) 54%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 4.1rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
button, .button { min-height: 2.56rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--deep); border-radius: .6rem; background: var(--deep); color: #fff;
  padding: .55rem .87rem; font-size: .91rem; font-weight: 670; cursor: pointer; text-decoration: none;
}
.button:hover { filter: brightness(1.12); }
.button.secondary { color: var(--deep); border-color: #cbd8ca; background: #fff; }
.button.ghost { color: inherit; border: 1px solid #739184; background: transparent; }
.button.subtle { color: var(--deep); border-color: transparent; background: #eaf3e9; }
.button[disabled], fieldset[disabled] .button { opacity: .48; cursor: default; }
.button.small { font-size: .82rem; padding: .4rem .61rem; min-height: 2.1rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.actions.end { justify-content: flex-end; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.field-grid .wide { grid-column: 1 / -1; }
.section { margin-top: 1.1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .62rem; }
.pause-section { padding: .78rem; background: #f5f8f4; border: 1px solid var(--line); border-radius: .75rem; }
.pause-section h3 { margin: 0 0 .62rem; }
.pause-list { display: grid; gap: .55rem; }
.pause-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: .55rem; }
.pause-row > .button.small { min-width: 5.85rem; min-height: 2.75rem; padding-inline: .35rem; }
.pause-actions { display: flex; justify-content: flex-end; }
.pause-list:not(:empty) + .pause-actions { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .65rem; }
.pause-actions > .button.small { gap: .28rem; min-height: 2.75rem; }
.block-list { display: grid; gap: .65rem; }
.block { border: 1px solid var(--line); border-radius: .78rem; padding: .84rem; background: #f8faf7; }
.block h3 { margin: .15rem 0; }
.block [data-remove-block]:disabled { visibility: hidden; }
details.material { margin-top: .75rem; }
details.material summary { cursor: pointer; color: var(--deep); font-size: .9rem; font-weight: 650; }
details.material .field-grid { margin-top: .65rem; grid-template-columns: 2fr 1fr 1fr; }
.daytotals {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  background: var(--soft); border-radius: .7rem; margin-top: .9rem; padding: .72rem .85rem; gap: .6rem;
}
.daytotals span { font-size: .91rem; }
.daytotals span[data-warning="true"] { color: var(--warning); }
.formmessage { margin: .66rem 0; line-height: 1.35; font-size: .9rem; color: var(--warning); }
.badge { background: #e8f2e7; color: #314e36; border-radius: 3rem; padding: .2rem .58rem; white-space: nowrap; font-size: .78rem; font-weight: 720; display: inline-block; }
.badge.wait { background: #faf0cd; color: #624a12; }
.badge.closed { background: #e1ebf5; color: #27496a; }
.hero .badge { color: #284538; background: var(--yellow); }
.report-link { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; text-align: left; }
th { color: var(--dim); font-size: .8rem; font-weight: 700; }
th, td { padding: .66rem .55rem; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: .12rem; }
th:last-child, td:last-child { padding-right: .12rem; }
td.number, th.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td small { display: block; margin-top: .12rem; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th, tfoot td { border: solid var(--line); border-width: 1px 0 0; color: var(--deep); background: var(--soft); }
tfoot th:first-child { padding-left: .55rem; font-size: .9rem; }
tfoot td:last-child { padding-right: .55rem; }
.expense-status { min-width: 9.2rem; min-height: 2.45rem; color: #644407; background-color: #fff3cc; border-color: #dec379; font-weight: 650; }
.expense-status[data-status="geprüft"] { color: #194f36; background-color: #e2f3e7; border-color: #a6cbb0; }
.expense-status[data-status="ausgeschlossen"] { color: #434a52; background-color: #edf0f3; border-color: #b6bfc7; }
.expense-totals { margin-top: .75rem; padding: 0 .8rem; border-radius: .65rem; background: var(--soft); }
.expense-totals .fact:first-child { border-top: 0; }
.expense-totals .fact:first-child dt { color: var(--deep); font-weight: 720; }
.empty { border: 1px dashed #ccd9ca; background: #f7faf6; border-radius: .65rem; padding: .8rem; color: var(--dim); line-height: 1.45; }
.list { display: grid; gap: .38rem; margin: .26rem 0 0; padding: 0; list-style: none; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding: .59rem 0; }
.list-item:last-child { border-bottom: 0; }
.list-item strong { display: block; }
.catalog-add { display: flex; align-items: end; gap: .55rem; margin-bottom: 1rem; }
.catalog-add label { flex: 1; }
.history { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.history summary { cursor: pointer; font-size: .9rem; font-weight: 640; }
.history ul { padding-left: 1.1rem; color: var(--dim); line-height: 1.5; font-size: .87rem; }
.report-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.17fr 1fr;
}
.login-side { background: var(--deep); color: #fff; padding: clamp(1.5rem, 6vw, 5rem); display: grid; align-content: center; gap: 1.4rem; }
.login-side h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: .99; max-width: 8ch; }
.login-side p { color: #d5e5d8; max-width: 32ch; line-height: 1.55; }
.login-side .brand img { width: 3rem; height: 3rem; }
.login-main { align-self: center; justify-self: center; width: min(100%,31rem); padding: clamp(1.15rem, 4vw, 2.5rem); }
.login-main h2 { font-size: 1.75rem; }
.login-main form { display: grid; gap: .8rem; margin: 1rem 0 1.3rem; }
.login-main .card-head { margin-bottom: .3rem; }
.demo-box { padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: #f6f9f4; }
.demo-box h3 { margin-bottom: .58rem; font-size: .92rem; }
#notice:not(:empty) {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 3; max-width: min(34rem,calc(100vw - 2rem));
  padding: .72rem .95rem; border: 1px solid #355846; border-radius: .65rem; color: #fff; background: var(--deep);
  box-shadow: 0 6px 24px #16271f2b; font-size: .93rem;
}
#notice[data-error="true"] { background: #7e361f; border-color: #7e361f; }
@media (max-width: 820px) {
  .layout, .layout-tight { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 1.4rem 1.15rem; gap: .9rem; }
  .login-side h1 { font-size: 2.8rem; max-width: unset; }
  .login-side p { max-width: unset; }
  .account span { display: none; }
  .top-inner { min-height: 4rem; }
  .pagehead { align-items: start; flex-direction: column; }
  .pagehead .filters { width: 100%; }
  .pagehead .filters label { flex: 1; }
  .card { border-radius: .78rem; }
  .kpis { gap: .42rem; }
  .kpi { padding: .65rem .5rem; }
  .kpi span { font-size: .76rem; }
  .kpi strong { font-size: 1.24rem; }
  .tabs button { padding-inline: .61rem; }
  .catalog-add { flex-wrap: wrap; }
  .catalog-add label { flex: 1 1 45%; }
}
.optional { font-weight: 400; color: var(--dim); }
.block textarea { min-height: 5.3rem; line-height: 1.4; }
.block-length { margin-top: .65rem; color: var(--dim); font-size: .86rem; }
.calendar-nav { display: flex; justify-content: space-between; gap: .55rem; margin-bottom: .65rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .27rem; }
.calendar-weekday { text-align: center; padding-bottom: .25rem; font-size: .75rem; font-weight: 650; color: var(--dim); }
.calendar-day {
  border: 1px solid transparent;
  border-radius: .4rem;
  padding: .2rem;
  min-height: 2.25rem;
  font-size: .87rem;
  font-weight: 690;
  background: #e9eeeb;
  color: #43544a;
  cursor: pointer;
}
.calendar-day:hover { border-color: #527060; }
.calendar-day[aria-current] { outline: 2px solid #264739; outline-offset: -2px; }
.calendar .booked { color: #1b5b39; background: #d3edda; }
.calendar .missing { color: #872e37; background: #f6dbdc; }
.calendar .vacation { color: #234f75; background: #dbeafb; }
.calendar .sick { color: #604078; background: #efe1f6; }
.calendar .pending, .calendar .free { color: #49584e; background: #e9eeeb; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .45rem .75rem; list-style: none; padding: 0; margin: .9rem 0 0; font-size: .78rem; color: var(--dim); }
.calendar-legend li { display: flex; align-items: center; gap: .31rem; }
.calendar-legend span { width: .72rem; height: .72rem; display: inline-block; border-radius: .18rem; border: 1px solid #0001; }
.calendar-demo { margin-top: .6rem; font-size: .78rem; }
.advanced-settings summary {
  cursor: pointer; color: var(--deep); font-size: .91rem; font-weight: 650;
}
.editor-date { margin-bottom: .95rem; }
.catalog-item { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.catalog-item:last-child { border-bottom: 0; }
.catalog-item .list-item { border-bottom: 0; }
.catalog-add.rename { margin: .55rem 0 0; }
.catalog-add.rename[hidden] { display: none; }
.material-note { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .85rem; }
.photo-grid figure { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.photo-grid figcaption { padding: .68rem; overflow-wrap: anywhere; }
.photo-grid small { display: block; margin-top: .25rem; }
@media (max-width: 480px) {
  .block label:has(select[name="object"]),
  .block label:has(select[name="category"]) { grid-column: 1 / -1; }
  .pause-row { gap: .32rem; }
  .pause-row input { padding-inline: .26rem; }
  .pause-row > .button.small { min-width: 4.65rem; font-size: .75rem; }
}
.report-filters { min-width: 0; }
.report-filters > label { min-width: min(10rem, 100%); }
.block-photos { margin-top: .75rem; }
.block-photos small { display: block; margin-top: .32rem; }
.attached-photos { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .55rem; }
.attached-photos img { width: 4.1rem; height: 3.2rem; object-fit: cover; border-radius: .4rem; display: block; }
.catalog-name { display: flex; align-items: center; gap: .45rem; }
.catalog-name strong { overflow-wrap: anywhere; }
.catalog-name .catalog-pencil { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.1rem; height: 2.1rem; padding: 0; border-radius: .45rem; }
.catalog-dot { width: .66rem; height: .66rem; border-radius: 50%; flex: 0 0 .66rem; }
.catalog-dot.is-active { background: #347b4a; }
.catalog-dot.is-completed { background: #ad4b55; }
@media (max-width: 600px) {
  .report-filters { width: 100%; }
  .report-filters > label { min-width: 0; flex: 1; }
}
