:root {
  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 6px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;

  /* Radius — alles weicher */
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-xl: 18px;
  --radius-xxl: 24px;
  --radius-full: 9999px;

  /* Colors */
  --color-surface: #ffffff;
  --color-background: #e6f3ff;
  --color-background-Two: #e2e8f0;

  --color-accent: #1a73c8;
  --color-accent-light: #e6f1fb;
  --color-blue-light: #becdff;
  --color-accent-Two: #4f46e5;
  --color-accent-Two-light: #eef2ff;

  --color-darkgray: #374151;
  --color-lightgray: #d1d5db;

  --color-black: #111827;
  --color-dark-blue: #0c1f3d;

  --color-red: #dc2626;
  --color-red-light: #fee2e2;
  --color-orange: #d97706;
  --color-orange-light: #fef3c7;
  --color-green: #059669;
  --color-green-light: #d1fae5;

  /* Font Sizes */
  --size-xxs: 0.625rem;
  --size-xs: 0.75rem;
  --size-s: 0.875rem;
  --size-m: 1rem;
  --size-l: 1.25rem;
  --size-xl: 1.5rem;
  --size-xxl: 2rem;

  /* Font Weights */
  --weight-xs: 300;
  --weight-s: 400;
  --weight-m: 500;
  --weight-l: 600;
  --weight-xl: 700;

  /* Shadows */
  --shadow-One:
    0px 2px 8px rgba(0, 0, 0, 0.08), 0px 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-Two:
    0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-Modal: 0 20px 60px rgba(0, 0, 0, 0.18);

  /* Borders */
  --border-One: solid 1px var(--color-lightgray);
  --border-Two: solid 1px var(--color-accent);
  --border-Three: solid 1px var(--color-red);
  --border-cancel: solid 1px var(--color-red);
  --border-Four: solid 1px var(--color-background-Two);

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 280ms ease;

  /* Layout */
  --header-height: 60px;
  --footer-height: 100px;

  /* Additional Design Tokens for WerkerHeld */
  --color-muted: #6b7280;
  --radius-v2-card: 14px;
  --radius-v2-btn: 10px;
  --radius-v2-avatar: 8px;

  /* Z-Index */
  --standard-index: 1;
  --blur-index: 2000;
  --menu-index: 2100;

  --font-main: "Geist", sans-serif;
  --gap: var(--space-m);

  /* Legacy Compatibility Aliases (Backward compatibility for style.css / old page-css) */
  --color-acent: var(--color-accent);
  --color-acent-Two: var(--color-accent-Two);
  --color-ligthgray: var(--color-lightgray);
  --weigth-xs: var(--weight-xs);
  --weigth-s: var(--weight-s);
  --weigth-m: var(--weight-m);
  --weigth-l: var(--weight-l);
  --weigth-xl: var(--weight-xl);
}

svg {
  fill: currentColor;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

html {
  scrollbar-gutter: stable;
}

body.is-loading {
  /* CSS ist render-blocking → body ist vom ersten Paint an unsichtbar,
     bevor das JS-Modul überhaupt lädt und body.style.opacity='0' setzt.
     Ohne diese Regel: header + cal-sub-header (außerhalb von main) sind
     kurz auf dem #e6f3ff-Hintergrund sichtbar → "Bluescreen-Flicker". */
  opacity: 0 !important;
  overflow: hidden !important;
}

html,
body {
  min-height: 100vh;
  background-color: var(--color-background);
  overflow-x: hidden;
}

a {
  color: inherit !important;
  text-decoration: none;
}

input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
}

.search-bar-v3 {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  background: var(--color-surface);
  border: 1px solid var(--color-background-Two);
  border-radius: var(--radius-l);
  padding: 10px var(--space-l);
}

#search_input {
  font-size: 1.1rem;
  font-weight: var(--weight-m);
  width: 100%;
  color: var(--color-black);
}

#search_input::placeholder {
  font-size: 1.1rem;
  color: var(--color-lightgray);
  opacity: 1;
}

.icon-rigth {
  margin-right: var(--space-m);
}

body {
  background-color: var(--color-background);
  padding-top: var(--header-height);
  padding-bottom: calc(var(--footer-height) + 40px);
  font-family: var(--font-main);
}

header {
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-l);
  z-index: 100;
}

/* WerkerHeld Calendar V2 Components */
.header-v2 {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-background-Two);
  padding: var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-v2__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-v2__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
}

.icon-button-circle {
  background-color: var(--color-background);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Segmented Control */
/* V2 Calendar Sub-Header */
.calendar-sub-header {
  background: var(--color-surface);
  padding: var(--space-l);
  border-bottom: 1px solid var(--color-background-Two);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.calendar-sub-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.month-title {
  font-size: var(--size-m);
  font-weight: var(--weight-xl);
  color: var(--color-black);
  transition: color var(--transition);
  padding: var(--space-xxs) var(--space-m);
  border-radius: var(--radius-s);
}

.month-title:hover {
  color: var(--color-accent);
  background-color: var(--color-background);
}

.month-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition);
  color: #9ca3af;
  cursor: pointer;
}

.month-nav-btn:hover {
  background-color: var(--color-background);
  color: var(--color-accent);
}

.segmented-control {
  background-color: var(--color-background);
  border-radius: var(--radius-m);
  padding: 3px;
  display: flex;
  gap: 2px;
}

.segmented-control__item {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: var(--size-xs);
  font-weight: var(--weight-m);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  cursor: pointer;
  transition: all var(--transition);
}

.segmented-control__item.active {
  background-color: var(--color-surface);
  border-radius: var(--radius-s);
  font-weight: var(--weight-l);
  color: var(--color-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Week Strip */
.week-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-s);
}

.week-strip__nav {
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-scroller-v2 {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  flex: 1;
}

.date-scroller-v2::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  scroll-snap-align: center;
  flex-shrink: 0;
  min-width: 36px;
  cursor: pointer;
  padding: var(--space-xxs);
  border-radius: var(--radius-m);
  transition: background 0.15s ease;
}

.week-day:hover {
  background: var(--color-background);
}

