/* ==========================================================================
   Echtgeld Depot dynamisch — Design 2026
   Baut auf design2026.css auf (.tabs, .card, CSS-Variablen)
   ========================================================================== */

.ed-container { max-width: 1100px; padding: 0 0 0 16px; }
.ed-container .card { padding: 20px; width: 100%; }
.ed-container img { max-width: 100%; height: auto; }

/* ── KPI Hero Grid ──────────────────────────────────────────── */
.ed-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.ed-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue-600);
    border-radius: 10px;
    padding: 14px 12px 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .15s ease, transform .15s ease;
}
.ed-kpi:nth-child(4) { border-top-color: #15803d; }
.ed-kpi:nth-child(5) { border-top-color: #15803d; }
.ed-kpi:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-1px); }
.ed-kpi-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 6px;
}
.ed-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue-800);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.ed-kpi-sub {
    font-size: 11px;
    color: var(--text-sec);
    margin-top: 4px;
}
.ed-kpi-value.green { color: #15803d; }
.ed-kpi-value.red   { color: #b91c1c; }

/* ── Tabellen-Überschriften (h3 innerhalb ed-container) ─────── */
.ed-container h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-600);
    padding: 8px 0 6px 12px;
    margin: 18px 0 8px;
    border-left: 3px solid var(--red);
    background: linear-gradient(90deg, rgba(35,84,149,.04) 0%, transparent 100%);
    border-radius: 0 6px 6px 0;
    letter-spacing: .02em;
}

