:root {
  --ink: #13293f;
  --muted: #60758d;
  --line: #cfd9e6;
  --surface: #ecf2f8;
  --paper: #ffffff;
  --cold-900: #070d15;
  --cold-800: #0b1624;
  --cold-700: #11253b;
  --cold-600: #1f3d5b;
  --cold-500: #2f5c86;
  --mint-400: #8ec7d4;
  --ice-300: #c8dbe8;
  --aoc-night: #111518;
  --aoc-cyan: #5ac0ce;
  --aoc-cyan-soft: rgba(90, 192, 206, 0.2);
  --aoc-white-soft: rgba(255, 255, 255, 0.12);
  --aoc-white-line: rgba(255, 255, 255, 0.34);
}

html,
body {
  height: 100%;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
}

.bg-aoc-fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

.admin-sidebar-logo {
  height: 32px;
}

.chat-badge {
  font-size: 0.6rem;
}

.chat-modal-dialog {
  max-width: 420px;
}

.chat-messages-container {
  min-height: 200px;
  max-height: 55vh;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.area-user {
  background:
    linear-gradient(180deg, rgba(7, 13, 21, 0.84), rgba(10, 20, 34, 0.78)),
    radial-gradient(circle at 10% -10%, rgba(142, 199, 212, 0.16), transparent 42%),
    url('/assets/img/cryo-bg-1.jpg') center/cover fixed no-repeat;
  min-height: 100vh;
}

/* ── User-Area: Heller Text auf dunklem Hintergrund ── */
.area-user .site-main,
.area-user .site-main h1,
.area-user .site-main h2,
.area-user .site-main h3,
.area-user .site-main h4,
.area-user .site-main h5,
.area-user .site-main h6,
.area-user .site-main p,
.area-user .site-main label,
.area-user .site-main th,
.area-user .site-main td {
  color: #e9f4fb;
}

.area-user .site-main .card,
.area-user .site-main .table,
.area-user .site-main .table th,
.area-user .site-main .table td {
  color: #e9f4fb;
}

.area-user .site-main .card strong,
.area-user .site-main .card b {
  color: #f0f9ff;
}

.area-user .site-main .text-muted {
  color: rgba(226, 236, 247, 0.7) !important;
}

.area-user .site-main .card .text-muted,
.area-user .site-main .table .text-muted {
  color: rgba(218, 234, 246, 0.82) !important;
}

.area-user .site-main .form-label,
.area-user .site-main .form-check-label {
  color: #e9f4fb;
}

.area-user .site-main .form-control,
.area-user .site-main .form-select,
.area-user .site-main textarea.form-control {
  background: rgba(8, 17, 29, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef7fd;
}

.area-user .site-main .form-control::placeholder,
.area-user .site-main .form-select::placeholder,
.area-user .site-main textarea.form-control::placeholder {
  color: rgba(225, 240, 248, 0.62);
}

.area-user .site-main .form-control:focus,
.area-user .site-main .form-select:focus,
.area-user .site-main textarea.form-control:focus {
  border-color: #5ac0ce;
  box-shadow: 0 0 0 0.2rem rgba(90, 192, 206, 0.22);
}

.area-user .list-group-item {
  background-color: rgba(12, 24, 39, 0.74);
  color: #e9f4fb;
  border-color: rgba(255, 255, 255, 0.12);
}
.area-user .list-group-item-action:hover,
.area-user .list-group-item-action:focus {
  background-color: rgba(31, 61, 91, 0.8);
  color: #f0f9ff;
}

.area-user .alert-success {
  --bs-alert-bg: rgba(15, 50, 30, 0.85);
  --bs-alert-border-color: rgba(40, 167, 69, 0.4);
  --bs-alert-color: #75e6a0;
}

.area-user .alert-warning {
  --bs-alert-bg: rgba(60, 42, 5, 0.85);
  --bs-alert-border-color: rgba(255, 193, 7, 0.4);
  --bs-alert-color: #ffd966;
}

.area-user .alert-danger {
  --bs-alert-bg: rgba(50, 10, 15, 0.85);
  --bs-alert-border-color: rgba(220, 53, 69, 0.4);
  --bs-alert-color: #f08090;
}

.area-user .alert-info {
  --bs-alert-bg: rgba(10, 40, 55, 0.85);
  --bs-alert-border-color: rgba(90, 192, 206, 0.4);
  --bs-alert-color: #5ac0ce;
}

.area-user .alert-secondary {
  --bs-alert-bg: rgba(30, 40, 55, 0.85);
  --bs-alert-border-color: rgba(140, 155, 170, 0.4);
  --bs-alert-color: #b0c4d8;
}

.area-user .form-text {
  color: rgba(180, 200, 220, 0.75);
}

.area-user .site-main .modal-content {
  background: rgba(10, 20, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e9f4fb;
}

.area-user .site-main .modal-header,
.area-user .site-main .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.area-user .site-main .btn-close {
  filter: invert(1) grayscale(1);
}

.area-admin {
  background:
    linear-gradient(180deg, #0a131f 0%, #0e1a29 100%);
  min-height: 100vh;
}

.area-admin .site-main,
.area-admin .site-main h1,
.area-admin .site-main h2,
.area-admin .site-main h3,
.area-admin .site-main h4,
.area-admin .site-main h5,
.area-admin .site-main h6,
.area-admin .site-main p,
.area-admin .site-main label,
.area-admin .site-main th,
.area-admin .site-main td {
  color: #e9f4fb;
}

.area-admin .site-main .card,
.area-admin .site-main .table,
.area-admin .site-main .table th,
.area-admin .site-main .table td {
  color: #e9f4fb;
}

.area-admin .site-main .card strong,
.area-admin .site-main .card b {
  color: #f0f9ff;
}

.area-admin .site-main .text-muted {
  color: rgba(227, 239, 248, 0.82) !important;
}

.area-admin .site-main .card .text-muted,
.area-admin .site-main .table .text-muted {
  color: rgba(218, 234, 246, 0.82) !important;
}

.area-admin .site-main .form-label,
.area-admin .site-main .form-check-label {
  color: #e9f4fb;
}

.area-admin .site-main .card .form-label,
.area-admin .site-main .table .form-label,
.area-admin .site-main .card .form-check-label,
.area-admin .site-main .table .form-check-label {
  color: #e9f4fb;
}

.area-admin .site-main .form-control,
.area-admin .site-main .form-select,
.area-admin .site-main textarea {
  background: rgba(8, 17, 29, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef7fd;
}

.area-admin .site-main .form-control::placeholder,
.area-admin .site-main .form-select::placeholder,
.area-admin .site-main textarea::placeholder {
  color: rgba(225, 240, 248, 0.62);
}

.area-admin .site-main .form-control:focus,
.area-admin .site-main .form-select:focus,
.area-admin .site-main textarea:focus {
  border-color: #5ac0ce;
  box-shadow: 0 0 0 0.2rem rgba(90, 192, 206, 0.22);
}

.area-admin .site-main .card {
  background: rgba(10, 20, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.area-admin .site-main .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e9f4fb;
}

.area-admin .site-main .table-light,
.area-admin .site-main .table-light > th,
.area-admin .site-main .table-light > td {
  background-color: rgba(21, 38, 58, 0.95) !important;
  color: #f3fbff !important;
}

.area-admin .list-group-item {
  background-color: rgba(12, 24, 39, 0.74) !important;
  color: #e9f4fb !important;
  border-color: rgba(255, 255, 255, 0.12);
}

.area-admin .list-group-item-action:hover,
.area-admin .list-group-item-action:focus {
  background-color: rgba(31, 61, 91, 0.8) !important;
  color: #f0f9ff !important;
}

.area-admin .alert-success {
  --bs-alert-bg: rgba(15, 50, 30, 0.85);
  --bs-alert-border-color: rgba(40, 167, 69, 0.4);
  --bs-alert-color: #75e6a0;
}

.area-admin .alert-warning {
  --bs-alert-bg: rgba(60, 42, 5, 0.85);
  --bs-alert-border-color: rgba(255, 193, 7, 0.4);
  --bs-alert-color: #ffd966;
}

.area-admin .alert-danger {
  --bs-alert-bg: rgba(50, 10, 15, 0.85);
  --bs-alert-border-color: rgba(220, 53, 69, 0.4);
  --bs-alert-color: #f08090;
}

.area-admin .alert-info {
  --bs-alert-bg: rgba(10, 40, 55, 0.85);
  --bs-alert-border-color: rgba(90, 192, 206, 0.4);
  --bs-alert-color: #5ac0ce;
}

.area-admin .alert-secondary {
  --bs-alert-bg: rgba(30, 40, 55, 0.85);
  --bs-alert-border-color: rgba(140, 155, 170, 0.4);
  --bs-alert-color: #b0c4d8;
}

.area-admin .form-text {
  color: rgba(180, 200, 220, 0.75);
}

/* Dark-Theme Autocomplete/Dropdown overrides */
.area-admin .list-group-item,
.area-user .list-group-item {
  background-color: var(--cold-700, #1a2332);
  color: #e0ecf5;
  border-color: var(--cold-600, #2a3a4e);
}
.area-admin .list-group-item-action:hover,
.area-admin .list-group-item-action:focus,
.area-user .list-group-item-action:hover,
.area-user .list-group-item-action:focus {
  background-color: var(--cold-600, #243347);
  color: #fff;
}
.area-admin .list-group-item .text-muted,
.area-user .list-group-item .text-muted {
  color: rgba(180, 200, 220, 0.65) !important;
}

/* Dark-Theme native dropdown / select */
.area-admin .form-select,
.area-user .form-select {
  background-color: var(--cold-700, #1a2332);
  color: #e0ecf5;
  border-color: var(--cold-600, #2a3a4e);
}
.area-admin .dropdown-menu,
.area-user .dropdown-menu {
  background-color: var(--cold-700, #1a2332);
  border-color: var(--cold-600, #2a3a4e);
  color: #e0ecf5;
}
.area-admin .dropdown-item,
.area-user .dropdown-item {
  color: #e0ecf5;
}
.area-admin .dropdown-item:hover,
.area-admin .dropdown-item:focus,
.area-user .dropdown-item:hover,
.area-user .dropdown-item:focus {
  background-color: var(--cold-600, #243347);
  color: #fff;
}

.area-admin .site-main .modal-content {
  background: rgba(10, 20, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e9f4fb;
}

.area-admin .site-main .modal-header,
.area-admin .site-main .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.area-admin .site-main .btn-close {
  filter: invert(1) grayscale(1);
}

.site-main {
  position: relative;
  flex: 1 0 auto;
}

.btn {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border-width: 1px;
  transition: all 0.18s ease;
  box-shadow: 0 7px 16px rgba(8, 18, 30, 0.16);
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(8, 18, 30, 0.24);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background: linear-gradient(180deg, rgba(90, 192, 206, 0.95), rgba(55, 158, 172, 0.95));
  border-color: rgba(90, 192, 206, 0.95);
  color: #0f161a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, #70cfdb, #48b5c3);
  border-color: #70cfdb;
  color: #0f161a;
}

.btn-outline-primary {
  background: rgba(17, 21, 24, 0.48);
  border-color: rgba(90, 192, 206, 0.86);
  color: var(--aoc-cyan);
}

.btn-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--aoc-white-line);
  color: #f2f8fb;
}

.btn-outline-secondary,
.btn-light.border {
  background: rgba(17, 21, 24, 0.46);
  border-color: var(--aoc-white-line);
  color: rgba(255, 255, 255, 0.92);
}

.btn-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  background: linear-gradient(180deg, #f36a79, #c94759);
  border-color: #de5567;
  color: #fff;
}

.btn-outline-danger {
  background: rgba(232, 93, 111, 0.08);
  border-color: rgba(232, 93, 111, 0.7);
  color: #de5567;
}

.btn-success,
.btn-outline-success:hover,
.btn-outline-success:focus-visible {
  background: linear-gradient(180deg, #79d6a4, #4ebc83);
  border-color: #62ca93;
  color: #0d1f18;
}

.btn-outline-success {
  background: rgba(89, 181, 128, 0.12);
  border-color: rgba(89, 181, 128, 0.78);
  color: #3b9d6f;
}

.btn-outline-warning,
.btn-warning {
  background: rgba(255, 197, 66, 0.16);
  border-color: rgba(255, 197, 66, 0.74);
  color: #9e6d00;
}

.btn-dark {
  background: linear-gradient(180deg, #1b242a, #111518);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.area-user .site-main {
  background: transparent;
  border: 0;
  border-radius: 1.1rem;
  backdrop-filter: none;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.area-user.auth-page .site-main {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.area-user.dashboard-page .site-main {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.area-user.auth-page .site-main,
.area-user.auth-page .site-main h1,
.area-user.auth-page .site-main h2,
.area-user.auth-page .site-main h3,
.area-user.auth-page .site-main p,
.area-user.auth-page .site-main label,
.area-user.auth-page .site-main .form-check-label,
.area-user.auth-page .site-main .small,
.area-user.auth-page .site-main .text-muted {
  color: rgba(242, 248, 251, 0.92) !important;
}

.area-user.auth-page .site-main a {
  color: #9bd7e3;
}

.auth-moving-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.auth-moving-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(28, 63, 102, 0.22), rgba(5, 12, 20, 0.72));
}

.auth-moving-bg__frames {
  position: absolute;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  display: block;
  opacity: 0.48;
  transform: scale(1.06);
  animation: none;
  will-change: auto;
}

@keyframes auth-bg-pan {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1.2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-moving-bg__frames {
    animation: none;
    opacity: 0.42;
    transform: none;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1050;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, rgba(7, 13, 21, 0.97), rgba(17, 37, 59, 0.94));
  backdrop-filter: blur(4px);
}

/* Dark-Theme: alle Bootstrap-Dropdowns */
.area-admin .dropdown-menu,
.area-user .dropdown-menu {
  background-color: rgba(10, 19, 31, 0.97);
  color: #e9f4fb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.area-admin .dropdown-item,
.area-user .dropdown-item {
  color: #e0ecf6;
}
.area-admin .dropdown-item:hover,
.area-admin .dropdown-item:focus,
.area-user .dropdown-item:hover,
.area-user .dropdown-item:focus {
  background-color: rgba(31, 61, 91, 0.8);
  color: #f0f9ff;
}

.site-nav .dropdown-menu {
  z-index: 1060;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav .dropdown-item {
  border-radius: 0;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.header-quick .locale-switch,
.header-quick .header-checkin-btn {
  flex: 0 0 auto;
}

.header-quick .site-nav-toggler {
  margin-left: 0.2rem;
}

.site-nav .navbar-brand,
.site-nav .btn-outline-primary,
.site-nav .btn-outline-secondary {
  color: #fff;
}

.site-logo {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav .btn-outline-primary,
.site-nav .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.36);
}

.site-nav .btn-outline-primary:hover,
.site-nav .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-nav .site-nav-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-nav .site-nav-toggler .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.site-nav .nav-actions .btn,
.site-nav .nav-actions .locale-switch {
  width: 100%;
}

.site-nav .nav-actions .session-actions .btn {
  width: 100%;
}

@media (min-width: 992px) {
  .site-nav .nav-actions {
    width: auto !important;
  }
  .site-nav .nav-actions .btn,
  .site-nav .nav-actions .locale-switch,
  .site-nav .nav-actions .session-actions .btn {
    width: auto;
  }
}

.site-nav .nav-actions .locale-switch .btn {
  width: 2rem;
  height: 2rem;
}

.locale-switch .locale-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: none;
  overflow: hidden;
}

.locale-switch .locale-btn.active {
  border-color: rgba(90, 192, 206, 0.95);
  box-shadow: 0 0 0 2px rgba(90, 192, 206, 0.25);
}

.locale-switch .locale-flag {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.pwa-install-btn {
  display: none;
  white-space: nowrap;
}

.pwa-install-btn.is-visible {
  display: inline-flex;
}

#pwaInstallBtn {
  align-self: center;
  justify-content: center;
  align-items: center;
}

.card {
  border: 1px solid #d2deea;
  border-radius: 1.1rem;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(8, 20, 36, 0.16);
  overflow: hidden;
}

.card .table-responsive {
  border-radius: inherit;
  overflow: hidden;
}

.navbar-brand {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.user-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 63, 103, 0.9), rgba(47, 127, 189, 0.72)),
    url('/assets/img/cryo-bg-3.jpg') center/cover no-repeat;
  color: #fff;
}

.user-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 70%);
}

.user-hero h1,
.section-title {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0.02em;
}

.hero-sub {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.88);
}

.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: rgba(255, 255, 255, 0.95);
}

.book-wrap .form-label {
  font-weight: 600;
  color: #23344f;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.booking-page {
  color: #f2f8fb;
}

.booking-hero {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
  background:
    linear-gradient(110deg, rgba(17, 21, 24, 0.9), rgba(24, 37, 49, 0.85)),
    radial-gradient(circle at 15% 0%, rgba(90, 192, 206, 0.2), transparent 42%);
  box-shadow: 0 16px 34px rgba(8, 20, 36, 0.24);
  backdrop-filter: blur(12px);
}

.booking-hero h1 {
  color: #fff;
}

.booking-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}

.booking-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(17, 21, 24, 0.9), rgba(20, 31, 43, 0.86));
  color: #f2f8fb;
  backdrop-filter: blur(12px);
}

.booking-card h2,
.booking-card .fw-semibold {
  color: #fff;
}

.booking-card .text-muted {
  color: rgba(230, 240, 248, 0.72) !important;
}

.booking-card .form-label {
  color: rgba(242, 248, 251, 0.9);
}

.booking-choice-grid,
.booking-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.booking-choice-grid .btn,
.booking-slot-grid .btn {
  border-radius: 0.8rem;
  backdrop-filter: blur(8px);
}

.booking-choice-grid .btn {
  padding: 0.5rem 0.8rem;
}

.booking-slot-grid .btn {
  text-align: left;
  padding: 0.52rem 0.8rem;
}

.booking-card .list-group-item {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f2f8fb;
}

.booking-item {
  border-radius: 0.72rem;
  margin-bottom: 0.42rem;
  padding: 0.72rem 0.78rem;
}

.booking-tile-list {
  display: grid;
  gap: 0.6rem;
}

.booking-tile {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(13, 24, 38, 0.45);
  overflow: hidden;
}

.booking-tile-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f2f8fb;
  text-align: left;
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.booking-tile-head:hover {
  background: rgba(255, 255, 255, 0.06);
}

.booking-tile-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-tile-time {
  font-weight: 600;
}

.booking-tile-product {
  font-size: 0.88rem;
  color: rgba(242, 248, 251, 0.8);
}

.booking-tile-status {
  font-size: 0.78rem;
  color: #0f161a;
  background: rgba(130, 214, 166, 0.92);
}

.booking-tile-chevron {
  transition: transform 0.2s ease;
  color: rgba(242, 248, 251, 0.9);
}

.booking-tile.is-open .booking-tile-chevron {
  transform: rotate(180deg);
}

.booking-tile-body {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.8rem 0.9rem 0.9rem;
}

.booking-qr-wrap {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.4rem;
  width: fit-content;
}

.booking-qr-img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.booking-cancel-x {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
}

#bookingMessage.text-success {
  color: #8ce2bd !important;
}

#bookingMessage.text-danger {
  color: #ff9aa8 !important;
}

#bookingMessage.text-warning {
  color: #ffd47c !important;
}

.booking-combo button.active {
  background: linear-gradient(180deg, rgba(90, 192, 206, 0.95), rgba(55, 158, 172, 0.95));
  border-color: rgba(90, 192, 206, 0.95);
  color: #0f161a;
}

.slot-palette button {
  border-radius: 999px;
}

.slot-palette button.active {
  border-color: rgba(90, 192, 206, 0.95);
  background: linear-gradient(180deg, rgba(90, 192, 206, 0.95), rgba(55, 158, 172, 0.95));
  color: #0f161a;
}

.list-group-item {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Dark-Theme: absolut positionierte Dropdowns / Autocomplete-Container */
.area-admin .list-group[style*="position"],
.area-user .list-group[style*="position"],
.area-admin .dropdown-results,
.area-user .dropdown-results {
  background: rgba(10, 19, 31, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Sicherstellen: .text-muted in Dark-Theme immer sichtbar */
.area-admin .list-group-item .text-muted,
.area-user .list-group-item .text-muted {
  color: rgba(160, 185, 210, 0.7) !important;
}

.disclaimer-box {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 24, 39, 0.7);
  border-radius: 0.85rem;
  color: #c0d4e8;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.auth-layout {
  min-height: 0;
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 24, 38, 0.44);
  box-shadow: 0 12px 24px rgba(6, 16, 28, 0.26);
  backdrop-filter: blur(4px);
}

.auth-panel {
  background:
    linear-gradient(160deg, rgba(15, 63, 103, 0.9), rgba(39, 109, 166, 0.74)),
    url('/assets/img/cryo-bg-2.jpg') center/cover no-repeat;
  color: #fff;
}

.auth-panel p {
  color: rgba(255, 255, 255, 0.9);
}

.auth-card .card-body {
  background: transparent;
}

.auth-card .form-label {
  color: rgba(242, 248, 251, 0.92);
}

.auth-card a {
  color: #9bd7e3;
}

.auth-card,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4,
.auth-card p,
.auth-card .small,
.auth-card .form-check-label,
.auth-card .text-muted {
  color: rgba(242, 248, 251, 0.92) !important;
}

.auth-card .form-control {
  background: rgba(8, 18, 30, 0.36);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2f8fb;
}

.auth-card .form-select {
  background-color: rgba(8, 18, 30, 0.36);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2f8fb;
}

.auth-card .form-control::placeholder {
  color: rgba(242, 248, 251, 0.62);
}

.auth-card .form-control:focus {
  background: rgba(8, 18, 30, 0.5);
  border-color: rgba(90, 192, 206, 0.86);
  color: #f2f8fb;
  box-shadow: 0 0 0 0.2rem rgba(90, 192, 206, 0.2);
}

.auth-card .form-select:focus {
  background: rgba(8, 18, 30, 0.5);
  border-color: rgba(90, 192, 206, 0.86);
  color: #f2f8fb;
  box-shadow: 0 0 0 0.2rem rgba(90, 192, 206, 0.2);
}

.auth-card .form-select option {
  color: #12293f;
}



.checkin-state {
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: .75rem;
  text-align: center;
}

.checkin-state.idle {
  background: rgba(20, 40, 60, 0.7);
  color: #a8c4db;
}

.checkin-state.success {
  background: rgba(16, 85, 57, 0.5);
  color: #7ddfb0;
}

.checkin-state.error {
  background: rgba(130, 32, 41, 0.5);
  color: #f5a3ab;
}

#signaturePad {
  background: rgba(20, 40, 60, 0.5);
  border-color: rgba(255, 255, 255, 0.2) !important;
}

#clearSignature {
  color: #c0d4e8;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 40, 60, 0.6);
}

#clearSignature:hover,
#clearSignature:focus-visible {
  color: #e9f4fb;
  background: rgba(30, 60, 90, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.booking-qr-standalone {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(12, 26, 41, 0.08);
}

.anamnesis-card {
  border-color: #c7d7e8;
  box-shadow: 0 10px 24px rgba(12, 35, 58, 0.14);
}

.anamnesis-card .card-body {
  padding: 1.5rem 1.4rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 18, 30, 0.88);
  backdrop-filter: blur(2px);
}

.site-footer a {
  color: #d5e4f2;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-card h2 {
  color: #133c62;
}

.legal-card p,
.legal-card li {
  color: #324a64;
}

@media (max-width: 991.98px) {
  .area-user {
    background-attachment: scroll;
  }

  .area-user .site-main {
    margin-top: 0.75rem;
    border-radius: 0.85rem;
  }

  .booking-hero {
    padding: 0.9rem 0.95rem;
  }

  .site-nav .nav-actions {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .header-quick .header-checkin-btn {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

@media (min-width: 992px) {
  .site-nav .site-nav-toggler {
    display: none;
  }

  .site-nav .navbar-collapse {
    margin-left: 0.75rem;
  }

  .site-nav .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .site-nav .nav-actions .btn,
  .site-nav .nav-actions .locale-switch,
  .site-nav .nav-actions .session-actions,
  .site-nav .nav-actions .session-actions .btn {
    width: auto;
  }
}

/* ===================================================================
   STATUS BADGES – booking tile per-status colour variants
   =================================================================== */
.status-badge-booked {
  background: rgba(90, 192, 206, 0.92) !important;
  color: #0a1c25 !important;
}

.status-badge-checked_in {
  background: rgba(99, 148, 255, 0.92) !important;
  color: #0d1635 !important;
}

.status-badge-completed {
  background: rgba(78, 188, 131, 0.92) !important;
  color: #0d2b1a !important;
}

.status-badge-no_show {
  background: rgba(245, 158, 11, 0.92) !important;
  color: #3d2600 !important;
}

.status-badge-cancelled_user,
.status-badge-cancelled_admin {
  background: rgba(220, 80, 80, 0.85) !important;
  color: #fff !important;
}

/* Tile left-border per status */
.booking-tile[data-status="BOOKED"] {
  border-left: 3px solid rgba(90, 192, 206, 0.85);
}

.booking-tile[data-status="CHECKED_IN"] {
  border-left: 3px solid rgba(99, 148, 255, 0.85);
}

.booking-tile[data-status="COMPLETED"] {
  border-left: 3px solid rgba(78, 188, 131, 0.85);
}

.booking-tile[data-status="NO_SHOW"] {
  border-left: 3px solid rgba(245, 158, 11, 0.85);
}

.booking-tile[data-status="CANCELLED_USER"],
.booking-tile[data-status="CANCELLED_ADMIN"] {
  border-left: 3px solid rgba(220, 80, 80, 0.75);
}

/* ===================================================================
   BOOKING WIZARD STEPS
   =================================================================== */
.booking-wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}

.bws-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
}

.bws-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.38);
  transition: all 0.25s ease;
}

.bws-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.bws-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 1.6rem;
  min-width: 1.5rem;
}

.bws-step.is-active .bws-step-num {
  background: rgba(90, 192, 206, 0.18);
  border-color: var(--aoc-cyan);
  color: var(--aoc-cyan);
}

.bws-step.is-active .bws-step-label {
  color: var(--aoc-cyan);
}

.bws-step.is-done .bws-step-num {
  background: var(--aoc-cyan);
  border-color: var(--aoc-cyan);
  color: #0f161a;
}

.bws-step.is-done .bws-step-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ===================================================================
   BOOKING SLOT SPINNER
   =================================================================== */
.booking-slot-spinner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: rgba(242, 248, 251, 0.65);
  font-size: 0.875rem;
}

/* ===================================================================
   ADMIN KPI CARDS
   =================================================================== */
.admin-kpi-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
}