.week-day__label {
  font-size: var(--size-xxs);
  font-weight: var(--weight-m);
  color: var(--color-lightgray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.week-day.active .week-day__label {
  color: var(--color-accent);
}

.week-day__number {
  font-size: var(--size-s);
  font-weight: var(--weight-m);
  color: var(--color-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.week-day.active .week-day__number {
  background-color: var(--color-accent);
  color: white;
  font-weight: var(--weight-xl);
}

.week-day.weekend .week-day__number {
  color: var(--color-lightgray);
}

/* Layout adjusting for header-v2 */
body.has-v2-header {
  padding-top: 140px; /* Adjust based on header content */
}

/* Shift Cards V2 */
.date-label-v2 {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-darkgray);
  margin-top: var(--space-m);
  margin-bottom: var(--space-m);
}

/* Shift Cards V2 */
.shift-card-v2 {
  background-color: var(--color-surface);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  margin-bottom: var(--space-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  box-shadow: var(--shadow-One);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shift-card-v2:active {
  transform: scale(0.985);
}

.shift-card-v2__header {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.shift-card-v2__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-m);
  background: var(--color-accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shift-card-v2__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shift-card-v2__name {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-card-v2__time {
  font-size: var(--size-xs);
  color: var(--color-muted);
}

.shift-card-v2__status {
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status-upcoming {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.status-active {
  background: var(--color-green-light);
  color: var(--color-green);
}

.status-missing {
  background: var(--color-red-light);
  color: var(--color-red);
}

.shift-card-v2__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-left: 48px; /* align with text after avatar */
}

.shift-card-v2__detail {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-size: var(--size-xs);
  color: var(--color-muted);
}

.shift-card-v2__detail svg {
  flex-shrink: 0;
  color: var(--color-lightgray);
}

.avatar-initials {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.shift-card-v2__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.status-badge-v2 {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.status-badge-v2.active {
  background-color: var(--color-green-light);
  color: var(--color-green);
}

.status-badge-v2.pending {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
}

.status-badge-v2.missing {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
}

.status-badge-v2.ended {
  background-color: #e8e8e8;
  color: #6b6b6b;
}

/* Floating View Toggle (Bottom Right) */
.floating-view-toggle {
  position: fixed;
  bottom: 116px;
  right: 16px;
  background-color: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 4px;
  display: flex;
  gap: 2px;
  box-shadow: var(--shadow-Two);
  border: 1px solid var(--color-background-Two);
  z-index: 100;
}

.view-toggle-item {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-toggle-item.active {
  background-color: var(--color-accent);
  color: white;
}

header h3 {
  font-size: var(--size-l);
  font-weight: var(--weight-xl);
  letter-spacing: -0.02em;
}

.container {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.area {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-xxl);
  gap: var(--space-m);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: var(--gap);
  /* padding: var(--space-m); */
  align-items: stretch;
}
.grid-obj-Two {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: var(--space-l);
  box-shadow: var(--shadow-One);
  border-radius: var(--radius-m);
  background-color: var(--color-surface);
  gap: var(--space-xxs);
}
.grid-obj {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: var(--space-l);
  box-shadow: var(--shadow-One);
  border-radius: var(--radius-m);
  background-color: var(--color-surface);
  gap: var(--space-xxs);
}

.icon-wrapper {
  position: absolute;
  right: var(--space-m);
  bottom: var(--space-m);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-s);
  border-radius: var(--radius-m);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-One {
  width: 100%;
  display: flex;
  align-items: center;
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-One);
  /* border removed */
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card-One:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-Two);
}

.card-Two {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-One);
  /* border removed */
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card-Search {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: var(--space-s) var(--space-l);
  background-color: var(--color-surface);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-l);
  box-shadow: var(--shadow-One);
  /* border removed */
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.card-Two-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: var(--space-xxs); */
}
.card-Two-end-area {
  display: flex;
  align-items: center; /* HÃ¤lt den Inhalt (den Pfeil) IN der area vertikal zentriert */
  align-self: stretch;
}

.card-Two:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-Two);
}

.listContainer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ─── Detail Cards (Modernized) ─────────────────────────────────────────── */

.card-Three {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-l);
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-One);
  /* border removed */
}

.profile_picture_area {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-background-Two);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* border removed */
}

.profile_picture {
  width: 85%;
  height: auto;
  object-fit: contain;
}
.span {
  width: fit-content;
}

.profile_info_area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile_info_area h3 {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-black);
}
.profile_info_area h4 {
  font-size: var(--size-xs);
  color: var(--color-muted);
}

.card-Four {
  width: 100%;
  background-color: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-One);
  padding: var(--space-l);
  /* border removed */
}

.card-Four-Header {
  width: 100%;
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--color-background-Two);
  margin-bottom: var(--space-s);
}
.card-Four-Header h3 {
  font-size: var(--size-xxs) !important;
  font-weight: var(--weight-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.card-Four-Elemt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  /* border removed */
  transition: background-color 0.2s ease;
}
.card-Four-Elemt h3 {
  font-size: var(--size-s);
  font-weight: var(--weight-m);
}
.card-Four-Elemt h4 {
  font-size: var(--size-xs);
}

.card-Four-Elemt:last-child {
  border-bottom: none;
}

.card-Four-Elemt[data-modal]:hover {
  cursor: pointer;
  background-color: var(--color-background-Two);
  border-radius: var(--radius-s);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  margin-left: calc(var(--space-s) * -1);
  margin-right: calc(var(--space-s) * -1);
}

.card-Four-Details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-Four-Details.open {
  max-height: 800px;
  opacity: 1;
  padding-top: var(--space-s);
}

.dropdown_arrow {
  transition: transform 0.3s ease;
  transform: rotate(90deg);
}

.dropdown_arrow.rotated {
  transform: rotate(270deg);
}

/* ─── Detail Action Buttons ─────────────────────────────────────────────── */

.button-m {
  width: 48%;
  border-radius: var(--radius-m);
  padding: var(--space-s);
  border: 1px solid var(--color-background-Two);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--space-s);
}

.button-m:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.button-hard {
  border-color: var(--color-red);
  color: var(--color-red);
}

.button-mid {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* ─── Bottom Modal (Swipeable) ─────────────────────────────────────────── */

.bottom-modal {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: 90vh;
  min-height: 50vh;
  background-color: var(--color-background-Two);
  border-top-left-radius: var(--radius-xxl);
  border-top-right-radius: var(--radius-xxl);
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  z-index: var(--menu-index);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-modal-header {
  flex-shrink: 0;
  width: 100%;
  padding: 0 var(--space-l) var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-background-Two);
  position: sticky;
  top: 0;
}

.modal-grabber {
  width: 100%;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}

.modal-grabber:active {
  cursor: grabbing;
}

.modal-grabber::before {
  content: "";
  width: 36px;
  height: 5px;
  background-color: var(--color-lightgray);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease;
}

.modal-grabber:hover::before {
  background-color: var(--color-muted);
}

/* ICONS */
svg {
  fill: currentColor;
}
.icon_accent path {
  fill: var(--color-accent);
}
.icon_green path {
  fill: var(--color-green);
}
.icon_orange path {
  fill: var(--color-orange);
}
.icon_red path {
  fill: var(--color-red);
}
.icon_lGray path {
  fill: var(--color-lightgray);
}
.icon_darkGray path {
  fill: var(--color-darkgray);
}
svg.active {
  fill: var(--color-accent);
}
.circle-white {
  background-color: var(--color-background);
}
.circle {
  padding: var(--space-xs);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  aspect-ratio: 1/1;
  width: fit-content;
  height: fit-content;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.circle:focus,
.circle:focus-visible {
  outline: none;
}
.square {
  padding: var(--space-xs);
  border-radius: var(--radius-m);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  aspect-ratio: 1/1;
  width: fit-content;
  height: fit-content;
}
.circle-blue {
  background-color: var(--color-accent-light);
}
.circle-green {
  background-color: var(--color-green-light);
}
.circle-orange {
  background-color: var(--color-orange-light);
}
.circle-red {
  background-color: var(--color-red-light);
}
.circle-blue-two {
  background-color: var(--color-accent);
}

.circle-white {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
}
.circle-ligthgray {
  background-color: var(--color-background);
}
.icon-xs {
  width: 14px;
  height: 14px;
}
.icon-s {
  width: 18px;
  height: 18px;
}
.icon-m {
  width: 24px;
  height: 24px;
}
.icon-s {
  width: 16px;
  height: 16px;
}
.pointer {
  cursor: pointer;
}
.icon-l {
  width: 32px;
  height: 32px;
}
.icon-xl {
  width: 48px;
  height: 48px;
}

/* Font Size Classes */
h1 {
  font-size: 2.488rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font-main);
}
h2 {
  font-size: 2.074rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: var(--font-main);
}
h3 {
  font-size: 1.728rem;
  line-height: 1.2;
  font-family: var(--font-main);
}
h4 {
  font-size: 1.44rem;
  line-height: 1.3;
  font-family: var(--font-main);
}
h5 {
  font-size: 1.2rem;
  line-height: 1.4;
  font-family: var(--font-main);
}
h6 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: var(--weight-m);
  letter-spacing: -0.01em;
  font-family: var(--font-main);
}

/* Gaps */
.gap-s {
  gap: var(--space-s);
}
.gap-m {
  gap: var(--space-m);
}
.gap-l {
  gap: var(--space-l);
}

/* Fließtext & Hilfsklassen */
.text-base {
  font-size: 1rem;
  line-height: 1.3;
}
.text-small {
  font-size: 0.833rem;
  line-height: 1.5;
}
.text-xs {
  font-size: 0.694rem;
  line-height: 1.5;
}

.max-w-80 {
  max-width: 80%;
}

/* Classes */
.flex {
  display: flex;
  gap: var(--space-m);
}

/* Grids & Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr !important; /* Force 50/50 as requested */
  gap: var(--space-s);
}

.grid-address {
  display: grid;
  grid-template-columns: 1fr 100px !important;
  gap: var(--space-s);
}

.grid-location {
  display: grid;
  grid-template-columns: 100px 1fr !important;
  gap: var(--space-s);
}

/* Reduced padding for entries inside a grid to keep things one-line */
.grid-2 > .input-field,
.grid-address > .input-field,
.grid-location > .input-field {
  padding: var(--space-m) var(--space-m);
}

@media (max-width: 320px) {
  .grid-2,
  .grid-address,
  .grid-location {
    grid-template-columns: 1fr !important;
  }
}

