/* Extracted from gehaltsrechner.php. */

/* === Brutto-Netto-Rechner, Prefix: bnr- === */

.bnr-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 7rem 0 5rem;
    text-align: center;
}
.bnr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.bnr-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}
.bnr-hero-sub {
    color: #4b5563;
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

/* Rechner-Karte */
.bnr-section {
    padding: 3rem 0 5rem;
    background: #f8fafc;
}
.bnr-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}
.bnr-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}
.bnr-card-header {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    padding: 1.5rem 2rem;
    color: #fff;
}
.bnr-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.bnr-card-header p {
    color: #93c5fd;
    font-size: 0.88rem;
    margin: 0.25rem 0 0;
}
.bnr-form {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.bnr-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bnr-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}
.bnr-field input,
.bnr-field select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}
.bnr-field input:focus,
.bnr-field select:focus {
    border-color: #2563eb;
}
.bnr-field-hint {
    font-size: 0.78rem;
    color: #6b7280;
}
.bnr-field-full {
    grid-column: 1 / -1;
}
.bnr-calc-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.bnr-calc-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.bnr-calc-btn:active { transform: translateY(0); }

/* Ergebnis */
.bnr-result {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 2rem;
    background: #f8fafc;
}
.bnr-result.visible { display: block; }
.bnr-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.bnr-result-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}
.bnr-netto-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
}
.bnr-netto-label {
    font-size: 0.85rem;
    color: #6b7280;
}
.bnr-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.bnr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.875rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.88rem;
}
.bnr-row-label { color: #4b5563; }
.bnr-row-value { font-weight: 700; color: #1f2937; }
.bnr-row-value.negative { color: #ef4444; }
.bnr-row-value.positive { color: #10b981; }
.bnr-row-total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    border-color: #a7f3d0;
    padding: 0.875rem;
}
.bnr-row-total .bnr-row-label { color: #065f46; font-weight: 700; }
.bnr-row-total .bnr-row-value { color: #059669; font-size: 1.1rem; }

.bnr-hint-box {
    margin-top: 1.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.6;
}

/* Info-Sektion */
.bnr-info {
    padding: 5rem 0;
    background: #fff;
}
.bnr-beitraege-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.bnr-beitrag-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}
.bnr-beitrag-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.bnr-beitrag-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
}
.bnr-beitrag-note {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

/* Steuerklassen-Tabelle */
.bnr-stk-table-wrap {
    overflow-x: auto;
    margin-top: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bnr-stk-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.bnr-stk-table th {
    background: #1e3a5f;
    color: #fff;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
}
.bnr-stk-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.88rem;
    color: #374151;
}
.bnr-stk-table tr:last-child td { border-bottom: none; }
.bnr-stk-table tr:nth-child(even) td { background: #f8fafc; }
.bnr-stk-klasse {
    font-weight: 800;
    color: #2563eb;
    font-size: 1.05rem;
}

/* CTA */
.bnr-cta {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    padding: 4.5rem 0;
    text-align: center;
    color: #fff;
}
.bnr-cta h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
.bnr-cta p { color: #93c5fd; max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
    .bnr-hero { padding: 5rem 0 3rem; }
    .bnr-form { grid-template-columns: 1fr; }
    .bnr-breakdown { grid-template-columns: 1fr; }
    .bnr-netto-big { font-size: 2rem; }
}