.admin-kpi-card--cyan {
  border-top-color: #5ac0ce;
}

.admin-kpi-card--blue {
  border-top-color: #6394ff;
}

.admin-kpi-card--green {
  border-top-color: #4ebc83;
}

.admin-kpi-card--indigo {
  border-top-color: #6366f1;
}

.admin-kpi-card--orange {
  border-top-color: #f59e0b;
}

.admin-kpi-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}

.admin-kpi-card--cyan .admin-kpi-icon {
  background: rgba(90, 192, 206, 0.14);
  color: #5ac0ce;
}

.admin-kpi-card--blue .admin-kpi-icon {
  background: rgba(99, 148, 255, 0.14);
  color: #6394ff;
}

.admin-kpi-card--green .admin-kpi-icon {
  background: rgba(78, 188, 131, 0.14);
  color: #4ebc83;
}

.admin-kpi-card--indigo .admin-kpi-icon {
  background: rgba(99, 102, 241, 0.14);
  color: #6366f1;
}

.admin-kpi-card--orange .admin-kpi-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.admin-kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.2rem;
}

.admin-kpi-label {
  font-size: 0.8rem;
  color: rgba(226, 240, 252, 0.75);
  font-weight: 500;
  line-height: 1.3;
}

/* ===================================================================
   ADMIN TABLE  – consistent hover across all admin tables
   =================================================================== */