/* colors */
.accent {
  color: var(--color-accent);
  fill: var(--color-accent);
}
.blue {
  color: var(--color-accent) !important;
}
.red {
  color: var(--color-red) !important;
  fill: var(--color-red) !important;
}
.lGray {
  color: var(--color-lightgray) !important;
}
.dark-gray {
  color: color-mix(in srgb, var(--color-darkgray), transparent 40%) !important;
  fill: color-mix(in srgb, var(--color-darkgray), transparent 40%) !important;
}
.dark-blue {
  color: var(--color-dark-blue);
}
.green {
  color: var(--color-green) !important;
}
.orange {
  color: var(--color-orange) !important;
}
.accent-Two {
  color: var(--color-accent-Two);
}
.white {
  color: var(--color-surface);
  fill: var(--color-surface);
  stroke: var(--color-surface);
}

/* Badges & Pills */
.badge-One,
.badge-Two,
.badge-Three,
.badge-emp,
.badge-emp-Two {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  font-size: var(--size-xs);
  font-weight: var(--weight-m);
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

.badge-One {
  background-color: var(--color-green-light);
  color: var(--color-green);
}

.badge-Two {
  background-color: var(--color-orange-light);
  color: var(--color-orange);
}

.badge-Three {
  background-color: var(--color-red-light);
  color: var(--color-red);
}

.badge-emp,
.badge-emp-Two {
  background-color: var(--color-accent);
  color: white;
  min-width: unset;
}

.badge-emp-Two {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

/* --- Redesigned Profile Dropdown --- */
.profile-modal {
  position: absolute;
  top: 66px;
  right: 16px;
  width: 240px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: var(--menu-index);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.profile-modal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-modal.closing {
  opacity: 0;
  transform: translateY(-8px);
}

.profile-block {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 10px;
}

/* --- Selection Modal Cards --- */
.selection-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  padding: 12px !important;
  background: var(--color-surface) !important;
  border: 1.5px solid var(--color-background-Two) !important;
  border-radius: 12px !important;
  margin: 0 16px 12px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
  width: auto !important; /* Allow it to respect margins */
}

.selection-card:hover {
  border-color: var(--color-accent) !important;
  background-color: var(--color-background) !important;
}

.selection-card-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

.selection-card-iconbox {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: var(--color-background) !important;
  border: 1.5px solid var(--color-background-Two) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.option_vehicles .selection-card-iconbox {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.selection-card-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.selection-card-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--color-black) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.selection-card-sub {
  font-size: 11px !important;
  color: var(--color-darkgray) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
  line-height: 1.2 !important;
}

.selection-card-checkbox {
  width: 20px !important;
  height: 20px !important;
  accent-color: var(--color-accent) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.profile-block:hover {
  background-color: #f9fafb;
}

.profile-block:last-child {
  border-bottom: none;
}

/* User Info Block */
.profile-user-info {
  padding: 12px 14px;
  gap: 12px;
  cursor: default;
}

.profile-user-info:hover {
  background: transparent;
}

/* Removed .profile-avatar as it uses the global .avatar system */

.profile-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 11px;
  color: #6b7280;
}

/* Manager Toggle Block */
.profile-manager-toggle {
  justify-content: space-between;
  cursor: default;
}

.profile-manager-toggle:hover {
  background: transparent;
}

.profile-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accent-box {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.gray-box {
  background: var(--color-background);
  color: #6b7280;
}
.red-box {
  background: var(--color-red-light);
  color: var(--color-red);
}

.profile-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
}

.logout-item .profile-label {
  color: var(--color-red);
}

/* Toggle Switch V2 */
.profile-switch {
  position: relative;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.profile-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-slider {
  position: absolute;
  inset: 0;
  background-color: var(--color-lightgray);
  border-radius: 20px;
  transition: 0.18s;
}

.profile-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.18s;
}

.profile-switch input:checked + .profile-slider {
  background-color: var(--color-accent);
}

.profile-switch input:checked + .profile-slider:before {
  transform: translateX(16px);
}

/* --- Avatars --- */
.avatar {
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-s {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.avatar-m {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.avatar-l {
  width: 42px;
  height: 42px;
  font-size: 14px;
}
.avatar-xl {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.avatar-xxl {
  width: 80px;
  height: 80px;
  font-size: 26px;
}

/* ─── Monthly Calendar V2 ────────────────────────────────────────────────── */

.month-view-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fx-slide-up 0.4s ease-out;
}

.month-grid-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.month-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.pill-button-v2 {
  background: #e6f1fb;
  color: #1a73c8;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-button-v2:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.month-grid-v2 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--color-background-Two);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-One);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.month-weekday-label {
  background: white;
  padding: 8px 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
}

.month-weekday-label.weekend {
  color: #d1d5db;
}

/* ==========================================================================
   MODAL V3 SYSTEM (Modern & Premium)
   ========================================================================== */

.modal-v2 {
  background: var(--color-surface);
  border-radius: var(--radius-xxl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-Modal);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  z-index: var(--blur-index);
  width: calc(100% - 32px);
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease;
  pointer-events: none;
}

.modal-v2.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.modal-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-v2-header h2 {
  font-size: var(--size-l);
  font-weight: var(--weight-xl);
  color: var(--color-black);
  margin: 0;
}

.close-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.close-circle-btn:hover {
  background: var(--color-background-Two);
}

.close-circle-btn svg {
  width: 13px;
  height: 13px;
  stroke: var(--color-muted);
  stroke-width: 2.5;
}

.modal-v2-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

#company-as-customer,
#private-as-customer {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

/* --- Input Fields V3 --- */
.input-field {
  background: var(--color-background);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: none;
  transition: var(--transition);
  min-width: 0; /* Ensures it can shrink inside a grid */
}

.input-field:focus-within {
  background: var(--color-surface);
  box-shadow: inset 0 0 0 2px var(--color-accent-light);
}

.input-label {
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field input {
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--size-xs);
  color: var(--color-black);
  font-family: var(--font-main);
  width: 100%;
}

.input-field.narrow {
  padding: var(--space-m) var(--space-s);
}

.input-field input::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

/* --- Chips V3 --- */
.chip-group {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: 4px;
}

.chip {
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-background-Two);
  background: var(--color-surface);
  color: var(--color-darkgray);
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip.active {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chip input[type="radio"] {
  display: none;
}

/* --- Divider V3 --- */
.divider-v3 {
  height: 1px;
  background: var(--color-background-Two);
  margin: var(--space-xs) 0;
  border: none;
}

/* --- Actions V3 --- */
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.btn-cancel {
  padding: var(--space-m);
  border-radius: var(--radius-v2-btn);
  border: var(--border-Four);
  background: var(--color-surface);
  color: var(--color-darkgray);
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel:hover {
  background: var(--color-background);
}

.btn-confirm {
  padding: var(--space-m);
  border-radius: var(--radius-v2-btn);
  border: none;
  background: var(--color-accent);
  color: var(--color-surface);
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-confirm:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(26, 115, 200, 0.3);
}

/* Redundant block removed */

.section-title {
  font-size: var(--size-xxs);
  font-weight: var(--weight-xl);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.month-cell-v2 {
  background: var(--color-surface);
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-s) 0;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.month-cell-v2:hover {
  background: var(--color-background);
}

.month-cell-v2.selected {
  background: var(--color-accent-light);
}

.month-cell-v2.other-month {
  opacity: 0.35;
}

.month-day-num {
  font-size: var(--size-xs);
  font-weight: var(--weight-m);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-darkgray);
  border-radius: 50%;
  transition: all 0.15s ease;
}

.month-cell-v2.weekend .month-day-num {
  color: var(--color-lightgray);
}

.month-cell-v2.today .month-day-num {
  background: var(--color-accent);
  color: white;
  font-weight: var(--weight-xl);
}

.month-day-indicators {
  display: flex;
  gap: 1px;
  height: 3px;
  align-items: center;
  justify-content: center;
}

.month-stripe {
  height: 3px;
  border-radius: 2px;
}

.month-stripe.blue {
  background: #1a73c8;
  opacity: 0.6;
  width: 18px;
}
.month-stripe.orange {
  background: #d97706;
  opacity: 0.7;
  width: 18px;
}
.month-stripe.red {
  background: #dc2626;
  opacity: 0.7;
  width: 18px;
}
.month-stripe.indigo {
  background: #4f46e5;
  opacity: 0.7;
  width: 18px;
}
.month-stripe.green {
  background: #059669;
  opacity: 0.7;
  width: 18px;
}

/* Half width stripes when 2 exist */
.month-day-indicators.multiple .month-stripe {
  width: 8px;
}

/* Day List V2 */
.month-day-list-v2 {
  margin-top: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  animation: fx-slide-up 0.3s ease-out;
}

.month-day-list-title {
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  color: var(--color-darkgray);
  margin-bottom: var(--space-s);
  padding-left: var(--space-xxs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mini-shift-card {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: var(--space-m) var(--space-l);
  display: flex;
  align-items: center;
  gap: var(--space-m);
  box-shadow: var(--shadow-One);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mini-shift-card:active {
  transform: scale(0.985);
}

.mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.mini-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini-name {
  font-size: 10px;
  font-weight: 600;
  color: #111827;
}

.mini-time {
  font-size: 8px;
  color: #6b7280;
}

.status-badge-mini {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}

.status-badge-mini.active {
  background: #d1fae5;
  color: #065f46;
}
.status-badge-mini.pending {
  background: #fef3c7;
  color: #92400e;
}
.status-badge-mini.problem {
  background: #fee2e2;
  color: #991b1b;
}

/* ─── Overlays & Modals ──────────────────────────────────────────────────── */

.overlay-root,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: var(--blur-index);
  transition: opacity var(--transition);
  /* Verhindert Seiten-Scroll wenn ein Modal offen ist */
  overscroll-behavior: contain;
  overflow: hidden;
}

.overlay-root.open,
.modal-overlay.open,
.overlay-root[data-active="true"],
.modal-overlay[data-active="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: var(--color-surface);
  /* border removed */
  border-radius: var(--radius-m);
  width: 92vw;
  max-width: 520px;
  max-height: 90vh;
  box-shadow: var(--shadow-Modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-slow);
}

/* Full-Screen Modal Pattern */
.modal.full-modal {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  transform: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  /* Verhindert Pull-to-Refresh / Overscroll auf iOS & Android */
  overscroll-behavior: contain !important;
  overflow: hidden !important;
}

.modal.full-modal .modal-content {
  flex: 1 !important;
  overflow-y: auto !important;
  /* overscroll-behavior: contain verhindert, dass der Browser beim
     Runterrollen an der Seitenobergrenze ein Page-Reload / Dismiss auslöst */
  overscroll-behavior-y: contain !important;
  height: auto !important;
  min-height: 0 !important;
}

.overlay-root.open .modal,
.modal-overlay.open .modal,
.overlay-root.open .modal-v2,
.modal-overlay.open .modal-v2 {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-background-Two);
}

.modal-content {
  padding: var(--space-m) var(--space-l);
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.modal-footer {
  padding: var(--space-l);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-m);
  border-top: 1px solid var(--color-background-Two);
}

/* --- Bottom Modal (Slide-up) --- */

.bottom-modal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--color-background-Two);
  border-top-left-radius: var(--radius-xxl);
  border-top-right-radius: var(--radius-xxl);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  z-index: var(--menu-index);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  min-height: 50vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.is-desktop .bottom-modal {
  max-width: 520px;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(100%);
}

.is-desktop .bottom-modal[style*="translateY(0%)"] {
  transform: translateX(-50%) translateY(0%) !important;
}

.is-desktop .modal.middle-modal {
  width: 95vw;
  max-width: 580px;
  z-index: 2500;
}

.is-desktop .modal.middle-modal .modal-grabber {
  display: none;
}

.is-desktop .modal.middle-modal {
  background-color: var(--color-surface) !important;
}

.is-desktop .modal.middle-modal .bottom-modal-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-l);
  border-bottom: 1px solid var(--color-background-Two);
  background-color: var(--color-surface);
}

.is-desktop .modal.middle-modal .bottom-modal-header span {
  display: flex;
  align-items: center;
}

.is-desktop .overlay-root {
  z-index: 2500;
}

.modal-grabber {
  width: 100%;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  flex-shrink: 0;
}

.modal-grabber:active {
  cursor: grabbing;
}

.modal-grabber::before {
  content: "";
  width: 36px;
  height: 5px;
  background-color: var(--color-lightgray);
  border-radius: var(--radius-full);
}

.bottom-modal-header {
  padding: 0 var(--space-l) var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--color-background-Two);
  background-color: var(--color-surface);
}

/* --- Legacy UI Utils Ported from style.css --- */
.fx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.fx-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-out,
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
  transform: translateY(-10px);
}

.fx-panel.open {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

.ddpassiv {
  display: flex;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  max-height: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    transform 0.25s ease;
}

.ddpassiv.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 800px;
}

.divider {
  border-top: var(--border-One);
  height: 0px;
  width: 100%;
  margin: var(--space-l) 0px;
}

.divider-small {
  border-top: var(--border-One);
  height: 0px;
  width: 100%;
  margin: var(--space-xxs) 0px;
}

.spacer-m {
  height: var(--space-m);
}
.spacer-l {
  height: var(--space-l);
}

/* --- Specialized Modals --- */

.full-modal {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  background-color: var(--color-background);
}

.preview-modal {
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: none;
}

/* --- Components inside Modals --- */

.selected_items {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: 10px 12px;
  border: 1.5px solid var(--color-background-Two);
  border-radius: var(--radius-m);
  background: var(--color-background);
  width: 100%;
  box-sizing: border-box;
}

.selected_items > div {
  flex: 1;
  min-width: 0;
}

.selected_items h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected_items h6 {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-darkgray);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected_items .avatar {
  flex: none;
  background: var(--color-accent);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.selected_items .end {
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.15s;
}

.selected_items .end:hover {
  opacity: 0.9;
}

.signature-canvas {
  width: 100%;
  height: 120px;
  background: #fdfdfd;
  border: 1px solid var(--color-lightgray);
  border-radius: var(--radius-s);
}

.pr-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  border: 1px solid var(--color-background-Two);
  padding: var(--space-m);
  box-shadow: var(--shadow-One);
}

/* --- Effects & States --- */

.fx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--space-s) 0;
}

.fx-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fx-panel.open {
  max-height: 500px;
  opacity: 1;
  padding-top: var(--space-s);
}

.ddpassiv {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ddpassiv.open {
  max-height: 600px;
  opacity: 1;
}

/* Management Full-Screen Transitions */
#overviewArea,
#mainHeader,
#listArea {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#backToOverview:hover .circle {
  background-color: var(--color-background);
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

#backToOverview h5 {
  transition: color 0.2s ease;
}

#backToOverview:hover h5 {
  color: var(--color-accent);
}

/* ======= LAYOUT STABILIZATION ======= */

main {
  /* No opacity transition here — the body handles the page-reveal fade-in.
     A separate transition on main caused a "blue-screen" flash because
     body (0.18 s) finished before main (0.30 s), exposing the #e6f3ff background. */
  opacity: 1;
}

body.is-loading main {
  opacity: 0;
}

nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: var(--footer-height);
  background-color: var(--color-surface);
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--space-m);
  border-top: var(--border-One);
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
  z-index: 2;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.end {
  margin-left: auto;
  align-self: center;
}

