:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-accent: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f23;
  --muted: #5f6770;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --accent-border: rgb(15 118 110 / 22%);
  --ok: #0d8844;
  --ok-soft: #e6f6ed;
  --warn: #b45309;
  --warn-soft: #fff4e6;
  --danger: #c41e3a;
  --hairline: rgb(28 31 35 / 9%);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(28 31 35 / 5%);
  --shadow-hover: 0 6px 16px rgb(28 31 35 / 7%);
  --clock-pulse: rgb(45 212 191 / 55%);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

header.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  margin: 0 -0.25rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
}

.user-pill {
  font-size: 0.875rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.card-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card-subtitle {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.lead {
  margin: 0 0 1rem;
  line-height: 1.5;
  max-width: 52ch;
}

/* Dashboard: zwei Spalten auf breiten Bildschirmen */
.dash-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .dash-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.card--dash {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card--clock .clock-setup {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.card--clock .clock-setup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.card--clock .clock-setup-field--time {
  flex: 1 1 160px;
  min-width: 140px;
}

.card--clock .clock-setup-done {
  flex-shrink: 0;
}

.clock-stamp-fab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.35rem 0 0.35rem;
}

.clock-stamp-fab {
  position: relative;
  width: min(11.25rem, 76vw);
  height: min(11.25rem, 76vw);
  margin: 0 auto;
}

.clock-stamp-fab-wrap--running .clock-stamp-fab::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--clock-pulse);
  pointer-events: none;
  z-index: 0;
  animation: clock-ring-pulse 2.2s ease-out infinite;
}

@keyframes clock-ring-pulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.07);
    opacity: 0;
  }
  100% {
    transform: scale(1.07);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clock-stamp-fab-wrap--running .clock-stamp-fab::before {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

.clock-fab {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  border: none;
  cursor: pointer;
  z-index: 1;
  box-shadow:
    0 4px 14px rgb(15 118 110 / 28%),
    0 12px 28px rgb(28 31 35 / 12%);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.clock-fab:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow:
    0 6px 18px rgb(15 118 110 / 32%),
    0 16px 34px rgb(28 31 35 / 14%);
}

.clock-fab:active:not(:disabled) {
  transform: scale(0.98);
}

.clock-fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.clock-fab:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.clock-fab--in {
  background: linear-gradient(155deg, #0d9488 0%, #14b8a6 42%, #2dd4bf 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 18%);
}

.clock-fab--out {
  background: linear-gradient(155deg, #c2410c 0%, #ea580c 48%, #fb923c 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
  box-shadow:
    0 4px 14px rgb(234 88 12 / 35%),
    0 12px 28px rgb(28 31 35 / 12%);
}

.clock-fab--out:hover:not(:disabled) {
  box-shadow:
    0 6px 18px rgb(234 88 12 / 40%),
    0 16px 34px rgb(28 31 35 / 14%);
}

.clock-fab__glyph {
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0.95;
  margin-bottom: 0.1rem;
}

.clock-fab__glyph--stop {
  font-size: 1.35rem;
}

.clock-fab.touch-btn {
  min-height: unset;
}

.clock-fab-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  max-width: 28rem;
  padding: 0 0.5rem;
}

.clock-help {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 40rem;
}

.dash-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  margin: 1.15rem 0 0.9rem;
}

.dash-details {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 78%);
}

.dash-details + .dash-details {
  margin-top: 0.65rem;
}

.dash-details__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

.dash-details__summary::-webkit-details-marker {
  display: none;
}

.dash-details__hint {
  font-weight: 400;
  font-size: 0.78rem;
}

.dash-details__body {
  padding: 0 0.85rem 0.85rem;
}

.dash-details:not([open]) .dash-details__hint {
  opacity: 0.85;
}

.dash-quicklinks {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(22 34 54 / 8%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.dash-quicklinks-sep {
  color: var(--muted);
  user-select: none;
}

.insight-body {
  font-size: 0.88rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgb(255 255 255 / 85%) 42%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.95rem;
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hint-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hint-list li {
  padding-left: 0.15rem;
  line-height: 1.45;
  color: var(--text);
}

.hint-list li::marker {
  color: var(--accent);
}

.insight-body .hint-disclaimer {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed rgb(22 34 54 / 12%);
  font-size: 0.78rem;
  color: var(--muted);
}

.heute-box--open .status-open {
  font-size: 1.05rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 1px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

button.primary {
  background: linear-gradient(155deg, #0d9488 0%, #14b8a6 42%, #2dd4bf 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgb(0 0 0 / 12%);
  box-shadow: 0 3px 12px rgb(15 118 110 / 22%);
}

button.primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

button.primary:active:not(:disabled) {
  filter: brightness(0.98);
}

button.primary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

button.secondary {
  background: rgb(255 255 255 / 92%);
  color: var(--text);
  border: 1px solid var(--hairline);
  box-shadow: none;
}

button.secondary:hover:not(:disabled) {
  background: rgb(28 31 35 / 4%);
  border-color: rgb(28 31 35 / 14%);
}

button.danger {
  background: #fde8ec;
  color: var(--danger);
  border: 1px solid rgb(196 30 58 / 12%);
}

button.danger:hover:not(:disabled) {
  background: #fcd4dc;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 140px;
}

.nav-app {
  margin: 0.35rem 0 0.85rem;
}

.nav-app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.tabs.tabs--primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  overflow: visible;
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.nav-details {
  flex: 0 0 auto;
}

.nav-details[open] {
  flex-basis: 100%;
}

.nav-details > summary {
  list-style: none;
}

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

.nav-details__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 70%);
  user-select: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.nav-details__summary:hover {
  color: var(--text);
  border-color: rgb(28 31 35 / 14%);
}

.nav-details[open] > .nav-details__summary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.nav-details__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.55rem 0 0;
}

.nav-details__panel .tab-btn {
  font-size: 0.82rem;
  padding: 0.38rem 0.72rem;
}

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

.tab-btn--compact {
  padding: 0.38rem 0.72rem;
  font-size: 0.8125rem;
}

.nav-use-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.nav-use-hint-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 240px);
}

.nav-use-hint-sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
}

.nav-use-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dash-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
}