.admin-table {
  vertical-align: middle;
}

.admin-table thead th {
  white-space: nowrap;
  background: rgba(21, 38, 58, 0.95);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a8c4db;
}

.admin-table tbody tr {
  transition: background 0.12s;
}

.admin-table tbody tr:hover {
  background: rgba(20, 55, 80, 0.82);
}

.admin-table td .btn {
  white-space: nowrap;
}

/* ===================================================================
   ADMIN TABLE – mobile card layout  (class: table-mobile-cards)
   On mobile each row becomes a labeled card instead of a scrollable row.
   =================================================================== */
@media (max-width: 767.98px) {
  .table-responsive:has(.table-mobile-cards) {
    overflow-x: visible;
  }

  .table-mobile-cards {
    border-collapse: separate !important;
  }

  .table-mobile-cards thead {
    display: none !important;
  }

  .table-mobile-cards tbody tr {
    display: block;
    background: rgba(12, 24, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  }

  .table-mobile-cards tbody tr:hover {
    background: rgba(20, 55, 80, 0.82) !important;
  }

  .table-mobile-cards td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.32rem 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-size: 0.875rem;
    gap: 0.75rem;
  }

  .table-mobile-cards td:last-child {
    border-bottom: none !important;
    padding-top: 0.6rem !important;
    justify-content: flex-end;
  }

  .table-mobile-cards td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(204, 226, 242, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 72px;
    flex-shrink: 0;
    padding-top: 0.2rem;
  }

  .table-mobile-cards td[data-label=""]::before {
    display: none;
    min-width: 0;
  }

}

