:root {
  /* Spacing */
  --space-xxs: 3px;
  --space-xs: 5px;
  --space-s: 6.5px;
  --space-m: 10px;
  --space-l: 13px;
  --space-xl: 18px;
  --space-xxl: 20px;
  --space-xxxl: 25px;

  /* radius */
  --radius-xs: 2px;
  --radius-s: 3px;
  --radius-m: 5px;
  --radius-l: 10px;
  --radius-xl: 15px;
  --radius-xxl: 20px;

  /* colors */
  --color-surface: #ffffff;
  --color-background: #f6f6f6;
  --color-background-Two: #e5e7eb;
  --color-acent: #4a61ac;
  --color-darkgray: #434343;
  --color-ligthgray: #cccccc;
  --color-black: #000000;
  --color-red: #f53b3b;
  --color-orange: #ffad28;
  --color-green: #166534;
  --color-dark-blue: #0c1f3d;

  /* fontsize */
  --size-xxs: 10px;
  --size-xs: 13px;
  --size-s: 14px;
  --size-m: 16px;
  --size-l: 24px;
  --size-xxl: 36px;

  /* fontweigth */
  --weigth-xs: 200; /*e ligth*/
  --weigth-s: 300; /*ligth*/
  --weigth-m: 500; /*regular*/
  --weigth-l: 500; /*medium*/
  --weigth-xl: 600; /*semi bold*/

  /* Shadows */
  --shadow-One: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  --shadow-Modal: 0 20px 60px rgba(0, 0, 0, 0.25);

  /* Border */
  --border-One: solid 1px var(--color-ligthgray);
  --border-Two: solid 1px var(--color-acent);
  --border-Three: solid 1px var(--color-red);
  --border-cancel: solid 1px var(--color-red);
  --border-Four: solid 1px var(--color-background-Two);

  --header-heigth: 60px;
  --footer-heigth: 100px;

  --standard-index: 1;
  --blur-index: 3;
  --menu-index: 2;
}

/* Icons */
.icon {
  margin-right: var(--space-l);
}
.icon-Two {
  margin-left: var(--space-l);
}
.icon-xl {
  width: 40px;
  height: 40px;
}
.icon-l {
  width: 32px;
  height: 32px;
}
.icon-m {
  height: 25px;
  width: 25px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.icon-s {
  height: 20px;
  width: 20px;
}
.icon-xs {
  height: 15px;
  width: 15px;
}

/* Badges */
.badge-emp {
  display: flex;
  justify-content: center;
  background-color: var(--color-acent);
  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-surface);

  min-width: 90px;
  padding: var(--space-xxs) var(--space-m);
  border-radius: var(--radius-xl);
}
.badge-emp-Two {
  display: flex;
  justify-content: center;
  background-color: var(--color-acent);
  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-surface);

  /* min-width: 90px; */
  padding: var(--space-xxs) var(--space-m);
  border-radius: var(--radius-xl);
}
.badge-One {
  display: flex;
  width: 100px;
  padding: var(--space-xxs) 0px;
  text-align: center;
  justify-content: center;
  align-items: center;

  background-color: #dcfce7;
  border-radius: var(--radius-xl);

  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-green);
}

.badge-Two {
  display: flex;
  width: 100px;
  padding: var(--space-xxs) 0px;
  text-align: center;
  justify-content: center;
  align-items: center;

  background-color: #ffedd5;
  border-radius: var(--radius-xl);

  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-orange);
}

.badge-Three {
  display: flex;
  width: 100px;
  padding: var(--space-xxs) 0px;
  text-align: center;
  justify-content: center;
  align-items: center;

  background-color: #f8c6c6;
  border-radius: var(--radius-xl);

  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-red);
}

/* Dots */
.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.dot-green {
  background-color: var(--color-green);
}
.dot-red {
  background-color: var(--color-red);
}
.dot-orange {
  background-color: var(--color-orange);
}
.dot-blue {
  background-color: var(--color-acent);
}
.dot-dark-blue {
  background-color: var(--color-dark-blue);
}
.dot-gray {
  background-color: var(--color-darkgray);
}

