/**
 * KaufSiegel – Floating seal (Trusted-Shops style)
 * Modern, minimal badge fixed to corner
 */

.kaufsiegel-seal-wrap {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	pointer-events: none;
}

.kaufsiegel-seal-wrap.kaufsiegel-seal-bottom-right {
	right: 24px;
}

.kaufsiegel-seal-wrap.kaufsiegel-seal-bottom-left {
	left: 24px;
}

#kaufsiegel-seal-wrap .kaufsiegel-seal,
.kaufsiegel-seal {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fff !important;
	background-color: #fff !important;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(44, 62, 80, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: #2c3e50;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border: 1px solid rgba(44, 62, 80, 0.08);
	cursor: pointer;
	font: inherit;
	position: relative;
	z-index: 999999;
}

.kaufsiegel-seal.kaufsiegel-seal-trigger {
	width: 100%;
	text-align: left;
}

#kaufsiegel-seal-wrap .kaufsiegel-seal:hover,
.kaufsiegel-seal:hover {
	background: #fff !important;
	background-color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 28px rgba(44, 62, 80, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
	color: var(--kaufsiegel-primary, #2c3e50);
}
.kaufsiegel-seal:hover .kaufsiegel-seal-icon,
.kaufsiegel-seal:hover .kaufsiegel-seal-icon svg,
.kaufsiegel-seal:hover .kaufsiegel-seal-icon img {
	color: var(--kaufsiegel-seal, #f1c40f) !important;
}
.kaufsiegel-seal:hover .kaufsiegel-seal-icon {
	background: var(--kaufsiegel-seal-icon-bg, #ffffff) !important;
}
.kaufsiegel-seal:hover .kaufsiegel-seal-title {
	color: var(--kaufsiegel-primary, #2c3e50) !important;
}

.kaufsiegel-seal:focus,
.kaufsiegel-seal:focus-visible {
	background: #fff !important;
	outline: 2px solid var(--kaufsiegel-primary, #2c3e50);
	outline-offset: 2px;
}

.kaufsiegel-seal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--kaufsiegel-seal-logo-size, 40px);
	height: var(--kaufsiegel-seal-logo-size, 40px);
	min-width: var(--kaufsiegel-seal-logo-size, 40px);
	min-height: var(--kaufsiegel-seal-logo-size, 40px);
	background: var(--kaufsiegel-seal-icon-bg, #ffffff);
	border-radius: 10px;
	color: var(--kaufsiegel-seal, #f1c40f);
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.kaufsiegel-seal-icon.kaufsiegel-seal-icon-logo {
	background: var(--kaufsiegel-seal-icon-bg, #ffffff);
	padding: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.kaufsiegel-seal-icon.kaufsiegel-seal-icon-logo .kaufsiegel-seal-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kaufsiegel-seal-icon svg {
	width: 55%;
	height: 55%;
}

.kaufsiegel-seal-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	line-height: 1.3;
}

.kaufsiegel-seal-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--kaufsiegel-primary, #2c3e50);
}

.kaufsiegel-seal-stars-row {
	display: flex;
	gap: 2px;
	align-items: center;
}

.kaufsiegel-seal-stars-row .kaufsiegel-star {
	font-size: 14px;
	color: #dee2e6;
}

.kaufsiegel-seal-stars-row .kaufsiegel-star-filled {
	color: var(--kaufsiegel-stars, #f1c40f);
}

.kaufsiegel-seal-number {
	font-size: 14px;
	font-weight: 700;
	color: var(--kaufsiegel-accent, #27ae60);
	line-height: 1.2;
}

.kaufsiegel-seal-count {
	font-size: 11px;
	color: #7f8c8d;
	font-weight: 500;
}

.kaufsiegel-seal-sales {
	font-size: 11px;
	color: var(--kaufsiegel-accent, #27ae60);
	font-weight: 600;
}

/* =====================================================
   Style: Compact — slim pill with stars + score
   ===================================================== */
.ks-seal-compact .kaufsiegel-seal {
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	border-radius: 24px;
	text-align: center;
}

.ks-seal-compact-stars {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ks-seal-compact-stars .kaufsiegel-seal-stars-row {
	gap: 1px;
}

.ks-seal-compact-stars .kaufsiegel-star {
	font-size: 15px;
}

.ks-seal-compact-stars .kaufsiegel-seal-number {
	font-size: 15px;
	font-weight: 800;
}

.ks-seal-compact-meta {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ks-seal-compact .kaufsiegel-seal-count {
	font-size: 10px;
	color: #7f8c8d;
}

/* =====================================================
   Style: Minimal — icon-only, expands on hover
   ===================================================== */
.ks-seal-minimal .kaufsiegel-seal {
	padding: 0;
	border-radius: 50%;
	width: calc(var(--kaufsiegel-seal-logo-size, 40px) + 20px);
	height: calc(var(--kaufsiegel-seal-logo-size, 40px) + 20px);
	justify-content: center;
	overflow: hidden;
	transition: width 0.3s ease, border-radius 0.3s ease, padding 0.3s ease, box-shadow 0.15s ease;
}

.ks-seal-minimal .kaufsiegel-seal-icon {
	box-shadow: none;
	border: none;
	background: transparent;
	flex-shrink: 0;
}

.ks-seal-minimal .ks-seal-expandable {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
	margin-left: 0;
}

.ks-seal-minimal .ks-seal-expandable .kaufsiegel-seal-stars-row {
	gap: 1px;
}

.ks-seal-minimal .ks-seal-expandable .kaufsiegel-star {
	font-size: 13px;
}

.ks-seal-minimal .ks-seal-expandable .kaufsiegel-seal-number {
	font-size: 14px;
	font-weight: 800;
}

.ks-seal-minimal .kaufsiegel-seal:hover {
	width: auto;
	border-radius: 12px;
	padding: 10px 16px;
}

.ks-seal-minimal .kaufsiegel-seal:hover .ks-seal-expandable {
	max-width: 200px;
	opacity: 1;
	margin-left: 8px;
}

/* =====================================================
   Style: Rounded — circular badge, score centered
   ===================================================== */
.ks-seal-rounded .kaufsiegel-seal {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	padding: 0;
	justify-content: center;
	align-items: center;
	box-shadow: 0 6px 24px rgba(44, 62, 80, 0.18), 0 0 0 3px rgba(241, 196, 15, 0.2);
	border: 2px solid var(--kaufsiegel-stars, #f1c40f);
}

.ks-seal-rounded .kaufsiegel-seal:hover {
	box-shadow: 0 8px 28px rgba(44, 62, 80, 0.22), 0 0 0 4px rgba(241, 196, 15, 0.3);
}

.ks-seal-round-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	line-height: 1;
}

.ks-seal-round-score {
	font-size: 22px;
	font-weight: 800;
	color: var(--kaufsiegel-primary, #2c3e50);
	line-height: 1;
}

.ks-seal-round-label {
	font-size: 10px;
	font-weight: 500;
	color: #868e96;
	margin-top: -1px;
}

.ks-seal-round-stars {
	display: flex;
	gap: 1px;
	margin-top: 3px;
}

.ks-seal-round-stars .kaufsiegel-star {
	font-size: 11px;
	color: #dee2e6;
}

.ks-seal-round-stars .kaufsiegel-star-filled {
	color: var(--kaufsiegel-stars, #f1c40f);
}

.ks-seal-round-count {
	font-size: 9px;
	font-weight: 600;
	color: #adb5bd;
	margin-top: 2px;
}

/* =====================================================
   Style: Vertical — tall stacked badge
   ===================================================== */
.ks-seal-vertical .kaufsiegel-seal {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 16px 14px;
	border-radius: 14px;
	max-width: 110px;
}

.ks-seal-vertical .kaufsiegel-seal-icon {
	margin-bottom: 2px;
}

.ks-seal-vertical-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ks-seal-vertical .kaufsiegel-seal-title {
	font-size: 11px;
	text-align: center;
	line-height: 1.2;
}

.ks-seal-vertical .kaufsiegel-seal-stars-row {
	justify-content: center;
}

.ks-seal-vertical .kaufsiegel-seal-stars-row .kaufsiegel-star {
	font-size: 12px;
}

.ks-seal-vertical .kaufsiegel-seal-number {
	font-size: 16px;
	font-weight: 800;
}

.ks-seal-vertical .kaufsiegel-seal-count {
	font-size: 9px;
}

/* =====================================================
   Responsive (all styles)
   ===================================================== */
@media (max-width: 480px) {
	.kaufsiegel-seal-wrap {
		bottom: 16px;
	}
	.kaufsiegel-seal-wrap.kaufsiegel-seal-bottom-right {
		right: 16px;
	}
	.kaufsiegel-seal-wrap.kaufsiegel-seal-bottom-left {
		left: 16px;
	}
	.ks-seal-classic .kaufsiegel-seal {
		padding: 10px 12px;
		gap: 8px;
	}
	.ks-seal-classic .kaufsiegel-seal-icon {
		width: var(--kaufsiegel-seal-logo-size, 40px);
		height: var(--kaufsiegel-seal-logo-size, 40px);
		min-width: var(--kaufsiegel-seal-logo-size, 40px);
		min-height: var(--kaufsiegel-seal-logo-size, 40px);
	}
	.ks-seal-classic .kaufsiegel-seal-title {
		font-size: 12px;
	}
	.ks-seal-classic .kaufsiegel-seal-stars-row .kaufsiegel-star {
		font-size: 12px;
	}
	.ks-seal-classic .kaufsiegel-seal-number {
		font-size: 12px;
	}
	.ks-seal-classic .kaufsiegel-seal-count {
		font-size: 10px;
	}
}

/* Modal */
.kaufsiegel-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.kaufsiegel-modal[hidden] {
	display: none !important;
}

.kaufsiegel-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(44, 62, 80, 0.5);
	cursor: pointer;
}

.kaufsiegel-modal-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
	max-width: 900px;
	width: 100%;
	height: 90vh;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kaufsiegel-modal-box-seal {
	max-width: 520px;
	box-shadow: 0 20px 60px rgba(44, 62, 80, 0.25);
	animation: kaufsiegel-modal-appear 0.3s ease-out;
}

@keyframes kaufsiegel-modal-appear {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.kaufsiegel-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: none;
	background: #f0f0f1;
	color: #2c3e50;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}

.kaufsiegel-modal-close:hover {
	background: #e0e0e0;
}

/* Hero section (scrolls with content) */
.kaufsiegel-modal-hero {
	background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
	padding: 32px 24px 28px;
	border-bottom: 1px solid #e9ecef;
	text-align: center;
}

.kaufsiegel-modal-seal-large {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.kaufsiegel-modal-seal-icon-large {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--kaufsiegel-seal-logo-modal, 80px);
	height: var(--kaufsiegel-seal-logo-modal, 80px);
	min-width: var(--kaufsiegel-seal-logo-modal, 80px);
	min-height: var(--kaufsiegel-seal-logo-modal, 80px);
	background: var(--kaufsiegel-seal-icon-bg, #ffffff);
	border-radius: 16px;
	color: var(--kaufsiegel-seal, #f1c40f);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.06);
	flex-shrink: 0;
}

.kaufsiegel-modal-seal-icon-large.kaufsiegel-seal-icon-logo {
	background: var(--kaufsiegel-seal-icon-bg, #ffffff);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.kaufsiegel-modal-seal-icon-large.kaufsiegel-seal-icon-logo .kaufsiegel-seal-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kaufsiegel-modal-seal-icon-large svg {
	width: 55%;
	height: 55%;
}

.kaufsiegel-modal-seal-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
}

.kaufsiegel-modal-seal-title-large {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #2c3e50;
}

.kaufsiegel-modal-seal-stars-row {
	display: flex;
	gap: 3px;
	align-items: center;
}

.kaufsiegel-modal-seal-stars-row .kaufsiegel-star {
	font-size: 1.5rem;
	color: #dee2e6;
}

.kaufsiegel-modal-seal-stars-row .kaufsiegel-star-filled {
	color: var(--kaufsiegel-stars, #f1c40f);
}

.kaufsiegel-modal-seal-number {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--kaufsiegel-accent, #27ae60);
	line-height: 1.2;
}

.kaufsiegel-modal-seal-count-large {
	font-size: 1rem;
	color: #7f8c8d;
	font-weight: 600;
}

.kaufsiegel-modal-seal-sales {
	font-size: 1rem;
	color: var(--kaufsiegel-accent, #27ae60);
	font-weight: 700;
}

.kaufsiegel-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
}

.kaufsiegel-modal-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	background: var(--kaufsiegel-accent, #27ae60);
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.05s ease;
	box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
	border: none;
	cursor: pointer;
}

.kaufsiegel-modal-btn-primary:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
	color: #fff !important;
}

.kaufsiegel-modal-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: #fff;
	color: var(--kaufsiegel-primary, #2c3e50);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	border: 2px solid var(--kaufsiegel-primary, #2c3e50);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
	font: inherit;
}

.kaufsiegel-modal-btn-secondary:hover {
	background: var(--kaufsiegel-primary, #2c3e50) !important;
	background-color: var(--kaufsiegel-primary, #2c3e50) !important;
	color: #fff !important;
}

.kaufsiegel-modal-btn-primary:hover {
	background: var(--kaufsiegel-accent, #27ae60) !important;
	background-color: var(--kaufsiegel-accent, #27ae60) !important;
}

.kaufsiegel-modal-close:hover {
	background: #e0e0e0 !important;
	background-color: #e0e0e0 !important;
}

.kaufsiegel-modal-body {
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.kaufsiegel-modal-body > .kaufsiegel-modal-hero ~ * {
	padding-left: 24px;
	padding-right: 24px;
}

.kaufsiegel-modal-body > .kaufsiegel-modal-hero ~ *:last-child {
	padding-bottom: 24px;
}

.kaufsiegel-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kaufsiegel-modal-link-all {
	display: inline-block;
	margin-top: 16px;
	color: var(--kaufsiegel-accent, #27ae60);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
}

.kaufsiegel-modal-link-all:hover {
	text-decoration: underline;
}

/* Form wrap when hidden */
.kaufsiegel-modal-form-section[hidden] {
	display: none !important;
}

/* Shop-Bewertung zuerst: deutlich hervorgehoben */
.kaufsiegel-modal-form-section.kaufsiegel-modal-form-first {
	background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 100%);
	border: 1px solid var(--kaufsiegel-accent, #27ae60);
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.kaufsiegel-modal-form-teaser {
	margin: 0 0 12px;
	font-size: 1rem;
	color: var(--kaufsiegel-primary, #2c3e50);
	line-height: 1.45;
}

.kaufsiegel-modal-subtitle {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--kaufsiegel-primary, #2c3e50);
	margin: 0 0 1rem;
	padding-top: 0;
}

.kaufsiegel-modal-form-section .kaufsiegel-form,
.kaufsiegel-modal-form-section .kaufsiegel-form-modal-pro {
	max-width: 100%;
	margin-bottom: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.kaufsiegel-form-modal-pro .ks-modal-form-rating {
	text-align: center;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(39, 174, 96, 0.15);
}

.kaufsiegel-form-modal-pro .ks-modal-form-rating-label {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--kaufsiegel-primary, #2c3e50);
	margin-bottom: 0.5rem;
}

.kaufsiegel-form-modal-pro .kaufsiegel-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.kaufsiegel-form-modal-pro .kaufsiegel-form-row {
	margin-bottom: 0.75rem;
}

.kaufsiegel-form-modal-pro input[type="text"],
.kaufsiegel-form-modal-pro input[type="email"],
.kaufsiegel-form-modal-pro textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #2c3e50;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.kaufsiegel-form-modal-pro input:focus,
.kaufsiegel-form-modal-pro textarea:focus {
	outline: none;
	border-color: var(--kaufsiegel-accent, #27ae60);
	box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.kaufsiegel-form-modal-pro textarea {
	resize: vertical;
	min-height: 80px;
}

.kaufsiegel-form-modal-pro .kaufsiegel-btn-pro {
	width: 100%;
	background: var(--kaufsiegel-accent, #27ae60);
	border-color: var(--kaufsiegel-accent, #27ae60);
}

.kaufsiegel-form-modal-pro .kaufsiegel-btn-pro:hover {
	filter: brightness(0.92);
}

@media (max-width: 480px) {
	.kaufsiegel-form-modal-pro .kaufsiegel-form-grid {
		grid-template-columns: 1fr;
	}
}

.kaufsiegel-modal-reviews-heading {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--kaufsiegel-primary, #2c3e50);
	margin: 0 0 1rem;
	padding-bottom: 4px;
	border-bottom: 2px solid #e9ecef;
}

.kaufsiegel-modal-reviews {
	margin-bottom: 0;
}

.kaufsiegel-modal-reviews .kaufsiegel-grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.kaufsiegel-modal-reviews .kaufsiegel-no-reviews {
	margin: 0;
	color: #6c757d;
	font-style: italic;
}

@media (max-width: 540px) {
	.kaufsiegel-modal-hero {
		padding: 24px 16px 20px;
	}
	.kaufsiegel-modal-seal-large {
		gap: 16px;
		margin-bottom: 20px;
	}
	.kaufsiegel-modal-seal-icon-large {
		width: var(--kaufsiegel-seal-logo-modal, 80px);
		height: var(--kaufsiegel-seal-logo-modal, 80px);
		min-width: var(--kaufsiegel-seal-logo-modal, 80px);
		min-height: var(--kaufsiegel-seal-logo-modal, 80px);
	}
	.kaufsiegel-modal-seal-icon-large svg {
		width: 55%;
		height: 55%;
	}
	.kaufsiegel-modal-seal-stars-row .kaufsiegel-star {
		font-size: 1.25rem;
	}
	.kaufsiegel-modal-seal-number {
		font-size: 1.25rem;
	}
	.kaufsiegel-modal-actions {
		flex-direction: column;
	}
	.kaufsiegel-modal-btn-primary,
	.kaufsiegel-modal-btn-secondary {
		width: 100%;
	}
	.kaufsiegel-modal-body > .kaufsiegel-modal-hero ~ * {
		padding-left: 16px;
		padding-right: 16px;
	}
	.kaufsiegel-modal-body > .kaufsiegel-modal-hero ~ *:last-child {
		padding-bottom: 20px;
	}
}
