/* Hydsun Rendite-Rechner Professional Styles */

/* Container & Layout */
.hydsun-rechner-container {
    max-width: 1200px;
    margin: 3rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Section with Image */
.hydsun-hero-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hydsun-hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hydsun-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hydsun-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,150,136,0.85) 0%, rgba(0,105,92,0.75) 100%);
}

.hydsun-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}

.hydsun-headline {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hydsun-subline {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Calculator Wrapper */
.hydsun-rechner-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Form Styling */
.hydsun-form {
    margin-bottom: 2rem;
}

.hydsun-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.label-icon {
    font-size: 1.5rem;
}

.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #009688;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,150,136,0.1);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.input-hint strong {
    color: #009688;
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
}

.package-info {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e0f2f1;
    border-radius: 6px;
    border-left: 3px solid #009688;
}

/* Preise Section */
.hydsun-preise-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #dee2e6;
}

.section-headline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.section-description {
    margin-bottom: 1.5rem;
    color: #495057;
    line-height: 1.6;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input[type="number"] {
    flex: 1;
    padding-right: 4rem;
}

.input-with-unit .unit {
    position: absolute;
    right: 1.25rem;
    font-weight: 600;
    color: #009688;
    font-size: 1rem;
    pointer-events: none;
}

.package-info small {
    color: #00695c;
    font-weight: 600;
    font-size: 0.875rem;
}

#total-trees {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 3px solid #ffa000;
    color: #ff6f00;
}

#total-trees #total-count {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,150,136,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,150,136,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Newsletter Button (in blauer Box mit weißem Hintergrund) */
.btn-newsletter {
    background: white !important;
    color: #1976d2 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: #f5f5f5 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Newsletter Section Styles */
.hydsun-newsletter-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Section */
.hydsun-result {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f5f9f8 0%, #e8f5f3 100%);
    border-radius: 16px;
    border: 2px solid #009688;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #00796b;
    font-weight: 700;
}

.result-subtitle {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.result-table th,
.result-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.result-table th {
    font-weight: 600;
    color: #333;
    background: #fafafa;
    width: 50%;
}

.result-table td {
    color: #666;
    font-weight: 500;
    text-align: right;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr.highlight {
    background: linear-gradient(90deg, #e0f2f1 0%, #b2dfdb 100%);
}

.result-table tr.highlight th,
.result-table tr.highlight td {
    font-weight: 700;
    color: #00695c;
    font-size: 1.2rem;
}

.result-table tr.highlight th::before {
    content: '⭐ ';
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #b2dfdb;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 300px;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: #009688;
    box-shadow: 0 0 0 4px rgba(0,150,136,0.1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hydsun-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hydsun-hero-image {
        height: 300px;
    }
    
    .hydsun-headline {
        font-size: 2.5rem;
    }
    
    .hydsun-subline {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hydsun-rechner-container {
        margin: 1.5rem auto;
    }
    
    .hydsun-rechner-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .hydsun-hero-image {
        height: 250px;
    }
    
    .hydsun-headline {
        font-size: 2rem;
    }
    
    .hydsun-subline {
        font-size: 1.125rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .email-form {
        width: 100%;
        min-width: auto;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .result-table th,
    .result-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .result-table tr.highlight th,
    .result-table tr.highlight td {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hydsun-rechner-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .hydsun-hero-image {
        height: 200px;
    }
    
    .hydsun-headline {
        font-size: 1.75rem;
    }
    
    .hydsun-subline {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-header h3 {
        font-size: 1.5rem;
    }
}

/* Loading State */
.hydsun-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.hydsun-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hydsun-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.hydsun-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hydsun-result {
    animation: slideIn 0.5s ease;
}

/* ===================================
   Berechnungsmodell-Auswahl
   =================================== */

.hydsun-modell-section {
    margin-bottom: 2.5rem;
}

.hydsun-modell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modell-card {
    position: relative;
}

.modell-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modell-label {
    display: block;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.modell-label:hover {
    border-color: #009688;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,150,136,0.2);
}

.modell-card input:checked + .modell-label {
    border-color: #009688;
    box-shadow: 0 8px 32px rgba(0,150,136,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
}

.modell-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    border-bottom: 2px solid #dee2e6;
    position: relative;
}

.modell-card input:checked + .modell-label .modell-header {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    color: white;
}

.modell-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modell-header h4 {
    margin: 0.5rem 0 0 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.modell-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.modell-badge.recommended {
    background: #4caf50;
    color: white;
}

.modell-badge.enterprise {
    background: #ff9800;
    color: white;
}

.modell-card input:checked + .modell-label .modell-badge {
    background: white;
    color: #009688;
}

.modell-body {
    padding: 1.5rem;
}

.modell-preis {
    font-size: 2rem;
    font-weight: 800;
    color: #009688;
    margin-bottom: 1rem;
}

.modell-preis span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

.modell-beschreibung {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modell-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.modell-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.modell-features li:last-child {
    border-bottom: none;
}

.modell-beispiel {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.modell-beispiel-multi {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #333;
}

.modell-beispiel-multi div {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.modell-beispiel-multi div:last-child {
    border-bottom: none;
}

.modell-hinweis {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* CO₂-Bilanz Accordion Styles */
.hydsun-co2-unternehmen-section {
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.section-headline-accordion {
    padding: 1.25rem 1.5rem;
    margin: 0 !important;
    background: linear-gradient(135deg, #00695c 0%, #009688 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    transition: background 0.3s ease;
    user-select: none;
}

.section-headline-accordion:hover {
    background: linear-gradient(135deg, #00796b 0%, #00897b 100%);
}

.section-headline-accordion .accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.section-headline-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.co2-accordion-content {
    padding: 1.5rem;
}

.co2-quellen-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.co2-quelle-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.co2-quelle-row:hover {
    background: #e8f5e9;
    border-color: #009688;
}

.co2-quelle-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

.co2-quelle-select:focus {
    outline: none;
    border-color: #009688;
}

.co2-anteil-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

.co2-anteil-input:focus {
    outline: none;
    border-color: #009688;
}

#co2-anteil-summe-warnung {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization für Modell-Karten */
@media (max-width: 768px) {
    .hydsun-modell-grid {
        grid-template-columns: 1fr;
    }
    
    .modell-preis {
        font-size: 1.6rem;
    }
    
    .modell-header h4 {
        font-size: 1.2rem;
    }
    
    .co2-quelle-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .co2-quelle-row .form-group {
        flex: 1 !important;
    }
}