.nav-obj {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1; /* statt width: 100% */
  gap: 4px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-obj:focus,
.nav-obj:focus-visible {
  outline: none;
}

.nav-obj .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* Fallback */
}

nav {
  display: flex;
  justify-content: space-around; /* oder space-evenly */
  align-items: center;
  width: 100%;
}

/* ======= ACTIVITIES & METRICS V3 ======= */

.metric-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  padding: 0 var(--space-l) var(--space-l) var(--space-l);
}

.metric-card-v3 {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  border: var(--border-One);
  padding: var(--space-m) var(--space-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.metric-card-v3.accent {
  border-color: var(--color-accent-light);
}

.metric-value-v3 {
  font-size: var(--size-xs);
  font-weight: var(--weight-xl);
  color: var(--color-black);
}

.metric-value-v3.accent {
  color: var(--color-accent);
}

.metric-label-v3 {
  font-size: 8px;
  font-weight: var(--weight-l);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.activity-track-v3 {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-l) var(--space-xxxl) var(--space-l);
  position: relative;
}

.activity-node-v3 {
  display: flex;
  gap: var(--space-m);
  position: relative;
  padding-bottom: var(--space-l);
}

.activity-node-v3::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: -10px;
  width: 2px;
  background: var(--color-background-Two);
}

.activity-node-v3:last-child::before {
  display: none;
}

.node-dot-v3 {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-background-Two);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-background-Two);
  z-index: 2;
  margin-top: 4px;
  flex-shrink: 0;
}