/* Buttons */
.openListBtn {
  padding: var(--space-l);
  background-color: var(--color-surface);
  border: none;
  box-shadow: var(--shadow-One);
}
.btn-confirm {
  width: 120px;
  padding: var(--space-m) var(--space-l);
  background-color: var(--color-green);
  border-radius: var(--radius-l);
  border: none;
}
.btn-cancel {
  width: 120px;
  padding: var(--space-l);
  background-color: var(--color-surface);
  border: var(--border-cancel);
  border-radius: var(--radius-l);
}
.btn-s {
  position: absolute;
  bottom: 93px;
  right: var(--space-l);
  width: 30%;
  background-color: var(--color-acent);
  border-radius: var(--radius-m);
  border: none;
  padding: var(--space-m) 0px;
}
.btn-l {
  width: 90%;
  background-color: var(--color-acent);
  border-radius: var(--radius-m);
  border: none;
  padding: var(--space-m) 0px;
}
.btn-xl {
  width: 90%;
  background-color: #368415;
  border-radius: var(--radius-m);
  border: none;
  padding: var(--space-m) 0px;
}

.button-s {
  width: 20%;
  border-radius: var(--radius-xl);
  border: var(--border-Four);
}
.button-m {
  width: 48%;
  border-radius: var(--radius-xl);
  padding: var(--space-s);
  border: var(--border-Four);
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
}