.hidden {
  display: none !important;
}

.msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid transparent;
}

.msg.error {
  background: #fde8ec;
  color: var(--danger);
  border-color: rgb(196 30 58 / 15%);
}

.msg.ok {
  background: #e6f6ed;
  color: var(--ok);
  border-color: rgb(13 136 68 / 14%);
}

.msg.warn {
  background: #fff4e6;
  color: var(--warn);
  border-color: rgb(180 83 9 / 18%);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--hairline);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

@media (min-width: 641px) {
  table.responsive tbody tr:nth-child(even):not(.row-warn) td {
    background: rgb(22 34 54 / 3.5%);
  }

  th,
  td {
    padding: 0.55rem 0.5rem;
  }
}

.status-open {
  color: var(--ok);
  font-weight: 600;
}

.status-closed {
  color: var(--muted);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.login-screen .card {
  width: min(420px, 100%);
}

.badge-admin {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: #0f766e;
  vertical-align: middle;
  margin-left: 0.35rem;
}

@media (max-width: 560px) {
  .tab-btn {
    font-size: 0.8125rem;
  }

  .nav-details__panel .tab-btn {
    font-size: 0.78rem;
  }
}

.touch-btn {
  min-height: 2.75rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.preset-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

button.preset {
  background: rgb(255 255 255 / 85%);
  color: var(--muted);
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  border: 1px solid var(--hairline);
}

button.preset:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

button.preset:active {
  filter: brightness(0.98);
}

button.preset.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.muted-sm {
  font-size: 0.85rem;
  color: var(--muted);
}

.heute-box {
  font-size: 1rem;
}

.card--today {
  max-width: 42rem;
}

.today-hours-wrap {
  margin-top: 0.85rem;
}

.today-hours-big {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.today-hours-num {
  font-variant-numeric: tabular-nums;
}

.today-hours-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.35rem;
}

.today-breaks-list {
  margin: 0.45rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.45;
}

.today-breaks-list li + li {
  margin-top: 0.35rem;
}

.myzeit-nav-card {
  margin-bottom: 0;
}

.myzeit-panel {
  margin-top: 0.75rem;
}

.card-balance-kpi {
  max-width: 42rem;
}

.kpi-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kpi-label {
  font-weight: 650;
  font-size: 0.92rem;
}

.kpi-sublabel {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

.kpi-big {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-big--pos {
  color: #0f6b4d;
}

.kpi-big--neg {
  color: #b42318;
}

.kpi-mid {
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.kpi-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(180 205 235 / 40%), rgb(22 34 54 / 7%) 50%, rgb(180 223 205 / 35%));
  overflow: visible;
}

.kpi-meter__tic {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: rgb(22 34 54 / 40%);
  border-radius: 1px;
  z-index: 1;
}

.kpi-meter__neg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - var(--kpi-neg-w, 0px));
  width: var(--kpi-neg-w, 0px);
  background: rgb(248 169 169 / 0.9);
  border-radius: 4px 0 0 4px;
}

.kpi-meter__pos {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--kpi-pos-w, 0px);
  background: rgb(62 173 138 / 0.8);
  border-radius: 0 4px 4px 0;
}

