/* Abfindung Netto-Rechner 2026, CSS-Prefix afn-, Hero Light (CI-Standard wie agk-) */

/* HERO */
.afn-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 0 3.25rem;
    text-align: center;
}
.afn-hero-eyebrow {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}
.afn-hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 2.7rem);
    font-weight: 800;
    color: #1f2937;
    margin: 0 auto 1rem;
    line-height: 1.2;
    max-width: 840px;
}
.afn-hero-sub {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

/* RECHNER */
.afn-section {
    padding: 4rem 0;
    background: #f8fafc;
}
.afn-print-head {
    display: none;
}
.afn-card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px -16px rgba(15,23,42,0.18);
    padding: 2.25rem;
}
.afn-fields {
    border: 0;
    margin: 0 0 1.75rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
    min-width: 0;
}
.afn-legend {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.9rem;
    padding: 0;
}
.afn-field {
    min-width: 0;
}
.afn-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}
.afn-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.afn-input-wrap span {
    font-weight: 600;
    color: #6b7280;
}
.afn-field input,
.afn-field select {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    background: #fff;
}
.afn-field input:focus,
.afn-field select:focus {
    outline: none;
    border-color: #2563eb;
}
.afn-field input[aria-invalid="true"] {
    border-color: #dc2626;
}
.afn-hint {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}
.afn-err {
    font-size: 0.8rem;
    color: #b91c1c;
    font-weight: 600;
    margin: 0.3rem 0 0;
}
.afn-err:empty {
    display: none;
}
.afn-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    min-height: 44px;
    cursor: pointer;
}
.afn-check input {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
}

/* ERGEBNIS */
.afn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.afn-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.1rem;
    text-align: center;
}
.afn-result-card.is-total {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.afn-result-label {
    font-size: 0.8rem;
    font-weight: 700;
    /* #6b7280 auf #eff6ff lag bei 4,44:1, #4b5563 bei 7,1:1 (2026-10-17).
       Versalien raus nach dem Regelwerk ohne KI-Look. */
    color: #4b5563;
    margin-bottom: 0.5rem;
}
.afn-result-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.afn-result-card.is-total .afn-result-num {
    color: #1d4ed8;
}
.afn-result-sub {
    font-size: 0.82rem;
    color: #4b5563;
    margin-top: 0.4rem;
    line-height: 1.45;
}

.afn-breakdown {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
}
.afn-breakdown-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.6rem;
}
.afn-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.92rem;
    color: #374151;
}
.afn-row span:last-child {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.afn-row.is-sum {
    border-bottom: 2px solid #cbd5e1;
    font-weight: 700;
    color: #1f2937;
}

.afn-hint-box {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    border-radius: 0 10px 10px 0;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.afn-hint-box:empty {
    display: none;
}
.afn-hint-box.is-warn {
    border-left-color: #f59e0b;
    background: #fffbeb;
}
.afn-hint-box.is-ok {
    border-left-color: #059669;
    background: #ecfdf5;
}

.afn-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.afn-cta-btn,
.afn-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.afn-cta-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: 0;
}
.afn-cta-btn:hover {
    background: #1e40af;
    color: #fff;
}
.afn-print-btn {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}
.afn-print-btn:hover {
    background: #eff6ff;
}
.afn-privacy {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    margin: 1rem 0 0;
}
.afn-disclaimer {
    max-width: 980px;
    margin: 1.25rem auto 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

/* INFO */
.afn-info {
    padding: 4rem 1.25rem;
    background: #fff;
}
.afn-info-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.afn-info h2,
.afn-faq h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1.75rem;
    text-align: center;
}
.afn-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.afn-info-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem;
}
.afn-info-item h3,
.afn-faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.6rem;
}
.afn-info-item p,
.afn-faq-item p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

/* FAQ */
.afn-faq {
    padding: 4rem 0;
    background: #f8fafc;
}
.afn-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.afn-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .afn-card { padding: 1.75rem; }
}
@media (max-width: 768px) {
    .afn-fields { grid-template-columns: repeat(2, 1fr); }
    .afn-grid { grid-template-columns: 1fr; }
    .afn-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .afn-section { padding: 2.5rem 0; }
    .afn-card { padding: 1.25rem; border-radius: 14px; }
    .afn-fields { grid-template-columns: 1fr; }
    .afn-row { font-size: 0.86rem; }
    .afn-cta-btn, .afn-print-btn { width: 100%; justify-content: center; }
}

/* DRUCK: nur Rechner, Ergebnis und Berechnungsgrundlage */
@media print {
    nav, header, footer, .lk-topband, #lk-cookie-banner, .sticky-cta, .skip-link,
    main > *:not(.afn-section),
    .afn-cta-row, .afn-privacy {
        display: none !important;
    }
    body { padding-top: 0 !important; }
    .afn-section { padding: 0; background: #fff; }
    .afn-print-head {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 2px solid #1f2937;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    .afn-card { box-shadow: none; padding: 0; }
    .afn-fields { grid-template-columns: repeat(3, 1fr); }
    .afn-grid { grid-template-columns: repeat(3, 1fr); }
    .afn-result-card, .afn-breakdown, .afn-hint-box { break-inside: avoid; }
    .afn-field input, .afn-field select { border-width: 1px; }
}

/* ===== Regelwerk ohne KI-Look (generiert, tools/design-flatten.py) =====
   Verlaeufe flach, Kanten statt Schatten, nichts springt hoch, Radien 6 px,
   Etiketten in normaler Schreibung, kein Akzentbalken links. Regeln: CLAUDE.md. */
.afn-hero { background: #f0f9ff; }
.afn-hero-eyebrow, .afn-legend { text-transform: none; letter-spacing: 0; }
.afn-card { box-shadow: none; border: 1px solid var(--lk-line); border-radius: 6px; }
.afn-result-card, .afn-breakdown, .afn-info-item, .afn-faq-item { border-radius: 6px; }
.afn-hint-box { border: 1px solid var(--lk-line); border-top: 2px solid #2563eb; }
.afn-cta-btn { background: #1d4ed8; }
@media (max-width: 480px) {
    .afn-card { border-radius: 6px; }
}
/* ===== Ende Regelwerk ohne KI-Look ===== */
