@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("/vendor/tabler-icons/tabler-icons.min.css");

:root {
  --bg: #f8f6f1;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1d4ed8;
  --border: #e5e7eb;
  --gold: #b8860b;
  --gold-soft: #c5a059;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.site-header-text h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.site-header-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
  max-width: 100%;
}

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

.toolbar-hint {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 14rem;
  line-height: 1.3;
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
}

.lang-switch .lang-btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  min-width: 2.25rem;
}

.lang-switch .lang-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

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

.link-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.grid .span-2 {
  grid-column: 1 / -1;
}

.grid-contact-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.45fr) 1fr 1fr;
  gap: 0.8rem;
  align-items: end;
}

@media (min-width: 720px) {
  .grid .span-2 {
    grid-column: span 2;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea.item-detail {
  min-height: 2.5rem;
  resize: vertical;
}

.table-head,
.item-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.55fr 0.65fr 0.65fr 0.5fr 0.55fr 0.75fr auto;
  gap: 0.45rem;
  align-items: start;
}

.table-head {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.item-row {
  margin-bottom: 0.55rem;
}

.item-row input[type="text"],
.item-row input[type="number"] {
  width: 100%;
}

.line-total {
  font-weight: 700;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

button {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
}

button.secondary {
  background: #374151;
}

button.remove {
  background: #b91c1c;
  padding: 0.45rem 0.55rem;
  margin-top: 0.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.hint {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.save-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.saved-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.saved-search {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 28rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.saved-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.saved-pager-info {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 10rem;
}

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

.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.saved-list-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #fafafa;
}

.saved-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.saved-quote-line {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.saved-customer {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  white-space: pre-line;
}

.saved-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.plz-city-picker {
  margin-top: 0.15rem;
}

.plz-city-picker label span {
  font-size: 0.9rem;
  color: var(--muted);
}

.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

button.btn-small {
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .grid-contact-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .table-head {
    display: none;
  }

  .item-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
  }

  .line-total {
    padding-top: 0;
  }

  button.remove {
    margin-top: 0;
    justify-self: start;
  }
}

/* —— Profilseite (Apple-inspiriert) —— */
.profile-body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  min-height: 100vh;
  color: #111827;
  background:
    radial-gradient(1200px 460px at 50% -120px, #ffffff 0%, #f6f8fb 48%, #f1f4f8 100%);
}

.profile-shell {
  min-height: 100vh;
}

.profile-hero {
  padding: 1.5rem 1rem 2rem;
  color: #0f172a;
}

.profile-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.profile-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin: 0 0 0.4rem;
}

.profile-title {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 650;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.profile-lead {
  margin: 0 0 1rem;
  max-width: 52rem;
  color: #475569;
  line-height: 1.55;
}

.profile-lead strong {
  color: #0f172a;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-nav-link,
.profile-nav-btn {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d7dce4;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: all 0.18s ease;
}

.profile-nav-link:hover,
.profile-nav-btn:hover {
  background: #fff;
  border-color: #c2c9d4;
}

.profile-main.container {
  max-width: 980px;
  margin-top: 0;
  margin-bottom: 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.profile-grid > .profile-card {
  grid-column: span 6;
}

.profile-grid > .profile-card.profile-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 1040px) {
  .profile-grid > .profile-card {
    grid-column: 1 / -1;
  }
}

.profile-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(208, 214, 223, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 26px rgba(15, 23, 42, 0.06);
}

.profile-card--accent {
  border-color: rgba(156, 173, 201, 0.6);
}

.profile-card-head {
  display: flex;
  gap: 0.72rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.profile-card-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eef2f7;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.profile-card-icon--muted,
.profile-card-icon--ghost {
  background: #f5f7fa;
  color: #94a3b8;
}

.profile-card-title {
  font-size: 1.04rem;
  font-weight: 620;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.profile-card-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.44;
}

.profile-form .profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-label {
  font-size: 0.8rem;
  font-weight: 520;
  color: #334155;
}

.profile-field input,
.profile-field select,
.profile-select {
  font: inherit;
  min-height: 2.45rem;
  padding: 0.5rem 0.72rem;
  border-radius: 12px;
  border: 1px solid #d8dee7;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-field input:focus,
.profile-field select:focus {
  outline: none;
  border-color: #7d8ca3;
  box-shadow: 0 0 0 3px rgba(125, 140, 163, 0.18);
}

.profile-input-readonly {
  background: #f5f7fa !important;
  color: #64748b !important;
}

.profile-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.25rem;
}

.profile-form-actions button {
  max-width: 100%;
}

.profile-btn-primary {
  border: 1px solid #213a5a;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #27456a 0%, #213a5a 100%);
  box-shadow: 0 10px 20px rgba(25, 44, 69, 0.24);
}

.profile-btn-primary:hover {
  filter: brightness(1.03);
}

.profile-msg {
  font-size: 0.88rem;
  margin: 0.72rem 0 0;
  min-height: 1.2rem;
}

.profile-msg.ok {
  color: #0d7a44;
}

.profile-msg.err {
  color: #b42318;
}

.profile-card--placeholder {
  background: rgba(255, 255, 255, 0.72);
}

.profile-placeholder-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.66rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  background: #f2f4f7;
  color: #6b7280;
  border: 1px solid #e3e8ef;
}

.profile-placeholder-hint {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 0.85rem;
}

.profile-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-placeholder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-ph-line {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5eaf1, #f4f7fb);
  max-width: 100%;
}

.profile-ph-line--short {
  max-width: 65%;
}

.profile-placeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 700px) {
  .profile-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-actions {
    justify-content: stretch;
  }

  .profile-form-actions button,
  .profile-btn-primary,
  #savePasswordBtn {
    width: 100%;
  }
}

.profile-field--fake .profile-ph-toggle {
  display: block;
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #e5eaf1;
  margin-top: 0.25rem;
}

/* —— Offertentool: clean look aligned with profile —— */
.app-body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 420px at 50% -140px, #ffffff 0%, #f6f8fb 48%, #f1f4f8 100%);
}

.app-main.suite-main {
  max-width: 1120px;
  margin-top: 1.35rem;
  margin-bottom: 2rem;
}

.app-body .card {
  border-radius: 18px;
  border: 1px solid rgba(208, 214, 223, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 26px rgba(15, 23, 42, 0.05);
  padding: 1.05rem;
}

.app-body h2 {
  letter-spacing: -0.01em;
}

.app-body label {
  color: #334155;
  font-size: 0.92rem;
}

.app-body input,
.app-body textarea,
.app-body select {
  border: 1px solid #d8dee7;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  min-height: 2.42rem;
  padding: 0.53rem 0.72rem;
}

.app-body textarea.item-detail {
  min-height: 2.75rem;
}

.app-body input:focus,
.app-body textarea:focus,
.app-body select:focus {
  outline: none;
  border-color: #7d8ca3;
  box-shadow: 0 0 0 3px rgba(125, 140, 163, 0.18);
}

.app-body button,
.app-body .link-btn {
  border-radius: 12px;
  border: 1px solid #213a5a;
  background: linear-gradient(180deg, #27456a 0%, #213a5a 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(25, 44, 69, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.app-body button:hover,
.app-body .link-btn:hover {
  filter: brightness(1.03);
}

.app-body button:active,
.app-body .link-btn:active {
  transform: translateY(1px);
}

.app-body button.secondary,
.app-body .secondary.link-btn {
  border: 1px solid #d7dce4;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  box-shadow: none;
}

.app-body button.remove {
  border: 1px solid #dc2626;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.app-body .saved-list-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.app-body .saved-meta,
.app-body .saved-customer,
.app-body .hint,
.app-body .draft-status {
  color: #64748b;
}

.app-body .summary {
  position: sticky;
  bottom: 0.8rem;
}

.app-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  overflow: hidden;
  max-height: 3rem;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin 0.35s ease;
}

.app-view-tabs--hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
  visibility: hidden;
}

.app-view-tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #d0d7e2;
  background: rgba(255, 255, 255, 0.55);
  color: #475569;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-view-tab:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

.app-view-tab--active {
  border-color: #213a5a;
  background: linear-gradient(180deg, #27456a 0%, #213a5a 100%);
  color: #fff;
}

.app-view-tab--active:hover {
  filter: brightness(1.03);
  color: #fff;
}

.app-view-panel.hidden {
  display: none;
}

/* Sofort korrekte Ansicht bei #kunden (vor app.js) */
html.app-route-pending:not(.app-booted) .app-view-panel {
  display: none !important;
  visibility: hidden !important;
}

.app-shell-title--customers,
.app-shell-sub--customers {
  display: none;
}

html.app-route-customers .app-shell-title--quotes,
html.app-route-customers .app-shell-sub--quotes {
  display: none;
}

html.app-route-customers .app-shell-title--customers,
html.app-route-customers .app-shell-sub--customers {
  display: block;
}

html.app-route-customers #newQuoteBtn {
  display: none !important;
}

html.app-route-customers #appPanelQuotes {
  display: none !important;
}

html.app-route-customers #appPanelCustomers,
html.app-route-customers #appPanelCustomers[hidden],
html.app-route-customers #appPanelCustomers.hidden {
  display: block !important;
}

html.app-route-customers #custViewHub {
  display: none !important;
}

html.app-route-customers #custViewHub,
html.app-route-customers #custViewDatabase,
html.app-route-customers #custViewForm {
  display: none !important;
}

html.app-cust-view-hub #custViewHub,
html.app-cust-view-hub #custViewHub[hidden],
html.app-cust-view-hub #custViewHub.hidden {
  display: block !important;
}

html.app-cust-view-database #custViewDatabase,
html.app-cust-view-database #custViewDatabase[hidden],
html.app-cust-view-database #custViewDatabase.hidden {
  display: block !important;
}

html.app-cust-view-form #custViewForm,
html.app-cust-view-form #custViewForm[hidden],
html.app-cust-view-form #custViewForm.hidden {
  display: block !important;
}

.cust-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.cust-view.hidden,
.cust-view[hidden] {
  display: none !important;
}

@keyframes custHubFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes custViewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes custHubGlow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.45;
  }
}

.cust-view--hub {
  position: relative;
  overflow: hidden;
}

.cust-view--hub::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(148, 163, 184, 0.07), transparent 68%);
  pointer-events: none;
}

.cust-view--hub.cust-view--enter .cust-hub-header {
  animation: custHubFadeUp 0.48s ease 0.05s both;
}

.cust-view--hub.cust-view--enter .cust-hub-grid .cust-hub-card:nth-child(1) {
  animation: custHubFadeUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.cust-view--hub.cust-view--enter .cust-hub-grid .cust-hub-card:nth-child(2) {
  animation: custHubFadeUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cust-view--hub.cust-view--enter .cust-privacy-hint--hub {
  animation: custHubFadeUp 0.48s ease 0.3s both;
}

.cust-view:not(.cust-view--hub).cust-view--enter {
  animation: custViewIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hub-Karten: globale Primary-Button-Styles der App aushebeln */
.app-body.suite-body button.cust-hub-card,
.app-body button.cust-hub-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(20, 26, 38, 0.88);
  color: #e5e7ef;
  box-shadow: none;
  filter: none;
  transform: none;
}

.app-body.suite-body button.cust-hub-card:hover,
.app-body button.cust-hub-card:hover {
  filter: none;
}

.cust-hub-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cust-hub-header-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  color: #cbd5e1;
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.55), rgba(51, 65, 85, 0.4));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
}

.cust-hub-header-text h2 {
  margin: 0 0 0.35rem;
}

.cust-hub-lead {
  margin: 0;
  max-width: 36rem;
}

.cust-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
}

.cust-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(20, 26, 38, 0.88);
  color: #e5e7ef;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.cust-hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cust-hub-card:hover {
  border-color: rgba(186, 198, 214, 0.28);
  background: rgba(30, 38, 52, 0.94);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.38);
}

.cust-hub-card:hover::after {
  opacity: 1;
}

.cust-hub-card:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.cust-hub-card--accent {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(24, 30, 44, 0.92);
}

.cust-hub-card--accent::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.06), transparent 70%);
  animation: custHubGlow 5s ease-in-out infinite;
  pointer-events: none;
}

.cust-hub-card--accent:hover {
  border-color: rgba(186, 198, 214, 0.3);
  background: rgba(34, 42, 58, 0.96);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.42);
}

.cust-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
}

.cust-hub-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.cust-hub-card-icon--database {
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.85), rgba(51, 65, 85, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
  color: #d1dae6;
}

.cust-hub-card-icon--new {
  background: linear-gradient(145deg, rgba(82, 78, 94, 0.85), rgba(62, 58, 74, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
  color: #ddd8e8;
}

.cust-hub-card:hover .cust-hub-card-icon {
  transform: scale(1.08) translateY(-1px);
}

.cust-hub-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}

.cust-hub-card:hover .cust-hub-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #b8c4d4;
}

.cust-hub-card-title {
  font-size: 1.08rem;
  font-weight: 650;
  color: #f2f4fb;
  position: relative;
  z-index: 1;
}

.cust-hub-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9ba8c9;
  position: relative;
  z-index: 1;
}

.cust-privacy-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.08);
  color: #86efac;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.cust-privacy-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.9;
}

.cust-privacy-hint--form {
  margin-bottom: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .cust-view--hub.cust-view--enter .cust-hub-header,
  .cust-view--hub.cust-view--enter .cust-hub-grid .cust-hub-card,
  .cust-view--hub.cust-view--enter .cust-privacy-hint--hub,
  .cust-view:not(.cust-view--hub).cust-view--enter {
    animation: none;
  }

  .cust-hub-card--accent::before {
    animation: none;
  }

  .cust-hub-card,
  .cust-hub-card-icon,
  .cust-hub-card-arrow,
  .app-view-tabs,
  .cust-back-btn {
    transition: none;
  }

  .cust-table-row--enter {
    animation: none;
  }
}

.cust-view-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.cust-back-btn {
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cust-back-btn::before {
  content: "←";
  font-size: 0.95rem;
  transition: transform 0.18s ease;
}

.cust-back-btn:hover::before {
  transform: translateX(-3px);
}

@keyframes custRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cust-table-row--enter {
  animation: custRowIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cust-view-heading h2 {
  margin: 0 0 0.25rem;
}

.cust-view-heading .hint {
  margin: 0;
}

.cust-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cust-toolbar .saved-search {
  flex: 1;
  min-width: 12rem;
}

.cust-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(9, 14, 25, 0.55);
}

.cust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cust-table th,
.cust-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(140, 156, 192, 0.18);
  vertical-align: middle;
  color: #dce5fb;
}