.button-hard {
  border-color: var(--color-red);
  color: var(--color-red);
}
.button-mid {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* Record */

/* Selects */

/* Labels */
.label-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin-top: var(--space-l);
}
.label-field-Two {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.field-label {
  font-size: var(--size-xxs);
  font-weight: var(--weigth-l);
}

/* Inputs */
.input {
  border: var(--border-One);
  border-radius: var(--radius-m);
  padding: var(--space-m);
}
.input-xs {
  min-width: 26%;
  /* 85px */
}
.input-s {
  width: 31%;
  /* 100px */
}
.input-m {
  width: 47%;
  /* 150px */
}
.input-l {
  width: 57%;
  /* 180px  */
}
.input-xl {
  width: 63%;
  /* 200px */
}
.input-xxl {
  width: 100%;
  /* 315px */
}
.input-note {
  width: 100%;
  height: 50px;
}

.input-card {
  background-color: var(--color-surface);
  border: var(--border-One);
  border-radius: var(--radius-s);
  padding: var(--space-s);
}

.lGray {
  color: var(--color-ligthgray);
}

.dGray {
  color: var(--color-darkgray);
}

.pill {
  border: var(--border-One);
  border-radius: var(--radius-xl);
  padding: var(--space-m) var(--space-l);
}

.noInput {
  display: block;
  border: none;
  height: 100%;
}

.attach-btn {
  width: 40px;
  height: 40px;
  background-image: url("../img/attach.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.notes {
  width: 100%;
  resize: vertical; /* oder: none; */
  white-space: pre-wrap; /* behÃ¤lt manuelle ZeilenumbrÃ¼che */
  overflow-wrap: break-word; /* bricht lange WÃ¶rter um */
}

.text-input-box {
  width: 100%;
  text-align: left;
  padding: var(--space-m);
  border: var(--border-One);
  border-radius: var(--radius-m);
  background-color: var(
    --color-background
  ); /* optional, falls lGrayr das nicht macht */
  min-height: 90px;
}

/* Rest */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Google Sans Flex",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  text-decoration: none;
  list-style: none;
}

body {
  padding-top: var(--header-heigth);
  padding-bottom: var(--footer-heigth);
  background-color: var(--color-background);
}

h1 {
  color: var(--color-black);
  font-size: var(--size-xxl);
  font-weight: var(--weigth-xl);
  width: 100%;
}

h2 {
  color: var(--color-darkgray);
  font-size: var(--size-l);
  font-weight: var(--weigth-xl);
  width: 100%;
}

h3 {
  color: var(--color-darkgray);
  font-size: var(--size-m);
  font-weight: var(--weigth-l);
  line-height: 1;
  width: 100%;
}

h4 {
  font-size: var(--size-xs);
  font-weight: var(--weigth-m);
  color: var(--color-darkgray);
  line-height: 1;
  width: 100%;
}

h5 {
  font-size: var(--size-xs);
  font-weight: var(--weigth-l);
  color: var(--color-darkgray);
  line-height: 1;
  width: 100%;
}

h6 {
  font-size: var(--size-xxs);
  font-weight: var(--weigth-m);
  color: var(--color-darkgray);
  width: 100%;
}

p {
  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-darkgray);
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-heigth);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--space-l);
  border-bottom: var(--border-One);
  border-bottom-left-radius: var(--radius-xs);
  border-bottom-right-radius: var(--radius-xs);
  background-color: var(--color-surface);
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  display: flex;
  justify-content: space-around;
  padding: var(--space-m) 0px;
  border-top: var(--border-One);
  border-top-left-radius: var(--radius-xs);
  border-top-right-radius: var(--radius-xs);
}
.nav-obj {
  display: flex;
  width: min-content;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.header__title {
  justify-self: center;
  margin: 0;
  text-align: center;
}

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.headerText {
  padding: var(--space-xxl) var(--space-l);
}

.gap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}
.gap-l {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
.space-up {
  margin-top: var(--space-l);
}
.space-left {
  margin-left: var(--space-xs);
}
.row {
  display: flex;
  align-items: center;
  text-align: center;
}
.row-Two {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row-Three {
  display: flex;
  align-items: center;
  padding: var(--space-l);
  justify-content: end;
}
.row-Four {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.block {
  width: 100%;
}
.span {
  width: fit-content;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto; /* <- HÃ¶he kommt vom Child (Content) */
  gap: var(--gap);
  align-items: stretch;
  padding: 0px var(--space-s);
}
.grid-Two {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto; /* <- HÃ¶he kommt vom Child (Content) */
  gap: var(--gap);
  align-items: stretch;
  padding: 0px var(--space-s);
}
.grid-obj {
  display: flex;
  padding: var(--space-l);
  margin: var(--space-s) var(--space-s);
  box-shadow: var(--shadow-One);
  border-radius: var(--radius-s);
  align-items: center;
  gap: 13px;
}
.grid-obj-Two {
  display: flex;
  flex-direction: column;
  padding: var(--space-s);
  margin: var(--space-xxs) var(--space-xxs);
  box-shadow: var(--shadow-One);
  border-radius: var(--radius-s);
  gap: var(--space-xxs);
}
.area {
  padding: 0 var(--space-l);
  margin-top: var(--space-xxxl);
  display: flex;
  flex-direction: column;
  gap: 13px;
  height: auto;
}
.listContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  /* max-height: 60vh; */
  height: fit-content;
  overflow-y: auto; /* vertikal scrollbar nur wenn nÃ¶tig */
  overflow-x: hidden;
}
.list-elemt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 12px;
  padding: 13px 14px;
  box-shadow: var(--shadow-One);
  background-color: var(--color-surface);
}
.list-elemt-Two {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 13px 14px;
  box-shadow: var(--shadow-One);
  background-color: var(--color-surface);
  height: fit-content;
}
.list-elemt-Three {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  row-gap: var(--space-m);
  padding: 13px 14px;
  box-shadow: var(--shadow-One);
}
.list-elemt-Three-child {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 12px;
}
.list-elemt-small {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--space-xxs);
  padding: var(--space-xxs);
  box-shadow: none;
}
.list-text-area {
  /* display: flex; */
  align-items: center; /* vertikal zentriert */
  margin-top: auto;
  margin-bottom: auto;
  gap: 3px;
  align-self: stretch;
}
.list-text-area-Two {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.list-end-area {
  display: flex;
  align-items: center; /* HÃ¤lt den Inhalt (den Pfeil) IN der area vertikal zentriert */
  align-self: stretch;
}
.list-elemt-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* statt center */
  padding: var(--space-l) var(--space-l);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
  box-sizing: border-box;
  gap: var(--space-l);
}

.dropdown-detail {
  grid-column: 1 / -1;
  width: 100%;
}

/* Keine Ahnung */
.segmented {
  display: flex;
  gap: var(--space-l);
}
.segmented__item,
.segmented__item-Two {
  position: relative;
  cursor: pointer;
  display: inline-flex;
}

.segmented__item > input,
.segmented__item-Two > input {
  position: absolute;
  inset: 0; /* fÃ¼llt das label */
  opacity: 0; /* unsichtbar */
  margin: 0;
  cursor: pointer; /* optional */
  /* WICHTIG: kein pointer-events: none */
}