@media (max-width: 767.98px) {

  .admin-table th,
  .admin-table td {
    font-size: 0.875rem;
    padding: 0.5rem 0.6rem;
  }

  .admin-table .btn-sm {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ===================================================================
   SIGNATURE DISPLAY  – white bg for ink visibility, dark-safe border
   =================================================================== */
.signature-img {
  max-width: 360px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px;
}

.signature-canvas {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px;
}

/* ===================================================================
   TABLE-WARNING override for dark theme
   =================================================================== */
.area-admin .site-main .table-warning,
.surface-shell .table-warning {
  --bs-table-bg: rgba(120, 80, 0, 0.35);
  --bs-table-color: #ffd966;
  --bs-table-border-color: rgba(255, 193, 7, 0.3);
}

/* ===================================================================
   FEEDBACK STARS  – consistent rating display
   =================================================================== */
.star-filled { color: #f0ad4e; }
.star-empty  { color: rgba(255, 255, 255, 0.2); }

/* ===================================================================
   ADMIN SIDEBAR NAV – icon sizing
   =================================================================== */
.admin-nav-link .nav-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.55rem;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.admin-nav-link:hover .nav-icon,
.admin-nav-link.active .nav-icon {
  opacity: 1;
}

/* Anamnesis high-contrast dark readability */
.anamnesis-card {
  background: rgba(10, 20, 34, 0.86);
  color: #eef7fd;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.anamnesis-card .form-label,
.anamnesis-card .form-check-label {
  color: #eaf5fc;
  font-weight: 500;
}

.anamnesis-card h1,
.anamnesis-card h2,
.anamnesis-card h3,
.anamnesis-card h4,
.anamnesis-card h5,
.anamnesis-card .fw-semibold,
.anamnesis-card .small {
  color: #f4fbff;
}

.anamnesis-card .text-muted {
  color: rgba(224, 238, 249, 0.84) !important;
}

.anamnesis-card .form-control,
.anamnesis-card .form-select,
.anamnesis-card .form-control.bg-light-subtle {
  background: rgba(8, 17, 29, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.2);
  color: #eef7fd;
}

.anamnesis-card .form-control::placeholder {
  color: rgba(220, 236, 247, 0.62);
}

.anamnesis-card #signaturePad {
  background: rgba(236, 245, 252, 0.96);
  border-color: rgba(255, 255, 255, 0.24) !important;
}

/* Fix for QR Code Page White Frame */
.booking-qr-standalone {
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.booking-qr-standalone .card {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Admin Sidebar Layout */
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0b1826 0%, #0f2237 100%);
  border-right: 1px solid rgba(90, 192, 206, 0.12);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  z-index: 1046;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

@media (max-width: 991.98px) {
  .admin-sidebar .admin-nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

.admin-content-wrapper {
  flex: 1;
  margin-left: 0;
  padding: 2rem;
  color: #e9f2f8;
}

.admin-mobile-topbar {
  padding: 0.25rem 0.25rem 0;
}

.admin-page-header {
  gap: 0.75rem;
}

.admin-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-page-actions .btn {
  white-space: nowrap;
}

.area-admin .table thead th {
  white-space: nowrap;
}

.area-admin .table td,
.area-admin .table th {
  vertical-align: middle;
}

.admin-content-wrapper h1,
.admin-content-wrapper h2,
.admin-content-wrapper h3,
.admin-content-wrapper h4,
.admin-content-wrapper h5,
.admin-content-wrapper h6,
.admin-content-wrapper label,
.admin-content-wrapper .form-label,
.admin-content-wrapper .form-check-label,
.admin-content-wrapper .text-muted {
  color: #e9f4fb !important;
}

/* Dark-text-in-card override removed – surface-shell handles card colours consistently */

.admin-nav-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  color: rgba(220, 235, 248, 0.8);
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.2rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

.admin-nav-link:hover {
  background-color: rgba(90, 192, 206, 0.1);
  border-color: rgba(90, 192, 206, 0.25);
  color: #e0f3f7;
}

.admin-nav-link.active {
  background-color: rgba(90, 192, 206, 0.16);
  border-color: rgba(90, 192, 206, 0.42);
  color: #7dd4e3;
  font-weight: 600;
}

.admin-nav-link.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  background-color: var(--aoc-cyan);
  border-radius: 0 3px 3px 0;
}

.admin-nav-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(90, 192, 206, 0.55);
  margin: 1.75rem 0 0.5rem 0.75rem;
  font-weight: 700;
}

.admin-sidebar .border-top {
  border-color: rgba(90, 192, 206, 0.15) !important;
}

.admin-quick-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.area-admin h1,
.area-admin h2,
.area-admin h3 {
  color: #e9f4fb;
  letter-spacing: 0.01em;
}

.admin-sidebar-label {
  color: rgba(220, 235, 248, 0.92);
}

.admin-nav-logout {
  background: transparent;
  color: rgba(255, 130, 130, 0.85);
}

.admin-nav-logout:hover {
  color: rgba(255, 160, 160, 1);
}

@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: none !important;
    visibility: visible !important;
  }

  .admin-content-wrapper {
    margin-left: 260px;
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    width: min(260px, 86vw);
    padding: 1.25rem 0.9rem;
  }

  .admin-content-wrapper {
    padding: 1rem;
  }

  .admin-content-wrapper .container-fluid {
    padding: 0 !important;
  }

  .admin-page-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .admin-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Customers redesign */
.customers-shell {
  color: #eaf2f8;
}

.customers-header h1,
.customers-header p {
  color: #eaf2f8 !important;
}

.customers-filter-panel {
  border: 1px solid rgba(129, 166, 206, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 40, 61, 0.92), rgba(16, 32, 52, 0.92));
  padding: 1rem;
}

.customers-filter-form {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(200px, 1fr);
  align-items: center;
}

.customers-filter-form .form-control,
.customers-filter-form .form-select {
  background: rgba(23, 40, 63, 0.9) !important;
  border-color: rgba(131, 168, 206, 0.35) !important;
  color: #eaf2f8 !important;
}

.customers-filter-form .form-control::placeholder {
  color: rgba(215, 230, 245, 0.62) !important;
}

.customers-filter-actions {
  display: flex;
  gap: 0.5rem;
}

.customers-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(131, 168, 206, 0.25);
  border-radius: 0.75rem;
  background: rgba(15, 28, 45, 0.6);
  overflow: hidden;
}

.customers-view-btn {
  width: 2.4rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(214, 227, 241, 0.75);
  text-decoration: none;
}

.customers-view-btn.active {
  background: rgba(90, 192, 206, 0.92);
  color: #07131f;
}

.customers-table-card {
  border-color: rgba(129, 166, 206, 0.3);
  background: linear-gradient(180deg, rgba(24, 40, 61, 0.9), rgba(16, 32, 52, 0.9));
}

.customers-table-card .table {
  color: #eaf2f8;
}

.customers-table-card .admin-table thead th {
  background: rgba(18, 34, 55, 0.95);
  color: rgba(200, 219, 240, 0.9);
  border-bottom-color: rgba(129, 166, 206, 0.2);
}

.customers-table-card .admin-table tbody tr {
  border-bottom-color: rgba(129, 166, 206, 0.15);
}

.customers-table-card .admin-table tbody tr:hover {
  background: rgba(20, 55, 80, 0.82);
}

.customers-table-card .text-muted,
.customers-grid-card .text-muted {
  color: rgba(201, 218, 236, 0.74) !important;
}

.customers-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.customers-grid-card {
  border: 1px solid rgba(129, 166, 206, 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(27, 45, 69, 0.95), rgba(17, 34, 54, 0.95));
  padding: 0.95rem;
}

.customers-grid-head {
  display: flex;
  gap: 0.8rem;
}

.customers-grid-initial {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f4fbff;
  background: rgba(90, 192, 206, 0.26);
  border: 1px solid rgba(90, 192, 206, 0.45);
  flex-shrink: 0;
}

.customers-grid-head h2 {
  color: #f2f8fc !important;
}

.customers-grid-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.customers-grid-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (min-width: 992px) {
  .customers-filter-form {
    grid-template-columns: minmax(280px, 1fr) 200px auto auto;
  }

  .customers-grid.mobile-only {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .customers-table-card.is-hidden-mobile {
    display: none;
  }

  .customers-filter-actions .btn {
    flex: 1;
  }
}

/* ===================================================================
   MODERN BOOKING UI (Glassmorphism & Interactive Cards)
   =================================================================== */

/* Wizard Progress Track */
.wizard-progress-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.wizard-progress-track::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 0.5rem;
  width: 60px;
}

.wizard-step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(13, 24, 38, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-align: center;
}

.wizard-progress-step.is-active .wizard-step-circle {
  border-color: var(--aoc-cyan);
  background: rgba(90, 192, 206, 0.15);
  color: var(--aoc-cyan);
  box-shadow: 0 0 15px rgba(90, 192, 206, 0.3);
}

.wizard-progress-step.is-active .wizard-step-label {
  color: var(--aoc-cyan);
}

.wizard-progress-step.is-done .wizard-step-circle {
  background: var(--aoc-cyan);
  border-color: var(--aoc-cyan);
  color: #0d1826;
}

.wizard-progress-step.is-done .wizard-step-label {
  color: rgba(255, 255, 255, 0.8);
}

.wizard-progress-step.is-done {
  cursor: pointer;
}

.wizard-progress-step.is-done:hover .wizard-step-circle {
  background: rgba(90, 192, 206, 0.5);
  border-color: var(--aoc-cyan);
  box-shadow: 0 0 12px rgba(90, 192, 206, 0.4);
}

.wizard-progress-step.is-done:hover .wizard-step-label {
  color: #fff;
}

/* Glassmorphism Product Cards */
.product-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.product-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(90, 192, 206, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 192, 206, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(90, 192, 206, 0.1);
}

.product-glass-card:hover::before {
  opacity: 1;
}

.product-glass-card.active {
  background: linear-gradient(135deg, rgba(90, 192, 206, 0.15), rgba(39, 109, 166, 0.1));
  border-color: var(--aoc-cyan);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(90, 192, 206, 0.1);
  color: #fff;
}

.product-glass-card.active::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  color: var(--aoc-cyan);
  font-weight: bold;
  font-size: 1.2rem;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.product-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.product-glass-card.active .product-card-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* Date Timeline Chips */
.date-timeline {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.date-timeline::-webkit-scrollbar {
  height: 6px;
}

.date-timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.date-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 5rem;
  background: rgba(13, 24, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(255, 255, 255, 0.7);
}

.date-chip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.date-chip.active {
  background: var(--aoc-cyan);
  border-color: var(--aoc-cyan);
  color: #0d1826;
  box-shadow: 0 4px 12px rgba(90, 192, 206, 0.3);
  transform: translateY(-2px);
}

.date-chip-day {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}

.date-chip-num {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.date-chip:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Time Slot Chips */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.time-slot-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  background: rgba(13, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.time-slot-chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.time-slot-chip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.time-slot-chip.active {
  background: rgba(90, 192, 206, 0.15);
  border-color: var(--aoc-cyan);
}

.time-slot-chip.active::before {
  background: var(--aoc-cyan);
}

.time-slot-chip-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.time-slot-chip-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.time-slot-chip.active .time-slot-chip-status {
  color: var(--aoc-cyan);
}

.time-slot-chip.status-partial::before {
  background: #f59e0b;
}

.time-slot-chip.status-partial .time-slot-chip-status {
  color: #f59e0b;
}

/* Step Animation Container */
.booking-step-container {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
  max-height: 0;
  opacity: 0;
}

.booking-step-container.is-visible {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.6s ease-in-out, opacity 0.5s ease 0.1s;
}

.modern-booking-panel {
  background: rgba(10, 20, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 1.25rem;
}

.surface-shell .admin-page-header h1,
.surface-shell .h5,
.surface-shell .h4,
.surface-shell .h3 {
  color: #e9f4fb;
}

.surface-shell .text-muted {
  color: rgba(226, 236, 247, 0.7) !important;
}

.surface-shell .card,
.surface-panel {
  background: rgba(10, 20, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

.surface-shell .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e9f4fb;
}

.surface-shell .card-body,
.surface-panel-body,
.surface-shell label,
.surface-shell .form-check-label,
.surface-shell .small,
.surface-shell .fw-semibold,
.surface-shell .fw-medium,
.surface-shell td,
.surface-shell th {
  color: #e9f4fb;
}

.surface-shell .form-control,
.surface-shell .form-select,
.surface-shell .form-control.bg-light-subtle {
  background: rgba(8, 17, 29, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef7fd;
}

.surface-shell .form-control::placeholder {
  color: rgba(225, 240, 248, 0.55);
}

.surface-shell .table,
.surface-shell .table th,
.surface-shell .table td {
  border-color: rgba(255, 255, 255, 0.12);
}

.surface-shell .admin-table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-color: #ecf7ff;
  --bs-table-border-color: rgba(255, 255, 255, 0.14);
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: rgba(20, 55, 80, 0.82);
}

.surface-shell .admin-table > :not(caption) > * > * {
  background-color: rgba(12, 24, 39, 0.78);
  color: #ecf7ff;
}

.surface-shell .admin-table thead th {
  background: rgba(21, 38, 58, 0.95);
  color: #f3fbff;
}

.surface-shell .admin-table tbody tr:hover td,
.surface-shell .admin-table tbody tr:hover th {
  background-color: rgba(20, 55, 80, 0.82) !important;
  color: #ffffff;
}

.surface-shell .admin-table .text-muted {
  color: rgba(222, 236, 247, 0.82) !important;
}

.surface-shell .table-light,
.surface-shell .table-light > th,
.surface-shell .table-light > td {
  background-color: rgba(21, 38, 58, 0.95) !important;
  color: #f3fbff !important;
}

.surface-shell .btn-outline-secondary,
.surface-shell .btn-outline-primary,
.surface-shell .btn-outline-info,
.surface-shell .btn-outline-danger,
.surface-shell .btn-outline-dark {
  border-color: rgba(226, 241, 250, 0.38);
  color: #e7f5ff;
}

.surface-shell .btn-outline-secondary:hover,
.surface-shell .btn-outline-primary:hover,
.surface-shell .btn-outline-info:hover,
.surface-shell .btn-outline-danger:hover,
.surface-shell .btn-outline-dark:hover {
  background: rgba(90, 192, 206, 0.18);
  border-color: rgba(90, 192, 206, 0.55);
  color: #ffffff;
}

/* =========================================================
   Admin modals – dark theme (broad scope covers all Bootstrap modals in admin)
   ========================================================= */
body.area-admin .modal-content {
  background: rgba(10, 20, 34, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e9f4fb !important;
}

body.area-admin .modal-header,
body.area-admin .modal-footer {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.area-admin .modal-content label,
body.area-admin .modal-content .form-label,
body.area-admin .modal-content .form-check-label,
body.area-admin .modal-content .small,
body.area-admin .modal-content p,
body.area-admin .modal-content strong {
  color: #e9f4fb;
}

body.area-admin .modal-content .form-control,
body.area-admin .modal-content .form-select,
body.area-admin .modal-content textarea {
  background: rgba(8, 17, 29, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef7fd;
}

body.area-admin .modal-content .form-control::placeholder,
body.area-admin .modal-content textarea::placeholder {
  color: rgba(225, 240, 248, 0.55);
}

body.area-admin .modal-content .btn-close {
  filter: invert(1) grayscale(1);
}

body.area-admin .modal-content .border {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.area-admin .modal-content .text-muted {
  color: rgba(222, 236, 247, 0.82) !important;
}

body.area-admin .modal-content .fw-semibold,
body.area-admin .modal-content .fw-bold,
body.area-admin .modal-content th,
body.area-admin .modal-content td {
  color: #e9f4fb;
}

/* =========================================================
   Calendar current-time red indicator line
   ========================================================= */
.calendar-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #e74c3c;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.7);
}

.calendar-now-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
}

/* =========================================================
   Calendar Toolbar
   ========================================================= */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #0d1f2d;
  border-radius: 0.5rem;
  border: 1px solid rgba(84, 182, 206, 0.15);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cal-toolbar-product {
  min-width: 140px;
  flex: 0 0 auto;
}

.cal-toolbar-product .form-select {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(84, 182, 206, 0.2);
  color: #e9f4fb;
  font-size: 0.875rem;
}

.cal-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
  min-width: 210px;
}

.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(84, 182, 206, 0.10);
  color: #54b6ce;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  border: 1px solid rgba(84, 182, 206, 0.2);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.cal-nav-btn:hover {
  background: rgba(84, 182, 206, 0.25);
  color: #7cd4ea;
}

input.cal-date-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(84, 182, 206, 0.25);
  color: #e9f4fb;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.375rem;
  padding: 0.28rem 0.5rem;
  min-width: 130px;
  max-width: 155px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

input.cal-date-input:hover,
input.cal-date-input:focus {
  background: rgba(84, 182, 206, 0.08);
  border-color: rgba(84, 182, 206, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(84, 182, 206, 0.15);
}

input.cal-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(170deg) brightness(1.2);
  cursor: pointer;
}

.modal .form-control::-webkit-calendar-picker-indicator,
.modal .form-select::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
  cursor: pointer;
}

.cal-toolbar-opts {
  flex: 0 0 auto;
}

.cal-toolbar-opts .form-check {
  margin: 0;
  white-space: nowrap;
}

.cal-toolbar-opts .form-check-label {
  color: #99c5d8;
  font-size: 0.82rem;
}

/* =========================================================
   Calendar booking chips (event-block style)
   ========================================================= */
.cal-booking-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem 0.18rem 0.5rem;
  border-radius: 0.3rem;
  border-left: 3px solid #54b6ce;
  background: rgba(84, 182, 206, 0.10);
  margin-bottom: 0.2rem;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 0;
}

.cal-booking-chip.chip-checked-in {
  border-left-color: #27ae60;
  background: rgba(39, 174, 96, 0.10);
}

.cal-booking-chip-product {
  font-size: 0.72rem;
  color: #54b6ce;
  font-weight: 600;
  white-space: nowrap;
}

.cal-booking-chip-name {
  font-size: 0.83rem;
  color: #e9f4fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cal-booking-chip-badges {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* =========================================================
   Per-product utilization in all-products view
   ========================================================= */
.cal-product-util-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cal-product-util {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

.cal-product-util-name {
  color: #99c5d8;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.cal-util-chip {
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================
   Calendar sticky action column (mobile)
   ========================================================= */
.cal-sticky-col {
  min-width: 110px;
}

@media (min-width: 768px) {
  .cal-sticky-col {
    position: sticky;
    right: 0;
    background: #0d1f2d;
    z-index: 2;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.35);
  }

  thead .cal-sticky-col {
    background: #0d2233;
  }
}

/* Klickbare Zeit-Zelle */
.cal-time-bookable {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cal-time-bookable:hover {
  background: #0d3a5c !important;
  color: #7dd3fc;
}
.cal-time-book-hint {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 1;
  color: #7dd3fc;
  transition: opacity 0.15s;
  margin-top: 2px;
}
.cal-time-bookable:hover .cal-time-book-hint {
  opacity: 1;
}
/* Auf Touch-Geräten (kein Hover) immer sichtbar */
@media (hover: none) {
  .cal-time-book-hint {
    opacity: 1;
  }
  .cal-time-bookable {
    background: #0d3a5c;
    color: #7dd3fc;
  }
}
/* -----------------------------------------------------------------------
   Chat widget & message bubbles
   ----------------------------------------------------------------------- */

/* ── Offcanvas panel ── */
#chatModalContent {
  background: linear-gradient(180deg, #07101c 0%, #0b1828 100%);
  border: 1px solid rgba(90, 192, 206, 0.18);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
}

#chatModalContent .modal-header {
  background: rgba(6, 14, 26, 0.98);
  border-bottom: 1px solid rgba(90, 192, 206, 0.18) !important;
  padding: 14px 18px;
  border-radius: 1rem 1rem 0 0;
}

#chatModalContent .modal-title {
  color: #e9f4fb;
  font-weight: 600;
  font-size: 0.95rem;
}

#chatModalContent .btn-close {
  filter: invert(1) grayscale(1) opacity(0.55);
}

#chatModalContent .modal-body {
  background: transparent;
}

.chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ac0ce;
  display: inline-block;
  box-shadow: 0 0 6px rgba(90, 192, 206, 0.7);
  flex-shrink: 0;
}

/* ── Messages area ── */
#chatMessages {
  padding: 16px 14px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-empty-hint {
  color: rgba(233, 244, 251, 0.3);
  font-size: 0.8rem;
  text-align: center;
  margin: auto;
  padding: 32px 0;
}

/* ── Base bubble ── */
.chat-bubble {
  max-width: 78%;
  padding: 8px 12px 6px;
  word-break: break-word;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.45;
  font-size: 0.88rem;
}

/* ── User (eigene) Nachrichten — rechts, Cyan ── */
.chat-bubble--user {
  background: linear-gradient(135deg, #4db8c8 0%, #37a0b0 100%);
  color: #041418;
  border-radius: 18px 18px 4px 18px;
}

/* ── Admin-Nachrichten — links, dunkle Oberfläche ── */
.chat-bubble--admin {
  background: rgba(16, 34, 56, 0.95);
  color: #daeef8;
  border: 1px solid rgba(90, 192, 206, 0.13);
  border-radius: 18px 18px 18px 4px;
}

/* ── Meta (Zeit + Label) ── */
.chat-bubble__meta {
  font-size: 0.63rem;
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.6;
}

.chat-bubble--user .chat-bubble__meta {
  color: rgba(4, 20, 24, 0.8) !important;
}

.chat-bubble--admin .chat-bubble__meta {
  color: rgba(218, 238, 248, 0.55) !important;
  justify-content: flex-start;
}

/* ── Input-Bereich ── */
#chatDisabledMsg {
  border-radius: 0 0 1rem 1rem;
}

#chatInputWrap {
  background: rgba(6, 14, 26, 0.98);
  border-top: 1px solid rgba(90, 192, 206, 0.13) !important;
  padding: 12px 14px !important;
  border-radius: 0 0 1rem 1rem;
}

#chatSendForm {
  align-items: flex-end;
  gap: 8px;
}

