/* Rennradsticker GPX Designer
   Design-Tokens:
   Asphalt #1A1B1E · Kreide #F7F6F2 · Akzent (Neon-Gelbgrün) #D3E709 · Graphit #3A3C40 · Nebel #8E9197
   Display: Archivo Black (Startnummern-Charakter), Body: erbt vom Theme, Stats: Mono (Radcomputer) */

.rrs-gpx { max-width: 980px; margin: 0 auto; }
.rrs-gpx *, .rrs-gpx *::before, .rrs-gpx *::after { box-sizing: border-box; }
.rrs-gpx [hidden] { display: none !important; }
.rrs-gpx button { font: inherit; cursor: pointer; }
.rrs-gpx, .rrs-gpx * { cursor: auto; }
.rrs-gpx button, .rrs-gpx label, .rrs-gpx a { cursor: pointer; }
.rrs-gpx :focus-visible { outline: 3px solid #D3E709; outline-offset: 2px; }

/* ---------- Upload ---------- */

.rrs-gpx__upload {
	border: 2px dashed #c9c7c0;
	border-radius: 14px;
	background: #F7F6F2;
	padding: 56px 24px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.rrs-gpx__upload.is-drag { border-color: #D3E709; background: #fafce3; }
.rrs-gpx__upload-icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: #1A1B1E; color: #D3E709;
	font-size: 24px; margin-bottom: 14px;
}
.rrs-gpx__upload-title {
	font-family: 'Archivo Black', 'Arial Black', sans-serif;
	font-size: 1.25rem; letter-spacing: .02em;
	margin: 0 0 6px; color: #1A1B1E;
}
.rrs-gpx__upload-sub { margin: 0; color: #6b6e74; font-size: .92rem; }

.rrs-gpx__linkbtn {
	background: none; border: none; padding: 0;
	color: #1A1B1E; font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px;
	text-decoration-color: #D3E709; text-decoration-thickness: 2.5px;
}
.rrs-gpx__error {
	margin: 12px 0 0; padding: 12px 16px;
	background: #fdecea; color: #8a2114;
	border-radius: 8px; font-size: .92rem;
}

/* ---------- Studio-Layout ---------- */

.rrs-gpx__studio { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
@media (min-width: 800px) {
	.rrs-gpx__studio { grid-template-columns: 1.5fr 1fr; align-items: start; }
	.rrs-gpx__preview-col { position: sticky; top: 24px; }
}

.rrs-gpx__demo-badge {
	margin: 0 0 10px; padding: 9px 14px;
	background: #fafce3; border-left: 4px solid #D3E709;
	border-radius: 8px; font-size: .85rem; color: #3c430a;
}

/* Asphalt-Vorschau: der Sticker klebt schon auf der Straße. */
.rrs-gpx__asphalt {
	background:
		radial-gradient(ellipse 120% 80% at 50% 0%, #26282c 0%, #1A1B1E 60%),
		#1A1B1E;
	border-radius: 14px;
	padding: 28px 18px;
	position: relative;
	overflow: hidden;
	transition: background .25s ease;
}
/* Dunkle Folienfarbe gewählt → heller Beton, damit z. B. Schwarz sichtbar bleibt. */
.rrs-gpx__asphalt.is-light {
	background:
		radial-gradient(ellipse 120% 80% at 50% 0%, #EFEEE9 0%, #E2E1DB 60%),
		#E2E1DB;
}
.rrs-gpx__asphalt::after {
	/* feine Körnung */
	content: "";
	position: absolute; inset: 0;
	background-image:
		radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		radial-gradient(rgba(0,0,0,.35) 1px, transparent 1px);
	background-size: 7px 7px, 11px 11px;
	background-position: 0 0, 4px 6px;
	pointer-events: none;
}
.rrs-gpx__asphalt.is-light::after {
	background-image:
		radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
		radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px);
}
.rrs-gpx__asphalt svg { display: block; width: 100%; height: 290px; position: relative; z-index: 1; }

/* Radcomputer-Zeile */
.rrs-gpx__computer {
	display: flex; gap: 10px; margin-top: 10px;
}
.rrs-gpx__computer span {
	flex: 1; text-align: center;
	background: #1A1B1E; color: #F7F6F2;
	border-radius: 10px; padding: 10px 6px 8px;
}
.rrs-gpx__computer b {
	display: block;
	font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
	font-size: 1.35rem; font-weight: 700; line-height: 1;
	font-variant-numeric: tabular-nums;
}
.rrs-gpx__computer i {
	font-style: normal; font-size: .68rem; letter-spacing: .18em;
	text-transform: uppercase; color: #8E9197;
}

/* ---------- Optionen ---------- */

.rrs-gpx__group {
	border: none; padding: 0; margin: 0 0 22px;
}
.rrs-gpx__group legend {
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: #6b6e74; margin-bottom: 10px; padding: 0;
}

.rrs-gpx__seg { display: flex; border: 1.5px solid #1A1B1E; border-radius: 10px; overflow: hidden; }
.rrs-gpx__seg button {
	flex: 1; padding: 10px 6px;
	background: transparent; border: none; color: #1A1B1E;
	display: grid; gap: 1px; line-height: 1.15;
}
.rrs-gpx__seg button small { font-size: .68rem; opacity: .65; }
.rrs-gpx__seg button.is-active { background: #1A1B1E; color: #F7F6F2; }

/* Größenvergleich mit Kreditkarte */
.rrs-gpx__compare {
	margin-top: 10px; padding: 12px 14px;
	background: #F7F6F2; border-radius: 10px;
}
.rrs-gpx__compare-title {
	margin: 0 0 8px; font-size: .72rem; letter-spacing: .14em;
	text-transform: uppercase; color: #6b6e74;
}
.rrs-gpx__compare-row { margin-bottom: 6px; }
.rrs-gpx__compare-row:last-child { margin-bottom: 0; }
.rrs-gpx__compare-bar {
	height: 26px; border-radius: 6px;
	display: flex; align-items: center; padding: 0 10px;
	font-size: .74rem; white-space: nowrap; overflow: visible;
	min-width: 40px; transition: width .25s ease;
}
.rrs-gpx__compare-bar--sticker { background: #D3E709; color: #1A1B1E; font-weight: 600; }
.rrs-gpx__compare-bar--card { background: #1A1B1E; color: #F7F6F2; }

/* Plotter-Warnung */
.rrs-gpx__warning {
	margin: 10px 0 0; padding: 11px 14px;
	background: #fff4e0; color: #7a4a07;
	border-left: 4px solid #f0a32a;
	border-radius: 8px; font-size: .85rem;
}
.rrs-gpx__cta.is-blocked { opacity: .45; }

.rrs-gpx__checkrow { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.rrs-gpx__bundle { margin: 10px 0 0; font-size: .85rem; color: #3c430a; background: #fafce3; border-radius: 8px; padding: 9px 14px; }

.rrs-gpx__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.rrs-gpx__swatch {
	width: 34px; height: 34px; border-radius: 50%;
	border: 2px solid rgba(0,0,0,.12); padding: 0;
	transition: transform .12s ease;
}
.rrs-gpx__swatch.is-active { border-color: #1A1B1E; transform: scale(1.18); }

.rrs-gpx__group input[type="text"], .rrs-gpx__group textarea {
	resize: none; font-family: inherit;
	width: 100%; padding: 11px 14px;
	border: 1.5px solid #c9c7c0; border-radius: 10px;
	font: inherit; text-transform: uppercase; letter-spacing: .04em;
}
.rrs-gpx__group input[type="text"]:focus, .rrs-gpx__group textarea:focus { border-color: #1A1B1E; outline: none; }
.rrs-gpx__fieldhint { margin: 6px 0 0; font-size: .78rem; color: #8a8d93; }

.rrs-gpx__check {
	display: flex; gap: 8px; align-items: flex-start;
	margin-top: 10px; font-size: .85rem; color: #6b6e74; cursor: pointer;
}
.rrs-gpx__check input { margin-top: 2px; accent-color: #D3E709; }

.rrs-gpx__sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rrs-gpx__size {
	border: 1.5px solid #c9c7c0; border-radius: 10px;
	background: transparent; padding: 10px 6px; text-align: center;
	display: grid; gap: 2px;
}
.rrs-gpx__size b { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 1rem; }
.rrs-gpx__size span { font-size: .72rem; color: #6b6e74; }
.rrs-gpx__size em { font-style: normal; font-size: .8rem; font-weight: 600; }
.rrs-gpx__size.is-active { border-color: #1A1B1E; background: #1A1B1E; color: #F7F6F2; }
.rrs-gpx__size.is-active span { color: #b9bcc2; }

/* ---------- Kaufen ---------- */

.rrs-gpx__buy {
	display: flex; align-items: center; gap: 16px;
	border-top: 1.5px solid #e4e2dc; padding-top: 18px;
}
.rrs-gpx__price-label {
	display: block; font-size: .72rem; letter-spacing: .14em;
	text-transform: uppercase; color: #6b6e74;
}
.rrs-gpx__price-value {
	font-family: 'Archivo Black', 'Arial Black', sans-serif;
	font-size: 1.5rem; color: #1A1B1E; white-space: nowrap;
}
.rrs-gpx__cta {
	flex: 1; padding: 15px 18px;
	background: #D3E709; color: #1A1B1E;
	border: none; border-radius: 10px;
	font-family: 'Archivo Black', 'Arial Black', sans-serif;
	font-size: .95rem; letter-spacing: .04em;
	transition: background .15s ease;
}
.rrs-gpx__cta:hover { background: #c2d408; }
.rrs-gpx__cta:disabled { background: #e9f3a4; color: #5d6510; cursor: wait; }

.rrs-gpx__success {
	margin: 12px 0 0; padding: 12px 16px;
	background: #f4fad2; color: #3c430a;
	border-left: 4px solid #D3E709;
	border-radius: 8px; font-size: .92rem;
}
.rrs-gpx__success a { color: #1A1B1E; font-weight: 700; }

.rrs-gpx__hint { margin: 10px 0 0; font-size: .8rem; color: #6b6e74; }
.rrs-gpx__restart { margin-top: 16px; font-size: .85rem; color: #6b6e74; }

@media (prefers-reduced-motion: reduce) {
	.rrs-gpx * { transition: none !important; }
}

/* ---------- Tour-Daten-Chips (v1.4.1) ---------- */

.rrs-gpx__chips-label {
	margin: 14px 0 8px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8E9197;
}
.rrs-gpx__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.rrs-gpx__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 2px solid #d9d7d0;
	border-radius: 999px;
	background: #fff;
	font-size: .9rem;
	font-weight: 600;
	color: #6b6e74;
	user-select: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.rrs-gpx__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.rrs-gpx__chip::before {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d9d7d0;
	flex-shrink: 0;
	transition: background .15s ease;
}
.rrs-gpx__chip:hover { border-color: #1A1B1E; color: #1A1B1E; }
.rrs-gpx__chip:active { transform: scale(.97); }
.rrs-gpx__chip.is-on {
	background: #1A1B1E;
	border-color: #1A1B1E;
	color: #F7F6F2;
}
.rrs-gpx__chip.is-on::before { background: #D3E709; }
.rrs-gpx__chip:has(input:focus-visible) { outline: 3px solid #D3E709; outline-offset: 2px; }
