/* ==========================================================
   KFZ Info-Boxen – Frontend Styles
   Nutzt Elementor Global-Variablen als Fallback, alle Werte
   sind zusätzlich über die Widget-Controls im Editor änderbar.
   ========================================================== */

.kib-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	width: 100%;
}

.kib-box {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	padding: 32px;
	box-sizing: border-box;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

/* Optionaler Hover-Lift-Effekt, per Switcher im Editor steuerbar */
.kib-hover-lift-yes .kib-box:hover {
	transform: translateY(-6px);
}

.kib-box__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fbeaea;
	margin-bottom: 20px;
	flex-shrink: 0;
}

.kib-box__icon i,
.kib-box__icon svg {
	font-size: 26px;
	line-height: 1;
	color: #a41e22;
}

.kib-box__icon svg {
	width: 26px;
	height: 26px;
}

.kib-box__heading {
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.3;
	color: #1d2327;
	margin: 0 0 14px;
	font-weight: 700;
}

.kib-box__text {
	font-size: 1rem;
	line-height: 1.7;
	color: #4a4a4a;
	flex-grow: 1;
}

.kib-box__text p {
	margin: 0 0 1em;
}

.kib-box__text p:last-child {
	margin-bottom: 0;
}

.kib-box__text a {
	color: #a41e22;
	text-decoration: underline;
}

.kib-box__button {
	display: inline-block;
	align-self: flex-start;
	margin-top: 22px;
	padding: 12px 26px;
	background: #a41e22;
	border: 1px solid #a41e22;
	border-radius: 6px;
	color: #ffffff;
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.kib-box__button:hover,
.kib-box__button:focus {
	background: #7e1518;
	border-color: #7e1518;
	color: #ffffff;
}

/* Zentrierte Ausrichtung schiebt Icon/Button korrekt mit */
.kib-box[style*="text-align: center"] .kib-box__icon {
	margin-left: auto;
	margin-right: auto;
}

.kib-box[style*="text-align: center"] .kib-box__button {
	align-self: center;
}

.kib-box[style*="text-align: right"] .kib-box__icon {
	margin-left: auto;
}

.kib-box[style*="text-align: right"] .kib-box__button {
	align-self: flex-end;
}

/* ==========================================================
   Responsive Fallbacks (zusätzlich zu den Elementor-Breakpoints,
   die über die responsiven Controls im Editor gesetzt werden)
   ========================================================== */
@media (max-width: 1024px) {
	.kib-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.kib-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.kib-box {
		padding: 26px;
	}
}
