/**
 * Netto-Brutto-Rechner 2026 - Content Page Styles
 * For static pages: glossar, steuergeschichte, datenschutz, impressum
 */

/* ===== Content Page Header ===== */
.content-page header {
    margin-bottom: 1rem;
}

.content-page h1 {
    font-size: 2.2rem;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
}

.timeline-year {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== Data Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--input-bg);
    color: var(--text);
    font-weight: 600;
}

.data-table td {
    color: var(--muted);
}

.data-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* ===== Formula Box ===== */
.formula-box {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    backdrop-filter: blur(10px);
}

.formula-box .label {
    color: var(--warning);
    margin-bottom: 0.25rem;
}

.formula-box code {
    color: var(--success);
}

/* ===== Statistics Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-box .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ===== Chart Container ===== */
.chart-container {
    background: var(--input-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    height: 300px;
    border: 1px solid var(--border);
}

/* ===== Accordion / Details (Glossar) ===== */
details.glossar-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

details.glossar-item:hover {
    border-color: var(--primary);
}

details.glossar-item[open] {
    border-color: var(--primary-light);
}

details.glossar-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 1.5rem;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.glossar-item summary::-webkit-details-marker {
    display: none;
}

details.glossar-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.2s;
    font-weight: 300;
}

details.glossar-item[open] summary::after {
    content: '−';
}

details.glossar-item>div,
details.glossar-item>p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

details.glossar-item strong {
    color: var(--text);
}

details.glossar-item ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    color: var(--muted);
}

details.glossar-item li {
    margin-bottom: 0.25rem;
}

/* ===== FAQ Sections ===== */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-section h2::before {
    content: '📋';
    font-size: 1rem;
}

/* ===== CTA Box ===== */
.cta-box {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border-radius: 16px;
    border: 1px solid var(--border);
}

.cta-link {
    display: block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
}

.cta-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
    text-decoration: none;
}

/* ===== Sources Box ===== */
.sources-box {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border);
}

.sources-box h4 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.sources-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ===== Contact Section (Impressum) ===== */
.contact-section {
    background: var(--input-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.contact-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.spam-notice {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.spam-notice svg {
    flex-shrink: 0;
    color: var(--warning);
}

.spam-notice p {
    margin: 0;
    font-size: 0.9rem;
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message svg {
    color: var(--success);
}

.legal-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.address {
    font-style: normal;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===== Content Page Responsive ===== */
@media (max-width: 640px) {
    .content-page h1 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        height: 250px;
    }
}