#chatInput {
  background: rgba(14, 28, 48, 0.9) !important;
  border: 1px solid rgba(90, 192, 206, 0.22) !important;
  color: #e9f4fb !important;
  border-radius: 20px !important;
  padding: 9px 14px !important;
  resize: none !important;
  font-size: 0.88rem;
  min-height: 40px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

#chatInput::placeholder {
  color: rgba(233, 244, 251, 0.32);
}

#chatInput:focus {
  outline: none;
  border-color: rgba(90, 192, 206, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(90, 192, 206, 0.08) !important;
}

#chatSendBtn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50% !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(90, 192, 206, 0.95), rgba(55, 158, 172, 0.95)) !important;
  border-color: transparent !important;
  color: #041418 !important;
  box-shadow: 0 4px 12px rgba(90, 192, 206, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}

#chatSendBtn:hover:not(:disabled) {
  transform: scale(1.08) translateY(0) !important;
  box-shadow: 0 6px 18px rgba(90, 192, 206, 0.4) !important;
}

/* ── Chat-Toggle-Button in Navbar ── */
#chatToggleBtn {
  border-color: rgba(90, 192, 206, 0.35) !important;
  color: #5ac0ce !important;
}

#chatToggleBtn:hover {
  background: rgba(90, 192, 206, 0.1) !important;
  border-color: #5ac0ce !important;
}