.node-dot-v3.accent {
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.node-dot-v3.orange {
  background: var(--color-orange);
  box-shadow: 0 0 0 1px var(--color-orange);
}

.activity-content-v3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-time-v3 {
  font-size: var(--size-xxs);
  font-weight: var(--weight-xl);
  color: var(--color-accent);
}

.activity-title-v3 {
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  color: var(--color-black);
}

.activity-detail-v3 {
  font-size: var(--size-xxs);
  color: var(--color-muted);
}

.activity-card-v3 {
  background: var(--color-surface);
  border-radius: var(--radius-s);
  padding: var(--space-s) var(--space-m);
  border: var(--border-One);
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-top: 4px;
}

.activity-icon-v3 {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creation-area {
  background: var(--color-background-Two);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.creation-area__actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.creation-area__actions .btn-confirm {
  flex: 1;
}

.attach-btn-v3 {
  background: var(--color-surface);
  border: var(--border-Four);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.attach-btn-v3:hover {
  background: var(--color-background);
}

/* Empty state */
.empty-state-v3 {
  padding: var(--space-xxxl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
}

.empty-icon-container {
  background: var(--color-background-Two);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

/* Doc entry cards */
.doc-entry-node {
  cursor: pointer;
}

.doc-entry-card {
  background: var(--color-surface);
  border: var(--border-Four);
  padding: var(--space-m);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-s);
}

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

.pulse-running-v3 {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse-v3 2s infinite;
}

@keyframes pulse-v3 {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ======= DATE PICKER V3 ======= */

.date-picker-menu-v3 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: var(--shadow-Modal);
  border-radius: var(--radius-v2-card);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
}

.row-v3 {
  display: flex;
  width: 100%;
}

.row-Two {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-group-v3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label-v3 {
  font-size: var(--size-xxs);
  font-weight: var(--weight-xl);
  color: var(--color-accent);
  padding-left: 4px;
}

.input-field-v3 {
  background: var(--color-background);
  border: 1px solid var(--color-background-Two);
  border-radius: var(--radius-m);
  padding: var(--space-s) var(--space-m);
  font-family: "Geist", sans-serif;
  font-size: var(--size-xs);
  color: var(--color-black);
  outline: none;
  width: 100%;
}

.input-field-v3:focus {
  border-color: var(--color-accent);
}

.btn-v3 {
  padding: var(--space-m);
  border-radius: var(--radius-m);
  font-size: var(--size-s);
  font-weight: var(--weight-xl);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-v3.primary {
  background: var(--color-accent);
  color: white;
}

.btn-v3.primary:active {
  transform: scale(0.97);
  background: var(--color-dark-blue);
}

.btn-v3.reset {
  background: white;
  color: var(--color-red);
  border: 1px solid var(--color-red-light);
}

.btn-v3.reset:active {
  transform: scale(0.97);
  background: var(--color-red-light);
}

.flex-1 {
  flex: 1;
}

/* ======= MODAL FORM V3 ======= */

.form-section-v3 {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.section-header-v3 {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-size: var(--size-xxs);
  font-weight: var(--weight-xl);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.toggle-wrapper-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-background);
  border: 1px solid var(--color-background-Two);
  border-radius: var(--radius-m);
  padding: var(--space-s) var(--space-m);
  height: 42px;
}

.toggle-text-v3 {
  font-size: var(--size-xs);
  color: var(--color-darkgray);
}

.toggle-v3 {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.toggle-v3 input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-v3 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-lightgray);
  transition: 0.3s;
  border-radius: 20px;
}

.slider-v3:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-v3 input:checked + .slider-v3 {
  background-color: var(--color-accent);
}

.toggle-v3 input:checked + .slider-v3:before {
  transform: translateX(14px);
}

.resource-selector-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-background-Two);
  border-radius: var(--radius-v2-card);
  padding: var(--space-m);
  transition: all 0.2s ease;
}

.selector-info-v3 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selector-title-v3 {
  font-size: var(--size-xs);
  font-weight: var(--weight-xl);
  color: var(--color-black);
}

.selector-sub-v3 {
  font-size: var(--size-xxs);
  color: var(--color-muted);
}

.btn-action-v3 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--size-xxs);
  font-weight: var(--weight-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-v3:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-m);
  background: transparent;
  border: 1px dashed var(--color-accent-light);
  border-radius: var(--radius-m);
  color: var(--color-accent);
  font-size: var(--size-xs);
  font-weight: var(--weight-xl);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-v3:hover {
  background: var(--color-accent-light);
  border-style: solid;
}

.btn-outline-v3.full-width {
  width: 100%;
}

.selection-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-s);
  margin-top: var(--space-s);
}

.textarea-v3 {
  width: 100%;
  min-height: 100px;
  background: var(--color-background);
  border: 1px solid var(--color-background-Two);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  font-family: inherit;
  font-size: var(--size-xs);
  color: var(--color-black);
  outline: none;
  resize: vertical;
}

.textarea-v3:focus {
  border-color: var(--color-accent);
}

/* ======= WERKERHELD DESIGN SYSTEM: MODAL REFINEMENT ======= */

.modal-v2 {
  background: var(--color-surface);
  border-radius: var(--radius-xxl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-Modal);
  width: 95vw;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  z-index: 1100;
  transition: all var(--transition-slow);
}

.modal-v2-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-v2.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-v2 #modal-title {
  font-size: var(--size-l) !important;
  font-weight: var(--weight-xl) !important;
  color: var(--color-black) !important;
}

.modal-header-v3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-l);
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--color-background-Two);
}

/* ─── Unified close button ───────────────────────────────── */
.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
  padding: 0;
}

.btn-close:hover {
  background: rgba(0, 0, 0, 0.13);
}

.btn-close svg {
  fill: #374151;
  flex-shrink: 0;
  display: block;
}

