/* IMAOS Reviews Widget — v1.0 */

.ir-widget {
	max-width: 100%;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Slider Container */
.ir-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ir-track-wrapper {
	overflow: hidden;
	flex: 1;
	min-width: 0;
}

.ir-track {
	display: flex;
	transition: transform 0.4s ease;
	gap: 16px;
}

/* Cards */
.ir-card {
	flex: 0 0 calc(33.333% - 11px);
	min-width: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 20px 18px 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ir-card-inner {
	flex: 1;
}

/* Stars */
.ir-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 10px;
}

.ir-star {
	display: inline-block;
	vertical-align: middle;
}

/* Review Text */
.ir-text {
	font-size: 14px;
	line-height: 1.5;
	color: #3c4043;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.ir-text.ir-expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.ir-text.ir-clamped + .ir-readmore {
	display: inline;
}

.ir-readmore {
	display: none;
	font-size: 13px;
	color: #1a73e8;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	margin-bottom: 12px;
}

.ir-readmore:hover {
	text-decoration: underline;
}

.ir-no-text {
	color: #9aa0a6;
}

/* Platform Icon */
.ir-platform {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	margin-bottom: 8px;
}

/* Reviewer */
.ir-reviewer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #f1f3f4;
}

.ir-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ir-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a73e8;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
}

.ir-name {
	font-size: 13px;
	font-weight: 600;
	color: #202124;
}

/* Arrows */
.ir-arrow {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #dadce0;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5f6368;
	transition: box-shadow 0.2s, border-color 0.2s;
	padding: 0;
	z-index: 2;
}

.ir-arrow:hover {
	border-color: #bdc1c6;
	box-shadow: 0 1px 6px rgba(0,0,0,0.1);
	color: #202124;
}

.ir-arrow:disabled {
	opacity: 0.3;
	cursor: default;
	box-shadow: none;
}

/* Dots */
.ir-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.ir-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dadce0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s;
}

.ir-dot.ir-active {
	background: #1a73e8;
}

/* Footer */
.ir-footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 16px;
}

.ir-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #5f6368;
	font-size: 13px;
}

.ir-footer-link:hover {
	color: #202124;
}

.ir-footer-text strong {
	color: #202124;
}

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

/* Tablet: 2 Karten */
@media (max-width: 960px) {
	.ir-card {
		flex: 0 0 calc(50% - 8px);
	}
}

/* Mobile: 1 Karte */
@media (max-width: 640px) {
	.ir-card {
		flex: 0 0 100%;
	}

	.ir-arrow {
		width: 30px;
		height: 30px;
	}

	.ir-arrow svg {
		width: 18px;
		height: 18px;
	}

	.ir-footer-link {
		flex-direction: column;
		gap: 6px;
	}

	.ir-footer-text {
		font-size: 12px;
	}

	.ir-text {
		font-size: 13px;
	}
}
