  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}
.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
.modal-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.modal-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}
.modal-close:hover {
  color: #000;
}
.modal-action-button {
  margin-top: 30px;
  padding: 12px 24px;
  background: linear-gradient(to right, #5ca9fb, #6372ff);
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.modal-action-button:hover {
  filter: brightness(1.05);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ============================================================
   Auth Modal
   ============================================================ */
.auth-modal {
  max-width: 520px;
  width: 92vw;
  border-radius: 18px;
  padding: 22px 22px 16px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.auth-tab.active {
  background: var(--brand-blue-600);
  color: #fff;
  border-color: var(--brand-blue-600);
}
.auth-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-form label {
  font-size: 0.95rem;
  color: #334155;
}
.auth-form input {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--brand-blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.pw-field {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-field input {
  flex: 1;
  padding-right: 90px;
}
.pw-toggle {
  position: absolute;
  right: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.auth-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.auth-footnote {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}
.auth-link {
  color: var(--brand-blue-600);
  text-decoration: none;
  margin-left: 4px;
}
.auth-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Digitaler Wartungsplan – Styles (MVP)
   ============================================================ */
#ModalWartungsplan body {
  padding-top: 80px;
}

/* Karte luftiger & konsistent */
.card h3,
.card h4 {
  margin: 0 0 10px;
}

.toolbar input[type="search"],
.toolbar select,
.toolbar input[type="number"],
.card input[type="text"],
.card input[type="date"],
.card input[type="number"],
.card select,
.card textarea {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-900);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.25;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.toolbar input[type="search"]:focus,
.toolbar select:focus,
.card input:focus,
.card select:focus,
.card textarea:focus {
  outline: none;
  border-color: var(--brand-blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn.btn-dark {
  border: 1px solid var(--brand-blue-600);
}

.hint {
  color: var(--ink-600);
}
.chip {
  cursor: pointer;
  user-select: none;
}
.chip:active {
  transform: translateY(1px);
}

.card .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  display: grid;
}
@media (max-width: 900px) {
  .card .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .card .grid {
    grid-template-columns: 1fr;
  }
}

.toolbar {
  row-gap: 8px;
}
.toolbar > * {
  min-height: 40px;
}

.table-basic {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-basic thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-alt);
  color: var(--ink-800);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table-basic tbody td {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-800);
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
}
.table-basic tbody tr:hover {
  background: #f9fafb;
}
.table-basic tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-green {
  background: #e8faf0;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.badge-amber {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid #fed7aa;
}
.badge-red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.table-basic td,
.table-basic th {
  word-break: break-word;
}
.table-basic td[style*="max-width"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-basic .btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.card .chip {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-900);
}
.card .chip:hover {
  background: #f3f4f6;
  border-color: #c7d2fe;
}

.card + .hint {
  margin-top: 10px;
}

