.tsr-stickrechner {
	--tsr-primary: #1f3a3d;
	--tsr-accent: #c98a3e;
	--tsr-bg: #ffffff;
	--tsr-bg-soft: #f6f4ef;
	--tsr-border: #e2ded4;
	--tsr-text: #2a2a28;
	--tsr-radius: 12px;

	max-width: 640px;
	margin: 0 auto;
	background: var(--tsr-bg);
	border: 1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	padding: 28px;
	color: var(--tsr-text);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	font-family: inherit;
}

.tsr-stickrechner *,
.tsr-stickrechner *::before,
.tsr-stickrechner *::after {
	box-sizing: border-box;
}

.tsr-stickrechner .tsr-title {
	margin: 0 0 4px;
	font-size: 1.4rem;
	color: var(--tsr-primary);
}

.tsr-stickrechner .tsr-sub {
	margin: 0 0 22px;
	font-size: 0.92rem;
	color: #666;
}

.tsr-stickrechner .tsr-field {
	margin-bottom: 18px;
}

.tsr-stickrechner .tsr-label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 6px;
	color: var(--tsr-primary);
}

.tsr-stickrechner select,
.tsr-stickrechner input[type="number"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tsr-border);
	border-radius: 8px;
	font-size: 1rem;
	background: var(--tsr-bg-soft);
	color: var(--tsr-text);
	appearance: none;
	-webkit-appearance: none;
}

.tsr-stickrechner select:focus,
.tsr-stickrechner input:focus {
	outline: 2px solid var(--tsr-accent);
	outline-offset: 1px;
}

.tsr-stickrechner .tsr-radiogroup {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tsr-stickrechner .tsr-radiogroup label {
	flex: 1 1 200px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--tsr-border);
	background: var(--tsr-bg-soft);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.92rem;
	cursor: pointer;
	font-weight: 400;
	color: var(--tsr-text);
}

.tsr-stickrechner .tsr-radiogroup input {
	accent-color: var(--tsr-accent);
	width: 16px;
	height: 16px;
	flex: none;
}

.tsr-stickrechner .tsr-radiogroup label span {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.tsr-stickrechner .tsr-radiogroup label:has(input:checked) {
	border-color: var(--tsr-accent);
	background: #fbf1e3;
}

.tsr-stickrechner .tsr-result {
	margin-top: 24px;
	padding: 18px;
	border-radius: 10px;
	background: var(--tsr-bg-soft);
	border: 1px dashed var(--tsr-border);
	text-align: center;
}

.tsr-stickrechner .tsr-result .tsr-total {
	font-size: 0.88rem;
	color: #555;
	margin-bottom: 4px;
}

.tsr-stickrechner .tsr-result .tsr-price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tsr-primary);
	margin: 4px 0;
}

.tsr-stickrechner .tsr-note {
	font-size: 0.78rem;
	color: #888;
	margin-top: 10px;
	line-height: 1.4;
}

.tsr-stickrechner .tsr-cta {
	display: inline-block;
	width: 100%;
	margin-top: 4px;
	padding: 13px 26px;
	background: var(--tsr-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: opacity 0.15s ease;
	font-family: inherit;
}

.tsr-stickrechner .tsr-cta:hover {
	opacity: 0.88;
	color: #fff;
}

.tsr-stickrechner .tsr-cta:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tsr-stickrechner .tsr-hint {
	font-size: 0.8rem;
	color: #999;
	margin-top: 3px;
}

.tsr-stickrechner input[type="file"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--tsr-border);
	border-radius: 8px;
	font-size: 0.9rem;
	background: var(--tsr-bg-soft);
	color: var(--tsr-text);
}

.tsr-stickrechner input[type="text"],
.tsr-stickrechner input[type="email"],
.tsr-stickrechner textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tsr-border);
	border-radius: 8px;
	font-size: 1rem;
	background: var(--tsr-bg-soft);
	color: var(--tsr-text);
	font-family: inherit;
	resize: vertical;
}

.tsr-stickrechner .tsr-logo-preview {
	display: none;
	margin-top: 10px;
}

.tsr-stickrechner .tsr-logo-preview.is-visible {
	display: block;
}

.tsr-stickrechner .tsr-logo-preview img {
	max-width: 110px;
	max-height: 110px;
	border: 1px solid var(--tsr-border);
	border-radius: 8px;
	padding: 4px;
	background: #fff;
	display: block;
}

.tsr-stickrechner .tsr-masse-info {
	display: none;
}

.tsr-stickrechner .tsr-masse-info.is-visible {
	display: block;
}

.tsr-stickrechner .tsr-masse-readout {
	font-size: 0.95rem;
	color: var(--tsr-text);
	background: var(--tsr-bg-soft);
	border: 1px solid var(--tsr-border);
	border-radius: 8px;
	padding: 10px 12px;
}

.tsr-stickrechner .tsr-fehler {
	display: none;
	font-size: 0.85rem;
	color: #9a3324;
	background: #fbeae6;
	border: 1px solid #e8b8ad;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 16px;
	line-height: 1.4;
}

.tsr-stickrechner .tsr-fehler.is-visible {
	display: block;
}

.tsr-stickrechner .tsr-submit-status {
	min-height: 1.2em;
	margin-top: 10px;
	font-size: 0.88rem;
	text-align: center;
}

.tsr-stickrechner .tsr-submit-status.tsr-status-error {
	color: #9a3324;
}

.tsr-stickrechner .tsr-submit-status.tsr-status-success {
	color: #1f7a4d;
	font-weight: 600;
}