.cust-table th {
  font-weight: 600;
  color: #9ba8c9;
  background: rgba(26, 34, 53, 0.85);
}

.cust-table tbody tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

.cust-table tr:last-child td {
  border-bottom: none;
}

.cust-kunden-nr {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.cust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cust-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-body #custNotes {
  min-height: 5rem;
  resize: vertical;
}

@media (max-width: 720px) {
  .cust-hub-grid {
    grid-template-columns: 1fr;
  }

  .cust-view-header {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (max-width: 980px) {
  .app-main.suite-main {
    margin-top: 1rem;
  }

  .app-body .site-header {
    border-radius: 14px;
  }

  .app-body .toolbar {
    width: 100%;
  }

  .app-body .summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .app-main.suite-main {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .app-body .site-header {
    padding: 0.82rem;
  }

  .app-body .suite-app-logo {
    height: 48px;
  }

  .app-body button,
  .app-body .link-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .app-body .lang-switch {
    width: 100%;
  }

  .app-body .lang-switch .lang-btn {
    flex: 1 1 0;
  }
}

/* —— FotoFiestaSuite dark widgets (kSuite inspired) —— */
html {
  height: 100%;
}

.suite-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #e5e7ef;
  background:
    radial-gradient(1200px 700px at -5% -5%, rgba(249, 115, 22, 0.24) 0%, rgba(13, 16, 25, 0) 50%),
    radial-gradient(1000px 600px at 100% 0%, rgba(124, 58, 237, 0.26) 0%, rgba(10, 12, 20, 0) 50%),
    radial-gradient(1200px 900px at 80% 110%, rgba(59, 130, 246, 0.2) 0%, rgba(10, 12, 20, 0) 55%),
    linear-gradient(165deg, #0a0f1d 0%, #0f172a 45%, #15162b 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body.suite-has-sidebar {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.suite-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.1rem 1rem 2rem;
}

.suite-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(140, 156, 192, 0.25);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(19, 25, 41, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(3, 7, 18, 0.45);
}

.suite-topbar-left h1 {
  margin: 0.3rem 0 0.3rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.suite-topbar-left p {
  margin: 0;
  color: #a8b1c7;
  max-width: 44rem;
}

.suite-topbar-left strong {
  color: #e8ecf9;
  font-weight: 600;
}

.suite-topbar-right {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* —— App-Header: ruhiger, kompakter —— */
.suite-topbar--app {
  align-items: center;
  padding: 0.85rem 1.15rem;
}

body.suite-has-sidebar .suite-topbar--app .suite-badge {
  display: none;
}

.suite-topbar--app .suite-app-brand--compact {
  align-items: center;
  gap: 0.85rem;
}

.suite-topbar--app .suite-app-logo {
  height: 44px;
}

.suite-topbar--app .suite-topbar-left h1 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.suite-topbar-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #8b98b3;
  max-width: 26rem;
}

.suite-topbar-right--compact {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.suite-topbar-user-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.suite-user-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: #9ba8c9;
  white-space: nowrap;
}

.suite-session-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(36, 45, 69, 0.45);
  color: #8b98b3;
  cursor: help;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.suite-session-chip:hover {
  color: #c4cdd9;
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(45, 55, 78, 0.55);
}

.suite-topbar-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.suite-topbar--app .suite-topbar-tools .suite-secondary-btn,
.suite-topbar--app .suite-topbar-tools .suite-link-btn {
  padding: 0.48rem 0.75rem;
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  .suite-topbar--app {
    align-items: flex-start;
  }

  .suite-topbar-right--compact {
    align-items: flex-start;
    width: 100%;
  }

  .suite-topbar-tools {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .suite-topbar--app .suite-app-logo {
    display: none;
  }

  .suite-topbar-desc {
    max-width: none;
  }
}

.suite-user {
  color: #c8d1e5;
  font-size: 0.88rem;
  padding: 0.5rem 0.2rem;
}

.suite-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3c4;
}

.suite-link-btn,
.suite-primary-btn,
.suite-secondary-btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid rgba(164, 178, 207, 0.3);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.suite-primary-btn {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #eef2ff;
  border-color: rgba(99, 130, 255, 0.6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.suite-link-btn,
.suite-secondary-btn {
  background: rgba(36, 45, 69, 0.7);
  color: #d6def3;
}

.suite-link-btn:hover,
.suite-primary-btn:hover,
.suite-secondary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.suite-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.suite-card {
  grid-column: span 6;
  border: 1px solid rgba(140, 156, 192, 0.22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(21, 27, 43, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(3, 7, 18, 0.35);
}

.suite-card-wide {
  grid-column: 1 / -1;
}

.suite-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.suite-card-head h2 {
  margin: 0;
  color: #f2f4fb;
  letter-spacing: -0.01em;
}

.suite-muted {
  color: #9ba8c9;
  margin: 0.5rem 0 0;
}

.suite-shortcuts {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.suite-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  text-decoration: none;
  color: #d8e2fa;
  border: 1px solid rgba(152, 167, 204, 0.28);
  background: rgba(45, 57, 88, 0.5);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.suite-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.suite-link-inline {
  color: #9bb5ff;
  text-decoration: none;
  font-size: 0.88rem;
}

.suite-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #dce5fb;
  min-height: 4.2rem;
}

.suite-list li {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(26, 34, 53, 0.65);
  border: 1px solid rgba(140, 156, 192, 0.18);
  font-size: 0.86rem;
}

.suite-actions {
  margin-top: 0.8rem;
}

.suite-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.suite-modal-card {
  width: min(680px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(140, 156, 192, 0.24);
  background: rgba(18, 24, 38, 0.95);
  color: #e9edfa;
  padding: 1rem;
  box-shadow: 0 22px 50px rgba(4, 8, 16, 0.6);
}

.suite-modal-card h3 {
  margin: 0 0 0.75rem;
}

.suite-modal .grid label {
  color: #d0d8ee;
}

.suite-modal input,
.suite-modal textarea,
.suite-modal select {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.calendar-main {
  max-width: 1240px;
}

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

.calendar-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.calendar-nav h2 {
  margin: 0;
  color: #f2f4fb;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: #a8b1c7;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-cell {
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.2);
  background: rgba(22, 29, 46, 0.7);
  color: #e8ecf9;
  text-align: left;
  padding: 0.55rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.calendar-cell:hover {
  border-color: rgba(157, 173, 211, 0.55);
  transform: translateY(-1px);
}

.calendar-cell-muted {
  opacity: 0.45;
}

.calendar-cell-today {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35) inset;
}

.calendar-day-num {
  display: inline-block;
  font-size: 0.82rem;
  color: #9fb0da;
}

.calendar-events-wrap {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calendar-event-pill {
  font-size: 0.74rem;
  padding: 0.2rem 0.38rem;
  border-radius: 7px;
  background: rgba(76, 93, 129, 0.55);
  border: 1px solid rgba(164, 178, 207, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meeting {
  background: rgba(59, 130, 246, 0.25);
}
.event-kunde {
  background: rgba(16, 185, 129, 0.25);
}
.event-intern {
  background: rgba(251, 191, 36, 0.25);
}
.event-abwesenheit {
  background: rgba(239, 68, 68, 0.25);
}

.calendar-more {
  font-size: 0.72rem;
  color: #a8b1c7;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

/* —— Kalender 2.0 —— */
.cal-page .cal-topbar {
  margin-bottom: 0.25rem;
}

.cal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cal-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  min-width: 2.25rem;
  padding-inline: 0.55rem;
  font-size: 1.1rem;
  line-height: 1;
}

.cal-period-label {
  margin: 0;
  min-width: 10rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f2f4fb;
  letter-spacing: -0.02em;
}

.cal-view-tabs {
  justify-self: center;
}

.cal-page #calAddBtn {
  background: linear-gradient(180deg, #6b5fd6 0%, #534ab7 100%);
  border-color: rgba(107, 95, 214, 0.65);
  box-shadow: 0 10px 22px rgba(83, 74, 183, 0.35);
}

.cal-view-card {
  overflow: hidden;
}

.cal-entry {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 6px;
  padding: 0.18rem 0.35rem 0.18rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.25;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: inherit;
}

.cal-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--cal-accent, #378add);
}

.cal-entry-icon {
  flex-shrink: 0;
  font-size: 0.68rem;
  opacity: 0.9;
}

.cal-entry-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-entry--dashed {
  border: 1px dashed rgba(29, 158, 117, 0.45);
}

.cal-entry--event-angefragt { --cal-accent: #378add; background: rgba(55, 138, 221, 0.18); color: #d8e9fb; }
.cal-entry--event-bestaetigt { --cal-accent: #1d9e75; background: rgba(29, 158, 117, 0.18); color: #d8f3ea; }
.cal-entry--event-abgeschlossen { --cal-accent: #5f5e5a; background: rgba(95, 94, 90, 0.22); color: #e8e6df; }
.cal-entry--event-storniert { --cal-accent: #e24b4a; background: rgba(226, 75, 74, 0.18); color: #fbd8d8; }
.cal-entry--intern-ferien { --cal-accent: #ef9f27; background: rgba(239, 159, 39, 0.18); color: #fae8c8; }
.cal-entry--intern-equipment { --cal-accent: #534ab7; background: rgba(83, 74, 183, 0.2); color: #e4e2fb; }
.cal-entry--intern-meeting { --cal-accent: #1d9e75; background: rgba(29, 158, 117, 0.14); color: #d8f3ea; }
.cal-entry--intern-persoenlich { --cal-accent: #888780; background: rgba(136, 135, 128, 0.2); color: #eceae3; }

.cal-time-shell {
  overflow-x: auto;
}

.cal-time-header,
.cal-allday-row,
.cal-time-body {
  display: grid;
  grid-template-columns: 3.5rem repeat(var(--cal-cols, 7), minmax(88px, 1fr));
  min-width: 640px;
}

.cal-time-body .cal-time-shell,
.cal-day-view .cal-time-header,
.cal-day-view .cal-allday-row,
.cal-day-view .cal-time-body {
  --cal-cols: 1;
}

.cal-time-gutter {
  font-size: 0.72rem;
  color: #9fb0da;
}

.cal-time-col-head {
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8d4ef;
  border-bottom: 1px solid rgba(140, 156, 192, 0.2);
}

.cal-time-col-head--today,
.cal-time-col--today {
  background: rgba(55, 138, 221, 0.08);
}

.cal-allday-row {
  border-bottom: 1px solid rgba(140, 156, 192, 0.2);
}

.cal-allday-label {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.25rem;
}

.cal-allday-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.3rem;
  min-height: 2rem;
}

.cal-allday-banner {
  width: 100%;
  justify-content: flex-start;
}

.cal-time-body {
  position: relative;
}

.cal-time-col {
  position: relative;
  border-left: 1px solid rgba(140, 156, 192, 0.14);
}

.cal-hour-label {
  padding-right: 0.35rem;
  text-align: right;
  color: #8fa0c8;
  border-bottom: 1px solid rgba(140, 156, 192, 0.1);
  box-sizing: border-box;
}

.cal-hour-slot {
  border-bottom: 1px solid rgba(140, 156, 192, 0.08);
  box-sizing: border-box;
}

.cal-time-block {
  position: absolute;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.2rem;
}

.cal-detail-popup {
  position: absolute;
  z-index: 100;
  width: min(280px, calc(100vw - 1.5rem));
  border: 0.5px solid rgba(140, 156, 192, 0.35);
  border-radius: 14px;
  background: rgba(24, 31, 48, 0.98);
  overflow: hidden;
}

.cal-popup-header {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.cal-popup-body {
  padding: 0.65rem 0.75rem 0.75rem;
}

.cal-popup-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f2f4fb;
}

.cal-popup-meta,
.cal-popup-line,
.cal-popup-desc {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: #b8c5e0;
  line-height: 1.4;
}

.cal-popup-equip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.cal-popup-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  margin-bottom: 0.55rem;
}

.cal-popup-link {
  display: inline-block;
  margin-top: 0.45rem;
}

.cal-popup-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(140, 156, 192, 0.18);
}

.cal-popup-btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.42rem 0.55rem;
}

.cal-popup-btn--delete {
  background: rgba(226, 75, 74, 0.14);
  border-color: rgba(226, 75, 74, 0.45);
  color: #fbd8d8;
}

.cal-popup-btn--delete:hover {
  background: rgba(226, 75, 74, 0.24);
}

.cal-legend-wrap {
  margin-top: 0.75rem;
  max-width: 1240px;
}

.cal-legend-toggle {
  border: none;
  background: none;
  color: #a8b5d4;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.2);
  background: rgba(21, 27, 43, 0.55);
}

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

.cal-legend-heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8d4ef;
  margin-right: 0.25rem;
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #b8c5e0;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cal-accent, #378add);
}

.cal-modal-card {
  width: min(560px, calc(100vw - 2rem));
}

.cal-modal-intro {
  margin: 0 0 0.85rem;
  color: #b8c5e0;
}

.cal-type-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.cal-type-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(30, 38, 58, 0.75);
  color: #e8ecf9;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cal-type-choice-btn:hover {
  border-color: rgba(107, 95, 214, 0.55);
  transform: translateY(-1px);
}

.cal-type-choice-icon {
  font-size: 1.5rem;
}

.cal-typ-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.cal-typ-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.25);
  background: rgba(30, 38, 58, 0.6);
  color: #d6def3;
  font-size: 0.72rem;
  cursor: pointer;
}

.cal-typ-tile--active {
  border-color: rgba(107, 95, 214, 0.7);
  background: rgba(83, 74, 183, 0.22);
}

.cal-ferien-subtyp {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: #c8d4ef;
}

.cal-datetime-row .cal-time-field input {
  font-variant-numeric: tabular-nums;
}

.cal-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ev-wizard-absence-warn {
  margin: 0.35rem 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 159, 39, 0.45);
  background: rgba(239, 159, 39, 0.14);
  color: #fae8c8;
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .cal-toolbar {
    grid-template-columns: 1fr;
  }
  .cal-view-tabs {
    justify-self: start;
  }
  .cal-typ-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cal-type-choice-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.calendar-flash {
  max-width: 1240px;
  margin: 0 auto 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(36, 45, 69, 0.65);
  color: #dce5fb;
}

.calendar-flash[data-tone="err"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(60, 20, 24, 0.45);
  color: #fecaca;
}

.cal-event-modal-card {
  width: min(520px, calc(100vw - 2rem));
  max-width: 520px;
  padding: 1.1rem 1.15rem 1rem;
}

.cal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cal-modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f2f4fb;
}

.cal-modal-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin: -0.2rem -0.15rem 0 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #a8b1c7;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.cal-modal-close:hover {
  color: #f2f4fb;
  background: rgba(99, 102, 241, 0.15);
}

.cal-event-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cal-modal-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.cal-modal-row--top {
  align-items: start;
}

.cal-modal-row--top .cal-modal-icon {
  margin-top: 0.55rem;
}

.cal-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9cc4;
}

.cal-modal-input-line,
.cal-modal-date,
.cal-modal-time,
.cal-modal-textarea,
.cal-modal-category select {
  font: inherit;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.35);
  background: rgba(9, 14, 25, 0.88);
  color: #eff3ff;
  padding: 0.55rem 0.65rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cal-modal-input-line::placeholder,
.cal-modal-textarea::placeholder {
  color: #6b7a9e;
}

.cal-modal-input-line:focus,
.cal-modal-date:focus,
.cal-modal-time:focus,
.cal-modal-textarea:focus,
.cal-modal-category select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.cal-modal-time {
  max-width: 8.5rem;
  min-width: 0;
}

.cal-modal-datetime {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.cal-modal-dt-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.cal-modal-dt-line .cal-modal-date {
  flex: 1 1 10rem;
  min-width: 0;
}

.cal-modal-dt-line--end {
  padding-left: 0;
}

.cal-modal-end-label {
  flex: 0 0 auto;
  min-width: 2.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b9cc4;
}

.cal-modal-dt-line--end .cal-modal-time {
  flex: 0 1 8.5rem;
}

.cal-modal-category-row {
  margin-top: 0.15rem;
}

.cal-modal-category {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #9ba8c9;
  width: 100%;
}

.cal-modal-category select {
  max-width: 100%;
}

.cal-modal-textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.cal-modal-warning {
  margin: 0.35rem 0 0;
  min-height: 1.15rem;
  font-size: 0.84rem;
  color: #9fb5ff;
}

.cal-modal-warning[data-tone="err"] {
  color: #fca5a5;
}

.cal-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(140, 156, 192, 0.22);
}

.cal-modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

@media (max-width: 960px) {
  .suite-card {
    grid-column: 1 / -1;
  }
  .suite-topbar {
    flex-direction: column;
  }
  .suite-topbar-right {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .calendar-weekdays {
    display: none;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-cell {
    min-height: 110px;
  }
}

/* —— Suite: einheitliche dunkle Oberfläche (App, Profil, Spesen, Admin, Auth) —— */
.suite-app-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.suite-app-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.suite-app-brand-text {
  min-width: 0;
}

.suite-lang.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.suite-lang .lang-btn {
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  min-width: 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(164, 178, 207, 0.35);
  background: rgba(36, 45, 69, 0.75);
  color: #d6def3;
  cursor: pointer;
  font: inherit;
}

.suite-lang .lang-btn.active {
  border-color: rgba(129, 140, 248, 0.85);
  color: #e0e7ff;
  font-weight: 600;
}

.suite-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.suite-auth-card {
  width: min(420px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(140, 156, 192, 0.24);
  background: rgba(18, 24, 38, 0.95);
  color: #e9edfa;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 22px 50px rgba(4, 8, 16, 0.6);
}

.suite-auth-card .suite-badge {
  margin-bottom: 0.55rem;
}

.suite-auth-card h1 {
  font-size: 1.3rem;
  margin: 0 0 0.65rem;
  color: #f2f4fb;
  letter-spacing: -0.02em;
}

.suite-auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suite-auth-card .hint {
  color: #9ba8c9;
}

.suite-auth-card label {
  color: #d0d8ee;
}

.suite-auth-card input {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
  border-radius: 10px;
}

.suite-auth-card button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid rgba(99, 130, 255, 0.6);
  cursor: pointer;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #eef2ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.suite-auth-card a {
  color: #9bb5ff;
}

.suite-auth-card .form-error {
  color: #fca5a5;
}

/* kSuite-inspiriertes Login (Farben = bestehendes Suite-Dark, Inter/System) */
.suite-auth-card--ksuite {
  width: min(440px, 100%);
  padding: 1.85rem 1.75rem 1.6rem;
  border-radius: 16px;
}

.ksuite-login-head {
  text-align: center;
  margin-bottom: 0.25rem;
}

.ksuite-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 1px solid rgba(140, 156, 192, 0.35);
  background: rgba(26, 34, 53, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ksuite-avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.ksuite-login-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3c4;
}

.suite-auth-card--ksuite h1.ksuite-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f2f4fb;
}

.ksuite-login-switch {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: #9bb5ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.ksuite-login-switch:hover {
  color: #c7d2fe;
}

.suite-auth-card--ksuite .ksuite-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.35rem;
}

.ksuite-field {
  position: relative;
  margin-top: 0.35rem;
}

.ksuite-field:first-of-type {
  margin-top: 0;
}

.ksuite-input-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

.ksuite-input {
  width: 100%;
  display: block;
  padding: 1.05rem 0.85rem 0.52rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.4);
  background: rgba(9, 14, 25, 0.88);
  color: #eff3ff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ksuite-field--password .ksuite-input-row .ksuite-input {
  padding-right: 2.65rem;
}

.ksuite-input:hover {
  border-color: rgba(157, 173, 211, 0.55);
}

.ksuite-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.22);
}

.ksuite-float-label {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  font-size: 0.95rem;
  color: #9ba8c9;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.16s ease, top 0.16s ease, color 0.16s ease;
  line-height: 1.2;
}

.ksuite-field:not(.ksuite-field--password):focus-within .ksuite-float-label,
.ksuite-field:not(.ksuite-field--password) .ksuite-input:not(:placeholder-shown) + .ksuite-float-label {
  top: 0.32rem;
  transform: scale(0.78);
  color: #9bb5ff;
}

.ksuite-field--password:focus-within .ksuite-float-label,
.ksuite-field--password:has(.ksuite-input:not(:placeholder-shown)) .ksuite-float-label {
  top: 0.32rem;
  transform: scale(0.78);
  color: #9bb5ff;
}

.ksuite-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #a8b1c7;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.ksuite-eye:hover {
  color: #e5e7ef;
  background: rgba(99, 102, 241, 0.12);
}

.ksuite-field-msg {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  color: #fca5a5;
  min-height: 1rem;
}

.ksuite-field--error .ksuite-input {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.ksuite-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #d0d8ee;
  user-select: none;
}

.ksuite-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
  appearance: auto;
}

.ksuite-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 156, 192, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  font-style: normal;
  color: #9ba8c9;
  cursor: help;
}

.ksuite-submit {
  width: 100%;
  margin-top: 0.65rem;
  justify-content: center;
  text-align: center;
  padding: 0.68rem 1rem;
  font-weight: 600;
}

.ksuite-form-error {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.ksuite-login-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(140, 156, 192, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.88rem;
}

.ksuite-login-foot a {
  color: #9bb5ff;
  text-decoration: none;
}

.ksuite-login-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ksuite-foot-sep {
  color: #64748b;
  user-select: none;
}

.ksuite-foot-note {
  color: #7c8aa5;
  font-size: 0.84rem;
}

.suite-auth-card--ksuite label.ksuite-float-label {
  color: #9ba8c9;
}

.suite-body .suite-card h2 {
  color: #f2f4fb;
  letter-spacing: -0.01em;
}

.suite-body .suite-card .hint {
  color: #9ba8c9;
}

.suite-body .suite-card label {
  color: #d0d8ee;
}

.suite-body .suite-card input,
.suite-body .suite-card textarea,
.suite-body .suite-card select {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
  border-radius: 10px;
}

.suite-body .suite-card input:focus,
.suite-body .suite-card textarea:focus,
.suite-body .suite-card select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.suite-body .suite-card .saved-search {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.suite-body .suite-card .saved-pager-info {
  color: #9ba8c9;
}

.suite-body .suite-card .saved-list-item {
  border: 1px solid rgba(140, 156, 192, 0.22);
  border-radius: 12px;
  background: rgba(26, 34, 53, 0.65);
  color: #e8ecf9;
}

.suite-body .suite-card .saved-title {
  color: #f2f4fb;
}

.suite-body .suite-card .saved-quote-line {
  color: #dce5fb;
}

.suite-body .suite-card .saved-customer,
.suite-body .suite-card .saved-meta {
  color: #9ba8c9;
}

.suite-body .suite-card .saved-actions button.secondary,
.suite-body .suite-card .saved-actions a.secondary.link-btn {
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  border: 1px solid rgba(164, 178, 207, 0.3);
  background: rgba(36, 45, 69, 0.7);
  color: #d6def3;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  display: inline-block;
}

.suite-body .suite-card .saved-actions button.remove {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.85);
}

.suite-body .admin-msg.ok {
  color: #4ade80;
}

.suite-body .admin-msg.err {
  color: #fca5a5;
}

.suite-body.profile-body .profile-main.container {
  margin-top: 0;
  max-width: 1120px;
}

.suite-body.profile-body .profile-grid {
  margin-top: 1rem;
}

.suite-body.profile-body .profile-grid > .profile-card {
  margin-top: 0;
}

.suite-body .profile-card {
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(21, 27, 43, 0.74);
  box-shadow: 0 12px 28px rgba(3, 7, 18, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.suite-body .profile-card--accent {
  border-color: rgba(99, 130, 255, 0.35);
}

.suite-body .profile-card-title {
  color: #f2f4fb;
}

.suite-body .profile-card-sub {
  color: #9ba8c9;
}

.suite-body .profile-kicker {
  color: #94a3c4;
}

.suite-body .profile-title {
  color: #f2f4fb;
}

.suite-body .profile-lead {
  color: #a8b1c7;
}

.suite-body .profile-lead strong {
  color: #e5e7ef;
}

.suite-body .profile-label {
  color: #c8d1e5;
}

.suite-body .profile-field input,
.suite-body .profile-field select,
.suite-body .profile-select {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.suite-body .profile-input-readonly {
  background: rgba(15, 22, 38, 0.9) !important;
  color: #9ba8c9 !important;
}

.suite-body .profile-card-icon {
  background: rgba(36, 45, 69, 0.75);
  color: #c8d1e5;
  border-color: rgba(140, 156, 192, 0.25);
}

.suite-body .profile-card-icon--muted,
.suite-body .profile-card-icon--ghost {
  background: rgba(26, 34, 53, 0.65);
  color: #8b9cc4;
}

.suite-body .profile-card--placeholder {
  background: rgba(15, 20, 34, 0.55);
}

.suite-body .profile-placeholder-badge {
  background: rgba(36, 45, 69, 0.75);
  color: #9ba8c9;
  border-color: rgba(140, 156, 192, 0.22);
}

.suite-body .profile-placeholder-hint {
  color: #9ba8c9;
}

.suite-body .profile-ph-line {
  background: linear-gradient(90deg, rgba(60, 72, 102, 0.5), rgba(90, 104, 138, 0.35));
}

.suite-body .profile-msg.ok {
  color: #4ade80;
}

.suite-body .profile-msg.err {
  color: #fca5a5;
}

.suite-session-hint {
  max-width: 14rem;
  line-height: 1.35;
  font-size: 0.78rem;
  color: #9ba8c9;
}

.app-body.suite-body .card {
  border: 1px solid rgba(140, 156, 192, 0.22);
  border-radius: 18px;
  background: rgba(21, 27, 43, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(3, 7, 18, 0.35);
  color: #e5e7ef;
}

.app-body.suite-body .card h2 {
  color: #f2f4fb;
}

.app-body.suite-body .app-view-tab {
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(21, 27, 43, 0.65);
  color: #9ba8c9;
}

.app-body.suite-body .app-view-tab:hover {
  border-color: rgba(129, 140, 248, 0.45);
  color: #dce5fb;
  background: rgba(30, 38, 62, 0.75);
}

.app-body.suite-body .app-view-tab--active {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(145deg, #4338ca, #3730a3);
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28);
}

.app-body.suite-body .app-view-tab--active:hover {
  filter: brightness(1.06);
  color: #fff;
}

.app-body.suite-body label {
  color: #d0d8ee;
}

.app-body.suite-body input,
.app-body.suite-body textarea,
.app-body.suite-body select {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.app-body.suite-body input:focus,
.app-body.suite-body textarea:focus,
.app-body.suite-body select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.app-body.suite-body .item-row input,
.app-body.suite-body .item-row textarea,
.app-body.suite-body .item-row select {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.app-body.suite-body .table-head {
  color: #9ba8c9;
}

.app-body.suite-body .item-row {
  border-color: rgba(140, 156, 192, 0.22);
}

.app-body.suite-body .hint,
.app-body.suite-body .draft-status,
.app-body.suite-body .saved-meta,
.app-body.suite-body .saved-customer,
.app-body.suite-body .saved-pager-info {
  color: #9ba8c9;
}

.app-body.suite-body .saved-quote-line {
  color: #dce5fb;
}

.app-body.suite-body .saved-title {
  color: #f2f4fb;
}

.app-body.suite-body .saved-list-item {
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(26, 34, 53, 0.65);
}

.app-body.suite-body .saved-search {
  background: rgba(9, 14, 25, 0.85);
  color: #eff3ff;
  border: 1px solid rgba(140, 156, 192, 0.32);
}

.app-body.suite-body .line-total {
  color: #f2f4fb;
}

.app-body.suite-body button.secondary,
.app-body.suite-body .secondary.link-btn {
  border: 1px solid rgba(164, 178, 207, 0.3);
  background: rgba(36, 45, 69, 0.7);
  color: #d6def3;
  box-shadow: none;
}

.app-body.suite-body button:not(.secondary):not(.remove):not(.lang-btn):not(.cust-hub-card):not(.kf-lang-btn):not(.kf-source-tile):not(.kf-duplicate-link),
.app-body.suite-body .link-btn:not(.secondary) {
  border: 1px solid rgba(99, 130, 255, 0.6);
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #eef2ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.app-body.suite-body .lang-btn {
  box-shadow: none;
  background: rgba(36, 45, 69, 0.75);
  color: #d6def3;
  border: 1px solid rgba(164, 178, 207, 0.35);
}

.app-body.suite-body .lang-btn.active {
  border-color: rgba(129, 140, 248, 0.85);
  color: #e0e7ff;
}

@media (max-width: 700px) {
  .suite-app-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Dashboard: Sidebar, Hero, Widgets (Mockup-aligned, Premium Dark) —— */
.suite-dashboard-body {
  overflow: hidden;
  background:
    radial-gradient(ellipse 1000px 720px at -8% 15%, rgba(249, 115, 22, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 900px 680px at 108% 8%, rgba(167, 139, 250, 0.16) 0%, transparent 48%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, #0b0d17 0%, #0d101c 38%, #101525 72%, #0b0f18 100%) !important;
}

.dash-shell {
  --dash-sidebar-width: 260px;
  --dash-sidebar-width-collapsed: 76px;
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.dash-sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1301;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.35);
  background: rgba(19, 25, 41, 0.92);
  color: #e5e7ef;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(3, 7, 18, 0.5);
}

.dash-sidebar {
  width: var(--dash-sidebar-width);
  flex-shrink: 0;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem 1rem;
  border-right: 1px solid rgba(140, 156, 192, 0.2);
  background: rgba(12, 16, 28, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1300;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  transition:
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-sidebar-collapse {
  display: none;
  position: absolute;
  top: 1rem;
  right: 0.35rem;
  z-index: 5;
  width: 1.85rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 156, 192, 0.28);
  border-radius: 10px;
  background: rgba(21, 27, 43, 0.9);
  color: #c8d4ee;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-sidebar-collapse:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

.dash-nav-text,
.dash-brand-text,
.dash-nav-label .dash-nav-text,
.dash-sidebar-user-text,
.dash-sidebar-admin .dash-nav-text {
  transition: opacity 0.22s ease, max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.dash-shell--collapsed {
  --dash-sidebar-width: var(--dash-sidebar-width-collapsed);
}

.dash-shell--collapsed .dash-sidebar {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.dash-shell--collapsed .dash-sidebar-collapse-icon {
  transform: rotate(180deg);
}

.dash-shell--collapsed .dash-nav-text,
.dash-shell--collapsed .dash-brand-text,
.dash-shell--collapsed .dash-nav-label,
.dash-shell--collapsed .dash-sidebar-user-text,
.dash-shell--collapsed .dash-sidebar-admin .dash-nav-text,
.dash-shell--collapsed .dash-badge {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.dash-shell--collapsed .dash-nav-link {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.dash-shell--collapsed .dash-brand-link {
  align-items: center;
}

.dash-shell--collapsed .dash-brand-logo {
  max-width: 44px;
  height: 36px;
}

.dash-shell--collapsed .dash-sidebar-user {
  justify-content: center;
  padding: 0.65rem 0.35rem;
}

.dash-shell--collapsed .dash-sidebar-user-chevron {
  display: none;
}

.dash-shell--collapsed .dash-sidebar-admin {
  padding: 0.45rem;
}

.dash-shell--collapsed .dash-sidebar-admin .dash-sidebar-admin-icon {
  margin: 0 auto;
}

.dash-sidebar-brand {
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.12);
  margin-bottom: 0.75rem;
}

.dash-brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.dash-brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.dash-brand-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3c4;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-nav-label {
  margin: 1rem 0.5rem 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  color: #c8d4ee;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease;
}

.dash-nav-link:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.22);
  color: #f1f5ff;
}

.dash-nav-link--active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

.dash-nav-link--readonly {
  opacity: 0.62;
  color: #8fa0b8;
}

.dash-nav-link--readonly:hover {
  opacity: 0.78;
  color: #a8b8d0;
}

.dash-nav-readonly-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: #8fa0b8;
  margin-left: 0.15rem;
}

.dash-nav-readonly-icon {
  margin-left: auto;
  font-size: 0.95rem;
  color: #8fa0b8;
  opacity: 0.85;
}

.dash-nav-link--placeholder {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.dash-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.92;
}

.dash-nav-icon .ti {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
  color: currentColor;
}

.dash-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #e9d5ff;
}

.dash-sidebar-spacer {
  flex: 1;
  min-height: 0.5rem;
}

.dash-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dash-sidebar-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.55) 0%, rgba(69, 10, 10, 0.65) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(220, 38, 38, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.dash-sidebar-admin:hover {
  color: #fff;
  border-color: rgba(252, 165, 165, 0.75);
  background: linear-gradient(165deg, rgba(153, 27, 27, 0.72) 0%, rgba(91, 15, 15, 0.82) 100%);
}

.dash-sidebar-admin-icon {
  display: flex;
  color: #f87171;
}

.dash-sidebar-admin-icon .ti {
  font-size: 1.125rem;
  line-height: 1;
  display: block;
}

.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.18);
  background: rgba(21, 27, 43, 0.65);
  position: relative;
}

.dash-sidebar-user-chevron {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.dash-sidebar-user-chevron:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #e2e8f0;
}

.dash-sidebar-user-chevron[aria-expanded="true"] {
  background: rgba(99, 102, 241, 0.2);
  color: #f1f5ff;
}

.dash-sidebar-user-chevron svg {
  transition: transform 0.2s ease;
}

.dash-sidebar-user-chevron[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dash-sidebar-user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 30;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(16, 21, 36, 0.98);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.5);
}

.dash-sidebar-user-menu-item {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.dash-sidebar-user-menu-item:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.dash-sidebar-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.5), rgba(124, 58, 237, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.dash-sidebar-user-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dash-sidebar-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f2f4fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-role {
  font-size: 0.72rem;
  color: #94a3c4;
}

.dash-sidebar-backdrop {
  display: none;
}

.dash-main-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(8, 11, 18, 0.25);
}

.dash-topbar {
  position: relative;
  flex-shrink: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.15);
  background: rgba(15, 19, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dash-topbar-user {
  font-size: 0.86rem;
  color: #b8c5df;
}

.suite-viewas-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  color: #fae8c8;
  background: rgba(239, 159, 39, 0.16);
  border-bottom: 1px solid rgba(239, 159, 39, 0.35);
}

.suite-viewas-banner a {
  color: #fcd98a;
  text-decoration: underline;
}

.suite-viewas-banner a:hover {
  color: #fff3d6;
}

.dash-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

/* Dashboard: Widget-Menü */
.dash-widget-menu-wrap {
  position: relative;
  z-index: 210;
}

.dash-widget-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.32);
  background: rgba(21, 27, 43, 0.75);
  color: #dbe4f5;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-widget-menu-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
}

.dash-widget-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 220;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: 0.85rem 0.75rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(14, 18, 30, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  animation: dash-widget-menu-in 0.22s ease;
}

@keyframes dash-widget-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-widget-menu-head {
  padding: 0 0.35rem 0.65rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.15);
  margin-bottom: 0.65rem;
}

.dash-widget-menu-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.dash-widget-menu-lead {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8896b5;
}

.dash-widget-menu-section {
  margin-bottom: 0.55rem;
}

.dash-widget-menu-section-label {
  margin: 0 0 0.35rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.dash-widget-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.45rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.dash-widget-menu-row:hover {
  background: rgba(99, 102, 241, 0.1);
}

.dash-widget-menu-row-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.dash-widget-menu-badge {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #e9d5ff;
}

.dash-widget-toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.35rem;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(140, 156, 192, 0.35);
  background: rgba(30, 36, 52, 0.9);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-widget-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.dash-widget-toggle:checked {
  background: rgba(99, 102, 241, 0.55);
  border-color: rgba(129, 140, 248, 0.65);
}

.dash-widget-toggle:checked::after {
  transform: translateX(1.1rem);
  background: #fff;
}

.dash-widget-menu-actions {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(140, 156, 192, 0.15);
  margin-top: 0.25rem;
}

.dash-widget-menu-reset {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.25);
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.dash-widget-menu-reset:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #e2e8f0;
}

[data-dash-widget] {
  transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.35s ease;
}

[data-dash-widget].dash-widget--hidden {
  display: none !important;
}

.dash-topbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.25rem;
}

.dash-topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: #94a3b8;
  border: 1px solid transparent;
  opacity: 0.85;
  cursor: default;
}

.dash-topbar-icon-btn--link {
  text-decoration: none;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dash-topbar-icon-btn--link:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.22);
  color: #e2e8f0;
}

.dash-topbar-icon-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(15, 19, 32, 0.9);
}

.dash-topbar-link {
  font-size: 0.84rem;
  color: #9bb5ff;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-topbar-link:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #e8ecff;
}

.dash-logout-btn {
  padding: 0.48rem 0.95rem;
}

.dash-content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.25rem 1.25rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.dash-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: #0b0d17;
  box-shadow: 0 20px 50px rgba(3, 7, 18, 0.45);
  min-height: clamp(148px, 20vw, 210px);
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 72% 58% at 100% 88%, rgba(249, 115, 22, 0.11) 0%, transparent 52%),
    radial-gradient(ellipse 58% 48% at 96% 10%, rgba(167, 139, 250, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.dash-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dash-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 9, 15, 0.78) 0%, rgba(7, 9, 15, 0.28) 28%, transparent 54%),
    linear-gradient(
      90deg,
      #0b0d17 0%,
      #0b0d17 10%,
      rgba(11, 13, 23, 0.98) 20%,
      rgba(11, 13, 23, 0.92) 32%,
      rgba(11, 13, 23, 0.58) 44%,
      rgba(11, 13, 23, 0.2) 56%,
      rgba(11, 13, 23, 0.05) 66%,
      transparent 76%
    );
}