.segmented__item > h4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: var(--border-One);
  background: var(--color-surface);
}
.segmented__item-Two > h4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: var(--border-Two);
  background: var(--color-surface);
  color: var(--color-acent);
}

.segmented__item > input:checked + h4 {
  border: var(--border-Two);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-acent) 20%, transparent);
  color: var(--color-acent);
}
.segmented__item-Two > input:checked + h4 {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-acent) 20%, transparent);
  color: var(--color-surface);
  background-color: var(--color-acent);
}

.managment-list-container {
  height: 60vh;
  padding: var(--space-xxl) 0px;
}

.end {
  margin-left: auto;
  align-self: center;
}

.start {
  align-self: start;
}

.card-Three {
  width: 100%;
  display: flex;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
  padding: var(--space-l);
  gap: var(--space-l);
  flex-wrap: nowrap;
}
.card-Four {
  width: 100%;
  height: fit-content;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
  padding: var(--space-l) var(--space-l) 0 var(--space-l);
}
.card-Four-Two {
  width: 100%;
  height: fit-content;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
  padding: var(--space-l) 0;
}

.spacer {
  width: 100%;
  border-top: 1px dashed #ccc;
  padding-top: var(--space-m);
}
.card-Four-Header {
  width: 100%;
  padding-bottom: var(--space-l);
}
.card-Four-Elemt {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-l);
  border-top: var(--border-Four);
  align-items: center;
  padding: var(--space-l) 0;
}
.card-Four-Elemt-Two {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  align-items: center;
  border-top: 1px dashed #ccc;
  padding: var(--space-l) 0;
}
.card-Four-Elemt.padding {
  padding: var(--space-l);
}
.card-Four-Details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease-out,
    opacity 0.3s ease;
  display: flex; /* Bleibt flex, aber Höhe ist 0 */
  flex-direction: column;
  width: 100%;
  padding-left: var(--space-l);
  padding-right: var(--space-l);
}
.card-Four-Details.open {
  max-height: 200px; /* Ein Wert, der sicher größer ist als der Inhalt */
  opacity: 1;
  padding-top: var(--space-l);
}
.dropdown_arrow {
  transition: transform 0.3s ease;
  transform: rotate(90deg);
}
.dropdown_arrow.rotated {
  transition: transform 0.3s ease;
  transform: rotate(270deg);
}
.profile_picture_area {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #e8f1f8;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.05);
}
.profile_picture {
  width: 90%; /* Ein wenig Platz zum Rand lassen für den Look */
  height: auto;
  object-fit: contain;
}
.profile_info_area {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
}

.card {
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-One);
}
.card-header {
  background-color: var(--color-acent);
  padding: var(--space-l);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxs);
}
.card-header-Two {
  padding: var(--space-xxl) 0px;
  gap: var(--space-xs);
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.card-content {
  padding: var(--space-xxl) 0px;
  gap: var(--space-xs);
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.card-content-Two {
  padding: var(--space-m) var(--space-l);
  gap: var(--space-xs);
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.card-footer {
  padding: var(--space-m) 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-footer-Two {
  padding: var(--space-m) var(--space-l);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: auto;
  flex-wrap: wrap;
  border-top: var(--border-One);
}

.card-Two {
  background-color: var(--color-surface);
  border: var(--border-Two);
  border-radius: var(--radius-l);
  padding: var(--space-l);
}
.card-content-Two {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ========= Menus ====== */

.overlay-root,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  z-index: var(--blur-index);
}
.modal {
  background-color: var(--color-surface);
  border: var(--border-Two);
  border-radius: var(--radius-l);
  width: 95vw;
  max-height: 95vh;
  margin: auto;
}
.modal-header {
  display: flex;
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
  padding: var(--space-l);

  /* display: grid; */
  /* grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--space-xs); */
}
.modal-content {
  padding: var(--space-xxl) var(--space-l) var(--space-xxl) var(--space-l);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxl);
  overflow-y: auto;
}
.selected_items {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m);
  border: var(--border-One);
  border-radius: var(--radius-s);
}
.modal-footer {
  background-color: var(--color-surface);
  border-top: var(--border-One);
  border-bottom-left-radius: var(--radius-l);
  border-bottom-right-radius: var(--radius-l);
  padding: var(--space-l);
}

.full-modal {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
}
.full-modal .modal-header {
  border-radius: 0;
  background-color: #1a2a47; /* Dark blue matching Kolonnia design */
  color: #fff;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-l);
}
.full-modal .modal-header h3 {
  color: #fff;
  margin: 0 auto; /* Center title */
}
.full-modal .modal-content {
  /* flex: 1; */
  overflow-y: auto;
  padding: var(--space-s);
  background-color: var(
    --color-background
  ); /* Lighter background behind the card */
}
.full-modal .modal-footer {
  border-radius: 0;
  padding: var(--space-l);
  border-top: none;
  background-color: var(--color-background);
}

/* --- Signature Pad / Performance Record Modal Specific --- */
.pr-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-One);
  border: var(--border-One);
  padding: var(--space-m);
  margin-bottom: var(--space-m);
}
.pr-info-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: var(--border-One);
}
.pr-info-row:last-child {
  border-bottom: none;
}
.pr-info-row .icon-s {
  opacity: 0.7;
}

