/* ================================================================
   ALTERSVORSORGE-VERGLEICHSRECHNER  v3  STYLES
   Dashboard-Layout: Sticky-Sidebar + scrollender Content
   ================================================================ */

:root {
    --bg-base:        #0a0a18;
    --bg-elev:        #14142a;
    --bg-card:        rgba(22, 22, 44, 0.7);
    --bg-card-solid:  #1a1a2e;
    --bg-input:       rgba(10, 10, 24, 0.6);

    --text-primary:   #f0f0f8;
    --text-secondary: #c5c5d8;
    --text-muted:     #8a8aa5;

    --border:         rgba(255, 255, 255, 0.06);
    --border-strong:  rgba(255, 255, 255, 0.12);

    --accent-bav:    #3b82f6;
    --accent-etf:    #10b981;
    --accent-depot:  #a878ff;
    --accent-mix:    #14b8a6;

    --good:    #22c55e;
    --warn:    #f59e0b;
    --bad:     #ef4444;
    --gold:    #fbbf24;

    --radius:   14px;
    --radius-s: 8px;

    --sidebar-w: 380px;
    --header-h:  64px;

    --shadow:   0 4px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

body {
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(168, 120, 255, 0.08), transparent 40%);
    background-attachment: fixed;
}

/* ================================================================ HEADER ================================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.topbar-inner {
    max-width: 1800px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon { font-size: 1.8rem; }
.brand-title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.brand-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.scenarios {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-right: 4px;
}

/* ================================================================ BUTTONS ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-card-solid);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn:hover {
    background: var(--bg-elev);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-scenario.active {
    background: var(--accent-bav);
    color: white;
    border-color: var(--accent-bav);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    font-size: 0.78rem;
    padding: 4px 10px;
}

/* ================================================================ LAYOUT ================================================================ */

.layout {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 24px;
    padding: 24px;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 6px;
    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* prevent overflow */
}

/* ================================================================ CARDS ================================================================ */

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
}

.card-bav   { border-top: 2px solid var(--accent-bav); }
.card-etf   { border-top: 2px solid var(--accent-etf); }
.card-depot { border-top: 2px solid var(--accent-depot); }
.card-mix   { border-top: 2px solid var(--accent-mix); }

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.card-head h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ch-icon { font-size: 1.2rem; }

.divider {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin: 16px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-strong);
}

/* ================================================================ FORM FIELDS ================================================================ */

.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }

.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.ig {
    position: relative;
    display: flex;
    align-items: center;
}

.ig input,
.ig select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ig input:focus,
.ig select:focus {
    outline: none;
    border-color: var(--accent-bav);
    background: var(--bg-elev) !important;
}

.ig input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ig .u {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
    background: var(--bg-input);
    padding: 0 2px;
}

.ig select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8aa5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Browser-Native dropdown options dark */
.ig select option {
    background-color: #1a1a2e !important;
    color: #f0f0f8 !important;
    padding: 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    user-select: none;
    font-weight: 500;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-mix);
}

.mix-controls {
    margin-top: 10px;
    padding: 12px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px dashed rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-s);
}

.mix-tip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(20, 184, 166, 0.15);
}

.hidden { display: none !important; }

/* ================================================================ BANNER ================================================================ */

.banner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.banner-item {
    text-align: center;
    padding: 6px 8px;
    border-right: 1px solid var(--border);
}
.banner-item:last-child { border-right: none; }

.bi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}

.bi-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bi-val.good { color: var(--good); }
.bi-val.warn { color: var(--warn); }
.bi-val.bad  { color: var(--bad); }

@media (max-width: 1100px) {
    .banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
}

/* ================================================================ GRV-PANEL ================================================================ */

.grv-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warn);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
}

.grv-panel.has-loss {
    border-left-color: var(--bad);
}

.grv-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.grv-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--warn);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.grv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .grv-grid { grid-template-columns: 1fr; }
}

.grv-block {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 16px;
    border-radius: var(--radius-s);
    border: 1px solid var(--border);
}

.grv-block.grv-delta {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.gb-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.gb-big {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-big.red  { color: var(--bad); }
.gb-big.warn { color: var(--warn); }

.gb-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gb-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 8px;
}

.gb-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* ================================================================ SECTION TITLES ================================================================ */

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 4px 0;
}

.section-title > span:first-child {
    font-size: 1.3rem;
}

.section-title .btn {
    margin-left: auto;
}