.kpi-vac-track-wrap {
  height: 14px;
  border-radius: 999px;
  background: rgb(22 34 54 / 8%);
  overflow: hidden;
}

.kpi-vac-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3566c9, rgb(118 169 237));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.stat-tile {
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgb(22 34 54 / 8%);
}

.stat-tile .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.stat-tile .val {
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.stat-tile--up {
  background: linear-gradient(180deg, var(--ok-soft), #fff);
  border-color: rgb(13 136 68 / 18%);
}

.stat-tile--up .val {
  color: var(--ok);
}

.stat-tile--down {
  background: linear-gradient(180deg, var(--warn-soft), #fff);
  border-color: rgb(180 83 9 / 22%);
}

.stat-tile--down .val {
  color: var(--warn);
}

.month-meter-wrap {
  margin-top: 1rem;
}

.mo-caption {
  margin: 0.35rem 0 0;
}

.month-meter-wrap:not(.hidden) ~ .mo-caption {
  margin-top: 0.65rem;
}

.month-meter-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.month-meter {
  height: 10px;
  border-radius: 999px;
  background: rgb(22 34 54 / 8%);
  overflow: hidden;
}

.month-meter-fill {
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5c9dff);
  min-width: 5px;
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .month-meter-fill {
    transition: none;
  }
}

.month-meter-fill--over {
  background: linear-gradient(90deg, var(--ok), #2db84e);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.linkish {
  background: none;
  border: none;
  padding: 0.15rem 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  cursor: pointer;
  border-radius: 4px;
}

.linkish:hover {
  color: #0d9488;
}

.linkish:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.fullrow-when-narrow {
  flex: 1 1 200px;
  min-width: 160px;
}

@media (max-width: 640px) {
  table.responsive thead {
    display: none;
  }

  table.responsive tbody tr.row-warn {
    border-color: #f4c27a;
  }

  table.responsive tbody tr.row-warn td::before {
    color: #9a6700;
  }

  table.responsive tr {
    display: block;
    margin-bottom: 0.85rem;
    border: 1px solid rgb(22 34 54 / 10%);
    border-radius: var(--radius);
    padding: 0.35rem 0.6rem;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  table.responsive tbody td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.35rem 0.85rem;
    align-items: start;
    border: none;
    padding: 0.45rem 0.15rem;
    font-size: 0.9rem;
    word-break: break-word;
    background: transparent;
  }

  table.responsive tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.35;
  }
}

table.responsive tbody tr.row-warn td {
  background: #fff6ed;
}

@media (max-width: 640px) {
  table.responsive tbody tr.row-warn td {
    background: transparent;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0.85rem 0.9rem 2.5rem;
  }
}

/* Kalender Zeit & Abwesenheit + KPI-Legende */
.yo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.yo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.yo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.yo-dot--vac {
  background: var(--accent);
}

.yo-dot--sick {
  background: #db2777;
}

.yo-dot--hol {
  background: #ca8a04;
}

.yo-dot--we {
  background: rgb(95 103 112 / 42%);
}

.yo-dot--ot {
  background: #2563eb;
}

.yo-dot--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgb(240 253 250),
    rgb(240 253 250) 2px,
    rgb(153 246 228 / 85%) 2px,
    rgb(153 246 228 / 85%) 4px
  );
  border: 2px dashed rgb(13 148 136 / 88%);
  box-sizing: border-box;
}

