/* Main Styles für Rente Steuer Rechner */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --text-color: #333;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--primary-color);
    /*color: white;*/
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
   /* color: white;*/
    margin-bottom: 0.5rem;
}

.subheading {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Intro Section */
.intro {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.source-info {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
}

.source-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 3rem;
}

.calculator-container {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

#tax-calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.calculate-btn {
    grid-column: 1 / -1;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-btn:hover {
    background-color: #218838;
}

/* Results Section */
.results-section {
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

.results-container {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.result-item {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.result-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.result-item p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.total-result {
    grid-column: 1 / -1;
    background-color: var(--primary-dark);
    color: white;
}

.total-result h3 {
    color: white;
}

.total-result p {
    color: white;
    font-size: 2rem;
}

.monthly-result {
    grid-column: 1 / -1;
    background-color: var(--accent-color);
    color: white;
}

.monthly-result h3 {
    color: white;
}

.monthly-result p {
    color: white;
    font-size: 2rem;
}

.result-chart-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    height: 400px;
}

/* Detailed Report Styles */
.detailed-report-container {
    margin-top: 3rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.report-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.report-tab:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.report-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.report-panel h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
}

.tax-burden-analysis, 
.comparison-with-average {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.option-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.option-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.option-card .impact {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.details-container {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.details-container h4 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.details-container h4:first-child {
    margin-top: 0;
}

.report-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.action-btn:hover {
    background-color: var(--primary-dark);
}

#recommendations-list {
    padding-left: 1.5rem;
}

#recommendations-list li {
    margin-bottom: 0.75rem;
}

@media screen and (max-width: 768px) {
    .report-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* Info Section */
.info-section {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.info-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tax-table th,
.tax-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.tax-table th {
    background-color: var(--primary-color);
    color: white;
}

.tax-table tr:nth-child(even) {
    background-color: var(--secondary-color);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
   /* color: white;*/
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer a {
    /*color: white;*/
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .calculator-container, 
    .results-container, 
    .info-section,
    .intro {
        padding: 1.5rem;
    }
    
    #tax-calculator-form {
        grid-template-columns: 1fr;
    }
    
    .result-item p {
        font-size: 1.3rem;
    }
    
    .total-result p,
    .monthly-result p {
        font-size: 1.6rem;
    }
}
