/*
Bike Center Birkhold J6 - mod_ddm_indoorcycling_ablauf
creation Date: 2026-08-27
Author: Sebastian Osinski
https://ddm-friends.de

The price badge used to be stoerer_preis_cycling_bc_birkhold.svg. It is rebuilt
here in CSS so the three text lines stay editable in the backend. Every value is
taken from that SVG (viewBox 150.334) and expressed as a fraction of the badge
diameter, so the whole thing scales from a single custom property.
*/

.ddm_ica_stoerer{
	/* diameter of the badge - drives size, ring width and every font size */
	--ddm-ica-stoerer-size: 160px;

	position: absolute;
	right: -60px;
	bottom: -60px;
	z-index: 2;

	box-sizing: border-box;
	width: var(--ddm-ica-stoerer-size);
	height: var(--ddm-ica-stoerer-size);

	border-radius: 50%;
	background-color: #ffed00;                                        /* yellow disc */
	border: calc(var(--ddm-ica-stoerer-size) * 0.0466) solid #ffffff; /* white ring, 7 of 150.334 */

	/* 1em == badge diameter from here down, so the sizes below read as fractions */
	font-size: var(--ddm-ica-stoerer-size);
	line-height: 1;
	color: #0d4094;
}

/* the rotation lives on the inner box: animate.css writes transforms onto the
   outer element while .animBounce runs and would otherwise cancel it out */
.ddm_ica_stoerer_inner{
	position: relative;
	width: 100%;
	height: 100%;
	transform: rotate(-11deg);
}

.ddm_ica_stoerer_top,
.ddm_ica_stoerer_price,
.ddm_ica_stoerer_sub{
	display: block;
	position: absolute;
	left: 0px;
	right: 0px;
	transform: translateY(-50%);

	box-sizing: border-box;
	padding: 0px 4%;

	font-family: 'Rubik-Bold', sans-serif;
	line-height: 1;
	text-align: center;
}

/* "JEDER KURS" - cap height 9.70 of 150.334, cap centre 28.56 above the middle */
.ddm_ica_stoerer_top{
	top: 29.17%;
	font-size: 0.0922em;
}

/* "€85,-" - digit height 25.9 of 150.334, sitting all but centred */
.ddm_ica_stoerer_price{
	top: 49.26%;
	font-size: 0.2400em;
}

/* "(10x 1 STD.)" - same size as the top line, cap centre 28.56 below the middle */
.ddm_ica_stoerer_sub{
	top: 71.09%;
	font-size: 0.0922em;
}

/* breakpoints mirror the ones the replaced .indoor_cycling_stoerer used */
@media (max-width: 1100px){
	.ddm_ica_stoerer{
		--ddm-ica-stoerer-size: 100px;
		right: -40px;
		bottom: -40px;
	}
}

@media (max-width: 860px){
	.ddm_ica_stoerer{
		right: 10px;
	}
}