.signature-canvas {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-s);
  display: block;
}
.signature-line {
  position: absolute;
  bottom: 20px;
  left: 5%;
  width: 90%;
  border-bottom: 1px solid #ccc;
  z-index: 0;
}
.signature-canvas {
  position: relative;
  z-index: 1; /* Above the line */
}

.pr-input-group label {
  display: block;
  font-size: var(--size-xs);
  color: var(--color-darkgray);
  margin-bottom: var(--space-xxs);
}
.pr-input-group input {
  width: 100%;
  border: var(--border-One);
  border-radius: var(--radius-xs);
  padding: var(--space-s);
  font-size: var(--size-s);
}

.btn-primary-full {
  width: 100%;
  background-color: #2b5597; /* Match Kolonnia primary button blue */
  color: #fff;
  border: none;
  border-radius: var(--radius-s);
  padding: var(--space-m);
  font-size: var(--size-s);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

/* Der Container für den Grabber (macht das Klicken einfacher) */
.modal-grabber {
  width: 100%;
  height: 30px; /* Große Klickfläche */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0; /* Verhindert, dass der Grabber gestaucht wird */
}

/* Der eigentliche Balken */
.modal-grabber::before {
  content: "";
  width: 40px;
  height: 5px;
  background-color: #ccc; /* Dezentes Grau */
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

/* Kleiner Effekt beim Drüberfahren */
.modal-grabber:hover::before {
  background-color: #999;
}

.bottom-modal {
  max-height: 90vh;
  height: auto;
  min-height: 70vh;
  width: 100%;
  background-color: var(--color-background-Two);
  border-top-left-radius: var(--radius-xxl);
  border-top-right-radius: var(--radius-xxl);

  position: absolute;
  bottom: 0;

  display: flex;
  flex-direction: column;
  overflow-y: hidden;

  padding-bottom: var(--space-l);
  transform: translateY(100%); /* Startet auÃŸerhalb des Bildschirms */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-modal-header {
  flex-shrink: 0;
  width: 100%;
  padding: 0 var(--space-xxl) var(--space-xxl) var(--space-xxl);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
  box-shadow: var(--shadow-One);
  position: sticky;
  /* background-color: var(--color-surface);
  border-top-left-radius: var(--radius-xxl);
  border-top-right-radius: var(--radius-xxl);
  padding: var(--space-xxl);
  border: var(--border-One); */
}

.element {
  padding: var(--space-l);
  border-top: var(--border-One);
  box-shadow: var(--shadow-One);
}

/* ========== Others ============ */

.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: 500px; /* Adjust based on content size or use JS for dynamic height */
  opacity: 1;
  transform: translateY(0);
}

.fx-toggle .fx-icon {
  transition: transform 0.18s ease;
  opacity: 0.7;
}

.fx-toggle[data-open="1"] .fx-icon {
  transform: rotate(90deg);
}

.fx-expand {
  display: none;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background-color: #d1d5db; /* grau */
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.list-elemt-edit-small {
  padding: var(--space-m);
}

.embedded_project_row {
  background-color: var(--color-surface);
}

.timeline-list {
  position: relative; /* EXTREM WICHTIG: Die Basis fÃ¼r die absolute Linie */
  list-style: none; /* Versteckt die Standard-Listenpunkte */
  padding: 0;
  width: 100%;
  /* margin: 20px; */
}

/* 2. DIE SENKRECHTE LINIE */
.timeline-list::before {
  content: "";
  position: absolute;
  top: 15px; /* Startet etwas weiter unten, passend zum ersten Punkt */
  bottom: 15px; /* Endet etwas vor dem Schluss */
  left: 19px; /* macht abstand l oder so plus Radius vom Kreis - widht*/
  width: 2px; /* Dicke der Linie */
  background-color: var(--color-acent); /* Farbe der Linie */
  z-index: 1; /* Legt die Linie in den Hintergrund */
}

/* 3. Die einzelnen Zeilen */
.timeline-entry {
  display: flex; /* Setzt Punkt und Text nebeneinander */
  margin-bottom: 15px; /* Abstand zwischen den Schichten */
  width: 100%;
  position: relative;
  align-items: start;
  z-index: 2; /* Legt die Zeile (und den Punkt) ÃœBER die Linie */
  padding: var(--space-l);
  gap: var(--space-l);
}
/* ======= EFFECTS ======== */
.rotate-90 {
  transform: rotate(90deg);
}

.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: 500px;
}
.next-day-border {
  border: var(--border-Three);
  box-shadow: none;
}
/* aktiv */
.toggle input:checked + .slider {
  background-color: #2563eb; /* dezentes blau */
}

.toggle input:checked + .slider::before {
  transform: translateX(18px);
}

.noStyle {
  border: none;
  background-color: transparent;
}
.passiv {
  display: none;
}
.nowrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row;
  white-space: nowrap !important;
  width: fit-content !important;
}

.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;
}