/* ── Admin-Konversationsansicht ── */
.chat-view-wrap {
  background: rgba(7, 14, 26, 0.8);
  border: 1px solid rgba(90, 192, 206, 0.14);
  border-radius: 16px;
  padding: 16px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

/* In der Admin-Ansicht sind die Rollen vertauscht:
   user = Kundennachricht (links), admin = eigene Nachricht (rechts) */
.chat-view-wrap .chat-bubble--user {
  background: rgba(16, 34, 56, 0.95);
  color: #daeef8;
  border: 1px solid rgba(90, 192, 206, 0.13);
  border-radius: 18px 18px 18px 4px;
}

.chat-view-wrap .chat-bubble--admin {
  background: linear-gradient(135deg, #4db8c8 0%, #37a0b0 100%);
  color: #041418;
  border-radius: 18px 18px 4px 18px;
  border: none;
}

.chat-view-wrap .chat-bubble--admin .chat-bubble__meta {
  color: rgba(4, 20, 24, 0.75) !important;
  justify-content: flex-end;
}

.chat-view-wrap .chat-bubble--user .chat-bubble__meta {
  color: rgba(218, 238, 248, 0.55) !important;
  justify-content: flex-start;
}

/* ── Admin-Nav-Link Glow bei neuen Nachrichten ── */
.admin-nav-link--glow {
  animation: navGlow 1.5s ease-in-out infinite alternate;
}

@keyframes navGlow {
  from { box-shadow: none; }
  to   { box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.6); }
}

/* ── Outcome Feedback ── */
.outcome-stars {
  font-size: 2.4rem;
  line-height: 1;
}

.outcome-star {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.25);
  transition: color .15s, transform .15s, text-shadow .15s;
  user-select: none;
}

