/* ==========================================================================
   Helfer-Verzeichnis - Public Styles
   Designsprache angelehnt an ImmoScout24: klare Karten, volle Breite,
   sachliche Farben, deutliche CTA-Buttons.
   ========================================================================== */

:root {
	--hv-primary: #e6592f;
	--hv-primary-dark: #c8481f;
	--hv-text: #22272b;
	--hv-text-muted: #6b7480;
	--hv-border: #e2e5e9;
	--hv-bg-light: #f7f8fa;
	--hv-gold: #d4af37;
	--hv-silber: #9aa0a6;
	--hv-success: #1a7e2e;
	--hv-radius: 8px;
	--hv-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
	--hv-shadow-hover: 0 8px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
}

.hv-listing-wrapper, .hv-detail-wrapper, .hv-form-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hv-text);
}

.hv-listing-wrapper *, .hv-detail-wrapper *, .hv-form-wrapper * {
	box-sizing: border-box;
}

/* ---------- Listing Header ---------- */
.hv-listing-header {
	margin: 32px 0 24px;
}
.hv-listing-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--hv-text);
}
.hv-listing-subtitle {
	font-size: 15px;
	color: var(--hv-text-muted);
	margin: 0;
}

/* ---------- Filter Bar ---------- */
.hv-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	padding: 16px;
	margin-bottom: 20px;
}
.hv-filter-group {
	position: relative;
}
.hv-filter-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hv-text-muted);
	margin-bottom: 4px;
}
.hv-filter-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--hv-bg-light);
	border: 1px solid var(--hv-border);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--hv-text);
	cursor: pointer;
	min-width: 160px;
	justify-content: space-between;
	transition: border-color .15s ease;
}
.hv-filter-toggle:hover, .hv-filter-toggle.active {
	border-color: var(--hv-primary);
}
.hv-filter-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: #fff;
	border: 1px solid var(--hv-border);
	border-radius: 8px;
	box-shadow: var(--hv-shadow-hover);
	padding: 10px;
	min-width: 220px;
	z-index: 50;
	max-height: 260px;
	overflow-y: auto;
}
.hv-filter-panel.open {
	display: block;
}
.hv-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 6px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
}
.hv-filter-checkbox:hover {
	background: var(--hv-bg-light);
}
.hv-filter-reset {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--hv-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 4px;
}
.hv-filter-reset:hover {
	text-decoration: underline;
}

.hv-listing-meta-bar {
	margin-bottom: 16px;
}
.hv-result-count {
	font-size: 14px;
	color: var(--hv-text-muted);
	font-weight: 500;
}

/* ---------- Listing Grid / Cards (ImmoScout24-Stil: volle Breite, gestapelt) ---------- */
.hv-listing-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hv-card {
	display: grid;
	grid-template-columns: 280px 1fr auto;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	box-shadow: var(--hv-shadow);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
	position: relative;
}
.hv-card:hover {
	box-shadow: var(--hv-shadow-hover);
	transform: translateY(-2px);
}
.hv-card-gold {
	border-color: var(--hv-gold);
}
.hv-card-silber {
	border-color: var(--hv-silber);
}

.hv-card-media {
	position: relative;
	min-height: 180px;
	background: var(--hv-bg-light);
}
.hv-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 180px;
}
.hv-card-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--hv-primary), var(--hv-primary-dark));
}
.hv-card-partner-ribbon {
	position: absolute;
	top: 12px;
	left: 0;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	border-radius: 0 4px 4px 0;
}
.hv-ribbon-gold { background: var(--hv-gold); }
.hv-ribbon-silber { background: var(--hv-silber); }