.section-header-v3 {
  font-size: var(--size-xxs) !important;
  font-weight: var(--weight-xl) !important;
  color: var(--color-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  margin-bottom: var(--space-s) !important;
  margin-top: var(--space-l) !important;
  opacity: 1 !important;
}

.section-header-v3 svg {
  display: none !important;
}

/* Refined Inputs for Modal */
.input-group-v3-modern {
  background: var(--color-background);
  border-radius: var(--radius-m);
  padding: 12px var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.input-group-v3-modern label {
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  flex-shrink: 0;
}

.input-group-v3-modern input,
.input-group-v3-modern textarea {
  font-size: var(--size-s);
  color: var(--color-black);
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-main);
  width: 100%;
  padding: 4px 0;
  margin: 0;
  display: block;
  min-height: 1.5em;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

/* Toggle Refinement */
.toggle-v3-modern {
  width: 32px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.toggle-v3-modern input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-v3-modern {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-lightgray);
  transition: background 0.2s ease;
  border-radius: var(--radius-full);
}

.slider-v3-modern::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-v3-modern input:checked + .slider-v3-modern {
  background: var(--color-accent);
}

.toggle-v3-modern input:checked + .slider-v3-modern::before {
  transform: translateX(14px);
}

/* Resource Card Refinement */
.resource-card-v3 {
  background: var(--color-background);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-s);
}

.resource-card-info-v3 h6 {
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  color: var(--color-black);
  margin: 0;
}

.resource-card-info-v3 p {
  font-size: var(--size-xxs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* Action Button Refinement */
.btn-assign-v3 {
  background: var(--color-accent);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-m);
  font-size: var(--size-xxs);
  font-weight: var(--weight-l);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-add-project-v3 {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  background: var(--color-accent-light);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  border: none;
  cursor: pointer;
  width: 100%;
}

.dot-icon-v3 {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}

.btn-add-project-v3 span {
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  color: var(--color-accent);
}

/* Modal Footer Refinement */
.modal-footer-v3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.btn-modal-cancel-v3 {
  border: var(--border-Four);
  background: var(--color-surface);
  color: var(--color-darkgray);
  border-radius: var(--radius-v2-btn);
  padding: var(--space-m);
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-modal-submit-v3 {
  background: var(--color-accent);
  border: none;
  color: var(--color-surface);
  border-radius: var(--radius-v2-btn);
  padding: var(--space-m);
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── Hero Components V3 ────────────────────────────────────────────────── */

.card-hero-v3 {
  background: var(--color-surface);
  border-radius: var(--radius-xxl);
  padding: var(--space-xxl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
  box-shadow: var(--shadow-Two);
  /* border removed */
}

.hero-icon-v3 {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-s);
}

.hero-label-v3 {
  font-size: var(--size-xxs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title-v3 {
  font-size: var(--size-l);
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: var(--space-m);
}

.btn-hero-v3 {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-l);
  padding: var(--space-l) var(--space-xxl);
  font-size: var(--size-s);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(26, 115, 200, 0.25);
}

.btn-hero-v3:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(26, 115, 200, 0.2);
}

.btn-hero-v3 svg {
  transition: transform var(--transition);
}

.btn-hero-v3:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   MANAGER DASHBOARD — Shift List Items (Mockup V4)
   ═══════════════════════════════════════════════════════════ */

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-m);
}

.dash-section-header h5 {
  font-size: var(--size-s);
  font-weight: var(--weight-xl);
  color: var(--color-black);
}

.dash-section-link {
  font-size: var(--size-xs);
  font-weight: var(--weight-l);
  color: var(--color-accent);
  cursor: pointer;
  white-space: nowrap;
}

.dash-shift-list {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-One);
}

.dash-shift-item {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
  cursor: pointer;
  transition: background var(--transition);
}

.dash-shift-item + .dash-shift-item {
  border-top: 1px solid #f3f4f6;
}

.dash-shift-item:active {
  background: var(--color-background);
}

.dash-shift-item__times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 38px;
  gap: 2px;
}

.dash-shift-item__time-start {
  font-size: var(--size-s);
  font-weight: var(--weight-xl);
  color: var(--color-black);
  line-height: 1;
}

.dash-shift-item__time-end {
  font-size: var(--size-xxs);
  color: var(--color-muted);
  line-height: 1;
}

.dash-shift-item__bar {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dash-shift-item__bar--green { background: var(--color-green); }
.dash-shift-item__bar--orange { background: var(--color-orange); }
.dash-shift-item__bar--gray { background: var(--color-lightgray); }

.dash-shift-item__content {
  flex: 1;
  min-width: 0;
}

.dash-shift-item__name {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-shift-item__meta {
  font-size: var(--size-xxs);
  color: var(--color-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-shift-badge {
  font-size: 10px;
  font-weight: var(--weight-xl);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-shift-badge--lauft {
  background: var(--color-green-light);
  color: var(--color-green);
}

.dash-shift-badge--verspaetet {
  background: var(--color-orange-light);
  color: var(--color-orange);
}

.dash-shift-badge--geplant {
  background: var(--color-background-Two);
  color: var(--color-muted);
}

/* ─── Wochenstunden tile ─────────────────────────────────── */
.card-hours-glow {
  background: linear-gradient(135deg, #e6f1fb 0%, #d4e8f8 100%);
}

/* ═══════════════════════════════════════════════════════════
   EMPLOYEE HOME — Hero Card (3 states)
   ═══════════════════════════════════════════════════════════ */

/* ─── Employee Greeting (date + title) ──────────────── */
.emp-greeting {
  margin-bottom: 16px;
}

.emp-greeting__date {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.emp-greeting__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ─── Employee Hero Card (3 states) ──────────────────── */
.emp-hero {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.emp-hero--active {
  background: var(--color-accent);
  box-shadow: 0 8px 28px rgba(26, 115, 200, 0.28);
}

.emp-hero--active::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.emp-hero--no-shift {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 18px;
}

/* Status pill — State 1 (active) */
.emp-hero__status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.emp-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.emp-hero__status-label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0;
  text-transform: none;
}

/* Pre-label pill — State 2 (today) */
.emp-hero__pre-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  width: fit-content;
}

.emp-hero__pre-label svg {
  width: 12px; height: 12px;
  fill: var(--color-accent);
}

/* Title + subtitle */
.emp-hero__project {
  font-size: 19px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.emp-hero__project--dark {
  color: var(--color-black);
}

.emp-hero__company {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}

.emp-hero__company--dark {
  color: var(--color-muted);
  margin-bottom: 14px;
}

/* Stats — bordered bar with vertical separators */
.emp-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 0;
  margin-bottom: 14px;
}

.emp-hero--active .emp-hero__stats {
  background: rgba(255,255,255,0.12);
}

.emp-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  /* border removed */
}

.emp-hero--active .emp-hero__stat {
  border-right-color: rgba(255,255,255,0.18);
}

.emp-hero__stat:last-child {
  border-right: none;
}

.emp-hero__stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.emp-hero--active .emp-hero__stat-label,
.emp-hero__stat-label {
  color: var(--color-muted);
}
.emp-hero--active .emp-hero__stat-label {
  color: rgba(255,255,255,0.7);
}
.emp-hero__stat-label--dark {
  color: var(--color-muted) !important;
}

.emp-hero__stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
  letter-spacing: -0.3px;
}

.emp-hero--active .emp-hero__stat-value {
  color: white;
}
.emp-hero__stat-value--dark {
  color: var(--color-black) !important;
}

/* Action buttons — State 1 */
.emp-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.emp-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.emp-hero__btn--checkin {
  background: white;
  color: var(--color-accent);
}
.emp-hero__btn--checkin svg { fill: var(--color-accent); }

.emp-hero__btn--pause {
  background: rgba(255,255,255,0.18);
  color: white;
}
.emp-hero__btn--pause svg { fill: white; }

/* Start button — State 2 */
.emp-hero__start-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.emp-hero__start-btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.emp-hero__start-btn svg {
  width: 13px;
  height: 13px;
  fill: white;
}

/* Countdown alert — State 2 (soon) */
.emp-hero__countdown {
  background: var(--color-orange-light);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.emp-hero__countdown svg {
  width: 14px;
  height: 14px;
  fill: var(--color-orange);
  flex-shrink: 0;
}

.emp-hero__countdown span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-orange);
}

/* No-shift state — heart in circle */
.emp-hero__no-shift-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  margin-bottom: 6px;
}

.emp-hero__no-shift-icon svg {
  width: 26px;
  height: 26px;
  fill: #9ca3af;
}

.emp-hero__no-shift-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black);
}

.emp-hero__no-shift-sub {
  font-size: 13px;
  color: var(--color-muted);
}

/* Next shift — separate card under "Kein Dienst" */
.emp-next-shift {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.emp-next-shift__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.emp-next-shift__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emp-next-shift__info {
  flex: 1;
  min-width: 0;
}

.emp-next-shift__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
}

.emp-next-shift__when {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.emp-next-shift__time {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ─── Employee Home Section headers ──────────────────────── */
.emp-section {
  margin-top: 22px;
}

.emp-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.emp-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.2px;
}

.emp-section__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: none;
}

/* ─── Project / Doc list shared shell ──────────────────────── */
.emp-project-list {
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.emp-project-item,
.emp-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.emp-project-item + .emp-project-item,
.emp-doc-item + .emp-doc-item {
  border-top: 1px solid #f3f4f6;
}

.emp-project-item__icon,
.emp-doc-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-accent-light);
}

.emp-project-item__icon svg,
.emp-doc-item__icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
}

/* Color variants for icon boxes */
.emp-project-item__icon--blue,
.emp-doc-item__icon--blue {
  background: var(--color-accent-light);
}
.emp-project-item__icon--blue svg,
.emp-doc-item__icon--blue svg { fill: var(--color-accent); }

.emp-project-item__icon--orange,
.emp-doc-item__icon--orange {
  background: var(--color-orange-light);
}
.emp-project-item__icon--orange svg,
.emp-doc-item__icon--orange svg { fill: var(--color-orange); }

.emp-project-item__icon--green,
.emp-doc-item__icon--green {
  background: var(--color-green-light);
}
.emp-project-item__icon--green svg,
.emp-doc-item__icon--green svg { fill: var(--color-green); }

.emp-project-item__content,
.emp-doc-item__content {
  flex: 1;
  min-width: 0;
}

.emp-project-item__name,
.emp-doc-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
}