.warn-One {
  color: var(--color-red);
}

.warn-Two {
  color: var(--color-orange);
}

.black {
  color: var(--color-black);
}
.blue {
  color: var(--color-acent);
}
.dark-blue {
  color: var(--color-dark-blue);
}
.lGray,
.lGray::placeholder {
  color: var(--color-ligthgray);
  opacity: 1;
}
.dGray {
  color: var(--color-darkgray);
}
.white {
  color: var(--color-surface);
}
.red {
  color: var(--color-red);
}
.orange {
  color: var(--color-orange);
}
.noshadow {
  box-shadow: none;
}
.nopadding {
  padding: 0px;
}
.nomargin {
  margin: 0px;
}
.flex {
  display: flex;
  /* width: fit-content; */
}
.no-color {
  color: transparent;
  background-color: transparent;
}
[hidden] {
  display: none !important;
}

/* ===== Empty State ===== */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-xxl) var(--space-l);
  background-color: var(--color-surface);
  border: var(--border-One);
  border-style: dashed;
  border-radius: var(--radius-l);
  text-align: center;
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-background);
  margin-bottom: var(--space-xs);
}

.empty-state-title {
  font-size: var(--size-s);
  font-weight: var(--weigth-l);
  color: var(--color-darkgray);
}

.empty-state-sub {
  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
  color: var(--color-ligthgray);
  max-width: 220px;
}

/* ===== Calendar List View ===== */

.calendar-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
}

.calendar-toggle {
  display: flex;
  background-color: var(--color-acent);
  border-radius: var(--radius-m);
  padding: var(--space-xxs);
  width: 100%;
}

.calendar-toggle-btn {
  flex: 1;
  padding: var(--space-xs) 0;
  text-align: center;
  border-radius: var(--radius-s);
  font-size: var(--size-s);
  font-weight: var(--weigth-m);
  color: var(--color-surface);
  cursor: pointer;
  border: none;
  background: transparent;
}

.calendar-toggle-btn.active {
  background-color: var(--color-surface);
  color: var(--color-acent);
}

.date-scroller-container {
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
  padding: var(--space-m) 0;
  border-bottom: var(--border-One);
}

.date-scroll-arrow {
  padding: 0 var(--space-l);
  cursor: pointer;
  opacity: 0.5;
}

.date-scroll-arrow:active {
  opacity: 1;
}

.date-scroller {
  display: flex;
  overflow-x: auto;
  flex: 1;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  align-items: center;
}
.date-scroller::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Date Picker Animations */
.date-picker-menu {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  pointer-events: none;
}

