/* IH Warenkorb-Button – Farben: Vereinsblau #003C78, Rot #E30F42 */
.ih-wk {
	--ih-wk-blau: #003C78;
	--ih-wk-blau-hover: #002a55;
	--ih-wk-rot: #E30F42;
	--ih-wk-abstand: 20px;
	position: fixed;
	right: calc(var(--ih-wk-abstand) + env(safe-area-inset-right, 0px));
	bottom: calc(var(--ih-wk-abstand) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	pointer-events: none;
}

.ih-wk__btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	min-width: 58px;
	padding: 0 16px;
	box-sizing: border-box;
	justify-content: center;
	border-radius: 29px;
	background: var(--ih-wk-blau);
	color: #fff !important;
	text-decoration: none !important;
	font: 600 15px/1 "Montserrat", "Roboto", sans-serif;
	box-shadow: 0 6px 18px rgba(0, 30, 70, .28), 0 2px 4px rgba(0, 0, 0, .12);
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease, transform .16s ease;
	animation: ih-wk-rein .32s cubic-bezier(.2, .9, .3, 1.25) both;
}

.ih-wk__btn:hover { background: var(--ih-wk-blau-hover); }
.ih-wk__btn:active { transform: scale(.96); }
.ih-wk__btn:focus-visible { outline: 3px solid var(--ih-wk-rot); outline-offset: 3px; }

.ih-wk__icon { flex: none; display: block; }

.ih-wk__summe { white-space: nowrap; }

.ih-wk__badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 11px;
	border: 2px solid #fff;
	background: var(--ih-wk-rot);
	color: #fff;
	font: 700 12px/18px "Roboto", sans-serif;
	text-align: center;
}

/* Kurzer Impuls, wenn etwas hinzugefügt wurde (Klasse setzt das JS). */
.ih-wk--neu .ih-wk__btn { animation: ih-wk-impuls .45s ease both; }
.ih-wk--neu .ih-wk__badge { animation: ih-wk-badge .45s ease both; }

@keyframes ih-wk-rein {
	from { opacity: 0; transform: translateY(16px) scale(.85); }
	to   { opacity: 1; transform: none; }
}
@keyframes ih-wk-impuls {
	0%, 100% { transform: none; }
	35% { transform: scale(1.08); }
}
@keyframes ih-wk-badge {
	0%, 100% { transform: none; }
	40% { transform: scale(1.35); }
}

/* Mobil: nur runder Button mit Zähler */
@media (max-width: 767px) {
	.ih-wk { --ih-wk-abstand: 16px; }
	.ih-wk__btn { width: 56px; height: 56px; min-width: 0; padding: 0; border-radius: 50%; }
	.ih-wk__summe { display: none; }
}

/* OceanWP-„Nach oben“-Pfeil über den Button schieben, solange er sichtbar ist */
body.ih-wk-sichtbar #scroll-top.scroll-top-right { bottom: 92px; }
@media (max-width: 767px) {
	body.ih-wk-sichtbar #scroll-top.scroll-top-right { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
	.ih-wk__btn, .ih-wk--neu .ih-wk__btn, .ih-wk--neu .ih-wk__badge { animation: none; transition: none; }
}

@media print { .ih-wk { display: none; } }