/* ================================================================ RESULTS-GRID ================================================================ */

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.results-grid:has(.card-mix:not(.hidden)) {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1500px) {
    .results-grid:has(.card-mix:not(.hidden)) {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1100px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .results-grid,
    .results-grid:has(.card-mix:not(.hidden)) {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.result-card.card-bav   { border-top: 3px solid var(--accent-bav); }
.result-card.card-etf   { border-top: 3px solid var(--accent-etf); }
.result-card.card-depot { border-top: 3px solid var(--accent-depot); }
.result-card.card-mix   { border-top: 3px solid var(--accent-mix); }

.result-card.winner {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 60%);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3), var(--shadow);
}

.result-card.winner::before {
    content: '👑 BESTE OPTION';
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--gold);
    color: var(--bg-base);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.rc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rc-head h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.rank-badge {
    margin-left: auto;
    background: var(--bg-elev);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border-strong);
}

.rank-badge.rank-1 { background: var(--gold); color: var(--bg-base); border-color: var(--gold); }
.rank-badge.rank-2 { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; border-color: rgba(192, 192, 192, 0.4); }
.rank-badge.rank-3 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border-color: rgba(205, 127, 50, 0.4); }

.rc-big {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-top: 6px;
}

.rc-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.rc-real {
    font-size: 0.78rem;
    color: var(--gold);
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--radius-s);
    display: inline-block;
}

.rc-mo {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

.rc-mo span { color: var(--text-primary); font-weight: 700; }

.result-card hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0 10px 0;
}

.rc-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 4px 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.rc-detail span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.rc-detail.good span:last-child { color: var(--good); }
.rc-detail.bad  span:last-child { color: var(--bad); }

.rc-detail.mix-comp {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.rc-detail.mix-comp span:last-child {
    font-size: 0.72rem;
    line-height: 1.5;
}

/* ================================================================ CHARTS ================================================================ */

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .chart-grid { grid-template-columns: 1fr; }
}

.chart-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    height: 380px;
    position: relative;
}

/* ================================================================ FAZIT ================================================================ */

.fazit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 16px;
}

@media (max-width: 1100px) {
    .fazit-grid { grid-template-columns: 1fr; }
}

.fazit-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.fz-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    font-size: 0.85rem;
}

.rank-item.rank-1 {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    border-left: 3px solid var(--gold);
}

.rank-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
}
.rank-item.rank-1 .rank-num { color: var(--gold); }

.rank-label { font-weight: 600; }
.rank-value { font-weight: 700; color: var(--text-primary); }
.rank-mo { font-size: 0.78rem; color: var(--text-muted); }

.facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.facts-list li {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent-bav);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
}

.facts-list li b { color: var(--text-primary); }

.empfehlung {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.empfehlung b { color: var(--text-primary); }

/* ================================================================ MATRIX ================================================================ */

.matrix-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.matrix-table thead th {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.matrix-table .th-bav   { color: var(--accent-bav); }
.matrix-table .th-etf   { color: var(--accent-etf); }
.matrix-table .th-depot { color: var(--accent-depot); }
.matrix-table .th-mix   { color: var(--accent-mix); }

.matrix-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    vertical-align: top;
}

.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.mx-crit {
    font-weight: 600;
    color: var(--text-primary);
    width: 22%;
}

.mx-cell {
    color: var(--text-secondary);
}

.mx-cell.mx-mix {
    background: rgba(20, 184, 166, 0.04);
    border-left: 1px solid rgba(20, 184, 166, 0.2);
}

.mx-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.mx-dot.dot-good { background: var(--good); box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.mx-dot.dot-mid  { background: var(--warn); box-shadow: 0 0 5px rgba(245, 158, 11, 0.4); }
.mx-dot.dot-bad  { background: var(--bad);  box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }

.matrix-legend {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.matrix-legend > span {
    display: flex;
    align-items: center;
}

/* ================================================================ YEAR-TABLE ================================================================ */

.year-table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.year-table-wrapper.open {
    max-height: 600px;
}

.year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 900px;
}

.year-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-elev);
}

.year-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-strong);
}

.year-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.year-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); color: var(--text-primary); }

/* ================================================================ METHODE ================================================================ */

.method {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
}

.method summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4px 0;
}

.method ul {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.method ul li { margin-bottom: 6px; }
.method b { color: var(--text-primary); }
.method code {
    background: var(--bg-elev);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gold);
}

/* ================================================================ FOOTER ================================================================ */

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ================================================================ RESPONSIVE ================================================================ */

@media (max-width: 1100px) {
    :root { --sidebar-w: 100%; }
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 700px) {
    .topbar-inner {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 12px;
    }
    .topbar { height: auto; }
    .scenarios { flex-wrap: wrap; justify-content: center; }
    .layout { padding: 12px; gap: 12px; }
    .card { padding: 14px; }
    .grid-2 { grid-template-columns: 1fr; }
    .rc-big { font-size: 1.4rem; }
    .gb-big { font-size: 1.3rem; }
}

/* ================================================================ ANIMATIONS ================================================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card, .result-card, .chart-box, .fazit-card, .grv-panel, .matrix-wrapper, .banner {
    animation: fadeIn 0.4s ease backwards;
}

.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