.emp-project-item__meta,
.emp-doc-item__meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Item badges */
.emp-item-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.emp-item-badge--aktiv {
  background: var(--color-green-light);
  color: var(--color-green);
}

.emp-item-badge--geplant {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.emp-item-badge--heute {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.emp-item-badge--offen {
  background: var(--color-orange-light);
  color: var(--color-orange);
}

.emp-item-badge--signiert {
  background: var(--color-green-light);
  color: var(--color-green);
}

/* ─── Empty state card (shared) ──────────────────────────── */
.emp-empty-state {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.emp-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.emp-empty-state__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-accent);
}

.emp-empty-state__icon--blue   { background: var(--color-accent-light); }
.emp-empty-state__icon--blue svg   { fill: var(--color-accent); }
.emp-empty-state__icon--orange { background: var(--color-orange-light); }
.emp-empty-state__icon--orange svg { fill: var(--color-orange); }
.emp-empty-state__icon--green  { background: var(--color-green-light); }
.emp-empty-state__icon--green svg  { fill: var(--color-green); }
.emp-empty-state__icon--gray   { background: #f3f4f6; }
.emp-empty-state__icon--gray svg   { fill: var(--color-muted); }

.emp-empty-state__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.2px;
}

.emp-empty-state__subtitle,
.emp-empty-state__text {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
  max-width: 260px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   MANAGER HOME — Modern stat cards
   ═══════════════════════════════════════════════════════════ */

.mgr-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.mgr-stat {
  position: relative;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.mgr-stat:active {
  transform: scale(0.98);
}

.mgr-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.mgr-stat--blue::after   { background: var(--color-accent); }
.mgr-stat--green::after  { background: var(--color-green); }
.mgr-stat--orange::after { background: var(--color-orange); }
.mgr-stat--purple::after { background: #7c3aed; }

.mgr-stat__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mgr-stat__icon svg {
  width: 19px;
  height: 19px;
}

.mgr-stat__icon--blue   { background: var(--color-accent-light); }
.mgr-stat__icon--blue svg   { fill: var(--color-accent); }
.mgr-stat__icon--green  { background: var(--color-green-light); }
.mgr-stat__icon--green svg  { fill: var(--color-green); }
.mgr-stat__icon--orange { background: var(--color-orange-light); }
.mgr-stat__icon--orange svg { fill: var(--color-orange); }
.mgr-stat__icon--purple { background: #ede9fe; }
.mgr-stat__icon--purple svg { fill: #7c3aed; }

.mgr-stat__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.6px;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.mgr-stat--blue .mgr-stat__value   { color: var(--color-accent); }
.mgr-stat--green .mgr-stat__value  { color: var(--color-green); }
.mgr-stat--orange .mgr-stat__value { color: var(--color-orange); }
.mgr-stat--purple .mgr-stat__value { color: #7c3aed; }

.mgr-stat__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

@media (min-width: 720px) {
  .mgr-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS MODAL — iOS-style list design
   ═══════════════════════════════════════════════════════════ */

.set-content {
  background: var(--color-background);
  padding: 0 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Direkte Kinder dürfen nicht schrumpfen — Höhe nach Inhalt, sonst scrollt der Container */
.set-content > * {
  flex-shrink: 0;
}

/* ── Profile Card ────────────────────────────────────────── */
.set-profile {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.set-profile__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73c8 0%, #4f8de8 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.set-profile__info { flex: 1; min-width: 0; }
.set-profile__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-profile__email {
  font-size: 12.5px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(26,115,200,.09);
  color: #1a73c8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 6px;
}
.set-profile__badge svg { width: 9px; height: 9px; fill: #1a73c8; }

/* Spacing zwischen zwei aufeinanderfolgenden Cards (kein Label dazwischen) */
.set-card + .set-card { margin-top: 8px; }

/* ── Section Label ───────────────────────────────────────── */
.set-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 22px 4px 7px;
}

/* ── Settings Card ───────────────────────────────────────── */
.set-card {
  background: var(--color-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* ── Row ─────────────────────────────────────────────────── */
.set-row {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  gap: 14px;
  border-bottom: 1px solid var(--color-background-Two);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.12s;
}
.set-row:last-child { border-bottom: none; }
.set-row:active { background: var(--color-background); }
.set-row--static { cursor: default; }
.set-row--static:active { background: transparent; }

.set-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.set-row__icon svg { width: 17px; height: 17px; }

.set-row__icon--blue   { background: var(--color-accent-light); }
.set-row__icon--blue   svg { fill: var(--color-accent); }
.set-row__icon--green  { background: var(--color-green-light); }
.set-row__icon--green  svg { fill: var(--color-green); }
.set-row__icon--orange { background: var(--color-orange-light); }
.set-row__icon--orange svg { fill: var(--color-orange); }
.set-row__icon--purple { background: #F3E8FF; }
.set-row__icon--purple svg { fill: #7C3AED; }
.set-row__icon--red    { background: #FEE2E2; }
.set-row__icon--red    svg { fill: var(--color-red); }
.set-row__icon--gray   { background: #F3F4F6; }
.set-row__icon--gray   svg { fill: var(--color-muted); }

.set-row__content { flex: 1; min-width: 0; }
.set-row__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.3;
}
.set-row__sub {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.set-row__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.set-row__value {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}
.set-row__chevron { display: flex; align-items: center; }
.set-row__chevron svg { width: 15px; height: 15px; fill: #CBD5E1; }

/* ── Toggle ──────────────────────────────────────────────── */
.set-toggle {
  width: 46px;
  height: 27px;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.set-toggle--on  { background: var(--color-accent); }
.set-toggle--off { background: #D1D5DB; }
.set-toggle__thumb {
  position: absolute;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: left .2s cubic-bezier(.34,1.2,.64,1);
}
.set-toggle--on  .set-toggle__thumb { left: 22px; }
.set-toggle--off .set-toggle__thumb { left: 3px; }

/* ── Expand (Passwort-Formular / Zeitzone) ───────────────── */
.set-row__expand {
  padding: 16px 18px 20px;
  border-bottom: 1px solid var(--color-background-Two);
  display: none;
  flex-direction: column;
  gap: 12px;
  background: var(--color-surface);
}
.set-row__expand.open { display: flex; }
.set-row__expand .label-field { display: flex; flex-direction: column; gap: 5px; }
.set-row__expand .field-label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--color-muted) !important;
  letter-spacing: 0.01em;
}

/* ── Export: E-Mail-Sektion ──────────────────────────────── */
.set-email-section {
  padding: 14px 18px 10px;
  border-top: 1px solid var(--color-background-Two);
}
.set-email-section__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.set-email-list { display: flex; flex-direction: column; gap: 6px; }
.set-email-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-radius: 10px;
  padding: 10px 13px;
  border: 1.5px solid var(--color-background-Two);
}
.set-email-tag__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.set-email-tag__remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  transition: background .15s;
}
.set-email-tag__remove:active { background: #D1D5DB; }
.set-email-tag__remove svg { width: 10px; height: 10px; fill: var(--color-muted); }

.set-add-email {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  cursor: pointer;
  border-top: 1px solid var(--color-background-Two);
  background: none;
  border-bottom: none; border-left: none; border-right: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  transition: background .12s;
}
.set-add-email:active { background: var(--color-background); }
.set-add-email svg { width: 15px; height: 15px; fill: var(--color-accent); }
.set-add-email__text { font-size: 14px; font-weight: 600; color: var(--color-accent); }

/* ── Timezone option list ────────────────────────────────── */
.set-tz-list {
  display: flex;
  flex-direction: column;
  max-height: 189px;       /* exakt 3 Zeilen à ~63px */
  overflow-y: auto;
  scrollbar-width: none;   /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.set-tz-list::-webkit-scrollbar { display: none; }
.set-tz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-background-Two);
  transition: opacity .12s;
}
.set-tz-opt:last-child { border-bottom: none; }
.set-tz-opt:active { opacity: .6; }
.set-tz-opt__info { flex: 1; min-width: 0; }
.set-tz-opt__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.3;
}
.set-tz-opt__sub {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 1px;
}
.set-tz-opt__check {
  width: 18px; height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.set-tz-opt--selected .set-tz-opt__check  { opacity: 1; }
.set-tz-opt--selected .set-tz-opt__label  { color: var(--color-accent); font-weight: 600; }

/* ── Danger row ──────────────────────────────────────────── */
.set-row--danger .set-row__label { color: var(--color-red); }

/* ── Help badge (?-Chip in Sub-Label) ───────────────────── */
.set-help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-muted);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  margin-right: 1px;
  opacity: .7;
}

/* ── Version footer ──────────────────────────────────────── */
.set-version-text {
  text-align: center;
  font-size: 11.5px;
  color: var(--color-muted);
  padding: 18px 0 6px;
  opacity: 0.65;
}

/* ═══════════════════════════════════════════════════════════
   RECORD PAGE — Abgeschlossen Section
   ═══════════════════════════════════════════════════════════ */

.rec-abgeschlossen-item {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
}

.rec-abgeschlossen-item + .rec-abgeschlossen-item {
  border-top: 1px solid #f3f4f6;
}

.rec-abgeschlossen-item__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-abgeschlossen-item__check svg {
  width: 14px;
  height: 14px;
  fill: var(--color-green);
}

.rec-abgeschlossen-item__content {
  flex: 1;
  min-width: 0;
}

.rec-abgeschlossen-item__name {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-black);
}

.rec-abgeschlossen-item__meta {
  font-size: var(--size-xxs);
  color: var(--color-muted);
  margin-top: 1px;
}

.rec-abgeschlossen-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.rec-abgeschlossen-item__hours {
  font-size: var(--size-s);
  font-weight: var(--weight-xl);
  color: var(--color-black);
}

.rec-stundenzettel-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: var(--weight-l);
  color: var(--color-accent);
  cursor: pointer;
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  border: none;
}

.rec-stundenzettel-btn svg {
  width: 10px;
  height: 10px;
  fill: var(--color-accent);
}

/* ─── Record Arbeitszeit shift item with colored bar ─────── */
.rec-shift-item {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
}

.rec-shift-item__bar {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.rec-shift-item__bar--green { background: var(--color-green); }
.rec-shift-item__bar--orange { background: var(--color-orange); }
.rec-shift-item__bar--blue { background: var(--color-accent); }
.rec-shift-item__bar--gray { background: var(--color-lightgray); }

.rec-shift-item__content {
  flex: 1;
  min-width: 0;
}

.rec-shift-item__name {
  font-size: var(--size-s);
  font-weight: var(--weight-l);
  color: var(--color-black);
}

.rec-shift-item__time {
  font-size: var(--size-xxs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* ─── Timer subtitle uppercase ───────────────────────────── */
.timer-card .timer__subtitle--upper {
  font-size: 9px;
  font-weight: var(--weight-xl);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.timer-card.timer-active .timer__subtitle--upper {
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR PAGE OVERRIDES
   ═══════════════════════════════════════════════════════════ */

body[data-page="calendar"] {
  background-color: var(--color-background);
}

body[data-page="calendar"] .container {
  gap: 0;
  padding: 0;
}

#mgrCalendarDateInfo {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR REDESIGN — Sub-header, Week strip, Shift cards
   ═══════════════════════════════════════════════════════════ */

/* Sub-header */
.cal-sub-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-background-Two);
  padding: 12px 20px 0;
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cal-sub-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-sub-month {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.3px;
}

.cal-sub-header__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* View toggle pills */
.cal-view-toggle {
  display: flex;
  background: #e8edf2;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.cal-toggle-btn {
  flex: 1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.15s;
  background: transparent;
  color: var(--color-muted);
  white-space: nowrap;
}

.cal-toggle-btn.active {
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Nav arrow buttons */
.cal-nav-btns {
  display: flex;
  gap: 4px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8edf2;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-muted);
  flex-shrink: 0;
}

/* Week strip */
.cal-week-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.cal-week-strip::-webkit-scrollbar { display: none; }

.cal-week-days {
  display: flex;
  gap: 4px;
}

/* Day pill */
.cal-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 44px;
  padding: 2px 0;
}

.cal-day-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-day-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  position: relative;
}

.cal-day-pill.active .cal-day-name { color: var(--color-accent); }
.cal-day-pill.active .cal-day-num {
  background: var(--color-accent);
  color: #fff;
}

.cal-day-pill.past .cal-day-num { color: #9CA3AF; }

.cal-day-pill.has-shift .cal-day-num::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}
.cal-day-pill.active.has-shift .cal-day-num::after {
  background: rgba(255,255,255,0.7);
}
.cal-day-pill.past.has-shift .cal-day-num::after {
  background: var(--color-muted);
}

/* Day header row */
.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 8px;
}

.cal-day-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
}

.cal-day-subtitle {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 1px;
}

.cal-schicht-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: #EBF4FF;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Schicht card (white rounded container per day) */
.cal-schicht-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

/* Schicht item row inside card */
.cal-schicht-item {
  display: flex;
  align-items: stretch;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.1s;
}
.cal-schicht-item:last-child { border-bottom: none; }
.cal-schicht-item:active { background: var(--color-background); }

/* Colored left bar */
.cal-schicht-bar {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}
.cal-schicht-bar--active  { background: #16A34A; }
.cal-schicht-bar--planned { background: var(--color-accent); }
.cal-schicht-bar--past    { background: var(--color-muted); }
.cal-schicht-bar--late    { background: #D97706; }

/* Time column */
.cal-schicht-times {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  flex-shrink: 0;
}

.cal-t-start {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
}

.cal-t-sep {
  width: 1px;
  height: 10px;
  background: var(--color-background-Two);
  margin: 3px 0;
}

.cal-t-end {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1;
}

/* Info block */
.cal-schicht-info { flex: 1; min-width: 0; }

.cal-schicht-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cal-schicht-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avatar row */
.cal-schicht-avatars {
  display: flex;
}

.cal-mini-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  margin-right: -6px;
  flex-shrink: 0;
}

.cal-mini-more {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  background: var(--color-background);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-muted);
}

/* Status badge */
.cal-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.cal-badge--active  { background: #DCFCE7; color: #16A34A; }
.cal-badge--planned { background: #EBF4FF; color: var(--color-accent); }
.cal-badge--past    { background: #F3F4F6; color: var(--color-muted); }
.cal-badge--late    { background: #FEF3C7; color: #D97706; }
.cal-badge--stamped { background: #D1FAE5; color: #059669; }

/* Stamped bar color */
.cal-schicht-bar--stamped { background: #10B981; }

/* Orphan (stamped without planned shift) */
.cal-schicht-item--orphan {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
}

/* Stamped time column */
.cal-schicht-times--stamped .cal-t-start,
.cal-schicht-times--stamped .cal-t-end {
  color: #059669;
}
.cal-schicht-times--stamped .cal-t-sep {
  background: #10B981;
}

/* Actual time row (secondary row below planned time in past shifts) */
.cal-actual-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 4px;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 4px;
  width: fit-content;
}
.cal-actual-time svg {
  flex-shrink: 0;
}

/* Month day list header — overrides old uppercase version */
.month-day-list-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-black) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 0 0 var(--space-s) !important;
  margin-bottom: var(--space-s) !important;
}

/* Month grid redesign — dots instead of bars */
body[data-page="calendar"] .month-cell-v2 {
  min-height: 44px;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
  gap: 3px;
}

body[data-page="calendar"] .month-cell-v2:hover {
  background: transparent;
}

body[data-page="calendar"] .month-cell-v2.today .month-day-num {
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body[data-page="calendar"] .month-cell-v2.selected .month-day-num {
  background: #EBF4FF;
  color: var(--color-accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body[data-page="calendar"] .month-day-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page="calendar"] .month-cell-v2.other-month .month-day-num {
  color: var(--color-muted);
  opacity: 0.4;
}

/* Replace old dashes with dots */
body[data-page="calendar"] .month-day-indicators {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 5px;
}

body[data-page="calendar"] .month-stripe {
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--color-accent) !important;
}

body[data-page="calendar"] .month-stripe.red {
  background: #dc2626 !important;
}

/* Month view layout */
body[data-page="calendar"] .month-view-v2 {
  padding: 0 16px;
}

body[data-page="calendar"] .month-grid-v2 {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

body[data-page="calendar"] .month-weekday-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body[data-page="calendar"] .month-day-list-v2 {
  margin-top: 0;
  gap: 0;
}

/* Month detail section */
body[data-page="calendar"] #monthDaySelectedList {
  padding: 0 16px 80px;
}
