/* Zajak Verwaltungsportal – Basis-Styling für Login/Registrierung/Dashboard.
   Phase 0: bewusst schlicht, damit spätere Module ihr eigenes Layout
   unter denselben Grundklassen einhängen können. */

.zvp-auth-page {
	max-width: 420px;
	margin: 4rem auto;
	padding: 2rem;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
}

.zvp-form h1 {
	margin-top: 0;
	font-size: 1.5rem;
}

.zvp-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.zvp-form input[type="text"],
.zvp-form input[type="email"],
.zvp-form input[type="password"] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.zvp-form-checkbox label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.zvp-form-error {
	background: #fdecea;
	color: #611a15;
	padding: 0.75rem;
	border-radius: 4px;
}

.zvp-form-hint {
	color: #666;
	font-size: 0.9rem;
}

.zvp-form-footer {
	font-size: 0.9rem;
	text-align: center;
}

.zvp-btn {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	border-radius: 4px;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
}

.zvp-btn-primary {
	background: #1d4ed8;
	color: #fff;
	width: 100%;
}

.zvp-btn-ghost {
	background: transparent;
	border-color: #ccc;
	color: #333;
}

.zvp-notice {
	max-width: 420px;
	margin: 4rem auto;
	padding: 1rem;
	background: #eef6ff;
	border-radius: 6px;
}

/* Dashboard */

.zvp-dashboard {
	display: grid;
	grid-template-columns: 240px 1fr;
	min-height: 70vh;
}

.zvp-sidebar {
	background: #0f172a;
	color: #e2e8f0;
	padding: 1.5rem 1rem;
}

.zvp-brand {
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.zvp-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zvp-nav li {
	padding: 0.6rem 0.5rem;
	border-radius: 4px;
	margin-bottom: 0.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.95rem;
}

.zvp-nav li.is-available {
	background: rgba(255, 255, 255, 0.08);
}

.zvp-nav li.is-disabled {
	color: #94a3b8;
}

.zvp-badge {
	font-size: 0.7rem;
	background: rgba(255, 255, 255, 0.12);
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
}

.zvp-main {
	padding: 1.5rem 2rem;
}

.zvp-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e2e2e2;
	margin-bottom: 1.5rem;
}

.zvp-role-pill {
	margin-left: 0.5rem;
	background: #dbeafe;
	color: #1e3a8a;
	padding: 0.15rem 0.5rem;
	border-radius: 12px;
	font-size: 0.8rem;
}

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

.zvp-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1.25rem;
}

.zvp-card h2 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: #475569;
}

.zvp-card p {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
}

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

/* Formulare (Profil, Registrierung, Kundendetail) */

.zvp-form-wide {
	max-width: 640px;
	margin: 0;
	padding: 0;
	border: none;
}

.zvp-form-wide h2 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.1rem;
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 0.4rem;
}

.zvp-btn-inline {
	width: auto;
}

.zvp-form-success {
	background: #eafbe7;
	color: #14532d;
	padding: 0.75rem;
	border-radius: 4px;
}

.zvp-field select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.zvp-field-conditional[hidden] {
	display: none;
}

/* Kundenliste */

.zvp-search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	max-width: 480px;
}

.zvp-search-form input[type="text"] {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.zvp-btn-small {
	padding: 0.3rem 0.7rem;
	font-size: 0.85rem;
}

.zvp-table {
	width: 100%;
	border-collapse: collapse;
}

.zvp-table th,
.zvp-table td {
	text-align: left;
	padding: 0.6rem 0.5rem;
	border-bottom: 1px solid #e2e2e2;
}

/* Status-Badges */

.zvp-status {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 600;
}

.zvp-status-aktiv {
	background: #dcfce7;
	color: #166534;
}

.zvp-status-gekuendigt {
	background: #fef3c7;
	color: #92400e;
}

.zvp-status-abgelaufen {
	background: #fee2e2;
	color: #991b1b;
}

.zvp-status-buero-offen {
	background: #dbeafe;
	color: #1e3a8a;
}

.zvp-status-buero-in_bearbeitung {
	background: #fef3c7;
	color: #92400e;
}

.zvp-status-buero-abgeschlossen {
	background: #dcfce7;
	color: #166534;
}

.zvp-status-bestellung-neu {
	background: #dbeafe;
	color: #1e3a8a;
}

.zvp-status-bestellung-in_bearbeitung {
	background: #fef3c7;
	color: #92400e;
}

.zvp-status-bestellung-versendet {
	background: #e0e7ff;
	color: #3730a3;
}

.zvp-status-bestellung-abgeschlossen {
	background: #dcfce7;
	color: #166534;
}

.zvp-status-bestellung-storniert {
	background: #fee2e2;
	color: #991b1b;
}

.zvp-status-rechnung-offen {
	background: #fef3c7;
	color: #92400e;
}

.zvp-status-rechnung-bezahlt {
	background: #dcfce7;
	color: #166534;
}

.zvp-status-ticket-offen {
	background: #dbeafe;
	color: #1e3a8a;
}

.zvp-status-ticket-beantwortet {
	background: #fef3c7;
	color: #92400e;
}

.zvp-status-ticket-geschlossen {
	background: #e5e7eb;
	color: #374151;
}

/* Benachrichtigungen */

.zvp-notification-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.zvp-notification-item {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.zvp-notification-item.is-unread {
	border-left: 4px solid #1d4ed8;
	background: #f5f8ff;
}

.zvp-notification-date {
	font-size: 0.8rem;
	color: #666;
}

.zvp-notification-subject {
	font-weight: 700;
	margin: 0.15rem 0;
}

.zvp-notification-text {
	white-space: pre-line;
	font-size: 0.95rem;
}

/* Support-Ticket-Thread */

.zvp-ticket-thread {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.zvp-ticket-message {
	border-radius: 8px;
	padding: 0.75rem 1rem;
	max-width: 80%;
}

.zvp-ticket-message-kunde {
	background: #f1f5f9;
	align-self: flex-start;
}

.zvp-ticket-message-staff {
	background: #dbeafe;
	align-self: flex-end;
}

.zvp-ticket-message-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8rem;
	color: #555;
	margin-bottom: 0.25rem;
}

/* Shop */

.zvp-shop-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.zvp-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.zvp-product-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1rem;
}

.zvp-product-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 0.5rem;
}

.zvp-product-card h2 {
	font-size: 1rem;
	margin: 0.25rem 0;
}

.zvp-product-price {
	font-weight: 700;
	color: #1d4ed8;
}

.zvp-product-detail {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
}

.zvp-product-detail-image {
	width: 100%;
	border-radius: 8px;
}

@media (max-width: 640px) {
	.zvp-product-detail {
		grid-template-columns: 1fr;
	}
}

/* Gefährliche Aktionen */

.zvp-btn-danger {
	background: #fff;
	border-color: #dc2626;
	color: #dc2626;
}

/* Domain-Detail: Bearbeiten + Verlängern-Formular nebeneinander */

.zvp-actions-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.zvp-inline-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.zvp-inline-label {
	font-weight: 600;
	margin: 0;
}

.zvp-inline-form select {
	padding: 0.4rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* Kundendetail: Mini-Listen für zugeordnete Produkte */

.zvp-mini-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zvp-mini-list li {
	padding: 0.15rem 0;
}
