/**
 * Punktwerk CRM Connect - Tarifrechner Styles
 */

/* ===== Calculator Wrapper ===== */
.pw-calculator-wrapper {
	max-width: 720px;
	margin: 0 auto;
	/* padding: 1.5rem; */
	color: var(--wp--preset--color-contrast);
}
.pw-calculator-wrapper * { box-sizing: border-box; }

/* ===== Steps ===== */
.pw-calc-step {
	display: none;
	animation: pwFadeIn 0.3s ease;
}
.pw-calc-step-active { display: block; }

@keyframes pwFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== Header ===== */
.pw-calc-header {
	text-align: center;
	margin-bottom: 1.5rem;
}
.pw-calc-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #0d6efd;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}
.pw-calc-header h3 {
	margin: 0.3rem 0;
	font-size: 1.4rem;
}
.pw-calc-subtitle {
	/* color: #6c757d; */
	margin: 0;
}

/* ===== Choice Cards ===== */
.pw-calc-choice-group {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin: 1.5rem 0;
}
.pw-calc-choice {
	cursor: pointer;
	flex: 1;
	max-width: 200px;
}
.pw-calc-choice-big input { display: none !important; }

.pw-calc-choice-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.2s;
	background: #fff;
}
.pw-calc-choice input:checked + .pw-calc-choice-card .pw-calc-choice-icon {
	background: var(--wp--preset--color--3);
}
.pw-calc-choice-card:hover {
	border-color: #adb5bd;
	transform: translateY(-2px);
}
.pw-calc-choice-icon {
	border-radius: 100%;
	width: 130px;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pw-calc-choice-icon img {
	width: 100px;
	height: 100px;
}
.pw-calc-choice-big .pw-calc-choice-card {
	/* padding: 1rem; */
	font-size: 2.5rem;
	font-weight: 600;
}
label.pw-calc-choice {
	display: block;
}
.pw-calc-step[data-step="1"] {
	max-width: 320px;
	margin: 0 auto;
	text-align: center;
}
.pw-calc-step[data-step="1"] input[type="radio"] {
	margin: 10px;
	margin-left: 0;
}
.pw-calc-step[data-step="2"],
.pw-calc-step[data-step="3"],
.pw-calc-step[data-step="4"] {
	max-width: 450px;
	margin: 0 auto;
}

.pw-calc-choice-group-small {
	margin: 1.5rem;
	text-align: left;
	display: inline-block;
}
/* ===== Buttons ===== */
.pw-calc-buttons {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.5rem;
}
.pw-calc-next, .pw-calc-calculate {
	min-width: 200px;
}

/* ===== Loading / Animation ===== */
.pw-calc-loading {
	text-align: center;
	padding: 3rem 1rem;
}
.pw-calc-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid #e9ecef;
	border-top: 4px solid #ee4699;
	border-radius: 50%;
	animation: pwSpin 0.8s linear infinite;
	margin: 0 auto 1.5rem;
}
@keyframes pwSpin {
	to { transform: rotate(360deg); }
}
.pw-calc-loading-text {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.pw-calc-progress-bar {
	width: 80%;
	max-width: 300px;
	height: 6px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 3px;
	margin: 0 auto 0.75rem;
	overflow: hidden;
}
.pw-calc-progress-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ee4699, #f4e800);
	border-radius: 3px;
	transition: width 0.3s linear;
}
.pw-calc-loading-detail {
	color: #6c757d;
	font-size: 0.9rem;
}

/* ===== Result ===== */
.pw-calc-result {
	text-align: center;
}
.pw-calc-result-hero {
	padding: 2rem;
	background: var(--wp--preset--color--3);
	border-radius: 12px;
	margin-bottom: 1.5rem;
	margin-top: 80px;
}
.pw-calc-result-hero  .pw-calc-choice-icon {
	margin: -80px auto 10px auto;
	background: #fff;
	border: 5px solid var(--wp--preset--color--3);
}

.pw-calc-result-hero.pw-no-saving {
	background: linear-gradient(135deg, #fff3cd, #ffeeba);
}
.pw-calc-savings-label {
	font-size: 0.95rem;
	margin-bottom: 0.3rem;
}
.pw-calc-savings-amount {
	font-size: 2.8rem;
	font-weight: 700;
	line-height: 1.1;
}
.pw-calc-result-hero.pw-no-saving .pw-calc-savings-amount {
	font-size: 1.8rem;
}
.pw-calc-savings-detail {
	font-size: 0.95rem;
	margin-top: 0.3rem;
}

/* Vergleichstabelle */
.pw-calc-compare-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	text-align: left;
	font-size: 0.9rem;
}
.pw-calc-compare-table th {
	background: #f8f9fa;
	padding: 0.6rem 0.75rem;
	border-bottom: 2px solid #dee2e6;
	font-weight: 600;
}
.pw-calc-compare-table td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #e9ecef;
}
.pw-calc-compare-table .pw-highlight {
	background: #d4edda;
	font-weight: 600;
}
.pw-calc-compare-table .pw-discount-row td {
	background: #fff8e1;
	color: #e65100;
	font-size: 0.85rem;
	border-bottom: 1px dashed #ffe0b2;
}
.pw-calc-compare-table .pw-discount-row .pw-highlight {
	background: #fff3e0;
	color: #e65100;
	font-weight: 600;
}

/* Bonusbox */
.pw-calc-bonus {
	background: #e8f4fd;
	border: 1px solid #bee5eb;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
	font-size: 0.9rem;
}

/* Anfrage-Summary */
.pw-calc-anfrage-summary {
	background: var(--wp--preset--color--3);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	text-align: center;
}
/* ===== Responsive ===== */
@media (max-width: 480px) {
	/* .pw-calc-choice-group { flex-direction: column; align-items: center; } */
	.pw-calc-choice { max-width: 100%; width: 100%; }
	.pw-calc-savings-amount { font-size: 2.2rem; }
	.pw-calc-buttons { flex-direction: column; }
	.pw-calc-buttons .pw-btn { width: 100%; }
}

.pw-input-with-unit .pw-unit {
  min-width: 85px;
}