/* Hydsun Rendite-Rechner Professional Business Styles */

/* Variables */
:root {
    --primary-color: #1a472a; /* Hunter Green - Nature Conservation */
    --primary-light: #2d5a3f; /* Forest Green */
    --accent-color: #3b82f6; /* Blue 500 - Vibrant Blue */
    --accent-hover: #2563eb; /* Blue 600 */
    --success-color: #10b981; /* Emerald 500 */
    --warning-color: #f59e0b; /* Amber 500 */
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --bg-light: #f8fafc; /* Slate 50 */
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Container & Layout */
.hydsun-rechner-container {
    max-width: 1200px;
    margin: 4rem auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* Hero Section */
.hydsun-hero-section {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
}

.hydsun-hero-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.hydsun-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.hydsun-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.9) 0%, rgba(45, 90, 63, 0.8) 100%);
}

.hydsun-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hydsun-headline {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hydsun-subline {
    font-size: 1.25rem;
    color: #cbd5e1; /* Slate 300 */
    margin: 0;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Wrapper */
.hydsun-rechner-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Form Styling */
.hydsun-form {
    margin-bottom: 2rem;
}

.hydsun-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.label-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563; /* Slate 600 - Darker for better contrast */
}

.input-hint a {
    color: var(--accent-color);
    text-decoration: none;
}

.input-hint a:hover {
    text-decoration: underline;
}

/* Focus Indicators for Accessibility */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Input with Unit */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    padding-right: 4rem !important;
}

.input-with-unit .unit {
    position: absolute;
    right: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    background: transparent;
}

/* Section Styling */
.section-headline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.section-headline:first-child {
    margin-top: 0;
}

.section-description {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 800px;
}

/* Preise Section */
.hydsun-preise-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

/* Modell Selection Cards */
.hydsun-modell-section {
    margin-bottom: 3rem;
}

.hydsun-modell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modell-card {
    position: relative;
    height: 100%;
}

.modell-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: -1px;
}

.modell-label {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.modell-card input:focus + .modell-label {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

.modell-label:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modell-card input:checked + .modell-label {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow-md);
}

.modell-header {
    background: var(--bg-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modell-card input:checked + .modell-label .modell-header {
    background: #eff6ff; /* Blue 50 */
    border-bottom-color: #bfdbfe; /* Blue 200 */
}

.modell-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.modell-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modell-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

.modell-badge.recommended {
    background: var(--success-color);
    color: white;
}

.modell-badge.enterprise {
    background: var(--primary-color);
    color: white;
}

.modell-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modell-preis {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.modell-preis span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.modell-beschreibung {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modell-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.modell-features li {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modell-features li:last-child {
    border-bottom: none;
}

.modell-beispiel,
.modell-beispiel-multi {
    margin-top: auto;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.modell-beispiel-multi div {
    padding: 0.25rem 0;
    display: flex;
    justify-content: space-between;
}

.modell-hinweis {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fffbeb; /* Amber 50 */
    border: 1px solid #fcd34d; /* Amber 300 */
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: #92400e; /* Amber 800 */
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Results Section */
.hydsun-result {
    margin-top: 4rem;
    padding: 0;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.result-header {
    padding: 2.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.result-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.result-subtitle {
    margin: 0;
    color: #94a3b8; /* Slate 400 */
    font-size: 1.1rem;
}

.result-content {
    padding: 2.5rem;
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.result-table th,
.result-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.result-table th {
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-light);
    width: 50%;
}

.result-table td {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
    font-feature-settings: "tnum";
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr.highlight {
    background: #f0f9ff; /* Sky 50 */
}

.result-table tr.highlight th,
.result-table tr.highlight td {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-top: 1px solid #bae6fd; /* Sky 200 */
    border-bottom: 1px solid #bae6fd;
}

/* Result Actions */
.result-actions {
    padding: 2rem 2.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 300px;
}

/* Newsletter Section */
.hydsun-newsletter-section {
    margin-top: 3rem;
    padding: 3rem;
    background: var(--primary-color);
    border-radius: var(--radius-xl);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.btn-newsletter {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border: none !important;
}

.btn-newsletter:hover {
    background: #f1f5f9 !important; /* Slate 100 */
}

/* CO2 Accordion */
.hydsun-co2-unternehmen-section {
    margin: 2rem 0;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.section-headline-accordion {
    padding: 1.25rem 1.5rem;
    margin: 0 !important;
    background: var(--bg-light);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s ease;
}

.section-headline-accordion:hover {
    background: #f1f5f9;
}

.section-headline-accordion .label-icon {
    margin-right: 0.75rem;
}

.co2-accordion-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.co2-quelle-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

/* Kurzansicht Styles */
.hydsun-kurz-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.hydsun-kernkennzahlen-box {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.hydsun-kernkennzahlen-box h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: white;
}

.hydsun-kernkennzahlen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hydsun-kernkennzahl-item {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 8px;
}

.hydsun-kernkennzahl-item .label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hydsun-kernkennzahl-item .value {
    font-size: 32px;
    font-weight: bold;
}

/* Responsive Design Updates */

/* Base Grid Adjustments for better flexibility */
.hydsun-form-grid,
.hydsun-modell-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Mobile First Optimizations (< 480px) */
@media (max-width: 480px) {
    .hydsun-rechner-container {
        margin: 1rem auto;
        width: 100%;
    }

    .hydsun-rechner-wrapper {
        padding: 1rem;
        border-radius: var(--radius-lg);
        border: none;
        box-shadow: none;
    }

    .hydsun-hero-section {
        border-radius: 0;
        margin: -1rem -1rem 2rem -1rem;
        width: calc(100% + 2rem);
    }

    .hydsun-hero-image {
        height: 240px;
    }

    .hydsun-headline {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hydsun-subline {
        font-size: 1rem;
    }

    .hydsun-form-grid,
    .hydsun-modell-grid {
        grid-template-columns: 1fr; /* Force single column */
        gap: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem;
    }

    /* Result Table Mobile Stack */
    .result-table, 
    .result-table tbody, 
    .result-table tr, 
    .result-table th, 
    .result-table td {
        display: block;
        width: 100%;
    }

    .result-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .result-table th {
        width: 100%;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .result-table td {
        text-align: left; /* Align left on mobile */
        padding: 0.75rem 1rem;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .result-table td::before {
        content: attr(data-label); /* Optional: if we had data-labels */
        font-weight: 600;
        margin-right: 1rem;
    }

    .result-actions {
        padding: 1.5rem;
    }
    
    .modell-header h4 {
        font-size: 1.1rem;
    }
    
    .modell-preis {
        font-size: 1.75rem;
    }

    /* Kurzansicht Mobile */
    .hydsun-kernkennzahlen-box {
        padding: 1.5rem;
    }

    .hydsun-kernkennzahlen-box h3 {
        font-size: 1.25rem;
    }

    .hydsun-kernkennzahlen-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hydsun-kernkennzahl-item .value {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .has-global-padding {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablet & Small Laptop (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .hydsun-rechner-wrapper {
        padding: 2rem;
    }

    .hydsun-headline {
        font-size: 2.5rem;
    }

    .hydsun-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .result-table th {
        width: 40%; /* Give more space to values */
    }
}

/* Existing Media Query Refinement (max-width: 768px) */
@media (max-width: 768px) {
    .hydsun-rechner-wrapper {
        padding: 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .co2-quelle-row {
        flex-direction: column;
    }
    
    .hydsun-hero-content {
        width: 95%;
    }
}