/* ── Two-column Summary (Übersicht) ─────────────────────────── */
.ed-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.ed-summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ed-summary-head {
    background: var(--blue-50, #f0f4f9);
    color: var(--blue-800, #15335b);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-left: 3px solid var(--red, #c0392b);
    border-bottom: 2px solid var(--blue-200, #c5d5e8);
    text-shadow: none;
}
.ed-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
    gap: 10px;
}
.ed-summary-row:last-child { border-bottom: none; }
.ed-summary-row.total {
    font-weight: 700;
    background: var(--blue-50);
    font-size: 14px;
}
.ed-summary-row .val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.ed-summary-row .lbl { color: var(--text-sec); }
.ed-summary-row.total .val { color: var(--blue-800); }
.ed-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* ── Performance Badge + Row ─────────────────────────────────── */
.ed-perf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
    gap: 8px;
}
.ed-perf-row:last-child { border-bottom: none; }
.ed-perf-row .lbl { color: var(--text-sec); flex: 1; }
.ed-perf-row.year-row .lbl { font-size: 12.5px; }
.ed-perf-row.head-row { background: #f8fafc; padding: 4px 14px; }
.ed-perf-row.head-row .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-sec); }
.ed-perf-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    font-variant-numeric: tabular-nums;
    min-width: 62px;
    text-align: center;
    white-space: nowrap;
}
.ed-perf-badge.pos { background: #dcfce7; color: #15803d; }
.ed-perf-badge.neg { background: #fee2e2; color: #b91c1c; }
.ed-perf-badge.neu { background: #f3f4f6; color: var(--text-sec); }
.ed-perf-cols { display: flex; gap: 6px; }

/* ── Tables ─────────────────────────────────────────────────── */
.ed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ed-table thead th {
    background: var(--blue-50, #f0f4f9);
    color: var(--blue-800, #15335b);
    padding: 8px 10px;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .02em;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--blue-200, #c5d5e8);
    user-select: none;
}
.ed-table thead th.num { text-align: right; }
.ed-table thead th[data-sort] {
    cursor: pointer;
    transition: background .12s;
}
.ed-table thead th[data-sort]::after {
    content: " ⇅";
    opacity: .5;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--blue-600, #235495);
}
.ed-table thead th[data-sort]:hover { background: var(--blue-100, #dbe6f5); }
.ed-table thead th.sort-asc::after  { content: " ↑"; opacity: 1; font-size: 13px; }
.ed-table thead th.sort-desc::after { content: " ↓"; opacity: 1; font-size: 13px; }
.ed-table tbody tr:nth-child(even) { background: #fafbfc; }
.ed-table tbody tr:hover { background: var(--blue-50); transition: background .1s; }
.ed-table td { padding: 6px 10px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.ed-table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--blue-200, #c5d5e8);
    padding-top: 9px;
    background: var(--blue-50);
}
.ed-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ed-table .green { color: #15803d; font-weight: 600; }
.ed-table .red   { color: #b91c1c; font-weight: 600; }
.ed-table .warn  { background: #fef9c3 !important; }
.ed-table tfoot .num { text-align: right; }
/* Scrollable table wrapper */
.ed-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    margin: 12px 0;
}
.ed-table-wrap .ed-table { margin: 0; }
.ed-table-wrap .ed-table thead th:first-child { border-radius: 0; }
.ed-table-wrap .ed-table thead th:last-child  { border-radius: 0; }

/* ── Badges ─────────────────────────────────────────────────── */
.ed-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: .02em;
    white-space: nowrap;
}
.ed-badge-aktie   { background: #dbeafe; color: #1d4ed8; }
.ed-badge-anleihe { background: #fef3c7; color: #92400e; }
.ed-badge-ok  { background: #dcfce7; color: #15803d; }
.ed-badge-nok { background: #fee2e2; color: #b91c1c; }
.ed-badge-live   { background: #dcfce7; color: #166534; }
.ed-badge-yahoo  { background: #f3e8ff; color: #6d28d9; }
.ed-badge-manual { background: #f3f4f6; color: var(--text-sec); }
.ed-badge-upcoming { background: #fff7ed; color: #c2410c; }
.ed-badge-past     { background: #f3f4f6; color: var(--text-sec); }

/* ── Info Box ────────────────────────────────────────────────── */
.ed-info {
    background: var(--blue-50);
    border-left: 3px solid var(--blue-400);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
}
.ed-info h4 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-800);
}

/* ── Section title ───────────────────────────────────────────── */
.ed-section {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-800);
    margin: 20px 0 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--blue-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Chart wraps ─────────────────────────────────────────────── */
.ed-chart-wrap { position: relative; margin: 16px 0; }
.ed-chart-wrap canvas { max-width: 100%; }

/* ── Chart Zeitbereich-Filter ───────────────────────────────── */
.ed-range-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ed-range-btns button {
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text-sec);
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.ed-range-btns button:hover,
.ed-range-btns button.active {
    background: var(--blue-800);
    color: #fff;
    border-color: var(--blue-800);
}

/* ── Transaktionen Filter-Leiste ─────────────────────────────── */
.ed-txn-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 4px;
    padding: 8px 12px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 8px;
}
.ed-txn-filter-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-sec);
    margin-right: 2px;
}
.ed-txn-filter-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
    margin: 0 6px;
}
.ed-txn-fbtn {
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text-sec);
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.ed-txn-fbtn:hover,
.ed-txn-fbtn.active {
    background: var(--blue-800);
    color: #fff;
    border-color: var(--blue-800);
}
.ed-txn-filter-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-sec);
    font-style: italic;
}
@media (max-width: 600px) {
    .ed-txn-filter-sep { display: none; }
    .ed-txn-filter-count { margin-left: 0; width: 100%; }
}

/* ── Chart 2-col grid ────────────────────────────────────────── */
.ed-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

/* ── Strategy list (legacy) ──────────────────────────────────── */
.ed-strategy-list {
    line-height: 1.9;
    list-style: none;
    padding-left: 0;
    font-size: 14px;
}
.ed-strategy-list li::before {
    content: "▸ ";
    color: var(--blue-500);
    font-weight: bold;
}

/* ── Strategie Redesign 2026 ─────────────────────────────────── */

/* Hero 3-column */
.ed-strat-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.ed-strat-hero-card {
    border-radius: 12px;
    padding: 20px 18px 16px;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ed-strat-hero-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.11); }
.ed-strat-hero-blue  { background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); border-color: #bfdbfe; }
.ed-strat-hero-green { background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); border-color: #86efac; }
.ed-strat-hero-amber { background: linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%); border-color: #fde68a; }
.ed-strat-hero-val {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.ed-strat-hero-blue  .ed-strat-hero-val { color: var(--blue-800); }
.ed-strat-hero-green .ed-strat-hero-val { color: #15803d; }
.ed-strat-hero-amber .ed-strat-hero-val { color: #92400e; }
.ed-strat-hero-lbl {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ed-strat-hero-blue  .ed-strat-hero-lbl { color: var(--blue-800); }
.ed-strat-hero-green .ed-strat-hero-lbl { color: #166534; }
.ed-strat-hero-amber .ed-strat-hero-lbl { color: #92400e; }
.ed-strat-hero-sub {
    font-size: 11.5px;
    color: var(--text-sec);
    line-height: 1.4;
}

/* Criteria grid (Aktien: 3 cards + 2 OR dividers) */
.ed-strat-criteria-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 4px;
}
.ed-strat-criteria-grid-1 { justify-content: flex-start; }
.ed-strat-criteria-grid-1 .ed-strat-criterion { max-width: 380px; flex: 0 0 auto; }
.ed-strat-criterion {
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px 16px 14px;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .15s, transform .15s;
}
.ed-strat-criterion:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-1px); }
.ed-strat-crit-blue  { border-top: 3px solid var(--blue-800); }
.ed-strat-crit-green { border-top: 3px solid #16a34a; }
.ed-strat-crit-amber { border-top: 3px solid #d97706; }
.ed-strat-crit-icon { font-size: 22px; margin-bottom: 6px; }
.ed-strat-crit-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 4px;
}
.ed-strat-crit-val {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}
.ed-strat-crit-blue  .ed-strat-crit-val { color: var(--blue-800); }
.ed-strat-crit-green .ed-strat-crit-val { color: #15803d; }
.ed-strat-crit-amber .ed-strat-crit-val { color: #92400e; }
.ed-strat-crit-desc {
    font-size: 11.5px;
    color: var(--text-sec);
    line-height: 1.45;
}
.ed-strat-or {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--text-sec);
    flex-shrink: 0;
}

/* Investment note */
.ed-strat-invest-note {
    font-size: 12.5px;
    color: var(--text-sec);
    margin: 8px 0 0 2px;
}
.ed-strat-invest-note b { color: var(--blue-800); }

/* Management Rules */
.ed-strat-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 4px;
}
.ed-strat-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ed-strat-rule-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    width: 32px;
    text-align: center;
}
.ed-strat-rule-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 3px;
}
.ed-strat-rule-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
}

/* Benchmark grid */
.ed-strat-benchmark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0 4px;
}
.ed-strat-bm-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-800);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ed-strat-bm-scope {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 4px;
}
.ed-strat-bm-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 6px;
}
.ed-strat-bm-desc {
    font-size: 12.5px;
    color: #374151;
    line-height: 1.5;
}

/* CTA Button — a.ed-strat-cta-btn schlägt design2026 a:link (gleiche Spezifität, spätere Deklaration) */
a.ed-strat-cta-btn {
    display: inline-block;
    background: var(--blue-800);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: .01em;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(40,103,184,.25);
}
a.ed-strat-cta-btn:hover,
a.ed-strat-cta-btn:visited {
    background: #1a4a9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(40,103,184,.35);
    color: #fff;
}

/* Responsive Strategie */
@media (max-width: 960px) {
    .ed-strat-hero { grid-template-columns: repeat(3, 1fr); }
    .ed-strat-benchmark-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ed-strat-hero { grid-template-columns: 1fr; }
    .ed-strat-criteria-grid { flex-direction: column; }
    .ed-strat-or { justify-content: center; padding: 4px 0; }
    .ed-strat-criteria-grid-1 .ed-strat-criterion { max-width: 100%; }
}

/* ── Sub-tabs ────────────────────────────────────────────────── */
.ed-container ul.tabs + div ul.tabs,
.ed-container .tabs-sub {
    border-top: 2px solid var(--border);
    margin-top: -2px;
    border-bottom: 2px solid var(--border);
    padding-top: 0;
}

/* ── Update note ─────────────────────────────────────────────── */
.ed-update-note {
    font-size: 11px;
    color: var(--text-sec);
    margin-top: 8px;
    text-align: right;
    font-style: italic;
}

/* ── Dividend highlight ──────────────────────────────────────── */
.ed-div-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.ed-div-stat { text-align: center; }
.ed-div-stat-val { font-size: 20px; font-weight: 800; color: #15803d; }
.ed-div-stat-lbl { font-size: 11px; color: #166534; margin-top: 2px; }

/* ── Year accordion (details/summary) ───────────────────────── */
details summary::-webkit-details-marker { display: none; }
details[open] summary span:first-child { transform: rotate(0deg); }
details summary:not([open]) span:first-child { opacity: .7; }

/* ── Kaufkandidaten Widget ───────────────────────────────────── */
.ed-summary-grid-3 {
    grid-template-columns: 1fr 1fr 270px;
}
.ed-kk-card {
    display: flex;
    flex-direction: column;
}
.ed-kk-type-head {
    background: #f8fafc;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-sec);
    border-bottom: 1px solid #f0f1f3;
}
.ed-kk-item {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 12.5px;
    gap: 7px;
    transition: background .1s;
}
.ed-kk-item:hover { background: var(--blue-50); }
.ed-kk-item:last-of-type { border-bottom: none; }
.ed-kk-cat {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: .02em;
    white-space: nowrap;
}
.ed-kk-cat-auf { background: #dbeafe; color: #1e40af; }
.ed-kk-cat-neu { background: #dcfce7; color: #166534; }
.ed-kk-cat-opp { background: #fff7ed; color: #c2410c; }
.ed-kk-name {
    flex: 1;
    font-weight: 600;
    color: var(--blue-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ed-kk-metric {
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--text-sec);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ed-kk-footer {
    margin-top: auto;
    padding: 8px 14px;
    font-size: 11px;
    color: var(--text-sec);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f1f3;
    background: #fafbfc;
}
.ed-kk-footer a {
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ed-kk-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1060px) {
    .ed-summary-grid-3 { grid-template-columns: 1fr 1fr; }
    .ed-kk-card { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .ed-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .ed-summary-grid { grid-template-columns: 1fr; }
    .ed-summary-grid-3 { grid-template-columns: 1fr; }
    .ed-kk-card { grid-column: auto; }
}
@media (max-width: 640px) {
    .ed-kpi-grid { grid-template-columns: 1fr 1fr; }
    .ed-grid-2 { grid-template-columns: 1fr; }
    .ed-table { font-size: 11.5px; }
    .ed-table th, .ed-table td { padding: 5px 6px; }
    .ed-kpi-value { font-size: 17px; }
    .ed-container .card { padding: 12px; }
    .ed-div-highlight { gap: 12px; }
}
@media (max-width: 420px) {
    .ed-kpi-grid { grid-template-columns: 1fr; }
}
