.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6ff;
  padding: 2rem 1.5rem;
}
.auth-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: center;
}
.admin-card { max-width: 600px; }
.auth-logo { display: inline-block; margin-bottom: 1rem; }
.auth-logo img { height: 70px; width: auto; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 0.5rem; text-align: center; }
.auth-sub { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-card form { display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.auth-error {
  display: none;
  background: #fcebeb;
  color: #a32d2d;
  border: 1px solid #f0a8a8;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: left;
}
.auth-switch { font-size: 0.875rem; color: #555; margin-top: 1.25rem; }
.auth-switch a { color: #185fa5; text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
}
.auth-back:hover { color: #185fa5; }
.dashboard-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f7f9fc;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1.5rem;
}
.dashboard-info .ti { color: #185fa5; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
  margin-top: 0.75rem;
}
.admin-table th, .admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}
.admin-table th { color: #777; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
.reset-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.reset-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 360px;
  width: 90%;
  text-align: left;
}
.reset-modal-box h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.reset-modal-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde3eb;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
}
.reset-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 0.75rem; }
.reset-modal-actions button { padding: 8px 18px; font-size: 0.875rem; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-top: 1.25rem;
  border-bottom: 1px solid #e8ecf0;
}
.admin-tab {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.admin-tab.active { color: #185fa5; border-bottom-color: #185fa5; font-weight: 500; }
.role-create-form { display: flex; gap: 10px; margin-top: 0.5rem; }
.role-create-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #dde3eb;
  border-radius: 8px;
  font-size: 0.95rem;
}
.role-create-form button { padding: 0 18px; font-size: 0.9rem; white-space: nowrap; }
.tab-badge {
  background: #e24b4a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
}
.tab-badge-yellow { background: #fac775; color: #412402; }
.tab-badge-orange { background: #ef9f27; color: #fff; }
.tab-badge-red { background: #e24b4a; color: #fff; }
.status-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}
.status-open { background: #faeeda; color: #854f0b; }
.status-done { background: #eaf3de; color: #3b6d11; }
.priority-hoch { background: #fcebeb; color: #a32d2d; }
.priority-mittel { background: #faeeda; color: #854f0b; }
.priority-niedrig { background: #f1efe8; color: #5f5e5a; }
.category-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: #eeedfe;
  color: #3c3489;
}
.invoice-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: 0.75rem; }
.invoice-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.invoice-form select, .invoice-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde3eb;
  border-radius: 8px;
  font-size: 0.95rem;
}
.invoice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}
.invoice-card .invoice-title { font-weight: 500; font-size: 0.9rem; }
.invoice-card .invoice-meta { font-size: 0.78rem; color: #777; margin-top: 2px; }
.invoice-card .invoice-amount { font-weight: 500; font-size: 1rem; }
.agb-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #555;
}
.agb-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.agb-check a { color: #185fa5; text-decoration: none; }
.agb-check a:hover { text-decoration: underline; }
.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 1rem;
  text-align: left;
}
.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
}
.msg-customer { align-self: flex-start; background: #f7f9fc; border: 1px solid #e8ecf0; }
.msg-admin { align-self: flex-end; background: #e6f1fb; border: 1px solid #b5d4f4; }
.msg-sender { font-weight: 500; font-size: 0.78rem; color: #555; margin-bottom: 4px; }
.msg-text { white-space: pre-wrap; }
.msg-time { font-size: 0.7rem; color: #999; margin-top: 6px; }
