/**
 * Custom CSS Overrides für eautoseller Plugin
 * Theme: Lichtentanne
 *
 * Dieses CSS überschreibt Plugin-Styles für bessere Darstellung
 */

/* ===== SUCHFORMULAR ===== */

.car-category .car-search-form,
.car-category form[action*="search"] {
	max-width: 1200px;
	margin: 0 auto 2rem;
	padding: 0 2rem;
	box-sizing: border-box;
	width: 100%;
}

/* ===== FAHRZEUG-LISTING CONTAINER ===== */

.car-category .offer_wrapper.mobile {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 2rem 0 !important;
	box-sizing: border-box !important;
	flex-direction: unset !important;
}

/* ===== EINZELNE FAHRZEUG-KARTE ===== */

.offer_preview {
	background: var(--white, #ffffff);
	border-radius: 8px;
	padding: 0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: grid !important;
	grid-template-rows: auto auto auto auto auto auto 1fr;
	overflow: hidden;
	width: 100% !important;
	margin-bottom: 0 !important;
	min-height: 100%;
	align-items: start;
}

.offer_preview:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== FAHRZEUG-BILD ===== */

.offer_preview .wp-block-gallery {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: 0;
	background: var(--medium-gray, #e8e8e8);
}

.offer_preview .wp-block-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ===== PREIS ===== */

.offer_preview .price {
	background: var(--primary-blue, #1e5a8f);
	color: var(--white, #ffffff);
	padding: 5px 15px 5px 5px;
	font-size: 1.2em ;
	font-weight: 700;
	text-align: right;
	margin: 0;
}

.offer_preview .price span {
	color: var(--white, #ffffff);
}

/* ===== FAHRZEUG-INFO ===== */

.offer_preview .flex {
	padding: 10px 1.5rem;
}

.offer_preview .modell {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-dark, #2c3e50);
}

.offer_preview .variant {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-gray, #5a5a5a);
	display: block;
	padding: 0 !important;
	min-height: auto !important;
}

.offer_preview .subline {
	font-size: 0.9rem;
	color: var(--text-light-gray, #6c757d);
	display: block;
}

/* ===== FAHRZEUG-SPECS ===== */

.offer_preview .vehicle-specs-block {
	padding: 0 1.5rem 1rem;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--text-gray, #5a5a5a);
}

.offer_preview .vehicle-specs-block * {
	font-size: 0.9rem !important;
}

.offer_preview .vehicle-specs-block strong {
	font-weight: 600;
}

/* ===== TEASER/BESCHREIBUNG ===== */

.offer_preview .teaser {
	padding: 0 1.5rem 1rem;
	font-size: 0.9rem;
	color: var(--text-gray, #5a5a5a);
	line-height: 1.5;
	min-height: 80px;
	display: flex;
	align-items: flex-start;
}

/* ===== BUTTONS ===== */

.offer_preview .expand-details-btn {
	background: #f5f5f5;
	color: #5a5a5a;
	border: 1px solid #ddd;
	padding: 0.8rem 1.5rem;
	margin: 0 0 0.8rem 0;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	display: block;
	order: 1;
}

.offer_preview .toggle-button {
	background: var(--brand, #00a751);
	color: var(--white, #ffffff);
	border: none;
	padding: 0.8rem 1.5rem;
	margin: 0 0 0.8rem 0;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	width: 100%;
	display: block;
	order: 2;
}

.offer_preview .expand-details-btn:hover {
	background: #e8e8e8;
	border-color: #ccc;
}

.offer_preview .toggle-button:hover {
	background: var(--brand-dark, #008a43);
}

/* ===== KONTAKT-OPTIONEN ===== */

.offer_preview .car-contact-options {
	padding: 1.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	order: 1;
}

.offer_preview .share-buttons-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	order: 3;
}

.offer_preview .share-buttons-container span {
	font-size: 0.9rem;
	color: var(--text-gray, #5a5a5a);
}

.offer_preview .share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	transition: opacity 0.3s ease;
}

.offer_preview .share-button:hover {
	opacity: 0.7;
}

.offer_preview .share-icon {
	width: 20px;
	height: 20px;
}

/* ===== FORMULAR ===== */

.offer_preview .form-toggle {
	padding: 0 1.5rem 1.5rem;
}

.offer_preview .inquiry-form-container {
	margin-top: 1rem;
}

.offer_preview .button_wa {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #25D366;
	color: var(--white, #ffffff);
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.3s ease;
	margin-bottom: 1rem;
}

.offer_preview .button_wa:hover {
	opacity: 0.9;
}

.offer_preview .inquiry-icon {
	width: 20px;
	height: 20px;
}

.offer_preview form.eauto .input-field {
	width: 100%;
	padding: 0.8rem;
	margin-bottom: 0.8rem;
	border: 1px solid var(--border-gray, #e1e5e9);
	border-radius: 4px;
	font-size: 0.95rem;
}

.offer_preview form.eauto textarea.input-field {
	min-height: 100px;
	resize: vertical;
}

.offer_preview form.eauto button[type="submit"] {
	background: var(--primary-blue, #1e5a8f);
	color: var(--white, #ffffff);
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	width: 100%;
}

.offer_preview form.eauto button[type="submit"]:hover {
	background: var(--dark-blue, #164569);
}

/* ===== VERBRAUCHS-/EMISSIONSDATEN ===== */

.offer_preview .consumption-emissions {
	padding: 1rem 1.5rem;
	background: var(--light-gray, #f8f9fa);
	font-size: 0.75rem;
	color: var(--text-light-gray, #6c757d);
	line-height: 1.4;
	border-top: 1px solid var(--border-gray, #e1e5e9);
	min-height: 60px;
	display: flex;
	align-items: center;
}

/* ===== DEALER-ONLY BADGE ===== */

.offer_preview .dealer-only-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--orange, #e67e22);
	color: var(--white, #ffffff);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	z-index: 10;
}

/* ===== KEINE ERGEBNISSE ===== */

.offer_wrapper .no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem;
	font-size: 1.2rem;
	color: var(--text-gray, #5a5a5a);
}

/* ===== MODAL OVERLAY ===== */

.car-modal-overlay {
	z-index: 999999 !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
	.offer_wrapper.mobile {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		padding: 0 2rem 1.5rem;
	}
}

@media (max-width: 600px) {
	.offer_wrapper.mobile {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1rem 2rem;
	}

	.offer_preview .wp-block-gallery {
		height: 250px;
	}
}