.dash-hero-inner {
  position: relative;
  z-index: 3;
  display: block;
  padding: 1.35rem 1.35rem 1.25rem;
}

.dash-hero-copy {
  min-width: 0;
}

.dash-hero-clock {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(102deg, #fb7185 0%, #d946ef 32%, #a78bfa 55%, #fb923c 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  filter: drop-shadow(0 2px 24px rgba(124, 58, 237, 0.25));
}

.dash-hero-greeting {
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.dash-hero-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 36rem;
}

.dash-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(10, 14, 26, 0.55);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.dash-chip--placeholder {
  border-style: dashed;
  opacity: 0.85;
}

.dash-chip-icon {
  display: flex;
  color: #a5b4fc;
  flex-shrink: 0;
}

.dash-chip-label {
  color: #94a3b8;
}

.dash-chip-value {
  font-weight: 600;
  color: #f1f5f9;
}

.dash-chip--accent-indigo .dash-chip-icon {
  color: #a5b4fc;
}

.dash-chip--accent-amber .dash-chip-icon {
  color: #fb923c;
}

.dash-chip--accent-teal .dash-chip-icon {
  color: #2dd4bf;
}

.dash-chip--accent-blue .dash-chip-icon {
  color: #60a5fa;
}

.dash-chip--accent-red {
  text-decoration: none;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.22);
}

