/* --------------------------------------------------------
 * PREISRECHNER FUSSBODENHEIZUNG – Frontend-Styles
 * Datei: /plugins/preisrechner/assets/fe-styles.css
 * -------------------------------------------------------- */

/* WRAPPER */
.prfbh-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

.prfbh-titel {
	font-size: 1.6em;
	margin-bottom: 0.4em;
}

.prfbh-intro {
	margin-bottom: 1.8em;
	line-height: 1.7;
	color: #444;
}

/* --------------------------------------------------------
   AUSWAHLSEITE
   -------------------------------------------------------- */
.prfbh-auswahl-karten {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.prfbh-karte {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	padding: 28px 24px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.prfbh-karte:hover {
	border-color: #0073aa;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
	text-decoration: none;
}

.prfbh-karte-icon {
	font-size: 2em;
}

.prfbh-karte-titel {
	font-size: 1.1em;
	margin: 0;
}

.prfbh-karte-text {
	margin: 0;
	color: #555;
	line-height: 1.6;
	flex-grow: 1;
}

.prfbh-karte-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 18px;
	background: #0073aa;
	color: #fff;
	border-radius: 4px;
	font-size: 0.95em;
	text-align: center;
}

.prfbh-karte:hover .prfbh-karte-btn {
	background: #005a87;
}

/* --------------------------------------------------------
   RECHNER-FELDER
   -------------------------------------------------------- */
.prfbh-rechner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.prfbh-feld {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.prfbh-feld label {
	flex: 0 0 260px;
	font-weight: 600;
}

.prfbh-input {
	width: 120px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}

.prfbh-einheit {
	color: #666;
	font-size: 0.9em;
}

.prfbh-pflicht {
	color: #c00;
}

.prfbh-hinweis-klein {
	flex: 0 0 100%;
	font-size: 0.82em;
	color: #777;
	padding-left: 270px;
}

/* --------------------------------------------------------
   BUTTON
   -------------------------------------------------------- */
.prfbh-btn {
	align-self: flex-start;
	margin-top: 8px;
	padding: 12px 28px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.2s;
}

.prfbh-btn:hover {
	background: #005a87;
}

/* --------------------------------------------------------
   ERGEBNIS-TABELLE
   -------------------------------------------------------- */
.prfbh-ergebnis {
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	padding: 20px 24px;
	background: #f9f9f9;
	margin-top: 8px;
}

.prfbh-ergebnis h3 {
	margin-top: 0;
	margin-bottom: 14px;
	font-size: 1.1em;
}

.prfbh-ergebnis-tabelle {
	width: 100%;
	border-collapse: collapse;
}

.prfbh-ergebnis-tabelle td {
	padding: 6px 4px;
	border-bottom: 1px solid #e5e5e5;
}

.prfbh-ergebnis-tabelle td:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.prfbh-ergebnis-tabelle tr.prfbh-netto td {
	border-top: 2px solid #ccc;
	font-weight: 600;
	padding-top: 10px;
}

.prfbh-ergebnis-tabelle tr.prfbh-brutto td {
	font-size: 1.15em;
	font-weight: 700;
	color: #0073aa;
	border-top: 2px solid #0073aa;
	padding-top: 10px;
}

.prfbh-hinweis {
	margin-top: 14px;
	margin-bottom: 0;
	font-size: 0.82em;
	color: #888;
}

/* --------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------- */
@media (max-width: 600px) {
	.prfbh-feld label        { flex: 0 0 100%; }
	.prfbh-hinweis-klein     { padding-left: 0; }
	.prfbh-input             { width: 100%; }
	.prfbh-btn               { width: 100%; text-align: center; }
	.prfbh-auswahl-karten    { flex-direction: column; }
}

/* --------------------------------------------------------
   MEHRSTUFIGER RECHNER – SCHRITTE
   -------------------------------------------------------- */
.prfbh-schritt--hidden {
	display: none;
}

.prfbh-schritt-nr {
	font-size: 0.85em;
	color: #888;
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.prfbh-schritt-titel {
	font-size: 1.3em;
	margin: 0 0 16px;
}

.prfbh-schritt-text {
	line-height: 1.7;
	color: #444;
	max-width: 680px;
	margin-bottom: 12px;
}

.prfbh-schritt-frage {
	font-weight: 600;
	margin: 20px 0 12px;
}

/* --------------------------------------------------------
   INFO-ICON + AUSKLAPPBARER ERKLÄRTEXT
   -------------------------------------------------------- */
.prfbh-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 6px;
	border-radius: 50%;
	border: 1px solid #0073aa;
	background: transparent;
	color: #0073aa;
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
	padding: 0;
	flex-shrink: 0;
}

.prfbh-info-icon:hover,
.prfbh-info-icon:focus {
	background: #0073aa;
	color: #ffffff;
	outline: none;
}

.prfbh-schritt-detail {
	line-height: 1.7;
	color: #444;
	max-width: 680px;
	margin: 8px 0 16px;
	padding: 12px 16px;
	background: #f7f9fa;
	border-left: 3px solid #0073aa;
	border-radius: 3px;
}

/* --------------------------------------------------------
   FORTSCHRITTSANZEIGE
   -------------------------------------------------------- */
.prfbh-progress-wrap {
	width: 100%;
	margin-bottom: 36px;
	overflow-x: hidden;
}

.prfbh-progress-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
}

.prfbh-progress-step-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.prfbh-progress-line {
	flex: 1 1 0;
	min-width: 0;
	height: 2px;
	background: #d0d0d0;
	margin-top: 15px;
	margin-left: 3px;
	margin-right: 3px;
	transition: background 0.25s;
}

.prfbh-step-kreis {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: background 0.25s, color 0.25s;
}

.prfbh-step-offen {
	background: #e0e0e0;
	color: #888888;
}

.prfbh-step-aktiv {
	background: #0073aa;
	color: #ffffff;
}

.prfbh-step-erledigt {
	background: #00a32a;
	color: #ffffff;
}

.prfbh-step-label {
	font-size: 11px;
	color: #888888;
	font-weight: 400;
	white-space: nowrap;
	text-align: center;
}

.prfbh-step-label-aktiv {
	color: #0073aa;
	font-weight: 600;
}

.prfbh-step-label-erledigt {
	color: #00a32a;
	font-weight: 600;
}

/* --------------------------------------------------------
   KARTEN ALS BUTTONS (Objekttyp-Auswahl)
   -------------------------------------------------------- */
.prfbh-karte--option {
	cursor: pointer;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	padding: 28px 24px;
	text-align: left;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.prfbh-karte--option:hover {
	border-color: #0073aa;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* --------------------------------------------------------
   NAVIGATION (ZURÜCK / WEITER)
   -------------------------------------------------------- */
.prfbh-nav {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.prfbh-btn--back {
	background: #f0f0f1;
	color: #2c3338;
}

.prfbh-btn--back:hover {
	background: #dcdcde;
}

.prfbh-btn--neu {
	background: transparent;
	color: #0073aa;
	border: 2px solid #0073aa;
}

.prfbh-btn--neu:hover {
	background: rgba(0, 115, 170, 0.08);
}

/* --------------------------------------------------------
   INFO-BOX (Hinweise)
   -------------------------------------------------------- */
.prfbh-info-box {
	background: #fff8e5;
	border: 1px solid #f0c33c;
	border-radius: 4px;
	padding: 14px 16px;
	font-size: 0.9em;
	line-height: 1.6;
	max-width: 580px;
	margin-top: 8px;
}

/* --------------------------------------------------------
   ERGEBNIS – DETAIL-SPALTE
   -------------------------------------------------------- */
.prfbh-pos-detail {
	font-size: 0.8em;
	color: #888;
	padding-right: 16px;
}

@media (max-width: 600px) {
	.prfbh-pos-detail { display: none; }
	.prfbh-progress-bar { gap: 2px; }
	.prfbh-progress-line { margin-left: 1px; margin-right: 1px; }
	.prfbh-step-label { display: none; }
	.prfbh-nav { flex-direction: column; }
}

/* Fallback für sehr schmale Bildschirme / eingebettete Widgets:
   Reicht der Platz selbst für minimale Linien nicht mehr,
   werden die Linien ausgeblendet — die Kreise bleiben trotzdem
   alle sichtbar und passen in die Breite. */
@media (max-width: 340px) {
	.prfbh-progress-bar { gap: 0; }
	.prfbh-progress-line { display: none; }
}

/* --------------------------------------------------------
   EINZELFELD-EINGABE (je ein Feld pro Schritt)
   -------------------------------------------------------- */
.prfbh-eingabe-single {
	margin: 28px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 520px;
}

.prfbh-eingabe-label {
	font-size: 1.1em;
	font-weight: 600;
	line-height: 1.5;
	color: #1d2327;
}

.prfbh-eingabe-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.prfbh-input--lg {
	width: 160px;
	font-size: 1.4em;
	padding: 12px 14px;
	border: 2px solid #c3c4c7;
	border-radius: 6px;
	transition: border-color 0.2s;
}

.prfbh-input--lg:focus {
	border-color: #0073aa;
	outline: none;
}

.prfbh-einheit--lg {
	font-size: 1.1em;
	font-weight: 600;
	color: #50575e;
}

@media (max-width: 600px) {
	.prfbh-eingabe-single { max-width: 100%; }
	.prfbh-input--lg      { width: 100%; }
}

/* PDF-Button */
.prfbh-btn--pdf {
	background: #2c6e49;
}
.prfbh-btn--pdf:hover {
	background: #1f4f34;
}

/* --------------------------------------------------------
   PREISSPANNE - ERGEBNISSEITE
   -------------------------------------------------------- */
.prfbh-ergebnis-spanne {
	border: 2px solid #0073aa;
	border-radius: 8px;
	padding: 32px 28px;
	background: #f0f7fb;
	text-align: center;
	margin: 20px 0;
	max-width: 520px;
}

.prfbh-spanne-label {
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #50575e;
	margin: 0 0 16px;
	font-weight: 600;
}

.prfbh-spanne-preise {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.prfbh-spanne-von,
.prfbh-spanne-bis {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.prfbh-spanne-tag {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #888;
}

.prfbh-spanne-wert {
	font-size: 2em;
	font-weight: 700;
	color: #0073aa;
	white-space: nowrap;
}

.prfbh-spanne-mwst {
	font-size: 0.82em;
	color: #888;
	margin: 14px 0 0;
}

@media (max-width: 480px) {
	.prfbh-spanne-wert  { font-size: 1.5em; }
	.prfbh-spanne-preise { gap: 20px; }
}

/* --------------------------------------------------------
   ERGEBNISSEITE – Layout nach Vorlage
   -------------------------------------------------------- */

.prfbh-ergebnis-titel {
	font-size: 1.8em;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1d2327;
}

.prfbh-ergebnis-intro-text {
	font-size: 1.1em;
	color: #3c434a;
	line-height: 1.6;
	margin-bottom: 20px;
}

/* Angaben-Tabelle */
.prfbh-angaben-tabelle {
	border-collapse: collapse;
	margin-bottom: 24px;
	width: auto;
}

.prfbh-angaben-tabelle td {
	padding: 6px 0;
	vertical-align: top;
	border: none;
}

.prfbh-angaben-key {
	font-weight: 700;
	padding-right: 28px !important;
	color: #1d2327;
	white-space: nowrap;
}

.prfbh-angaben-val {
	color: #3c434a;
}

/* Disclaimer */
.prfbh-disclaimer {
	font-size: 0.92em;
	line-height: 1.7;
	color: #50575e;
	max-width: 700px;
	margin-bottom: 32px;
}

/* Preisspanne */
.prfbh-preisspanne-box {
	text-align: center;
	margin: 8px 0 28px;
	padding: 10px 0;
}

.prfbh-preisspanne-titel {
	font-size: 1.05em;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 6px;
}

.prfbh-preisspanne-wert {
	font-size: 2.6em;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 4px;
	line-height: 1.2;
}

.prfbh-preisspanne-trenner {
	font-weight: 400;
	color: #3c434a;
}

.prfbh-preisspanne-eur {
	font-size: 0.85em;
}

.prfbh-preisspanne-mwst {
	font-size: 0.88em;
	color: #646970;
	margin: 0 0 20px;
}

/* CTA */
.prfbh-ergebnis-cta {
	font-size: 0.95em;
	line-height: 1.6;
	color: #1d2327;
	max-width: 680px;
	margin-bottom: 28px;
}

@media (max-width: 480px) {
	.prfbh-preisspanne-wert { font-size: 1.7em; }
}

/* --------------------------------------------------------
   GLOBALE ÜBERSCHRIFT PREISRECHNER
   -------------------------------------------------------- */
.prfbh-global-titel {
	font-size: 1.5em;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 1em;
}

/* --------------------------------------------------------
   KEINE KOSTENPROGNOSE MÖGLICH
   -------------------------------------------------------- */
.prfbh-keine-prognose-box {
	border: 2px solid #d63638;
	border-radius: 8px;
	padding: 32px 28px;
	background: #fff8f8;
	max-width: 620px;
	text-align: center;
}

.prfbh-keine-prognose-icon {
	font-size: 2.5em;
	margin-bottom: 12px;
}

.prfbh-keine-prognose-titel {
	font-size: 1.3em;
	color: #d63638;
	margin: 0 0 16px;
}

.prfbh-keine-prognose-text {
	font-size: 0.95em;
	line-height: 1.7;
	color: #3c434a;
	margin-bottom: 12px;
}

.prfbh-keine-prognose-kontakt {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0c3c3;
}

.prfbh-keine-prognose-kontakt p {
	margin: 6px 0;
	font-size: 1.1em;
}

.prfbh-keine-prognose-kontakt a {
	color: #0073aa;
}

/* --------------------------------------------------------
   STEPPER-EINGABE (−  Zahl  +)
   -------------------------------------------------------- */

/* Grundfarbe: Dunkelblau passend zur Seite */
/* Wrapper: counter + einheit nebeneinander, kein Umbruch */
.prfbh-eingabe-single .prfbh-eingabe-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0;
	margin-top: 16px;
}

.handle-counter {
	display: inline-flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}

.handle-counter .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: content-box;
	flex-shrink: 0;
	transition: background-color 0.15s;
}

.handle-counter .btn-primary {
	background-color: #0073aa;
	color: #ffffff;
}

.handle-counter .btn-primary:hover  { background-color: #005a87; }
.handle-counter .btn-primary:active { background-color: #004068; }

.handle-counter .counter-minus {
	border-radius: 4px 0 0 4px;
}

.handle-counter .counter-plus {
	border-radius: 0 4px 4px 0;
}

.handle-counter input[type="text"] {
	width: 80px;
	height: 40px;
	text-align: center;
	font-size: 1.2em;
	font-weight: 700;
	color: #1d2327;
	border-top: 2px solid #0073aa;
	border-bottom: 2px solid #0073aa;
	border-left: none;
	border-right: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: #ffffff;
	box-sizing: border-box;
	outline: none;
	flex-shrink: 0;
	font-family: inherit;
}

.handle-counter input[type="text"]:focus {
	background: #f5fafd;
}

.prfbh-qty-einheit {
	margin-left: 8px;
	font-size: 0.95em;
	font-weight: 600;
	color: #50575e;
	white-space: nowrap;
	flex-shrink: 0;
}

/* --------------------------------------------------------
   JA / NEIN BUTTONS (Fräsen-Preisrechner)
   -------------------------------------------------------- */
.prfbh-jaNein-wrap {
	display: flex;
	gap: 16px;
	margin-top: 20px;
}

.prfbh-jaNein-btn {
	width: 120px;
	height: 52px;
	background: #fff;
	color: #0073aa;
	border: 2px solid #0073aa;
	border-radius: 6px;
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.prfbh-jaNein-btn:hover {
	background: #e8f4fa;
}

.prfbh-jaNein-btn--aktiv,
.prfbh-jaNein-btn--aktiv:hover {
	background: #0073aa !important;
	color: #ffffff !important;
	border-color: #0073aa;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.prfbh-btn--neu {
	background: transparent;
	color: #0073aa;
	border: 2px solid #0073aa;
}

.prfbh-btn--neu:hover {
	background: rgba(0, 115, 170, 0.08);
}

.prfbh-btn--kontakt {
	background: #0073aa;
	color: #ffffff;
	border: 2px solid #0073aa;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
}

.prfbh-btn--kontakt:hover {
	background: #005a87;
	border-color: #005a87;
	color: #ffffff;
	text-decoration: none;
}