.outcome-star:hover {
  transform: scale(1.15);
  color: rgba(255, 255, 255, 0.6);
}

.outcome-star.active {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  transform: scale(1.1);
}

.outcome-star.active:hover {
  transform: scale(1.2);
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.9);
}

.outcome-star:has(.outcome-star-radio:disabled) {
  cursor: default;
}

.outcome-chip {
  cursor: pointer;
  user-select: none;
}

.outcome-chip-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: all .2s;
}

.outcome-chip:hover .outcome-chip-label {
  border-color: var(--aoc-cyan);
  color: #fff;
}

.outcome-chip.active .outcome-chip-label {
  background: rgba(90, 192, 206, 0.15);
  border-color: var(--aoc-cyan);
  color: var(--aoc-cyan);
}

.outcome-chip:has(.outcome-chip-input:disabled) {
  cursor: default;
}

.outcome-toggle:checked {
  background-color: var(--aoc-cyan);
  border-color: var(--aoc-cyan);
}

.surface-panel .form-control,
.surface-panel .form-select {
  background: rgba(8, 17, 29, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef7fd;
}

.surface-panel .form-control::placeholder {
  color: rgba(225, 240, 248, 0.55);
}

.surface-panel .form-check-input,
.surface-shell .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.anamnesis-card .form-check {
  padding-left: 2rem;
}

.anamnesis-card .form-check-input {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: -2rem;
  cursor: pointer;
}

.anamnesis-card .form-check-label {
  padding-top: 0.15rem;
  cursor: pointer;
}

/* Push notification opt-in banner */
.push-opt-in-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(20, 35, 55, 0.9);
  border: 1px solid rgba(100, 160, 220, 0.3);
  border-radius: 0.5rem;
  color: #c8dff0;
  font-size: 0.9rem;
}

/* Modal-Flex-Fix: Form-Wrapper als Flex-Container damit modal-dialog-scrollable korrekt arbeitet */
#leadEditModal form,
#quickBookModal form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