.dash-chip--accent-red .dash-chip-icon {
  color: #f87171;
}

.dash-chip--accent-red:hover {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.32);
}

.dash-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 48%;
  transform: scale(1.03);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1rem;
}

.dash-card {
  grid-column: 1 / -1;
  border-radius: 22px;
  border: 1px solid rgba(140, 156, 192, 0.18);
  background: rgba(18, 24, 38, 0.58);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: 0 14px 40px rgba(3, 7, 18, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dash-card:hover {
  border-color: rgba(140, 156, 192, 0.26);
  background: rgba(22, 29, 46, 0.68);
  box-shadow: 0 20px 50px rgba(3, 7, 18, 0.48);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.dash-card-head--stack {
  align-items: flex-start;
}

.dash-card-head--stats {
  flex-wrap: wrap;
}

.dash-card-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #8896b5;
  font-weight: 400;
}

.dash-stat-period {
  margin-left: auto;
}

.dash-stat-select {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 1.9rem 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.28);
  background: rgba(10, 14, 26, 0.65);
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.75;
}

.dash-card-link {
  font-size: 0.84rem;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

.dash-card-link:hover {
  text-decoration: underline;
}

.dash-muted {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #8896b5;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .dash-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .dash-quick-tile {
    min-height: 132px;
  }
}

.dash-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 118px;
  padding: 1rem 0.55rem;
  border-radius: 16px;
  text-decoration: none;
  color: #e8ecf5;
  border: 1px solid rgba(140, 156, 192, 0.2);
  background: rgba(14, 18, 32, 0.65);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease;
}

.dash-quick-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(30, 38, 62, 0.75);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.dash-quick-label {
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}

.dash-quick-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dash-quick-icon--violet {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.35);
}

