/**
 * InfiniVent Betreiber-Dashboard (BUILD 11A) – Styles.
 *
 * Bewusst leichtgewichtig, passt sich dem bestehenden Theme an (iv-* Klassen).
 * Keine Design-Lügen: Status-Badges, Karten, Navigation – alles funktional.
 *
 * @package InfiniVent
 */

.iv-dashboard {
	max-width: 860px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.iv-dashboard__body {
	min-height: 120px;
}

.iv-dash-muted {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Login */
.iv-dash-login {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 2rem;
	max-width: 460px;
	margin: 2rem auto;
}

.iv-dash-login__title {
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}

.iv-dash-login__help {
	color: #6b7280;
	font-size: 0.95rem;
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

.iv-dash-login__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.iv-dash-login__label {
	font-weight: 600;
	font-size: 0.9rem;
}

.iv-dash-login__input {
	padding: 0.7rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
}

.iv-dash-login__input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.iv-btn {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}

.iv-btn--primary {
	background: #4f46e5;
	color: #fff;
}

.iv-btn--primary:hover {
	background: #4338ca;
}

.iv-btn--ghost {
	background: transparent;
	border-color: #d1d5db;
	color: #374151;
}

.iv-btn--ghost:hover {
	background: #f3f4f6;
}

.iv-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.iv-dash-login__msg {
	font-size: 0.9rem;
	color: #374151;
	min-height: 1.2em;
}

/* Kopf */
.iv-dash__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.iv-dash__title {
	font-size: 1.5rem;
	margin: 0;
}

/* Navigation (modular, geplant) */
.iv-dash__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

.iv-dash__nav-item {
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
	background: #f3f4f6;
	color: #6b7280;
}

.iv-dash__nav-item.is-planned {
	background: #eef2ff;
	color: #4f46e5;
	border: 1px dashed #c7d2fe;
}

.iv-dash__nav-hint {
	margin: 0 0 1.5rem;
	font-style: italic;
}

/* Karten */
.iv-dash-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}

.iv-dash-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid #f1f2f4;
}

/* Definition-Liste Anbieter */
.iv-dash-def {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 0.4rem 1rem;
	margin: 0;
}

.iv-dash-def dt {
	font-weight: 600;
	color: #374151;
	font-size: 0.88rem;
}

.iv-dash-def dd {
	margin: 0;
	color: #111827;
	font-size: 0.92rem;
	word-break: break-word;
}

/* Locations */
.iv-dash-location {
	padding: 0.9rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.iv-dash-location:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.iv-dash-location__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.iv-dash-location__name {
	font-size: 1rem;
}

.iv-dash-location__meta {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	color: #374151;
}

.iv-dash-location__edit-hint {
	margin-top: 0.35rem;
	font-size: 0.82rem;
}

/* Badges */
.iv-dash-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}

.iv-dash-badge--ok {
	background: #dcfce7;
	color: #166534;
}

.iv-dash-badge--wait {
	background: #fef9c3;
	color: #854d0e;
}

.iv-dash-badge--draft {
	background: #f3f4f6;
	color: #374151;
}

.iv-dash-badge--off {
	background: #fee2e2;
	color: #991b1b;
}

/* Anfragen */
.iv-dash-enquiry {
	padding: 0.9rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.iv-dash-enquiry:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.iv-dash-enquiry__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.iv-dash-enquiry__id {
	font-weight: 600;
}

.iv-dash-enquiry__meta {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	color: #374151;
}

/* Mobil */
@media (max-width: 600px) {
	.iv-dash-def {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.iv-dash-def dd {
		margin-bottom: 0.5rem;
	}

	.iv-dash__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.iv-dash-card {
		padding: 1rem;
	}
}
/* ================================================================== *
 *  BUILD 11B – Location-Editor (additiv, bestehende 11A-Styles bleiben)
 * ================================================================== */

.iv-btn--sm {
	padding: 0.35rem 0.8rem;
	font-size: 0.82rem;
}

/* Editor-Wrapper */
.iv-editor {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
}

.iv-editor__head {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.iv-editor__titles {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.iv-editor__title {
	font-size: 1.3rem;
	margin: 0;
}

.iv-editor__name {
	margin: 0;
	font-size: 0.95rem;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Moderationsnotiz + Vollständigkeit */
.iv-editor__note {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	font-size: 0.9rem;
	color: #78350f;
	margin-bottom: 1rem;
}

.iv-editor__gate {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	font-size: 0.9rem;
	color: #991b1b;
	margin-bottom: 1rem;
}

.iv-editor__gate--ok {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.iv-editor__gate-list {
	margin: 0.4rem 0 0 1.1rem;
	padding: 0;
}

.iv-editor__gate-list li {
	margin: 0.15rem 0;
}

/* Formular-Abschnitte (gefaltet) */
.iv-editor__form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.iv-editor__section {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
}

.iv-editor__section summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 0.98rem;
	padding: 0.8rem 1rem;
	color: #111827;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.iv-editor__section summary::before {
	content: '▸';
	color: #6b7280;
	transition: transform 0.15s ease;
}

.iv-editor__section[open] summary::before {
	transform: rotate(90deg);
}

.iv-editor__section-body {
	padding: 0.2rem 1rem 1rem;
	border-top: 1px solid #f1f2f4;
	padding-top: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

/* Felder */
.iv-ed-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.iv-ed-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.iv-ed-field input,
.iv-ed-field select,
.iv-ed-field textarea {
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.92rem;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.iv-ed-field input:focus,
.iv-ed-field select:focus,
.iv-ed-field textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.iv-ed-field--full {
	grid-column: 1 / -1;
}

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

.iv-ed-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
}

.iv-ed-check {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: #374151;
	cursor: pointer;
}

.iv-ed-check--term {
	font-size: 0.85rem;
}

.iv-ed-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	max-height: 220px;
	overflow-y: auto;
	padding: 0.4rem 0.5rem;
	background: #fff;
	border: 1px solid #f1f2f4;
	border-radius: 8px;
}

.iv-ed-block {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.iv-ed-block__label {
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0.4rem 0 0;
	color: #111827;
}

.iv-editor__hint {
	font-size: 0.82rem;
	color: #6b7280;
	margin: 0.1rem 0 0;
}

/* Spaces / Surroundings */
.iv-ed-spaces-box {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.iv-ed-space {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	padding: 0.8rem 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.iv-ed-space__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.iv-ed-space__head strong {
	font-size: 0.92rem;
}

.iv-editor__add {
	align-self: flex-start;
}

/* Medien-Upload */
.iv-ed-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.iv-ed-upload__file {
	font-size: 0.85rem;
	max-width: 260px;
}

.iv-ed-upload__msg {
	font-size: 0.85rem;
	color: #374151;
	min-height: 1.1em;
	flex-basis: 100%;
}

/* Galerie */
.iv-ed-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 0.6rem;
}

.iv-ed-gallery__item {
	position: relative;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #f9fafb;
	min-height: 90px;
	display: flex;
	flex-direction: column;
}

.iv-ed-gallery__item.is-featured {
	border-color: #4f46e5;
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.iv-ed-gallery__item img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	display: block;
}

.iv-ed-gallery__ph {
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	font-size: 0.85rem;
}

.iv-ed-gallery__actions {
	display: flex;
	gap: 0.3rem;
	padding: 0.4rem;
	flex-wrap: wrap;
}

.iv-ed-gallery__tag {
	position: absolute;
	top: 0.35rem;
	left: 0.35rem;
	background: #4f46e5;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

/* Aktionen */
.iv-editor__actions {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-wrap: wrap;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #f1f2f4;
}

.iv-editor__msg {
	font-size: 0.9rem;
	color: #374151;
	min-height: 1.2em;
	flex-basis: 100%;
}

/* Mobil */
@media (max-width: 600px) {
	.iv-editor {
		padding: 1rem;
	}

	.iv-editor__head {
		flex-direction: column;
	}

	.iv-ed-grid {
		grid-template-columns: 1fr;
	}

	.iv-ed-upload {
		flex-direction: column;
		align-items: stretch;
	}

	.iv-ed-upload__file {
		max-width: none;
	}

	.iv-ed-gallery {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	}
}
