/* Baumschnitt-Ratgeber – im Look von JANs Gartenwelt (Brandguide 2025) */
.bsr {
	--bsr-purple: #602f57;
	--bsr-green: #96bb5e;
	--bsr-sage: #eef1df;
	--bsr-beige: #d3b396;
	--bsr-text: #3e2b2a;
	--bsr-radius: 22px;
	--bsr-shadow: 0 14px 34px -18px rgba(83, 105, 66, .45);
	max-width: 860px;
	margin: 0 auto;
	padding: 40px;
	/* Frosted Glass wie Navi und Kontakt-Karte – wirkt am besten vor einem Foto */
	background: rgba(251, 244, 220, .62);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 28px;
	box-shadow: 0 18px 50px -12px rgba(31, 51, 18, .35);
	color: var(--bsr-text);
}

/* Einleitung */
.bsr-intro { text-align: center; margin-bottom: 30px; }
.bsr .bsr-intro__title { margin: 0 0 12px; color: var(--bsr-purple); font-size: 32px; line-height: 1.2; }
.bsr-intro p { max-width: 640px; margin: 0 auto 8px; }

/* Fortschritt */
.bsr .bsr-progress {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 44px !important; /* Spectra setzt auf Listen in Containern eigene Abstände */
	padding: 0 !important;
	list-style: none;
}
.bsr-progress__step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	margin: 0;
	font-size: 13px;
	color: rgba(62, 43, 42, .55);
}
.bsr-progress__step + .bsr-progress__step::before {
	content: "";
	position: absolute;
	top: 15px;
	right: 50%;
	width: calc(100% + 8px);
	height: 2px;
	background: rgba(96, 47, 87, .15);
	z-index: 0;
}
.bsr-progress__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--bsr-purple);
	font-weight: 700;
	border: 2px solid rgba(96, 47, 87, .2);
	transition: background .3s, color .3s, border-color .3s;
}
.bsr-progress__step.is-active { color: var(--bsr-purple); font-weight: 700; }
.bsr-progress__step.is-active .bsr-progress__dot { background: var(--bsr-purple); border-color: var(--bsr-purple); color: #fff; }
.bsr-progress__step.is-done .bsr-progress__dot { background: var(--bsr-green); border-color: var(--bsr-green); color: #1f3312; }
.bsr-progress__step.is-done + .bsr-progress__step::before,
.bsr-progress__step.is-skipped + .bsr-progress__step::before { background: var(--bsr-green); }
.bsr-progress__step.is-skipped { opacity: .4; }

/* Schritte */
.bsr-step[hidden], .bsr-result[hidden], .bsr-lead[hidden], .bsr-summary[hidden] { display: none !important; }
.bsr-step.is-active { animation: bsr-in .35s ease both; }
@keyframes bsr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bsr .bsr-step__title {
	margin: 0 0 8px;
	color: var(--bsr-purple);
	font-size: 28px;
	line-height: 1.2;
	outline: none;
}
.bsr .bsr-step__hint { margin: 0 0 24px; }
.bsr p { margin: 0 0 14px; }

/* Antwort-Karten */
.bsr-options { display: grid; gap: 14px; }
.bsr .bsr-option {
	all: unset;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	column-gap: 16px;
	align-items: center;
	width: 100%;
	padding: 18px 22px;
	background: rgba(255, 255, 255, .82);
	border: 2px solid transparent;
	border-radius: 16px;
	box-shadow: 0 6px 18px -12px rgba(83, 105, 66, .5);
	color: var(--bsr-text);
	cursor: pointer;
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bsr .bsr-option:hover,
.bsr .bsr-option:focus-visible {
	border-color: var(--bsr-green);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -14px rgba(83, 105, 66, .6);
}
.bsr .bsr-option:focus-visible { outline: 3px solid rgba(96, 47, 87, .35); outline-offset: 2px; }
.bsr .bsr-option.is-selected { border-color: var(--bsr-purple); }
.bsr-option__label { grid-column: 1; font-weight: 700; font-size: 18px; color: var(--bsr-purple); }
.bsr-option__sub { grid-column: 1; font-size: 15px; opacity: .8; }
.bsr-option__arrow {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(238, 241, 223, .9);
	color: var(--bsr-purple);
	font-weight: 700;
	transition: background .25s, color .25s, transform .25s;
}
.bsr .bsr-option:hover .bsr-option__arrow { background: var(--bsr-purple); color: #fff; transform: translateX(3px); }

/* Ergebnis */
.bsr-result__text {
	padding: 22px 24px 8px;
	margin: 16px 0 22px;
	background: rgba(255, 255, 255, .85);
	border-left: 4px solid var(--bsr-green);
	border-radius: 14px;
}
.bsr-outro p:last-child { font-weight: 700; }

/* Navigation */
.bsr-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 26px;
	flex-wrap: wrap;
}
.bsr .bsr-back {
	all: unset;
	cursor: pointer;
	color: var(--bsr-purple);
	font-weight: 700;
	padding: 8px 0;
}
.bsr .bsr-back:hover { text-decoration: underline; }
.bsr .bsr-btn-wrap { margin-left: auto; }
.bsr .bsr-next, .bsr .bsr-submit { cursor: pointer; }
.bsr .bsr-submit[disabled] { opacity: .6; cursor: progress; }

/* Formular */
.bsr-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding: 12px 18px;
	margin-bottom: 20px;
	background: rgba(255, 255, 255, .85);
	border-radius: 12px;
	font-size: 15px;
}
.bsr-summary strong { color: var(--bsr-purple); }
.bsr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bsr-field { display: block; margin-bottom: 16px; }
.bsr-field > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.bsr-field small { font-weight: 400; opacity: .75; }
.bsr .bsr-field input,
.bsr .bsr-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid rgba(83, 105, 66, .25);
	border-radius: 12px;
	font: inherit;
	color: var(--bsr-text);
	transition: border-color .2s, box-shadow .2s;
}
.bsr .bsr-field input:focus,
.bsr .bsr-field textarea:focus {
	outline: none;
	border-color: var(--bsr-green);
	box-shadow: 0 0 0 3px rgba(150, 187, 94, .25);
}
.bsr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bsr-dropzone {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 16px;
	background: #fff;
	border: 2px dashed rgba(96, 47, 87, .25);
	border-radius: 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.bsr-dropzone:hover, .bsr-dropzone.is-drag { border-color: var(--bsr-green); background: #fbfdf7; }
.bsr-dropzone.is-full { opacity: .5; pointer-events: none; }
.bsr-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bsr-dropzone__text strong { color: var(--bsr-purple); }

.bsr .bsr-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0 !important; padding: 0 !important; list-style: none; }
.bsr-thumbs li {
	position: relative;
	width: 92px;
	margin: 0;
	font-size: 11px;
	line-height: 1.3;
	word-break: break-all;
}
.bsr-thumbs img { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: #fff; }
.bsr-thumbs li.is-file img { display: none; }
.bsr-thumbs li.is-file::before { content: "📷"; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 10px; background: #fff; font-size: 28px; }
.bsr-thumbs span { display: block; margin-top: 4px; opacity: .7; max-height: 2.6em; overflow: hidden; }
.bsr .bsr-thumbs__remove {
	all: unset;
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bsr-purple);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.bsr-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 4px; font-size: 15px; cursor: pointer; }
.bsr-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--bsr-purple); flex: none; }
.bsr-check a { color: var(--bsr-purple); }

.bsr-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; color: var(--bsr-purple); }
.bsr-status.is-error { color: #ca154b; }

@media (max-width: 640px) {
	.bsr { padding: 26px 18px; border-radius: 22px; }
	.bsr .bsr-step__title { font-size: 23px; }
	.bsr-grid { grid-template-columns: 1fr; }
	.bsr-progress__label { font-size: 11px; }
	.bsr-progress__dot { width: 28px; height: 28px; }
	.bsr-progress__step + .bsr-progress__step::before { top: 13px; }
	.bsr .bsr-option { padding: 16px 18px; }
	.bsr-nav { flex-direction: column-reverse; align-items: stretch; }
	.bsr .bsr-btn-wrap { margin-left: 0; }
	.bsr .bsr-next, .bsr .bsr-submit { width: 100%; text-align: center; }
	.bsr .bsr-back { text-align: center; }
}