.dash-quick-icon--amber {
  background: linear-gradient(145deg, #d97706, #b45309);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.3);
}

.dash-quick-icon--teal {
  background: linear-gradient(145deg, #0d9488, #0f766e);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.3);
}

.dash-quick-icon--blue {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.dash-card-head--calendar {
  align-items: flex-start;
}

.dash-card-head-calendar-text {
  min-width: 0;
}

.dash-card-sub--calendar {
  margin-top: 0.2rem;
  color: #8b9ab8;
  font-size: 0.82rem;
}

.dash-card-link--cal-open {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.dash-cal-split {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .dash-cal-split {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 30%);
    align-items: start;
    gap: 0.85rem;
  }
}

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

.dash-event-list {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 3.75rem;
  max-height: min(9.25rem, 26vh);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 150, 0.14);
  background: rgba(8, 11, 20, 0.55);
}

.dash-event-item {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem;
  border-bottom: 1px solid rgba(100, 116, 150, 0.12);
}

.dash-event-item:last-child {
  border-bottom: none;
}

.dash-event-item--plain,
.dash-event-item--empty {
  border: none;
  padding: 0.65rem 0.55rem;
  font-size: 0.84rem;
  color: #9aa8c4;
  line-height: 1.45;
}

.dash-event-item--empty {
  font-style: italic;
  color: #6b7a96;
}

.dash-event-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.dash-event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.dash-event-time {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dash-event-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.dash-event-meta {
  font-size: 0.78rem;
  color: #6b7c99;
  line-height: 1.35;
}

.dash-event-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.42rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-event-dot--indigo {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 0 0 2px rgba(12, 16, 28, 0.85), 0 0 12px rgba(37, 99, 235, 0.45);
}

.dash-event-dot--violet {
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  box-shadow: 0 0 0 2px rgba(12, 16, 28, 0.85), 0 0 12px rgba(124, 58, 237, 0.4);
}

.dash-event-dot--event-angefragt { background: #378add; }
.dash-event-dot--event-bestaetigt { background: #1d9e75; }
.dash-event-dot--event-abgeschlossen { background: #5f5e5a; }
.dash-event-dot--event-storniert { background: #e24b4a; }
.dash-event-dot--intern-ferien { background: #ef9f27; }
.dash-event-dot--intern-equipment { background: #534ab7; }
.dash-event-dot--intern-meeting { background: #1d9e75; }
.dash-event-dot--intern-persoenlich { background: #888780; }

.dash-cal-cta {
  margin-top: 0.55rem;
  display: inline-flex;
  text-decoration: none;
  width: fit-content;
  align-self: flex-start;
}

.dash-cal-mini-wrap {
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 150, 0.16);
  padding: 0.5rem 0.45rem 0.6rem;
  background: rgba(8, 11, 20, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-cal-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding: 0 0.1rem;
}

.dash-cal-mini-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(36, 45, 69, 0.55);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-cal-mini-nav:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

.dash-cal-mini-title {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.dash-cal-mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.dash-cal-mini-wd {
  font-size: 0.62rem;
  font-weight: 500;
  text-align: center;
  color: #5c6b89;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-cal-mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem 0.15rem;
}

.dash-cal-mini-day {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  padding: 0.32rem 0;
  min-height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #e2e8f0;
}

.dash-cal-mini-day--muted {
  color: #3d4a63;
  font-weight: 400;
}

.dash-cal-mini-day--today {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 6px 16px rgba(29, 78, 216, 0.35);
}

.dash-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dash-focus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #dce5fb;
  line-height: 1.35;
}

.dash-focus-dot {
  width: 7px;
  height: 7px;
  margin-top: 0.38rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.dash-focus-dot--muted {
  background: #475569;
  box-shadow: none;
}

.dash-card-footer-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: #93c5fd;
  text-decoration: none;
}

.dash-card-footer-link:hover {
  text-decoration: underline;
}

.dash-card-footer-link--muted {
  color: #64748b;
  cursor: default;
  pointer-events: none;
}

.dash-card-footer-link--muted-soft {
  color: #64748b;
  cursor: not-allowed;
}

.dash-card-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
}

.dash-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-feed--timeline {
  position: relative;
  padding-left: 0.15rem;
}

.dash-feed--timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.15), transparent);
  pointer-events: none;
}

.dash-feed-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.12);
}

.dash-feed--timeline .dash-feed-item:not(.dash-feed-item--wide) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem 0.65rem;
  align-items: flex-start;
}

.dash-feed-glyph {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.38rem;
  box-shadow: 0 0 0 2px rgba(12, 16, 28, 0.95);
  position: relative;
  z-index: 1;
}

.dash-feed-glyph--violet {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
}

.dash-feed-glyph--blue {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.dash-feed-item--wide {
  flex-direction: column;
  gap: 0.35rem;
  display: flex;
}

.dash-feed-item--wide .dash-feed-time {
  align-self: flex-start;
}

.dash-feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-feed-item--placeholder .dash-feed-time {
  color: #64748b;
  flex-shrink: 0;
  text-align: right;
}

.dash-feed-time {
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.dash-feed-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  min-width: 0;
}

.dash-feed-text code {
  font-size: 0.78em;
  color: #a5b4fc;
}

.dash-inline-hint {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 400;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .dash-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-stat {
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  border: 1px solid rgba(140, 156, 192, 0.16);
  background: rgba(10, 14, 26, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-stat--placeholder {
  border-style: dashed;
  opacity: 0.92;
}

.dash-stat-label {
  font-size: 0.68rem;
  color: #8896b5;
  line-height: 1.25;
}

.dash-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
}

.dash-stat-delta {
  font-size: 0.72rem;
  font-weight: 500;
}

.dash-stat-delta--up {
  color: #4ade80;
}

.dash-stat-delta--neutral {
  color: #64748b;
  font-weight: 400;
}

.dash-tip {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(140, 156, 192, 0.18);
  background: rgba(17, 24, 39, 0.65);
}

.dash-tip-icon {
  color: #fbbf24;
  flex-shrink: 0;
}

.dash-tip-text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.86rem;
  color: #b8c5df;
  line-height: 1.45;
}

.dash-tip-text strong {
  color: #e2e8f0;
}

.dash-tip-btn {
  font-size: 0.84rem;
  font-weight: 500;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}

.dash-tip-btn:hover {
  text-decoration: underline;
}

@media (min-width: 1080px) {
  .dash-card-quick {
    grid-column: span 5;
  }

  .dash-card-calendar {
    grid-column: span 7;
  }

  .dash-card-focus,
  .dash-card-activity,
  .dash-card-stats {
    grid-column: span 4;
  }
}

@media (min-width: 1024px) and (min-height: 760px) {
  .suite-dashboard-body .dash-content {
    padding-top: 0.85rem;
    padding-bottom: 1rem;
  }

  .suite-dashboard-body .dash-card {
    padding: 0.88rem 0.95rem 0.92rem;
  }

  .suite-dashboard-body .dash-card-head {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 900px) {
  .dash-hero-photo {
    object-position: 62% 42%;
  }

  .dash-hero-fade {
    background:
      linear-gradient(to top, rgba(7, 9, 15, 0.88) 0%, rgba(7, 9, 15, 0.4) 32%, transparent 56%),
      linear-gradient(
        90deg,
        #0b0d17 0%,
        rgba(11, 13, 23, 0.98) 24%,
        rgba(11, 13, 23, 0.82) 40%,
        rgba(11, 13, 23, 0.42) 52%,
        rgba(11, 13, 23, 0.1) 64%,
        transparent 74%
      );
  }
}

@media (max-width: 1023px) {
  .dash-sidebar-toggle {
    display: flex;
  }

  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  }

  .dash-shell--nav-open .dash-sidebar {
    transform: translateX(0);
  }

  .dash-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1299;
    background: rgba(4, 8, 16, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 0;
    cursor: pointer;
    display: none;
    pointer-events: none;
  }

  .dash-sidebar-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
  }

  .dash-shell--nav-open .dash-sidebar-backdrop {
    display: block;
    pointer-events: auto;
    animation: dash-backdrop-in 0.25s ease forwards;
  }

  .dash-shell--nav-open .dash-sidebar-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
  }

  .dash-topbar {
    padding-left: 3.6rem;
  }
}

@keyframes dash-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .dash-sidebar-backdrop {
    display: none !important;
  }

  .dash-sidebar-collapse {
    display: inline-flex;
  }
}

/* Seiten mit Sidebar: Hauptinhalt im Flex-Layout */
body.suite-has-sidebar .dash-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.suite-has-sidebar .dash-main .suite-main,
body.suite-has-sidebar .dash-main .suite-main.app-main,
body.suite-has-sidebar .dash-main .suite-main.calendar-main {
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

body.suite-has-sidebar.suite-calendar-body,
body.suite-has-sidebar.app-body,
body.suite-has-sidebar.profile-body {
  background:
    radial-gradient(ellipse 1000px 720px at -8% 15%, rgba(249, 115, 22, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 900px 680px at 108% 8%, rgba(167, 139, 250, 0.12) 0%, transparent 48%),
    linear-gradient(165deg, #0b0d17 0%, #0d101c 38%, #101525 72%, #0b0f18 100%) !important;
}

body.suite-has-sidebar.profile-body {
  min-height: 0;
}

body.suite-has-sidebar:not(.suite-dashboard-body) .suite-topbar {
  border-bottom: 1px solid rgba(140, 156, 192, 0.15);
  background: rgba(15, 19, 32, 0.55);
}

@media (min-width: 1024px) {
  body.suite-has-sidebar:not(.suite-dashboard-body) .suite-topbar {
    padding-left: 1.25rem;
  }
}

/* —— Equipment-Modul —— */
.eq-page,
.eq-detail-page {
  --color-background-secondary: rgba(15, 19, 32, 0.65);
  --color-border-tertiary: rgba(140, 156, 192, 0.16);
  --color-text-tertiary: #8896b5;
  --border-radius-md: 12px;
}

.eq-topbar {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.eq-topbar h1 {
  font-size: 22px !important;
  margin: 0.15rem 0 0;
}

.eq-topbar p,
.eq-topbar .eq-back-link + h1 + p,
.eq-topbar .suite-topbar-left > p {
  font-size: 13px !important;
  color: var(--color-text-tertiary) !important;
  margin: 0.2rem 0 0;
}

.eq-back-link {
  display: inline-block;
  font-size: 13px;
  color: #a5b4fc;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.eq-back-link:hover {
  text-decoration: underline;
}

.eq-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .eq-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.eq-stat-card {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
}

.eq-stat-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 0.35rem;
}

.eq-stat-value-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.eq-stat-value {
  font-size: 24px;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.1;
}

.eq-stat-card--alert .eq-stat-value {
  color: #f87171;
}

.eq-stat-warn-icon {
  color: #f87171;
  font-size: 1rem;
  line-height: 1;
}

.eq-collision-banner {
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
  padding: 0.85rem 1rem;
}

.eq-collision-banner-inner strong {
  color: #fecaca;
  display: block;
  margin-bottom: 0.35rem;
}

.eq-collision-banner-inner p {
  margin: 0 0 0.5rem;
  color: #fca5a5;
  font-size: 0.9rem;
}

.eq-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.eq-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.eq-filter-btn {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.55);
  color: #c5cee0;
  cursor: pointer;
}

.eq-filter-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
}

.eq-filter-btn--active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(129, 140, 248, 0.55);
  color: #e0e7ff;
}

.eq-table-wrap {
  overflow-x: auto;
}

.eq-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.eq-col-device { width: 28%; }
.eq-col-status { width: 14%; }
.eq-col-event { width: 22%; }
.eq-col-util { width: 16%; }
.eq-col-maint { width: 12%; }
.eq-col-actions { width: 8%; }

.eq-table th,
.eq-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.14);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  font-weight: 600;
}

.eq-table-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  padding: 1.5rem !important;
}

.eq-device-name {
  font-weight: 500;
  color: #f8fafc;
}

.eq-meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: 0.15rem;
}

.eq-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.eq-badge--green {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.eq-badge--orange {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.eq-badge--red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.eq-badge--gray {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.eq-util-bar {
  position: relative;
  height: 1.35rem;
  min-width: 5rem;
  border-radius: 6px;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(140, 156, 192, 0.16);
  overflow: hidden;
}

.eq-util-bar--none {
  background: rgba(100, 116, 139, 0.18);
}

.eq-util-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 5px 0 0 5px;
}

.eq-util-fill--none {
  display: none;
}

.eq-util-fill--low {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 0.25));
}

.eq-util-fill--mid {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.55), rgba(249, 115, 22, 0.25));
}

.eq-util-fill--high {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.55), rgba(239, 68, 68, 0.25));
}

.eq-util-bar span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e5e7ef;
}

.eq-overdue {
  color: #f87171 !important;
  font-weight: 600;
}

.eq-event-link,
.eq-detail-link {
  color: #a5b4fc;
  text-decoration: none;
  display: inline-block;
}

.eq-event-link:hover,
.eq-detail-link:hover {
  text-decoration: underline;
}

.eq-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .eq-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.eq-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .eq-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .eq-detail-maint-card {
    grid-column: 1 / -1;
  }
}

.eq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.eq-section-head h2 {
  margin: 0;
  font-size: 1rem;
}

.eq-log-list,
.eq-consumable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 22rem;
  overflow-y: auto;
}

.eq-log-item,
.eq-consumable-item {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.14);
  background: rgba(15, 19, 32, 0.45);
}

.eq-log-head,
.eq-consumable-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.eq-log-item p {
  margin: 0.35rem 0;
  font-size: 0.86rem;
}

.eq-log-empty {
  color: var(--color-text-tertiary);
  font-size: 0.88rem;
  padding: 0.5rem 0;
}

.eq-consumable--low {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.12);
}

.eq-consumable-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.eq-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cal-modal-equipment {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
}

.cal-modal-equipment-select {
  width: 100%;
  min-height: 6.5rem;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.65);
  color: #e5e7ef;
}

.eq-page-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
  font-size: 0.9rem;
}

.eq-stammdaten-form,
.eq-maint-inline-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eq-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eq-form-row--2 .eq-form-field--wide {
  flex: 2 1 12rem;
  min-width: 10rem;
}

.eq-form-row--2 .eq-form-field:not(.eq-form-field--wide) {
  flex: 1 1 8rem;
  min-width: 8rem;
}

.eq-form-row--3 .eq-form-field {
  flex: 1 1 8rem;
  min-width: 8rem;
}

.eq-form-field--full {
  flex: 1 1 100%;
  width: 100%;
}

.eq-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.eq-form-label {
  font-size: 12px;
  color: var(--color-text-tertiary, #8896b5);
  font-weight: 500;
}

.eq-stammdaten-form input,
.eq-stammdaten-form select,
.eq-stammdaten-form textarea,
.eq-maint-inline-form input,
.eq-maint-inline-form select,
.eq-maint-inline-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.65);
  color: #e5e7ef;
  box-sizing: border-box;
}

.eq-form-row--actions {
  justify-content: flex-end;
  gap: 0.5rem;
}

.eq-maint-inline-form {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.18);
  background: rgba(15, 19, 32, 0.45);
}

.eq-maint-inline-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7ef;
}

/* —— Events-Modul —— */
.ev-page,
.ev-detail-page {
  --color-background-primary: rgba(15, 19, 32, 0.65);
  --color-background-secondary: rgba(15, 19, 32, 0.65);
  --color-border-secondary: rgba(140, 156, 192, 0.22);
  --color-border-tertiary: rgba(140, 156, 192, 0.16);
  --color-text-tertiary: #8896b5;
  --border-radius-md: 12px;
  --ev-section-gap: 14px;
}

.ev-page .suite-main {
  display: flex;
  flex-direction: column;
  gap: var(--ev-section-gap);
  padding: 1rem 1.25rem 2rem;
}

.ev-page .suite-topbar.eq-topbar {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0.15rem 0 0 !important;
  margin: 0;
  align-items: center;
}

.ev-page .suite-topbar-left .suite-badge {
  display: block;
  margin-bottom: 0.35rem;
}

.ev-page .suite-topbar-right {
  align-items: center;
  padding-top: 0.15rem;
}

.ev-page .eq-stats-grid {
  margin: 0;
  gap: 10px;
}

.ev-page .eq-stat-card {
  padding: 12px 14px;
}

