/* Schichtübergabe als Modal mit Cards. */

.handover-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 60;
  display: grid; place-items: start center;
  padding: 40px 24px;
  overflow-y: auto;
}
.handover {
  max-width: 760px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  font-family: var(--ui);
}
.handover-head {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 28px 20px;
  background: var(--primary-grad);
  color: #ffffff;
  position: relative;
}
.handover-head .eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.handover-head h1 {
  font-size: 22px; font-weight: 600;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.handover-head .meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; gap: 8px;
}
.handover-head .meta .av-pair { display: inline-flex; align-items: center; gap: 4px; }
.handover-head .meta .av-pair .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 600;
}
.handover-head .close {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #ffffff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  margin-left: auto;
  transition: background-color 120ms ease;
}
.handover-head .close:hover { background: rgba(255, 255, 255, 0.2); }

.handover-sec {
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.handover-sec:last-of-type { border-bottom: 0; }
.handover-sec h2 {
  font-size: 12.5px; font-weight: 700;
  color: var(--primary-2);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.handover-sec h2::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--primary-softer);
  border-radius: var(--radius-1);
  display: inline-block;
}
.handover-sec p {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 6px 0;
}
.handover-sec p .accent { color: var(--bad); font-weight: 500; }
.handover-sec p .mono { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 12.5px; }

.handover-sec .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-3);
  align-items: baseline;
}
.handover-sec .row:last-child { border-bottom: 0; }
.handover-sec .row .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.handover-sec .row .v { font-size: 13.5px; color: var(--ink); }
.handover-sec .row .v .mono { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.handover-sec .row .v .accent { color: var(--bad); font-weight: 500; }

.handover-notes textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: 10px 12px;
  font-family: var(--ui); font-size: 13px;
  resize: vertical;
  background: var(--canvas);
  color: var(--ink);
  min-height: 70px;
  outline: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.handover-notes textarea:focus {
  border-color: var(--primary-3);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-softer);
}

.handover-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 18px 28px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .handover-head, .handover-sec, .handover-foot { padding-left: 18px; padding-right: 18px; }
  .handover-sec .row { grid-template-columns: 1fr; gap: 2px; }
}