.date-picker-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: var(--space-xs) 0;
  cursor: pointer;
  border-radius: var(--radius-s);
}

.date-item.active {
  background-color: #e2e8f0; /* Light blue/gray background for active day, matching mockup */
}

.date-item-day {
  font-size: var(--size-l);
  font-weight: var(--weigth-m);
  color: var(--color-darkgray);
}

.date-item-weekday {
  font-size: var(--size-xxs);
  font-weight: var(--weigth-s);
  color: var(--color-darkgray);
}

.date-item.active .date-item-day,
.date-item.active .date-item-weekday {
  color: var(--color-acent);
  font-weight: var(--weigth-l); /* optional: a bit bolder */
}

.calendar-shift-info {
  margin-top: var(--space-xl);
  padding: 0 var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}

.calendar-shift-date {
  font-size: var(--size-m);
  font-weight: var(--weigth-m);
  color: var(--color-darkgray);
}

.calendar-shift-time {
  font-size: var(--size-s);
  font-weight: var(--weigth-s);
  color: var(--color-darkgray);
}

/* The outer card for a shift in the calendar */
.calendar-card {
  margin: var(--space-l);
  background-color: var(--color-surface);
  border: var(--border-Two); /* Blue border from mockup */
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-One);
  overflow: hidden;
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-m) var(--space-l);
  border-bottom: var(--border-One);
}

.calendar-card-time {
  font-size: var(--size-m);
  font-weight: var(--weigth-m);
  color: var(--color-acent); /* Blue text */
}

.calendar-card-status {
  background-color: #f1f5f9;
  color: var(--color-ligthgray);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: var(--size-xs);
  font-weight: var(--weigth-s);
}

.calendar-segment-list {
  display: flex;
  flex-direction: column;
}

.calendar-segment-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-m);
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
  align-items: center; /* Center horizontally with next arrow */
}

.calendar-segment-item:last-child {
  border-bottom: none;
}

.calendar-segment-line {
  width: 2px;
  background-color: var(--color-ligthgray);
  height: 100%;
  margin: 0 auto;
  border-radius: 2px;
}

.calendar-segment-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-segment-time {
  font-size: var(--size-xs);
  color: var(--color-ligthgray);
}

.calendar-segment-title {
  font-size: var(--size-s);
  font-weight: var(--weigth-m);
  color: var(--color-darkgray);
}

.calendar-segment-address {
  font-size: var(--size-xs);
  color: var(--color-ligthgray);
}

/* ===== Manager Calendar ===== */

.mgr-cal-toggle-bar {
  padding: var(--space-l);
  background-color: var(--color-surface);
  border-bottom: var(--border-One);
}

.mgr-cal-date-info {
  padding: var(--space-l) var(--space-l) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}

.mgr-cal-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.mgr-cal-shift-card {
  background-color: var(--color-surface);
  border: var(--border-Two);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.mgr-cal-shift-card.problem {
  border-color: var(--color-red);
}

.mgr-cal-shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-m) var(--space-l);
  border-bottom: var(--border-One);
}