.ev-page .eq-stat-label {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.ev-page .eq-stat-value {
  font-size: 22px;
}

.ev-page .ev-table-toolbar.eq-table-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ev-page .ev-table-toolbar .eq-filter-group {
  flex-shrink: 0;
  gap: 0.4rem;
}

.ev-page .ev-search {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: #e5e7ef;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-secondary);
  box-sizing: border-box;
}

.ev-page .suite-card {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
}

.ev-page .suite-card h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ev-page .eq-topbar h1 {
  margin: 0 !important;
}

.ev-page .eq-topbar p {
  margin: 0.2rem 0 0 !important;
}

.ev-page .eq-filter-btn {
  padding: 0.4rem 0.75rem;
  line-height: 1.2;
}

.ev-page .ev-search,
.ev-page .eq-filter-btn {
  min-height: 2.1rem;
}

@media (max-width: 768px) {
  .ev-page .ev-table-toolbar.eq-table-toolbar {
    flex-wrap: wrap;
  }
  .ev-page .ev-search {
    flex-basis: 100%;
  }
}

.ev-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ev-table th, .ev-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid rgba(140, 156, 192, 0.14); vertical-align: middle; }
.ev-table th { font-size: 0.72rem; text-transform: uppercase; color: var(--color-text-tertiary); }
.ev-table tbody tr.ev-row-clickable { cursor: pointer; transition: background 0.12s ease; }
.ev-table tbody tr.ev-row-clickable:hover { background: var(--color-background-secondary); }
.ev-bar-cell { width: 6px; padding: 0 !important; }
.ev-bar { display: block; width: 3px; min-height: 2.5rem; border-radius: 2px; margin: 0 auto; }
.ev-bar--green { background: #22c55e; }
.ev-bar--blue { background: #3b82f6; }
.ev-bar--gray { background: #64748b; }
.ev-bar--red { background: #ef4444; }
.ev-badge--blue { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); }
.ev-badge--green { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.ev-badge--gray { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.35); }
.ev-badge--red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.ev-badge--orange { background: rgba(249, 115, 22, 0.18); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.ev-chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: rgba(99, 102, 241, 0.15); color: #c7d2fe; margin: 2px 4px 2px 0; }
.ev-equip-cell { min-width: 7rem; }
.ev-amount { text-align: right; white-space: nowrap; }
.ev-date { text-align: right; color: var(--color-text-tertiary); font-size: 0.82rem; white-space: nowrap; }
.ev-muted { color: var(--color-text-tertiary); font-size: 0.82rem; }
.ev-kunde-name { display: block; font-weight: 600; color: #e5e7ef; }
.ev-event-meta { font-size: 0.82rem; color: var(--color-text-tertiary); margin-top: 0.15rem; }
.ev-table-wrap { overflow-x: auto; }
.ev-table-toolbar.eq-table-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ev-table-toolbar .eq-filter-group { flex-shrink: 0; }
.ev-search {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: #e5e7ef;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-secondary);
  box-sizing: border-box;
}
.ev-search::placeholder { color: var(--color-text-tertiary); }
.ev-search:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.ev-section-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  padding: 2rem 1rem;
  margin: 0;
}
.ev-section-empty-inline {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.ev-event-form { display: flex; flex-direction: column; gap: 16px; }
.ev-event-form input, .ev-event-form select, .ev-event-form textarea {
  width: 100%; font: inherit; font-size: 0.9rem; padding: 0.5rem 0.65rem; border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22); background: rgba(15, 19, 32, 0.65); color: #e5e7ef; box-sizing: border-box;
}
.ev-time-inputs { display: flex; align-items: center; gap: 0.5rem; }
.ev-time-inputs input { flex: 1; }
.ev-checkbox-field { flex-direction: row !important; align-items: center; gap: 0.5rem; }
.ev-betrag-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.ev-betrag-field { flex: 1; min-width: 0; }
.ev-bezahlt-field { flex-shrink: 0; margin-bottom: 0.15rem; }
.ev-equip-warning { color: #fca5a5; font-size: 0.85rem; margin: 0; }
.ev-modal-card { max-width: 42rem; width: 100%; }

.ev-equip-picker { display: flex; flex-direction: column; gap: 0.5rem; }
.ev-equip-select {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.65);
  color: #e5e7ef;
}
.ev-equip-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 0.25rem; }
.ev-equip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}
.ev-equip-chip--collision {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}
.ev-equip-chip--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease;
}
.ev-equip-chip--link:hover { border-color: rgba(129, 140, 248, 0.65); }
.ev-equip-chip-warn { color: #f87171; }
.ev-equip-chip-remove {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 0.1rem;
  opacity: 0.75;
}
.ev-equip-chip-remove:hover { opacity: 1; }

.ev-detail-layout { display: flex; flex-direction: column; gap: 14px; }
.ev-detail-form-card { width: 100%; }
.ev-detail-row-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 768px) {
  .ev-detail-row-a { grid-template-columns: 1fr; }
  .ev-table-toolbar.eq-table-toolbar { flex-wrap: wrap; }
  .ev-search { flex-basis: 100%; }
}
.ev-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ev-detail-card-head h2 { margin: 0; }
.ev-detail-spesen-card h2 { margin: 0; }
.ev-readonly-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #8fa0b8;
  font-weight: 500;
}
.ev-equip-cards { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ev-detail-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.35rem;
}
.ev-header-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ev-header-badge-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ev-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.35);
  background: transparent;
  color: #c5cee0;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.ev-action-btn:hover {
  border-color: rgba(167, 139, 250, 0.55);
  color: #e0e7ff;
}
.ev-quote-summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}
.ev-quote-number { font-weight: 600; color: #e5e7ef; }
.ev-quote-amount { font-size: 0.9rem; color: var(--color-text-tertiary); }
.ev-expense-list { list-style: none; margin: 0; padding: 0; }
.ev-expense-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto 6rem;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(140, 156, 192, 0.12);
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .ev-expense-item { grid-template-columns: 1fr 1fr; }
  .ev-expense-title { grid-column: 1 / -1; }
}
.ev-expense-date { color: var(--color-text-tertiary); font-size: 0.82rem; }
.ev-expense-title { color: #e5e7ef; }
.ev-expense-amount { text-align: right; white-space: nowrap; }
.ev-expense-who { text-align: right; color: var(--color-text-tertiary); font-size: 0.82rem; }
.ev-calendar-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  background: rgba(15, 19, 32, 0.35);
}
.ev-calendar-banner-text {
  margin: 0;
  font-size: 0.88rem;
  color: #c5cee0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.eq-form-row--align-end { align-items: flex-end; }

/* —— Event-Wizard —— */
.ev-wizard-card {
  width: min(720px, 100%);
  max-height: min(92vh, 860px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 32px;
}

.ev-wizard-card h3 {
  margin: 0 0 0.85rem;
}

.ev-wizard-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.ev-wizard-stepper-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.ev-wizard-step-dot {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ev-wizard-step-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.ev-wizard-step-label {
  display: none;
}

.ev-wizard-step-line {
  flex: 0 1 50px;
  max-width: 50px;
  min-width: 20px;
}

.ev-wizard-step-dot span {
  line-height: 1;
}

.ev-wizard-step-dot--pending {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}

.ev-wizard-step-dot--active {
  background: rgba(99, 102, 241, 0.28);
  border: 1px solid rgba(129, 140, 248, 0.65);
  color: #e0e7ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ev-wizard-step-dot--done {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.ev-wizard-step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: rgba(140, 156, 192, 0.22);
  margin: 0 0.35rem;
}

.ev-wizard-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(140, 156, 192, 0.16);
  overflow: hidden;
  margin-bottom: 0;
}

.ev-wizard-progress-bar {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  transition: width 0.25s ease;
}

.ev-wizard-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding-right: 0.15rem;
  padding-bottom: 20px;
}

.ev-wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.ev-wizard-panel-title {
  margin: 20px 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7ef;
}

.ev-wizard-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
}

.ev-wizard-panel .eq-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ev-wizard-panel .eq-form-label {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ev-wizard-panel input,
.ev-wizard-panel select {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.65);
  color: #e5e7ef;
  box-sizing: border-box;
}

.ev-wizard-conflict-banner {
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(113, 63, 18, 0.35);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: #fde68a;
}

.ev-wizard-conflict-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fef08a;
}

.ev-wizard-conflict-banner ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ev-wizard-conflict-banner li {
  margin: 0.2rem 0;
}

.ev-wizard-summary {
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-md);
  background: rgba(15, 19, 32, 0.45);
  padding: 0.75rem 0.9rem;
}

.ev-wizard-summary-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-wizard-summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ev-wizard-summary-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.ev-wizard-summary-row dt {
  margin: 0;
  color: var(--color-text-tertiary);
}

.ev-wizard-summary-row dd {
  margin: 0;
  color: #e5e7ef;
  font-weight: 500;
}

.ev-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 16px;
  border-top: 0.5px solid var(--color-border-tertiary);
}

.ev-wizard-step-label {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.ev-wizard-save-btn {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
  border-color: rgba(34, 197, 94, 0.55) !important;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35) !important;
  color: #ecfdf5 !important;
}

.ev-wizard-save-btn:hover {
  filter: brightness(1.06);
}

.ev-wizard-save-btn:disabled {
  opacity: 0.55;
  filter: none;
  cursor: not-allowed;
}

.ev-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1400;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(20, 83, 45, 0.92);
  color: #dcfce7;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.ev-wizard-summary-warn {
  margin-top: 0.65rem;
  color: #fdba74;
}

.ev-wizard-panel .ev-betrag-row {
  flex-wrap: wrap;
  align-items: flex-end;
}

.ev-wizard-panel .ev-betrag-row .ev-betrag-field {
  flex: 1 1 8rem;
  min-width: 0;
}