.yo-dot--ot.yo-dot--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgb(239 246 255),
    rgb(239 246 255) 2px,
    rgb(191 219 254 / 88%) 2px,
    rgb(191 219 254 / 88%) 4px
  );
  border-color: rgb(37 99 235 / 88%);
}

.ab-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ab-status--approved {
  color: rgb(4 120 87);
  background: rgb(236 253 245);
  box-shadow: inset 0 0 0 1px rgb(16 185 129 / 35%);
}

.ab-status--pending {
  color: rgb(146 64 14);
  background: rgb(255 251 235);
  box-shadow: inset 0 0 0 1.5px rgb(245 158 11 / 55%);
}

.ab-status--rejected {
  color: rgb(153 27 27);
  background: rgb(254 242 242);
  box-shadow: inset 0 0 0 1px rgb(248 113 113 / 45%);
}

.cal-day--vac.cal-day--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgb(240 253 250 / 98%),
    rgb(240 253 250 / 98%) 4px,
    rgb(153 246 228 / 72%) 4px,
    rgb(153 246 228 / 72%) 8px
  );
  box-shadow: inset 0 0 0 2px rgb(13 148 136 / 88%);
}

.cal-day--sick.cal-day--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgb(253 242 248 / 98%),
    rgb(253 242 248 / 98%) 4px,
    rgb(251 207 232 / 72%) 4px,
    rgb(251 207 232 / 72%) 8px
  );
  box-shadow: inset 0 0 0 2px rgb(219 39 119 / 75%);
}

.cal-day--ot.cal-day--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgb(239 246 255 / 98%),
    rgb(239 246 255 / 98%) 4px,
    rgb(191 219 254 / 75%) 4px,
    rgb(191 219 254 / 75%) 8px
  );
  box-shadow: inset 0 0 0 2px rgb(37 99 235 / 85%);
}

.cal-day--pending::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 0.42rem;
  height: 0.42rem;
  border: 1.5px dashed rgb(146 64 14 / 85%);
  border-radius: 999px;
  background: rgb(255 251 235 / 92%);
  pointer-events: none;
}

.cal-root--month .cal-day--pending::after {
  width: 0.48rem;
  height: 0.48rem;
}

.cal-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.cal-month-wrap {
  flex: 1 1 100%;
  width: 100%;
}

.cal-month-hint {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.cal-month-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.cal-month-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 10.5rem;
}

.cal-month-readout {
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.25;
  text-transform: capitalize;
}

.cal-month-arrow {
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0.35rem 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
}

.cal-month-input {
  font: inherit;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  min-width: 10rem;
}

.cal-mode-bar {
  flex-wrap: wrap;
}

.cal-root {
  margin-top: 1rem;
}

.cal-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cal-month-block {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.55rem 0.45rem 0.65rem;
  background: rgb(255 255 255 / 85%);
}

.cal-month-block--compact {
  padding: 0.35rem 0.25rem 0.45rem;
}

.cal-month-title {
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0 0 0.45rem;
  text-align: center;
}

.cal-month-block--compact .cal-month-title {
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-pad {
  min-height: 1px;
}

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.35rem;
  padding: 0.2rem 0.1rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    transform 0.08s;
}

.cal-day:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.cal-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cal-day--compact {
  min-height: 1.65rem;
  padding: 0.08rem 0.05rem;
  font-size: 0.7rem;
}