.hv-card-body {
	padding: 16px 0;
	min-width: 0;
}
.hv-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.hv-card-title {
	font-size: 19px;
	font-weight: 700;
	margin: 0;
	color: var(--hv-text);
}
.hv-card-firma {
	font-size: 13px;
	color: var(--hv-text-muted);
	margin: 4px 0 0;
}
.hv-card-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
}
.hv-card-excerpt {
	font-size: 14px;
	color: var(--hv-text-muted);
	line-height: 1.5;
	margin: 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hv-card-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 8px 0;
}
.hv-tag {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 14px;
	background: var(--hv-bg-light);
	color: var(--hv-text);
	border: 1px solid var(--hv-border);
}
.hv-card-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
}
.hv-card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--hv-text-muted);
}

.hv-card-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 20px;
	border-left: 1px solid var(--hv-border);
	color: var(--hv-primary);
	white-space: nowrap;
}
.hv-card-cta-label {
	font-size: 13px;
	font-weight: 600;
}

/* ---------- Stars ---------- */
.hv-stars {
	color: var(--hv-gold);
	letter-spacing: 1px;
}
.hv-star-empty {
	color: #d8dadd;
}
.hv-rating-text {
	font-size: 13px;
	color: var(--hv-text-muted);
	font-weight: 500;
}
.hv-rating-none {
	font-style: italic;
}

/* ---------- Badges ---------- */
.hv-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 12px;
}
.hv-badge-verified {
	background: #e7f6ea;
	color: var(--hv-success);
}
.hv-badge-gold {
	background: #fdf3da;
	color: #946c00;
}
.hv-badge-silber {
	background: #eef0f2;
	color: #5c6470;
}

/* ---------- No results ---------- */
.hv-no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--hv-text-muted);
	font-size: 15px;
	background: var(--hv-bg-light);
	border-radius: var(--hv-radius);
}

/* ---------- Pagination ---------- */
.hv-listing-pagination {
	display: flex;
	justify-content: center;
	margin: 32px 0;
}

/* ---------- Buttons ---------- */
.hv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, transform .1s ease;
}
.hv-btn-primary {
	background: var(--hv-primary);
	color: #fff;
}
.hv-btn-primary:hover {
	background: var(--hv-primary-dark);
}
.hv-btn-secondary {
	background: var(--hv-bg-light);
	color: var(--hv-text);
	border: 1px solid var(--hv-border);
}
.hv-btn-secondary:hover {
	background: #eceef0;
}
.hv-btn-large {
	padding: 14px 32px;
	font-size: 16px;
}
.hv-btn-full {
	width: 100%;
}
.hv-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Detail Page (Expose-Stil)
   ========================================================================== */

.hv-admin-preview-notice {
	background: #fff4e5;
	border: 1px solid #f0b25a;
	color: #8a5a00;
	padding: 12px 16px;
	border-radius: 6px;
	margin: 20px 0;
	font-size: 14px;
	font-weight: 600;
}

.hv-detail-hero {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 32px;
	margin: 32px 0 40px;
	align-items: start;
}
.hv-detail-hero-media {
	border-radius: var(--hv-radius);
	overflow: hidden;
	box-shadow: var(--hv-shadow);
}
.hv-detail-img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}
.hv-detail-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 96px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--hv-primary), var(--hv-primary-dark));
}

.hv-detail-partner-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 14px;
	margin-bottom: 12px;
}

.hv-detail-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.hv-detail-firma {
	font-size: 16px;
	color: var(--hv-text-muted);
	margin: 0 0 12px;
}
.hv-detail-rating-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}
.hv-detail-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
	padding: 16px;
	background: var(--hv-bg-light);
	border-radius: var(--hv-radius);
}
.hv-detail-meta-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hv-text-muted);
	margin-bottom: 3px;
}
.hv-detail-meta-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--hv-text);
}

.hv-detail-body {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 32px;
	margin-bottom: 60px;
}
.hv-detail-section {
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--hv-border);
}
.hv-detail-section:last-child {
	border-bottom: none;
}
.hv-detail-section-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
}
.hv-detail-description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--hv-text);
}

