/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-fast), border-color var(--motion-fast),
              transform var(--motion-fast), box-shadow var(--motion-fast);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  background: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-full { width: 100%; }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-elevated); box-shadow: var(--shadow-sm); }

/* Form */
.form-field { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(118, 146, 90, 0.15);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--motion-fast);
}
.card:hover { box-shadow: var(--shadow-md); }

/* Glassmorphism-Variante (fuer Hero-Karten ueber Monstera-BG) */
.card-glass {
  background: var(--bg-surface-translucent);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  animation: toast-in var(--motion-base);
  z-index: 1000;
}
.toast-danger { border-color: var(--danger); color: var(--danger); }
.toast-success { border-color: var(--success); color: var(--success); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.error-msg { display: none; margin-top: var(--space-4); color: var(--danger); }
.error-msg.is-visible { display: block; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark .leaf {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 22px;
}

/* Notification-Metrics-Bar (Dashboard-Card) */
.notif-metrics-bar {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-3) 0 var(--space-2);
}
.notif-metric-item {
  text-align: center;
  flex: 1;
}
.notif-metric-num {
  font-size: var(--fs-xl, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.notif-metric-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Notification-Tab-Bar (Compliance-Section) */
.notif-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.notif-tab-btn:hover { color: var(--text); }
.notif-tab-active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}
.btn-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
