/*
 * Frontend-Styles der StromFairTeilen-Bloecke (ergaenzt die Theme-CSS).
 */

.sft-field--half {
	max-width: 50%;
}
@media (max-width: 599px) {
	.sft-field--half {
		max-width: 100%;
	}
}

.sft-btn--block {
	display: flex;
	width: 100%;
	padding-top: 12px;
	padding-bottom: 12px;
}

.sft-form__divider {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin: 24px 0;
}
.sft-form__divider--light {
	border-top-color: rgba(255, 255, 255, 0.3);
	margin: 16px 0;
}

.sft-checkbox--privacy {
	margin-top: 16px;
}

/* --- Rechner --- */

.sft-calculator .sft-card--calc-input,
.sft-calculator .sft-card--calc-result {
	height: 100%;
	padding: 32px;
}
.sft-calculator .sft-card--calc-result {
	background-color: var(--sft-primary, #2E7D32);
	color: #fff;
}
/* Reine Text-Links erben Weiss; der weisse Button behaelt seine dunkle Schrift. */
.sft-calculator .sft-card--calc-result a:not(.sft-btn) {
	color: inherit;
}
.sft-card__title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.sft-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}
.sft-card__title--primary-dark {
	color: var(--sft-primary-dark, #1B5E20);
}
.sft-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
	flex-shrink: 0;
}
.sft-icon--primary {
	fill: var(--sft-primary, #2E7D32);
}

.sft-card--calc-input .sft-form__divider {
	margin: 8px 0 24px;
}

.sft-calc-empty-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	margin: 0;
	opacity: 0.6;
	text-align: center;
}

.sft-result-row span:first-child {
	opacity: 0.9;
}
.sft-result-row strong {
	font-weight: 600;
}
.sft-result-row--total > span:first-child {
	font-size: 1.15rem;
	font-weight: 500;
	opacity: 1;
}

.sft-chip--white {
	background-color: #fff;
	color: var(--sft-primary-dark, #1B5E20);
	font-size: 1rem;
	align-self: flex-start;
}

.sft-linkbtn {
	background: none;
	border: none;
	padding: 0;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.75);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	display: block;
	text-align: left;
}
.sft-linkbtn:hover {
	color: #fff;
}

.sft-calculator .sft-btn--contained-white {
	margin-top: 24px;
}

.sft-calc-footnote {
	text-align: center;
	margin-top: 32px;
	opacity: 0.6;
}

/* Rechenweg */
.sft-breakdown__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}
.sft-breakdown__row--indent {
	padding-left: 24px;
}
.sft-breakdown__row strong {
	font-weight: 600;
	white-space: nowrap;
}
.sft-breakdown__label {
	display: block;
	opacity: 0.9;
}
.sft-breakdown__caption {
	display: block;
	font-size: 0.75rem;
	opacity: 0.65;
}
.sft-breakdown__caption--dim {
	opacity: 0.5;
}
.sft-breakdown__caption--italic {
	font-style: italic;
}
.sft-breakdown__subtitle {
	font-size: 0.875rem;
	font-weight: 700;
	opacity: 0.85;
	margin: 0 0 12px;
}
.sft-breakdown__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 899px) {
	.sft-breakdown__columns {
		grid-template-columns: 1fr;
	}
}

/* --- Cookie-Banner-Buttons --- */
.sft-cookie-banner .sft-btn {
	white-space: nowrap;
}
