/* Cleanup Solar-Rechner. Schrift und Grundfarben erbt der Rechner von der Website. */
.csr {
	--csr-navy: #14183c;
	--csr-red: #cc1808;
	--csr-line: #dfe3ee;
	--csr-soft: #f6f8fc;
	max-width: 760px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--csr-line);
	border-radius: 12px;
	color: var(--csr-navy);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.csr *, .csr *::before, .csr *::after { box-sizing: border-box; }
.csr [hidden] { display: none !important; }

.csr .csr-title { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.csr .csr-subtitle { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.csr .csr-intro { margin: 0 0 20px; color: #4b5470; }

.csr .csr-set { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.csr .csr-set legend, .csr .csr-label {
	display: block; margin: 0 0 8px; padding: 0;
	font-size: 15px; font-weight: 600; color: var(--csr-navy);
}
.csr .csr-optional { font-weight: 400; color: #6a728a; }

.csr .csr-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.csr .csr-opts-2 { grid-template-columns: repeat(2, 1fr); }
.csr .csr-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.csr .csr-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.csr .csr-opt span {
	display: flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 8px 10px; text-align: center;
	border: 1px solid var(--csr-line); border-radius: 8px;
	background: #fff; font-size: 15px; font-weight: 500;
}
.csr .csr-opt input:checked + span { border-color: var(--csr-navy); background: var(--csr-navy); color: #fff; }
.csr .csr-opt input:focus-visible + span { outline: 3px solid #7aa7ff; outline-offset: 2px; }

.csr .csr-input {
	display: block; width: 100%; min-height: 48px; margin: 0 0 14px; padding: 10px 12px;
	border: 1px solid #c5cbdb; border-radius: 8px; background: #fff;
	color: var(--csr-navy); font: inherit; font-size: 16px;
}
.csr textarea.csr-input { min-height: 110px; resize: vertical; }
.csr .csr-input:focus { outline: 3px solid #7aa7ff; outline-offset: 1px; border-color: var(--csr-navy); }
.csr .csr-file { display: block; width: 100%; margin: 0 0 16px; font: inherit; font-size: 15px; }
.csr .csr-hint { margin: -6px 0 10px; font-size: 14px; color: #5b6480; }
.csr .csr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.csr .csr-result {
	margin: 8px 0 0; padding: 22px;
	background: var(--csr-soft); border: 1px solid var(--csr-line); border-left: 4px solid var(--csr-red); border-radius: 10px;
}
.csr .csr-result-lead { margin: 0; font-size: 15px; font-weight: 600; }
.csr .csr-price { margin: 4px 0 2px; font-size: 34px; font-weight: 700; line-height: 1.15; color: var(--csr-navy); }
.csr .csr-meta { margin: 0 0 12px; font-size: 14px; color: #5b6480; }
.csr .csr-check { margin: 0 0 10px; padding: 10px 12px; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; font-size: 14px; }
.csr .csr-disclaimer { margin: 0 0 16px; font-size: 14px; color: #4b5470; }

.csr .csr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 54px; padding: 12px 22px;
	border: 0; border-radius: 8px; background: var(--csr-red); color: #fff;
	font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.csr .csr-btn:hover, .csr .csr-btn:focus { background: #a81206; color: #fff; }
.csr .csr-btn:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.csr .csr-btn[disabled] { opacity: .65; cursor: default; }

.csr .csr-quote { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--csr-line); }
.csr .csr-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; cursor: pointer; }
.csr .csr-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; }
.csr .csr-consent a { color: #0074db; text-decoration: underline; }
.csr .csr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.csr .csr-error { margin: 0 0 14px; padding: 12px 14px; background: #fdecea; border: 1px solid #f3b6b0; border-radius: 8px; color: #8a1108; font-size: 15px; }
.csr .csr-success { padding: 22px; background: #eaf7ee; border: 1px solid #b7dfc2; border-radius: 10px; font-size: 17px; font-weight: 500; }

@media (max-width: 600px) {
	.csr { padding: 18px 16px; border-radius: 10px; }
	.csr .csr-title { font-size: 22px; }
	.csr .csr-opts { grid-template-columns: 1fr; }
	.csr .csr-opts-2 { grid-template-columns: 1fr 1fr; }
	.csr .csr-row { grid-template-columns: 1fr; }
	.csr .csr-price { font-size: 29px; }
	.csr .csr-result { padding: 18px 16px; }
}

.csr .csr-ff { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--csr-line); scroll-margin-top: 100px; }

/* Einfache Variante */
.csr.csr-simple { max-width: 560px; }
.csr-simple .csr-title { margin-bottom: 18px; }
.csr-simple .csr-unit { display: flex; align-items: stretch; margin: 0 0 8px; }
.csr-simple .csr-unit .csr-input { margin: 0; border-radius: 8px 0 0 8px; font-size: 20px; min-height: 56px; }
.csr-simple .csr-unit span { display: flex; align-items: center; padding: 0 16px; border: 1px solid #c5cbdb; border-left: 0; border-radius: 0 8px 8px 0; background: var(--csr-soft); font-weight: 600; }
.csr-simple .csr-hint { margin: 0 0 18px; }
.csr-simple .csr-estimate { margin: 0 0 8px; padding: 16px 18px; background: var(--csr-soft); border: 1px solid var(--csr-line); border-left: 4px solid var(--csr-red); border-radius: 10px; font-size: 18px; }
.csr-simple .csr-estimate strong { display: block; font-size: 32px; line-height: 1.2; color: var(--csr-navy); }
.csr-simple .csr-disclaimer { margin: 0 0 18px; }
.csr-simple a.csr-btn { text-decoration: none; }

.csr-simple .csr-set { margin-bottom: 14px; }
.csr-simple .csr-extra { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: #4b5470; }
.csr-simple .csr-opts-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .csr-simple .csr-opts { grid-template-columns: repeat(3, 1fr); } .csr-simple .csr-opts-2 { grid-template-columns: repeat(2, 1fr); } .csr-simple .csr-opt span { font-size: 14px; padding: 8px 6px; } }

.csr-simple .csr-big { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--csr-navy); }
.csr-simple .csr-estimate strong[hidden], .csr-simple .csr-big[hidden], .csr-simple .csr-extra[hidden] { display: none; }

/* Regler statt Eingabefeld */
.csr-simple .csr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.csr-simple .csr-head .csr-label { margin: 0; }
.csr-simple .csr-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; min-width: 150px; }
.csr-simple .csr-switch .csr-opt span { padding: 7px 10px; font-size: 14px; border-radius: 0; }
.csr-simple .csr-switch .csr-opt:first-child span { border-radius: 8px 0 0 8px; }
.csr-simple .csr-switch .csr-opt:last-child span { border-radius: 0 8px 8px 0; border-left: 0; }
.csr-simple .csr-val { margin: 6px 0 2px; font-size: 20px; font-weight: 600; color: var(--csr-navy); }
.csr-simple .csr-num { font-size: 40px; font-weight: 700; line-height: 1.1; }
.csr-simple .csr-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.csr-simple .csr-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--csr-red) var(--csr-fill, 0%), var(--csr-line) var(--csr-fill, 0%)); }
.csr-simple .csr-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--csr-line); }
.csr-simple .csr-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--csr-red); }
.csr-simple .csr-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -11px; border: 3px solid #fff; border-radius: 50%; background: var(--csr-red); box-shadow: 0 1px 5px rgba(20, 24, 60, .35); }
.csr-simple .csr-range::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: var(--csr-red); box-shadow: 0 1px 5px rgba(20, 24, 60, .35); }
.csr-simple .csr-range:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; border-radius: 6px; }
.csr-simple .csr-scale { display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: #4b5470; }
.csr-simple .csr-conv { margin: 8px 0 18px; }

.csr-simple .csr-estimate strong small { font-size: 15px; font-weight: 600; white-space: nowrap; }
.csr-simple .csr-estimate-label { display: block; font-size: 15px; font-weight: 600; }
.csr-simple .csr-set .csr-opts-2 .csr-opt:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

/* Desktop (ab 2.0.4): kompakte Karte neben dem Text; breites Band nur mit Klasse .csr-wide (Kostenseite) */
@media (min-width: 960px) {
	.csr.csr-simple { padding: 20px 22px; }
	.csr-simple .csr-title { margin: 0 0 12px; font-size: 19px; }
	.csr-simple .csr-val { margin: 2px 0 0; font-size: 17px; }
	.csr-simple .csr-num { font-size: 30px; }
	.csr-simple .csr-conv { margin: 4px 0 12px; }
	.csr-simple .csr-set { margin-bottom: 12px; }
	.csr-simple .csr-set legend { margin-bottom: 6px; }
	.csr-simple .csr-opt span { min-height: 40px; padding: 6px 8px; font-size: 14px; }
	.csr-simple .csr-estimate { padding: 12px 14px; font-size: 16px; }
	.csr-simple .csr-estimate strong { font-size: 28px; }
	.csr-simple .csr-disclaimer { margin: 0 0 14px; font-size: 12px; line-height: 1.4; }
	.csr-simple .csr-set:nth-of-type(2) .csr-opts-2 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.csr-simple .csr-set:nth-of-type(2) .csr-opts-2 .csr-opt:first-child:nth-last-child(odd) { grid-column: auto; }
	.csr-simple .csr-set:nth-of-type(2) .csr-opt span { font-size: 13px; line-height: 1.2; }
	.csr-simple .csr-range { height: 36px; }
	.csr-wide#solar-rechner { padding-top: 36px !important; padding-bottom: 36px !important; }
	.csr-wide .csr.csr-simple { max-width: 1100px; padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 34px; align-items: start; }
	.csr-wide .csr-simple .csr-title { grid-column: 1 / -1; grid-row: 1; font-size: 22px; }
	.csr-wide .csr-simple .csr-simple-row { grid-column: 1; grid-row: 2; }
	.csr-wide .csr-simple .csr-set { grid-column: 1; margin-bottom: 10px; }
	.csr-wide .csr-simple .csr-set:nth-of-type(1) { grid-row: 3; }
	.csr-wide .csr-simple .csr-set:nth-of-type(2) { grid-row: 4; margin-bottom: 0; }
	.csr-wide .csr-simple .csr-set:nth-of-type(2) .csr-opts-2 { grid-template-columns: repeat(3, 1fr); }
	.csr-wide .csr-simple .csr-set:nth-of-type(2) .csr-opts-2 .csr-opt:first-child:nth-last-child(odd) { grid-column: auto; }
	.csr-wide .csr-simple .csr-estimate { grid-column: 2; grid-row: 2; margin: 0 0 12px; }
	.csr-wide .csr-simple .csr-go { grid-column: 2; grid-row: 3; align-self: start; }
	.csr-wide .csr-simple .csr-disclaimer { grid-column: 2; grid-row: 4; margin: 0; }
}

/* Handy/Tablet (ab 2.0.5): Karte nutzt die volle Spaltenbreite, Hinweis kleiner */
@media (max-width: 959px) {
	.e-con.e-child#solar-rechner { padding-left: 0 !important; padding-right: 0 !important; }
	.csr-simple .csr-disclaimer { font-size: 12.5px; line-height: 1.4; }
}