.ev-wizard-panel .ev-betrag-row .ev-bezahlt-field {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .ev-wizard-footer {
    flex-wrap: wrap;
  }
  .ev-wizard-step-label {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .ev-wizard-summary-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* —— Wizard: Kunde Lookup —— */
.ev-kunde-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-kunde-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.ev-kunde-search-input {
  width: 100%;
  height: 40px;
  font: inherit;
  font-size: 0.9rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(15, 19, 32, 0.65);
  color: #e5e7ef;
  box-sizing: border-box;
}

.ev-kunde-search-row .ev-action-btn {
  height: 40px;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ev-kunde-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 14rem;
  overflow-y: auto;
  border-radius: 10px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(12, 16, 28, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ev-kunde-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.86rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: #d6def3;
  cursor: pointer;
}

.ev-kunde-dropdown-item:hover,
.ev-kunde-dropdown-item:focus {
  background: rgba(99, 102, 241, 0.18);
  outline: none;
}

.ev-kunde-dropdown-create {
  color: #a5b4fc;
  border-top: 1px solid rgba(140, 156, 192, 0.14);
}

.ev-kunde-chip-area {
  margin-top: 0.5rem;
}

.ev-kunde-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.ev-kunde-chip-remove {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 0.1rem;
  opacity: 0.8;
}

.ev-kunde-new-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(58vh, 480px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.ev-kunde-new-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* —— KundenFormular (shared) —— */
.kunden-formular {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kunden-formular--compact {
  gap: 0.85rem;
}

.kunden-formular--compact .kf-section {
  gap: 0.55rem;
}

.kf-kunden-nr {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.kf-duplicate {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
  font-size: 0.84rem;
  line-height: 1.45;
}

.kf-duplicate-link {
  font: inherit;
  color: #fed7aa;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kf-duplicate-link:hover {
  color: #fff;
}

.kf-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kf-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.kf-section-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

.kf-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.kf-section-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.kf-grid {
  display: grid;
  gap: 0.65rem;
}

.kf-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kf-grid--plz {
  grid-template-columns: 80px 1fr 60px;
  align-items: end;
}

@media (max-width: 560px) {
  .kf-grid--2,
  .kf-grid--plz {
    grid-template-columns: 1fr;
  }
}

.kf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.kf-label {
  font-size: 0.78rem;
  color: #b6c2d6;
}

.kf-optional {
  color: #64748b;
  font-weight: 400;
}

.kf-field input,
.kf-field select,
.kf-field textarea {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.55);
  color: #e2e8f0;
}

.kf-field textarea {
  resize: vertical;
  min-height: 3.2rem;
}

.kf-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.kf-lang-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kf-lang-btn {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.45);
  color: #c5cee0;
  cursor: pointer;
}

.kf-lang-btn--active {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}

.kf-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 560px) {
  .kf-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kf-source-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 3.6rem;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.45);
  color: #c5cee0;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.kf-source-tile--active {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}

.kf-source-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.kf-plz-picker-wrap {
  margin-top: -0.25rem;
}

/* Kunden-Tab: Formular von .app-body Offerten-Styles isolieren (wie Event-Wizard) */
.app-body.suite-body .kunden-formular label.kf-field {
  color: inherit;
}

.app-body.suite-body .kunden-formular .kf-label {
  color: #b6c2d6;
}

.app-body.suite-body .kunden-formular input,
.app-body.suite-body .kunden-formular textarea,
.app-body.suite-body .kunden-formular select {
  border: 0.5px solid var(--color-border-secondary);
  border-radius: 8px;
  background: rgba(15, 19, 32, 0.55);
  color: #e2e8f0;
  min-height: unset;
  padding: 0.45rem 0.6rem;
  box-shadow: none;
}

.app-body.suite-body .kunden-formular input:focus,
.app-body.suite-body .kunden-formular textarea:focus,
.app-body.suite-body .kunden-formular select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.app-body.suite-body .kunden-formular .kf-lang-btn,
.app-body.suite-body .kunden-formular .kf-source-tile,
.app-body.suite-body .kunden-formular .kf-duplicate-link {
  width: auto;
  min-height: unset;
  justify-content: center;
  text-align: center;
  box-shadow: none;
  filter: none;
  transform: none;
  font-weight: 500;
  cursor: pointer;
}

.app-body.suite-body .kunden-formular .kf-lang-btn,
.app-body.suite-body .kunden-formular .kf-source-tile {
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.45);
  color: #c5cee0;
}

.app-body.suite-body .kunden-formular .kf-lang-btn {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.app-body.suite-body .kunden-formular .kf-source-tile {
  border-radius: 8px;
  min-height: 3.6rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.74rem;
}

.app-body.suite-body .kunden-formular .kf-duplicate-link {
  border: none;
  background: transparent;
  color: #fed7aa;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-body.suite-body .kunden-formular .kf-lang-btn:hover,
.app-body.suite-body .kunden-formular .kf-source-tile:hover,
.app-body.suite-body .kunden-formular .kf-duplicate-link:hover {
  filter: none;
  transform: none;
}

.app-body.suite-body .kunden-formular .kf-lang-btn:hover,
.app-body.suite-body .kunden-formular .kf-source-tile:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(30, 36, 54, 0.65);
}

.app-body.suite-body .kunden-formular .kf-lang-btn--active,
.app-body.suite-body .kunden-formular .kf-source-tile--active {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.app-body.suite-body .kunden-formular .kf-lang-btn:active,
.app-body.suite-body .kunden-formular .kf-source-tile:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .app-body.suite-body .kunden-formular .kf-lang-btn,
  .app-body.suite-body .kunden-formular .kf-source-tile {
    width: auto;
  }
}

/* —— Wizard: Eventtyp Kacheln —— */
.ev-eventtype-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 560px) {
  .ev-eventtype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ev-eventtype-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 4.5rem;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  border: 0.5px solid var(--color-border-secondary);
  background: rgba(15, 19, 32, 0.45);
  color: #c5cee0;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ev-eventtype-tile:hover {
  border-color: rgba(167, 139, 250, 0.45);
}

.ev-eventtype-tile--selected {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.ev-eventtype-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

/* —— Wizard: Ort Info-Box —— */
.ev-ort-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.ev-ort-info strong {
  display: block;
  font-size: 0.88rem;
}

.ev-ort-info--zh {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(20, 83, 45, 0.35);
  color: #bbf7d0;
}

.ev-ort-info--zh strong {
  color: #86efac;
}

.ev-ort-info--outside {
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(113, 63, 18, 0.35);
  color: #fde68a;
}

.ev-ort-info--outside strong {
  color: #fdba74;
}

.ev-ort-info-note {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* —— Wizard: Ort-Zeile, Toast, Dashboard-Zuweisungen —— */
.ev-ort-plz-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.65rem;
}

.ev-field-plz {
  max-width: 100px;
}

.ev-externe-field input {
  font-size: 13px;
}

.ev-field-error {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #f87171;
}

.ev-plz-auto-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #86efac;
}

.ev-kunde-incomplete-hint {
  margin: 0.35rem 0 0;
  font-size: 11px;
  color: var(--color-text-tertiary, #94a3b8);
}

.ev-kunde-incomplete-hint a {
  color: #a5b4fc;
}

.ev-offer-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--color-background-primary, rgba(18, 22, 34, 0.98));
  border: 0.5px solid var(--color-border-secondary, rgba(140, 156, 192, 0.22));
  border-left: 3px solid #1d9e75;
  border-radius: var(--border-radius-md, 10px);
  padding: 14px 16px 17px;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.ev-offer-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ev-offer-toast-inner {
  position: relative;
  padding-right: 1.25rem;
}

.ev-offer-toast-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ev-offer-toast-headline {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ev-offer-toast-check {
  color: #1d9e75;
  font-weight: 700;
}

.ev-offer-toast-subtitle {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.ev-offer-toast-btn {
  display: inline-block;
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  color: #534ab7;
  text-decoration: none;
  border: 0.5px solid #534ab7;
  border-radius: 6px;
  padding: 5px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ev-offer-toast-btn:hover {
  background: rgba(83, 74, 183, 0.12);
  text-decoration: none;
}

.ev-offer-toast-close {
  position: absolute;
  top: 0;
  right: 0;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.ev-offer-toast-close:hover {
  color: #e2e8f0;
}

.ev-offer-toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(29, 158, 117, 0.15);
}

.ev-offer-toast-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #1d9e75;
  animation: ev-offer-toast-progress 8s linear forwards;
}

@keyframes ev-offer-toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

.dash-assigned-heading {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-event-item--assigned {
  list-style: none;
}

.dash-event-assigned-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.dash-event-badge-assigned {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

/* —— Offerten-Wizard & Einstellungen —— */
.of-wizard-subtitle {
  margin: -0.25rem 0 0.85rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.of-event-banner {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 0.86rem;
}

.of-vorlagen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.of-vorlage-tile {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.25);
  background: rgba(30, 36, 52, 0.6);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.of-vorlage-tile:hover {
  border-color: rgba(129, 140, 248, 0.45);
}

.of-vorlage-tile--selected {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
}

.of-vorlage-tile-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e2e8f0;
}

.of-vorlage-tile-price {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.of-positions-wrap {
  margin-top: 0.5rem;
}

.of-positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.of-positions-table th,
.of-positions-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(140, 156, 192, 0.15);
  vertical-align: middle;
}

.of-positions-table input,
.of-positions-table select {
  width: 100%;
  font-size: 0.82rem;
}

.of-positions-table .of-col-qty {
  width: 4.5rem;
}

.of-positions-table .of-col-price {
  width: 5.5rem;
}

.of-positions-table .of-col-total {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}

.of-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(140, 156, 192, 0.2);
  font-size: 0.95rem;
}

.of-empfaenger-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0.65rem;
  align-items: end;
}

.of-field-anrede {
  max-width: 140px;
}

.of-field-vorname,
.of-field-nachname {
  min-width: 0;
}

.of-lv-form {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.2);
  background: rgba(18, 22, 34, 0.5);
}

.of-lv-table-wrap {
  margin-top: 1rem;
}

.of-toggle input {
  accent-color: #6366f1;
}

.of-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.of-quote-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ofw-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.of-kunde-cell-name {
  display: block;
  font-weight: 500;
}

.of-kunde-cell-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

.of-meta-edited {
  color: #64748b;
}

.ev-action-btn--outline {
  background: transparent;
  border: 1px solid rgba(140, 156, 192, 0.35);
  color: #c5cee0;
}

.ev-action-btn--outline:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.08);
}

.ev-action-btn--outline.ev-action-btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.ev-action-btn--outline.ev-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
}


.of-muted {
  color: #94a3b8;
}

.of-settings-hint {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.of-wizard-card {
  max-width: 920px;
  margin: 0 auto;
}

.of-linked-event {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: rgba(30, 36, 52, 0.55);
  border: 1px solid rgba(140, 156, 192, 0.2);
  font-size: 0.86rem;
  color: #cbd5e1;
}

.of-linked-label {
  color: #94a3b8;
  margin-right: 0.35rem;
}

@media (max-width: 640px) {
  .of-empfaenger-row {
    grid-template-columns: 1fr;
  }
  .of-vorlagen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Löschanfragen —— */

.cust-loesch-modal-card {
  max-width: 420px;
}

.cust-loesch-modal-lead {
  margin: 0 0 0.85rem;
  color: #64748b;
}

.cust-loesch-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dash-loesch-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0.5px solid #854f0b;
  border-left: 3px solid #854f0b;
  background: #faeeda;
  color: #633806;
  text-decoration: none;
  font-weight: 600;
  transition: filter 0.15s ease;
}

.dash-loesch-widget:hover {
  filter: brightness(0.97);
  color: #633806;
}

.dash-loesch-widget-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.dash-loesch-widget-text {
  flex: 1;
}

body.suite-dark .dash-loesch-widget,
html[data-theme="dark"] .dash-loesch-widget {
  background: #412402;
  border-left-color: #ef9f27;
  color: #fac775;
}

body.suite-dark .dash-loesch-widget:hover,
html[data-theme="dark"] .dash-loesch-widget:hover {
  color: #fac775;
}

.la-page .suite-main {
  max-width: 880px;
}

.la-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.la-card {
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(22, 28, 42, 0.55);
}

.la-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.la-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.la-card-date {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
}

.la-card-meta,
.la-card-grund {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.la-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.la-count--ok {
  color: #4ade80;
}

.la-count--warn {
  color: #fbbf24;
}

.la-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.la-btn-delete-confirm {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  background: #e24b4a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.la-btn-delete-confirm:hover {
  background: #a32d2d;
}

.la-modal-card {
  max-width: 420px;
}

.la-confirm-card {
  min-height: 200px;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.la-confirm-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.la-confirm-text {
  margin: 0 0 1rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.la-modal-lead {
  margin: 0 0 0.75rem;
  color: #94a3b8;
}

.la-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

/* —— Toast (global) —— */
.suite-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  max-width: min(420px, calc(100vw - 48px));
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #1e2434;
  color: #e2e8f0;
  border-left: 3px solid #1d9e75;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.suite-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.suite-toast--err {
  border-left-color: #e24b4a;
}

/* —— Admin 4-Tab —— */
.adm-page .suite-main {
  max-width: 960px;
}

.adm-tabs-bar {
  margin-bottom: 1.25rem;
}

.adm-tab-panel.hidden {
  display: none !important;
}

.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.adm-stat-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(22, 28, 42, 0.55);
}

.adm-stat-card--clickable {
  cursor: pointer;
}

.adm-stat-card--clickable:hover {
  filter: brightness(1.03);
}

.adm-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.adm-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.adm-stat-value--warn {
  color: #fbbf24;
}

.adm-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.adm-activity-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(140, 156, 192, 0.15);
}

.adm-activity-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.adm-invite-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.adm-invite-link-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 3px solid #1d9e75;
  background: rgba(29, 158, 117, 0.12);
}

.adm-invite-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}

.adm-invite-link-row code {
  word-break: break-all;
  font-size: 0.82rem;
}

.adm-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adm-user-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.2);
}

.adm-user-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.adm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eeedfe;
  color: #534ab7;
  flex-shrink: 0;
}

body.suite-dark .adm-avatar,
html[data-theme="dark"] .adm-avatar {
  background: #26215c;
  color: #afa9ec;
}

.adm-user-name {
  margin: 0;
  font-weight: 700;
}

.adm-user-meta {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #94a3b8;
}

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

.adm-role-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.adm-role-badge--admin {
  background: #eeedfe;
  color: #534ab7;
}

body.suite-dark .adm-role-badge--admin,
html[data-theme="dark"] .adm-role-badge--admin {
  background: #26215c;
  color: #afa9ec;
}

.adm-invite-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(140, 156, 192, 0.12);
}

.adm-muted {
  color: #94a3b8;
}

.adm-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
}

.adm-empty-icon {
  display: block;
  font-size: 2rem;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.adm-loesch-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-closed-section {
  margin-top: 1.5rem;
}

.adm-closed-section summary {
  cursor: pointer;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.adm-kd-nr {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.88rem;
}

.adm-status-badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-left: 0.35rem;
}

.adm-status-badge--ok {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.adm-status-badge--no {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.adm-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.adm-sys-ok {
  color: #4ade80;
}

.adm-sys-warn {
  color: #fbbf24;
}

.adm-sys-err {
  color: #e24b4a;
}

.adm-invite-welcome {
  margin-bottom: 0.75rem;
}

.adm-invite-error {
  color: #e24b4a;
}

.dash-loesch-widget-link {
  margin-left: auto;
  color: #534ab7;
  font-weight: 600;
  white-space: nowrap;
}

body.suite-dark .dash-loesch-widget-link,
html[data-theme="dark"] .dash-loesch-widget-link {
  color: #afa9ec;
}

.cust-btn-pending {
  opacity: 0.5;
  cursor: not-allowed !important;
  border: 0.5px solid rgba(140, 156, 192, 0.35) !important;
}

/* —— Dashboard Wrap-Up —— */
.dash-wrapup {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.22);
  background: rgba(22, 28, 42, 0.55);
}

.dash-wrapup-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-wrapup-head h2 {
  margin: 0;
  font-size: 1rem;
}

.dash-wrapup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-wrapup-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(30, 36, 52, 0.45);
  border-left: 3px solid #64748b;
}

.dash-wrapup-item--ok {
  border-left-color: #1d9e75;
}

.dash-wrapup-item--warn {
  border-left-color: #f59e0b;
}

.dash-wrapup-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(100, 116, 139, 0.2);
}

.dash-wrapup-item--ok .dash-wrapup-icon {
  background: rgba(29, 158, 117, 0.2);
  color: #4ade80;
}

.dash-wrapup-item--warn .dash-wrapup-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.dash-wrapup-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.dash-wrapup-msg {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.4;
}

.dash-wrapup-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.dash-wrapup-link:hover .dash-wrapup-title {
  color: #93c5fd;
}

.dash-wrapup-item--info .dash-wrapup-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* ——— Spesen-Modul ——— */
.spesen-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.spesen-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spesen-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.spesen-tab {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.spesen-tab--active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.5);
  color: #e0e7ff;
}

.spesen-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spesen-select {
  min-width: 10rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.spesen-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spesen-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}

