/* IHK Förderrechner – Modal Styles */

.ihk-fr-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #D4A017;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}
.ihk-fr-open-btn:hover {
	background-color: #b8890f;
}

/* Overlay */
.ihk-fr-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ihk-fr-overlay[hidden] {
	display: none;
}

/* Modal */
.ihk-fr-modal {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 540px;
	width: 100%;
	max-height: 95vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(0,0,0,0.25);
	font-family: Arial, Helvetica, sans-serif;
}

/* Close button */
.ihk-fr-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	z-index: 1;
	padding: 0;
}
.ihk-fr-close:hover {
	opacity: 0.8;
}

/* Header */
.ihk-fr-header {
	background: #D4A017;
	color: #fff;
	padding: 20px 24px 16px;
	border-radius: 8px 8px 0 0;
}
.ihk-fr-header h2 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

/* Produkt-Auswahl (wenn kein Produkt via URL/Shortcode) */
.ihk-fr-selector {
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
}
.ihk-fr-selector label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}
.ihk-fr-selector select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

/* Tabelle */
.ihk-fr-table {
	width: 100%;
	border-collapse: collapse;
	padding: 0 24px 8px;
	display: block;
}
.ihk-fr-table td {
	padding: 6px 4px;
	font-size: 0.9rem;
	vertical-align: middle;
}
.ihk-fr-table .ihk-fr-op {
	width: 18px;
	color: #555;
	font-weight: 600;
	text-align: center;
}
.ihk-fr-table .ihk-fr-label {
	color: #333;
}
.ihk-fr-table .ihk-fr-val {
	text-align: right;
	min-width: 80px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Subtotal-Zeile (Ergebnis nach Trennlinie) */
.ihk-fr-subtotal td {
	border-top: 1.5px solid #bbb;
	padding-top: 8px;
	font-weight: 700;
}

/* Trennlinie ohne Text */
.ihk-fr-divider td {
	padding: 2px 0;
}
.ihk-fr-divider hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 0;
}

/* Farbwerte */
.ihk-fr-green  { color: #3a8a2e; }
.ihk-fr-red    { color: #d94f2a; }
.ihk-fr-black  { color: #1a1a1a; }

/* Fußzeile */
.ihk-fr-footer {
	padding: 12px 24px 20px;
	font-size: 0.75rem;
	color: #666;
	line-height: 1.5;
}

/* Ergebnis-Banner */
.ihk-fr-result {
	margin: 0 24px 0;
	padding: 14px 16px;
	border-top: 2px solid #3a8a2e;
}
.ihk-fr-result-label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #3a8a2e;
}
.ihk-fr-result-value {
	font-size: 1.25rem;
	font-weight: 700;
	text-align: right;
	color: #3a8a2e;
}
.ihk-fr-result-positive .ihk-fr-result-label,
.ihk-fr-result-positive .ihk-fr-result-value {
	color: #3a8a2e;
}
.ihk-fr-result-negative .ihk-fr-result-label,
.ihk-fr-result-negative .ihk-fr-result-value {
	color: #1a1a1a;
}

/* "Damit gehst du Heim" Hinweis */
.ihk-fr-tagline {
	text-align: right;
	padding: 4px 24px 16px;
	font-size: 0.8rem;
	color: #D4A017;
	font-style: italic;
	font-weight: 600;
}

/* Hinweis Meisterbonus */
.ihk-fr-notice {
	padding: 0 24px 16px;
	font-size: 0.75rem;
	color: #555;
}

@media (max-width: 480px) {
	.ihk-fr-modal {
		max-width: 100%;
	}
	.ihk-fr-table td {
		font-size: 0.82rem;
	}
}