.cal-day-num {
  font-weight: 600;
  line-height: 1.1;
}

.cal-day--weekend {
  color: var(--muted);
  background: rgb(246 247 249 / 85%);
}

.cal-day--holiday {
  background: rgb(254 252 232 / 92%);
  box-shadow: inset 0 0 0 1px rgb(202 138 4 / 28%);
}

.cal-day--vac {
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgb(236 253 245 / 95%) 100%);
}

.cal-day--sick {
  background: linear-gradient(180deg, rgb(252 231 243 / 95%) 0%, rgb(253 242 248 / 98%) 100%);
}

.cal-day--vac.cal-day--sick {
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgb(252 231 243 / 95%) 100%);
}

.cal-day--ot {
  box-shadow: inset 0 -3px 0 rgb(59 130 246 / 65%);
}

.cal-root--month .cal-single-month-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.co-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
}

.co-cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.co-cal-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%);
}

.co-cal-swatch--c0 {
  background: #0d9488;
}
.co-cal-swatch--c1 {
  background: #2563eb;
}
.co-cal-swatch--c2 {
  background: #db2777;
}
.co-cal-swatch--c3 {
  background: #ca8a04;
}
.co-cal-swatch--c4 {
  background: #7c3aed;
}
.co-cal-swatch--c5 {
  background: #059669;
}
.co-cal-swatch--c6 {
  background: #dc2626;
}
.co-cal-swatch--c7 {
  background: #0891b2;
}
.co-cal-swatch--c8 {
  background: #4f46e5;
}
.co-cal-swatch--c9 {
  background: #c026d3;
}
.co-cal-swatch--c10 {
  background: #65a30d;
}
.co-cal-swatch--c11 {
  background: #ea580c;
}

.cal-day--team {
  cursor: default;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.12rem;
}

.cal-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.2rem;
  width: 100%;
  line-height: 1.1;
}

.cal-day--team-busy {
  min-height: 2.1rem;
}

.cal-root--year .cal-day--team-busy.cal-day--compact {
  min-height: 1.75rem;
}

.cal-team-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  padding: 0 0.05rem 0.1rem;
}

.cal-team-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  padding: 0.06rem 0.2rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: lowercase;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%);
}

.cal-root--month .cal-team-chip {
  font-size: 0.65rem;
  min-width: 1.25rem;
  padding: 0.08rem 0.28rem;
}

.cal-team-chip--legend {
  font-size: 0.62rem;
  min-width: 1.2rem;
}

.cal-team-chip--c0 {
  background: #0d9488;
}
.cal-team-chip--c1 {
  background: #2563eb;
}
.cal-team-chip--c2 {
  background: #db2777;
}
.cal-team-chip--c3 {
  background: #ca8a04;
}
.cal-team-chip--c4 {
  background: #7c3aed;
}
.cal-team-chip--c5 {
  background: #059669;
}
.cal-team-chip--c6 {
  background: #dc2626;
}
.cal-team-chip--c7 {
  background: #0891b2;
}
.cal-team-chip--c8 {
  background: #4f46e5;
}
.cal-team-chip--c9 {
  background: #c026d3;
}
.cal-team-chip--c10 {
  background: #65a30d;
}
.cal-team-chip--c11 {
  background: #ea580c;
}

.cal-team-chip--pending {
  color: rgb(120 53 15);
  background: rgb(255 251 235) !important;
  box-shadow: inset 0 0 0 1.5px rgb(217 119 6 / 75%);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgb(253 230 138 / 55%) 2px,
    rgb(253 230 138 / 55%) 4px
  ) !important;
}

.cal-root--month .cal-day--team-busy {
  min-height: 2.65rem;
}

.cal-root--month .cal-day {
  min-height: 3rem;
  font-size: 1rem;
}

.cal-root--month .cal-weekdays {
  font-size: 0.75rem;
}

.cal-absence-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cal-absence-overlay.hidden {
  display: none;
}

.cal-absence-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 45%);
}

.cal-absence-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  margin: 0;
}

.cal-modal-existing-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