.spesen-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.spesen-card-kat { font-size: 1.25rem; }
.spesen-card-title { margin: 0; font-size: 1rem; font-weight: 600; flex: 1; min-width: 8rem; }
.spesen-card-amount { font-weight: 600; color: #e2e8f0; }
.spesen-card-meta { margin: 0.35rem 0 0; font-size: 0.75rem; color: #94a3b8; }

.spesen-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.spesen-badge--blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.spesen-badge--orange { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.spesen-badge--purple { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.spesen-badge--green { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.spesen-badge--red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.spesen-card-files { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.spesen-file-link {
  font-size: 0.82rem;
  color: #93c5fd;
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.spesen-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.spesen-btn-delete {
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
}

.spesen-rueckfrage-box,
.spesen-reject-box,
.spesen-delete-req-box {
  margin-top: 0.5rem;
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.86rem;
}

.spesen-rueckfrage-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spesen-reject-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.spesen-delete-req-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.spesen-inline-textarea {
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  resize: vertical;
}

.spesen-bulk-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.spesen-kat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spesen-kat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.82rem;
}

.spesen-kat-tile--active {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(99, 102, 241, 0.2);
}

.spesen-kat-emoji { font-size: 1.5rem; }

.spesen-drop-zone {
  min-height: 160px;
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.spesen-drop-zone--over {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
}

.spesen-drop-icon { font-size: 2rem; }
.spesen-camera-btn { margin-bottom: 0.75rem; }

.spesen-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spesen-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
}

.spesen-file-remove {
  border: none;
  background: transparent;
  color: #fca5a5;
  font-size: 1.2rem;
  cursor: pointer;
}

.spesen-info-hint {
  color: #4ade80;
  font-size: 0.82rem;
  margin: 0.25rem 0 0.5rem;
}

.spesen-toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spesen-toast {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.spesen-toast--ok { background: rgba(34, 197, 94, 0.9); color: #fff; }
.spesen-toast--err { background: rgba(239, 68, 68, 0.9); color: #fff; }

.spesen-confirm-card { max-width: 420px; }
.spesen-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ev-expense-total {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #86efac;
}

.adm-month-input {
  display: block;
  margin: 0.5rem 0;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
}

/* —— Aufgaben / Kanban —— */
.aufgaben-page {
  --color-background-primary: rgba(15, 19, 32, 0.65);
  --color-background-secondary: rgba(22, 27, 42, 0.85);
  --color-border-secondary: rgba(140, 156, 192, 0.22);
  --color-border-tertiary: rgba(140, 156, 192, 0.16);
  --color-text-tertiary: #8896b5;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
}

.aufgaben-page .suite-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 1rem 1.25rem 2rem;
}

.aufgaben-topbar { border: none; background: transparent; box-shadow: none; padding: 0.15rem 0 0 !important; }

.aufgaben-stats .auf-stat--lila .eq-stat-value { color: #aFA9EC; }
.aufgaben-stats .auf-stat--orange .eq-stat-value { color: #EF9F27; }
.aufgaben-stats .auf-stat--green .eq-stat-value { color: #1D9E75; }

.aufgaben-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.auf-filter-sep {
  width: 1px;
  height: 24px;
  background: var(--color-border-tertiary);
  margin: 0 0.25rem;
}
.auf-archiv-link { margin-left: auto; }

.aufgaben-layout {
  display: flex;
  gap: 0;
  min-height: 420px;
  transition: none;
}
.aufgaben-layout--panel-open .aufgaben-board-wrap {
  flex: 1;
  min-width: 0;
}
.aufgaben-board-wrap { flex: 1; min-width: 0; }

.aufgaben-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.auf-column {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  border: 0.5px solid var(--color-border-tertiary);
  min-height: 200px;
}
.auf-column-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.auf-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.auf-col-title { flex: 1; }
.auf-col-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: rgba(140, 156, 192, 0.12);
  color: var(--color-text-tertiary);
}
.auf-col-add {
  border: 0.5px solid var(--color-border-tertiary);
  background: transparent;
  color: #c4b5fd;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.auf-column-body { min-height: 40px; }

.auf-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 13px;
}
.auf-card:hover { border-color: var(--color-border-secondary); }
.auf-card--done { opacity: 0.6; }
.auf-card--dragging { opacity: 0.45; transform: scale(0.95); cursor: grabbing; }

.auf-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.auf-card-title { margin: 0 0 4px; font-weight: 500; font-size: 13px; line-height: 1.4; color: #e5e7ef; }
.auf-card-desc {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auf-card-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}
.auf-card-assignee { display: inline-flex; align-items: center; gap: 0.3rem; flex: 1; min-width: 0; }
.auf-card-comments { display: inline-flex; align-items: center; gap: 0.2rem; }
.auf-card-comments .ti { font-size: 12px; }

.auf-kat-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 0.5px solid transparent;
}
.auf-kat--marketing { background: #4A1B0C; color: #F0997B; border-color: rgba(153, 60, 29, 0.4); }
.auf-kat--technik { background: #26215C; color: #AFA9EC; border-color: rgba(60, 52, 137, 0.4); }
.auf-kat--finanzen { background: #173404; color: #97C459; border-color: rgba(59, 109, 17, 0.4); }
.auf-kat--events { background: #042C53; color: #85B7EB; border-color: rgba(24, 95, 165, 0.4); }
.auf-kat--equipment { background: #412402; color: #EF9F27; border-color: rgba(133, 79, 11, 0.4); }
.auf-kat--intern { background: #2C2C2A; color: #B4B2A9; border-color: rgba(95, 94, 90, 0.4); }

.auf-prio-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.auf-prio-dot--hoch { background: #EF9F27; }
.auf-prio-dot--dringend { background: #ef4444; animation: auf-prio-pulse 1.5s ease-in-out infinite; }
@keyframes auf-prio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.auf-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 10px;
  color: var(--color-text-tertiary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-bottom: 4px;
}

.auf-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(83, 74, 183, 0.35);
  color: #e9d5ff;
  font-size: 9px;
  font-weight: 600;
}
.auf-avatar--sm { width: 20px; height: 20px; }

.auf-due { color: var(--color-text-tertiary); }
.auf-due--today { color: #EF9F27; }
.auf-due--over { color: #ef4444; font-weight: 500; }
.auf-due--done { color: #1D9E75; }

.auf-drop-indicator {
  height: 2px;
  background: #534AB7;
  border-radius: 1px;
  margin: 4px 0;
}

.aufgaben-panel {
  width: 420px;
  flex-shrink: 0;
  background: var(--color-background-primary);
  border-left: 0.5px solid var(--color-border-secondary);
  padding: 1rem 1.1rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  position: sticky;
  top: 1rem;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
.auf-panel-close {
  float: right;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.auf-panel-title-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #e5e7ef;
  font-size: 18px;
  font-weight: 500;
  margin: 0.5rem 0 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 0.5px solid transparent;
}
.auf-panel-title-input:focus {
  outline: none;
  border-bottom-color: var(--color-border-secondary);
}
.auf-panel-section { margin-top: 1rem; }
.auf-panel-section h4 { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.auf-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.auf-panel-grid label { display: flex; flex-direction: column; gap: 0.25rem; color: var(--color-text-tertiary); }
.auf-panel-meta, .auf-panel-quelle { font-size: 0.78rem; color: var(--color-text-tertiary); margin: 0.35rem 0 0; }
.auf-panel-desc {
  width: 100%;
  min-height: 72px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  background: var(--color-background-secondary);
  color: #e5e7ef;
  padding: 0.5rem;
  font-size: 13px;
  resize: vertical;
}
.auf-saved-hint { font-size: 0.75rem; color: #1D9E75; }
.auf-panel-foot { display: flex; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.auf-panel-badges { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.auf-panel-status { font-size: 0.8rem; }

.auf-comments { display: flex; flex-direction: column; gap: 0.65rem; max-height: 220px; overflow-y: auto; }
.auf-comment { font-size: 0.82rem; }
.auf-comment-head { display: flex; align-items: center; gap: 0.4rem; color: var(--color-text-tertiary); font-size: 0.75rem; margin-bottom: 0.25rem; }
.auf-comment-head .auf-avatar { width: 28px; height: 28px; font-size: 11px; }
.auf-comment-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.auf-comment-actions button {
  border: none;
  background: none;
  color: #a78bfa;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
}
.auf-activity-toggle {
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.auf-activity-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
}

.auf-kat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.auf-kat-tile {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  background: var(--color-background-secondary);
  color: #e5e7ef;
  padding: 0.45rem 0.35rem;
  font-size: 0.72rem;
  cursor: pointer;
  text-align: center;
}
.auf-kat-tile--active { border-color: #7c3aed; background: rgba(83, 74, 183, 0.2); }

.auf-prio-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.auf-prio-btn {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  background: transparent;
  color: #e5e7ef;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.auf-prio-btn--active { border-color: #7c3aed; color: #e9d5ff; }

.auf-create-card {
  max-width: 520px;
  max-height: min(90vh, 780px);
  overflow-y: auto;
}
.auf-create-card .auf-kat-grid {
  min-height: 72px;
  margin-top: 0.25rem;
}
.auf-create-card .auf-prio-btns {
  min-height: 36px;
  margin-top: 0.25rem;
}
.auf-create-card .eq-form-field,
.auf-create-card label.eq-form-field {
  margin-bottom: 0.75rem;
}
.auf-create-card .auf-kat-tile {
  min-height: 36px;
  color: #e5e7ef;
}

.auf-archiv-list { display: flex; flex-direction: column; gap: 0.5rem; }
.auf-archiv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  background: var(--color-background-primary);
}
.auf-archiv-row h3 { margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 500; }
.auf-archiv-meta { margin: 0; font-size: 0.78rem; color: var(--color-text-tertiary); }
.auf-archiv-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.dash-nav-link--sub {
  padding-left: 2.4rem !important;
  font-size: 0.82rem;
  opacity: 0.85;
}
.dash-nav-link--sub .dash-nav-icon .ti { font-size: 1rem; }

.dash-aufgaben-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dash-aufgaben-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 0.5px solid rgba(140, 156, 192, 0.14);
  text-decoration: none;
  color: inherit;
  font-size: 0.82rem;
}
.dash-aufgaben-item:hover { border-color: rgba(140, 156, 192, 0.28); }
.dash-aufgaben-kat {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
  background: rgba(83, 74, 183, 0.25);
  color: #c4b5fd;
}
.dash-aufgaben-title { color: #e5e7ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-aufgaben-due { font-size: 0.72rem; color: var(--color-text-tertiary, #8896b5); }
.dash-aufgaben-due--over { color: #ef4444; font-weight: 500; }
.dash-aufgaben-empty { font-size: 0.82rem; color: #8896b5; padding: 0.5rem 0; }
.dash-aufgaben-empty--ok { color: #1D9E75; }

@media (max-width: 1100px) {
  .aufgaben-board { grid-template-columns: repeat(2, 1fr); }
  .aufgaben-layout--panel-open { flex-direction: column; }
  .aufgaben-panel { width: 100%; max-height: none; position: static; }
}
@media (max-width: 640px) {
  .aufgaben-board { grid-template-columns: 1fr; }
  .auf-kat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Changelog-Seite */
.changelog-card { padding: 1.25rem 1.5rem 1.75rem; }
.changelog-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 2rem 0;
  color: var(--color-text-secondary, #9aa8c4);
}
.changelog-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1D9E75;
  animation: changelog-pulse 1.2s ease-in-out infinite;
}
@keyframes changelog-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}
.changelog-error { padding: 1rem 0; color: #f87171; }
.changelog-updated { margin: 0; font-size: 0.85rem; white-space: nowrap; }

.changelog-layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.changelog-toc {
  position: sticky;
  top: 1.25rem;
  padding: 0.85rem 0;
}
.changelog-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary, #7a8aa8);
}
.changelog-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.changelog-toc-link {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary, #b8c4dc);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.changelog-toc-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf4;
}
.changelog-toc-link--live {
  border-color: rgba(29, 158, 117, 0.25);
  color: #6ee7b7;
}

.changelog-intro {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(83, 74, 183, 0.08);
  border: 1px solid rgba(140, 156, 192, 0.12);
}
.changelog-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #c5cee0);
}

.changelog-releases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.changelog-release-card {
  border-radius: 14px;
  border: 1px solid rgba(140, 156, 192, 0.14);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.changelog-release-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.changelog-release-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
.changelog-release-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.changelog-version {
  font-size: 1.05rem;
  font-weight: 700;
  color: #eef1f8;
}
.changelog-release-note {
  font-size: 0.82rem;
  color: var(--color-text-tertiary, #8896b5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.changelog-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.changelog-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.changelog-pill--live {
  background: rgba(29, 158, 117, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(29, 158, 117, 0.35);
}
.changelog-pill--pending {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.28);
}
.changelog-pill--date {
  background: rgba(255, 255, 255, 0.05);
  color: #9aa8c4;
  border: 1px solid rgba(140, 156, 192, 0.15);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.changelog-release-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #8896b5;
  border-bottom: 2px solid #8896b5;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}
.changelog-release-card.is-open .changelog-release-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.changelog-release-body {
  display: none;
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(140, 156, 192, 0.1);
}
.changelog-release-card.is-open .changelog-release-body {
  display: block;
  padding-top: 1rem;
}

.changelog-category + .changelog-category {
  margin-top: 1.15rem;
}
.changelog-category-title {
  margin: 0 0 0.55rem;
}
.changelog-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.changelog-category--planned .changelog-category-badge {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}
.changelog-category--added .changelog-category-badge {
  background: rgba(29, 158, 117, 0.15);
  color: #6ee7b7;
}
.changelog-category--changed .changelog-category-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.changelog-category--fixed .changelog-category-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}
.changelog-category--removed .changelog-category-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.changelog-category--security .changelog-category-badge {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
}
.changelog-category--other .changelog-category-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #b8c4dc;
}
.changelog-category-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
}
.changelog-category-list li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #c5cee0);
  font-size: 0.95rem;
}
.changelog-category-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(140, 156, 192, 0.55);
}
.changelog-category--added .changelog-category-list li::before { background: #1D9E75; }
.changelog-category--fixed .changelog-category-list li::before { background: #f59e0b; }
.changelog-category-list li strong {
  color: #eef1f8;
  font-weight: 600;
}
.changelog-category-list code {
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.changelog-empty {
  margin: 0;
  color: var(--color-text-tertiary, #8896b5);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .changelog-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .changelog-toc {
    position: static;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid rgba(140, 156, 192, 0.12);
  }
  .changelog-toc-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .changelog-release-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .changelog-release-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Feedback-Seite */
.feedback-teaser,
.feedback-card {
  margin-top: 1rem;
}
.feedback-lead {
  margin: 0 0 1.25rem;
  color: var(--color-text-secondary, #b8c4dc);
  line-height: 1.6;
  max-width: 42rem;
}
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 36rem;
}
.feedback-types {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.feedback-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary, #b8c4dc);
  margin-bottom: 0.45rem;
}
.feedback-type-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.18);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-text-secondary, #c5cee0);
}
.feedback-type-option:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}
.feedback-type-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.feedback-field textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 156, 192, 0.25);
  background: rgba(12, 16, 28, 0.6);
  color: #e8ecf4;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.feedback-field textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.feedback-user {
  margin: 0;
  font-size: 0.82rem;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.feedback-msg.ok { color: #6ee7b7; }
.feedback-msg.err { color: #f87171; }

.feedback-list-card {
  margin-top: 1rem;
}
.feedback-list-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.feedback-list-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-tertiary, #8896b5);
}
.feedback-loading,
.feedback-empty {
  color: var(--color-text-tertiary, #8896b5);
  font-size: 0.92rem;
}
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.feedback-entry {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 156, 192, 0.16);
  background: rgba(255, 255, 255, 0.02);
}
.feedback-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.feedback-entry-user {
  font-weight: 600;
  color: #eef1f8;
  font-size: 0.92rem;
}
.feedback-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.feedback-entry-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}
.feedback-type--bug {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}
.feedback-type--wish {
  background: rgba(29, 158, 117, 0.15);
  color: #6ee7b7;
}
.feedback-type--other {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}
.feedback-entry-time {
  font-size: 0.78rem;
  color: var(--color-text-tertiary, #8896b5);
  white-space: nowrap;
}
.feedback-entry-text {
  margin: 0;
  line-height: 1.55;
  color: var(--color-text-secondary, #c5cee0);
  font-size: 0.94rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.feedback-entry-delete {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  cursor: pointer;
}
.feedback-entry-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}