.hv-services-table {
	display: flex;
	flex-direction: column;
	gap: 1px;
	border: 1px solid var(--hv-border);
	border-radius: 6px;
	overflow: hidden;
}
.hv-services-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid var(--hv-border);
}
.hv-services-row:last-child {
	border-bottom: none;
}
.hv-services-row-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hv-success);
}
.hv-services-row-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--hv-text);
}
.hv-price-disclaimer {
	font-size: 12px;
	color: var(--hv-text-muted);
	margin-top: 10px;
	font-style: italic;
}

.hv-testimonials-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hv-testimonial-card {
	background: var(--hv-bg-light);
	border-radius: 8px;
	padding: 16px;
}
.hv-testimonial-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.hv-testimonial-date {
	font-size: 12px;
	color: var(--hv-text-muted);
}
.hv-testimonial-text {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 8px;
	font-style: italic;
}
.hv-testimonial-author {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	color: var(--hv-text-muted);
}

/* ---------- Sidebar / Inquiry Card ---------- */
.hv-detail-sidebar {
	align-self: start;
}
.hv-inquiry-card {
	background: #fff;
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	box-shadow: var(--hv-shadow);
	padding: 24px;
	position: sticky;
	top: 24px;
}
.hv-inquiry-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}
.hv-inquiry-subtitle {
	font-size: 13px;
	color: var(--hv-text-muted);
	margin: 0 0 18px;
	line-height: 1.5;
}

.hv-pending-notice {
	max-width: 1200px;
	margin: 60px auto;
	text-align: center;
	font-size: 16px;
	color: var(--hv-text-muted);
}

/* ==========================================================================
   Forms (Registration + Inquiry, shared styles)
   ========================================================================== */

.hv-form-wrapper {
	margin: 24px auto;
}
.hv-fieldset {
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	padding: 20px;
	margin-bottom: 20px;
}
.hv-fieldset legend {
	font-size: 15px;
	font-weight: 700;
	padding: 0 6px;
}
.hv-field {
	margin-bottom: 16px;
}
.hv-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.hv-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--hv-text);
}
.hv-field input[type="text"],
.hv-field input[type="email"],
.hv-field input[type="url"],
.hv-field input[type="file"],
.hv-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hv-border);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}
.hv-field textarea {
	resize: vertical;
}
.hv-field input:focus, .hv-field textarea:focus {
	outline: none;
	border-color: var(--hv-primary);
}
.hv-field-hint {
	font-size: 13px;
	color: var(--hv-text-muted);
	margin: 0 0 12px;
}
.hv-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.hv-checkbox-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--hv-border);
	border-radius: 20px;
	font-size: 14px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}
.hv-checkbox-pill:hover {
	border-color: var(--hv-primary);
}
.hv-checkbox-pill input:checked ~ span {
	font-weight: 700;
}
.hv-checkbox-pill:has(input:checked) {
	background: #fdeee7;
	border-color: var(--hv-primary);
}
.hv-form-footer {
	text-align: center;
	margin-top: 24px;
}
.hv-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
.hv-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
}
.hv-form-message.success {
	background: #e7f6ea;
	color: var(--hv-success);
}
.hv-form-message.error {
	background: #fdecea;
	color: #c5221f;
}
.hv-form-disclaimer {
	font-size: 11px;
	color: var(--hv-text-muted);
	margin-top: 10px;
	text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.hv-card {
		grid-template-columns: 1fr;
	}
	.hv-card-media {
		min-height: 200px;
	}
	.hv-card-cta {
		border-left: none;
		border-top: 1px solid var(--hv-border);
		flex-direction: row;
		padding: 12px 16px;
	}
	.hv-detail-hero {
		grid-template-columns: 1fr;
	}
	.hv-detail-body {
		grid-template-columns: 1fr;
	}
	.hv-inquiry-card {
		position: static;
	}
	.hv-field-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hv-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.hv-filter-toggle {
		width: 100%;
	}
	.hv-filter-reset {
		margin-left: 0;
		text-align: center;
	}
}
