/* Styles für Altersentlastungsbetrag Rechner */
:root {
    --primary-color: #005e85;
    --primary-dark: #00435f;
    --secondary-color: #f8f9fa;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --focus-color: #eaf5f9;
}

* {
    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, h4 {
    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);
}

h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 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);
}

#altersentlastungsbetrag-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;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-color);
    outline: none;
}

.info-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.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: #d35400;
}

/* 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: 1fr 2fr;
    gap: 2rem;
}

.result-summary {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-summary h3 {
    color: white;
    margin-bottom: 1rem;
}

.main-result {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.result-detail {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 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;
}

.result-item small {
    font-size: 0.8rem;
    color: #666;
}

/* Detailed Report Section */
.detailed-report-container {
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.explanation-box {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0 2rem;
    border-left: 4px solid var(--primary-color);
}

.benefit-graph-container {
    height: 400px;
    margin-top: 2rem;
}

/* Info Section */
.info-section {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
}

.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);
}

.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, 
    .detailed-report-container,
    .info-section,
    .intro {
        padding: 1.5rem;
    }
    
    #altersentlastungsbetrag-form {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .result-summary {
        margin-bottom: 1.5rem;
    }
}
