/* ========================================
   HEIZUNGSRAUM-PLANER STYLES - PREMIUM DESIGN
   Heizungsanlagen-Konfigurator
   ======================================== */

/* Import Bad-Planer Base Styles */
@import url('bad-planer.css');

/* Heating System Selection */
.heating-system-select {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.system-card {
    display: block;
    cursor: pointer;
}

.system-card input[type="radio"] {
    display: none;
}

.system-content {
    padding: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.system-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-content > * {
    position: relative;
    z-index: 1;
}

.system-card:hover .system-content {
    border-color: #D97706;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.system-card:hover .system-content::before {
    opacity: 0.2;
}

.system-card input[type="radio"]:checked + .system-content {
    border-color: #D97706;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
    transform: translateX(4px);
}

.system-card input[type="radio"]:checked + .system-content::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

.system-content svg {
    width: 40px;
    height: 40px;
    color: #D97706;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
    transition: transform 0.3s ease;
}

.system-card:hover .system-content svg,
.system-card input[type="radio"]:checked + .system-content svg {
    transform: scale(1.1);
}

.system-content div {
    flex: 1;
}

.system-content strong {
    display: block;
    color: #1a365d;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.system-content small {
    display: block;
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.system-content .badge {
    display: inline-block;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Energy Info */
.energy-info {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.energy-info svg {
    width: 36px;
    height: 36px;
    color: #2563EB;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.energy-info strong {
    display: block;
    color: #1E40AF;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.energy-info strong span {
    color: #2563EB;
    font-size: 1.25rem;
}

.energy-info small {
    color: #3B82F6;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Cost Summary Extended */
.cost-row.subtotal {
    font-weight: 700;
    font-size: 1.0625rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    margin-top: 0.75rem;
}

.cost-row.funding {
    color: #10B981;
    font-weight: 700;
    font-size: 1.0625rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 1rem;
    margin: 1rem -1rem;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.cost-row.funding svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.375rem;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

/* Heating Info Panel */
.heating-info-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border-radius: 16px;
    border: 2px solid #E5E7EB;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.info-item:hover {
    border-color: #D97706;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

.info-item svg {
    width: 40px;
    height: 40px;
    color: #D97706;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
}

.info-item strong {
    display: block;
    font-size: 0.8125rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.info-item span {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a365d;
    letter-spacing: -0.02em;
}

/* Funding Info Section */
.funding-info {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    position: relative;
    overflow: hidden;
}

.funding-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.funding-banner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.funding-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

.funding-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.funding-banner h3 {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.funding-banner p {
    color: #6B7280;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.funding-link {
    color: #10B981;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 2px solid transparent;
}

.funding-link:hover {
    color: #059669;
    gap: 1rem;
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.15);
    transform: translateX(4px);
}

/* Canvas Specific Styles for Heating */
#heating-canvas {
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
}

/* Heating Components Colors */
.component-heatpump { fill: #3B82F6; }
.component-gas { fill: #F59E0B; }
.component-oil { fill: #EF4444; }
.component-pellets { fill: #10B981; }
.component-buffer { fill: #6366F1; }
.component-water { fill: #06B6D4; }
.component-solar { fill: #FBBF24; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .heating-info-panel {
        grid-template-columns: 1fr;
    }

    .funding-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .heating-system-select {
        gap: 0.75rem;
    }

    .system-content {
        padding: 1rem;
        gap: 1rem;
    }

    .system-content svg {
        width: 32px;
        height: 32px;
    }

    .system-content strong {
        font-size: 0.9375rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .info-item span {
        font-size: 1.5rem;
    }

    .funding-info {
        padding: 2.5rem 1rem;
    }

    .funding-banner {
        padding: 2rem;
    }

    .funding-icon {
        width: 80px;
        height: 80px;
    }

    .funding-icon svg {
        width: 40px;
        height: 40px;
    }

    .funding-banner h3 {
        font-size: 1.5rem;
    }

    .funding-banner p {
        font-size: 1rem;
    }
}

/* Additional Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.heating-active {
    animation: pulse 2s ease-in-out infinite;
}

/* Heating Load Indicator */
.heating-load-indicator {
    position: relative;
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    margin-top: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.heating-load-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Efficiency Badge */
.efficiency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-top: 1.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}

.efficiency-badge svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Premium Glow Effects */
.system-card input[type="radio"]:checked + .system-content svg {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.4));
    }
}
