/* Photovoltaik Amortisationsrechner - Gemeinsame Styles */

:root {
    --primary-color: #f59e0b;
    --secondary-color: #10b981;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --bg-light: #f9fafb;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: 
        linear-gradient(135deg, rgba(245, 158, 11, 0.85) 0%, rgba(16, 185, 129, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="sun" cx="50%" cy="50%" r="40%"><stop offset="0%" style="stop-color:%23fbbf24"/><stop offset="100%" style="stop-color:%23f59e0b"/></radialGradient></defs><rect width="1000" height="1000" fill="%23bfdbfe"/><circle cx="200" cy="200" r="80" fill="url(%23sun)"/><circle cx="800" cy="300" r="60" fill="url(%23sun)" opacity="0.7"/><circle cx="600" cy="700" r="100" fill="url(%23sun)" opacity="0.8"/></svg>') center/cover no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem auto;
    max-width: 1200px;
    overflow: hidden;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ea580c 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="solar" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23solar)"/></svg>');
    opacity: 0.3;
}

.header-section .content {
    position: relative;
    z-index: 1;
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.header-section .lead {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Impressum specific header adjustments */
.header-section.impressum {
    padding: 2rem;
}

.header-section.impressum h1 {
    font-size: 2.2rem;
}

.header-section.impressum p {
    margin: 0;
    opacity: 0.95;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-content {
    padding: 2rem;
}

.content-section {
    padding: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 3rem;
    line-height: 1.3;
}

.form-label .label-text {
    flex: 1;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: var(--transition);
    transform: translate(-50%, -50%);
}

.btn-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-cta {
    background: white;
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
}

.btn-affiliate {
    background: white;
    color: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow: hidden;
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

/* Info Links Section */
.info-links-section {
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Quick Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.fact-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fact-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fact-card.positive .icon {
    color: var(--secondary-color);
}

.fact-card.warning .icon {
    color: #f59e0b;
}

.fact-card.info .icon {
    color: var(--accent-color);
}

.fact-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.fact-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Example Box */
.example-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.example-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem 0;
    overflow: hidden;
}

.faq-question {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #e5e7eb;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.faq-answer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Navigation */
.navigation {
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-dark);
    text-decoration: none;
}

/* Legal Sections (Impressum) */
.legal-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.legal-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.legal-section h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-section h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-section p, .legal-section li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 2rem;
}

/* Results */
.results-section {
    margin: 2rem 1rem;
}

.results-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.result-item h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.result-item .unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.highlight-result {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Index-specific result item styling */
.results-grid .result-item {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    border: 2px solid transparent;
}

.results-grid .result-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.results-grid .result-item h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.results-grid .result-item .value {
    font-size: 2rem;
    color: var(--text-dark);
}

.results-grid .result-item .unit {
    color: #6b7280;
}

/* Chart */
.chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.chart-container h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Affiliate Section */
.affiliate-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 2rem 1rem;
    border-radius: var(--border-radius);
    display: none;
}

.affiliate-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.affiliate-section p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Ad Block */
.ad-block {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    min-height: 300px;
}

/* Help Tooltip */
.help-tooltip {
    color: var(--primary-color);
    cursor: help;
    margin-left: 0.25rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fbbf24;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    margin: 0 0.25rem;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* Error States */
.error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.8rem;
    }
    
    .main-container {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
        border-radius: 8px;
    }
    
    .form-content, .content-section {
        padding: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .quick-facts {
        grid-template-columns: 1fr;
    }

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

    .cookie-consent-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

    body.cookie-banner-active {
        padding-bottom: 200px;
    }

    .legal-section {
        padding: 1rem;
    }
}

/* Rentabilitäts-Teaser Styles */
.rentability-teaser {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #e0f2fe;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.teaser-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.teaser-header h3 i {
    color: var(--primary-color);
}

.teaser-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.teaser-fact {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.teaser-fact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.teaser-fact:hover::before {
    transform: translateX(0);
}

.teaser-fact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.fact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.teaser-fact:hover .fact-icon {
    transform: scale(1.1);
}

.fact-icon.positive {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.fact-icon.success {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fact-icon.info {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.fact-content {
    text-align: center;
}

.fact-content strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    display: block;
    margin-bottom: 0.25rem;
}

.fact-content span {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.3;
    font-weight: 500;
}

.teaser-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.teaser-cta p {
    color: #4b5563;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Anpassungen für Teaser */
@media (max-width: 768px) {
    .rentability-teaser {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .teaser-header h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .teaser-fact {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .fact-content {
        text-align: center;
    }
    
    .teaser-cta p {
        font-size: 0.95rem;
    }
}

/* Social Sharing Styles */
.social-sharing {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.social-sharing h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: none;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white !important;
    text-decoration: none;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.social-btn.facebook:hover {
    background-color: #166fe5;
}

.social-btn.twitter:hover {
    background-color: #1a91da;
}

.social-btn.linkedin:hover {
    background-color: #006ba1;
}

.social-btn.whatsapp:hover {
    background-color: #22c55e;
}

.intro-text {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.intro-text p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        min-width: 150px;
        justify-content: center;
    }
    
    .intro-text {
        padding: 1rem;
        margin: 1rem 0;
    }
}