.mgr-cal-shift-body {
  padding: var(--space-m) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mgr-cal-warning {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-m);
  padding: var(--space-xs) var(--space-m);
  background-color: #fff5f5;
  border-radius: var(--radius-m);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP RESPONSIVE (UX Perfect Edition)
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  :root {
    --sidebar-width: 240px;
    --footer-heigth: 0px;
    --shell-bg: #f8fafc; /* Hellgrauer Canvas */
    --shell-shadow:
      0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  }

  /* ── Body (Canvas) ── */
  body {
    background-color: var(--shell-bg);
    padding-left: var(--sidebar-width);
    padding-bottom: 0;
    min-height: 100vh;
  }

  /* ── Content Shell (Surface) ── */
  .container {
    background-color: var(--color-surface);
    width: 95%;
    max-width: 1000px;
    min-height: 100vh;
    margin: 0 auto;
    padding: var(--space-xxxl);
    box-shadow: var(--shell-shadow);
  }

  /* ── Header Refinement (Floating Shell) ── */
  header {
    position: sticky;
    top: var(--space-m);
    width: 95%;
    max-width: 1000px;
    margin: var(--space-m) auto var(--space-m) auto;
    padding: var(--space-m) var(--space-xxxl);
    background-color: var(--color-surface);
    border: var(--border-One);
    border-radius: var(--radius-l);
    z-index: 100;
    box-shadow: var(--shell-shadow);
    display: flex;
    justify-content: space-between; /* title left, actions right */
    align-items: center;
  }

  .header__left {
    display: none; /* Hide mobile centering spacer */
  }

  .header__title {
    font-size: var(--size-l);
    flex-grow: 1; /* Allow title to take space */
    text-align: left;
  }

  .header__actions {
    display: flex;
    gap: var(--space-l);
  }

  /* ── Sidebar Navigation ── */
  nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-xxl) 0;
    border-top: none;
    border-right: var(--border-One);
    background-color: var(--color-surface);
    z-index: 1000;
  }

  .nav-obj {
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    padding: var(--space-l) var(--space-xxl);
    gap: var(--space-m);
    transition: all 0.2s ease;
  }

  /* Active Indicator */
  .nav-obj[href*="-active"],
  .nav-obj .blue {
    background-color: #f1f5f9;
  }

  .nav-obj[href*="-active"]::before,
  .nav-obj:has(.blue)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background-color: var(--color-acent);
    border-radius: 0 4px 4px 0;
  }

  .nav-obj:hover {
    background-color: #f8fafc;
  }

  .nav-obj h4 {
    font-size: var(--size-s);
    font-weight: var(--weigth-m);
  }

  /* ── Search Bar Constrainment ── */
  .card-Two {
    max-width: 600px;
    margin: var(--space-xl) auto;
    border: var(--border-One);
    box-shadow: none;
    background-color: #f8fafc;
  }

  #search_input {
    width: 100%;
  }

  /* ── Grids & Areas ── */
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-l);
    padding: var(--space-xl) 0;
  }

  .area {
    margin-top: var(--space-xxxl);
  }

  /* ── Listen (Hover & Style) ── */
  .list-elemt,
  .list-elemt-Two {
    border: var(--border-One);
    box-shadow: none;
    border-radius: var(--radius-m);
    padding: var(--space-l);
    transition: all 0.2s ease;
  }

  .list-elemt:hover,
  .list-elemt-Two:hover {
    background-color: #f8fafc;
    border-color: var(--color-acent);
    transform: translateY(-1px);
  }

  /* ── Modals (Perfect Centering) ── */
  .modal {
    width: 600px;
    max-width: 90vw;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    overflow-y: hidden;
  }

  .bottom-modal {
    position: relative;
    bottom: auto;
    max-width: 600px;
    width: 600px;
    margin: 5vh auto;
    transform: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  }

  .overlay-root,
  .modal-overlay {
    backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── Calendar Grid (Employee) ── */
  .calendar-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-l);
    margin-top: var(--space-xl);
  }

  /* ── Badges ── */
  .badge-One,
  .badge-Two,
  .badge-Three {
    width: auto;
    padding: 4px 16px;
    font-size: var(--size-xs);
  }
}

.flex-child {
  flex: 1;
  height: 5px;
}

/* ── Full Desktop (≥1200px) ───────────────────────────────────────────────── */

@media (min-width: 1200px) {
  :root {
    --sidebar-width: 280px;
  }

  .container {
    max-width: 1100px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .calendar-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-obj h4 {
    font-size: var(--size-m);
  }
}

/* Monthly Calendar Grid */
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--color-ligthgray);
  border: var(--border-One);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: var(--space-m) 0;
}

.calendar-day-header {
  background-color: var(--color-background-Two);
  padding: var(--space-s);
  text-align: center;
  font-weight: var(--weigth-xl);
  font-size: var(--size-xxs);
  color: var(--color-darkgray);
}

.calendar-day-cell {
  background-color: var(--color-surface);
  aspect-ratio: 1;
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-day-cell:hover {
  background-color: #f0f4ff;
}

.calendar-day-cell.other-month {
  background-color: #fafafa;
  color: var(--color-ligthgray);
}

.calendar-day-cell.today {
  border: 2px solid var(--color-acent);
}

.calendar-day-number {
  font-size: var(--size-s);
  font-weight: var(--weigth-m);
}

.calendar-work-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--color-acent);
  border-radius: 50%;
  margin-top: 4px;
}

.calendar-view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-m);
}
