

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f3f6fb;
    color:#0b1f4f;
}

.wrapper{
    display:flex;
    flex-wrap:wrap;
    min-height:100vh;
}

.sidebar{
    width:380px;
    background:white;
    padding:30px;
    border-right:1px solid #e5e7eb;
}

.content{
    flex:1;
    padding:40px;
}

.logo{

    text-align:center;

    margin-bottom:28px;

}

.logo-image{

    width:220px;

    max-width:100%;

    height:auto;

    display:block;

    margin:0 auto;

}

.logo span{
    color:#d4a017;
}

.form-group{
    margin-bottom:25px;
}

label{
    display:block;
    margin-bottom:10px;
    font-weight:bold;
}

input[type="number"]{
    width:100%;
    padding:15px;
    border-radius:14px;
    border:1px solid #d1d5db;
    font-size:16px;
}

.checkbox-card{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f9fafb;
    padding:16px;
    border-radius:16px;
    margin-bottom:15px;
    font-weight:bold;
}

.etf-card{
    background:#f9fafb;
    padding:20px;
    border-radius:18px;
    margin-bottom:18px;
}

.sidebar button{

    width:100%;
    background:#14532d;
    color:white;
    border:none;
    padding:18px;
    border-radius:16px;
    font-size:18px;
    cursor:pointer;
    margin-top:25px;

}

.chart-card{
    background:white;
    padding:35px;
    border-radius:28px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.result-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-top:30px;
}

.result-box{
    border-radius:22px;
    padding:30px;
    color:white;
    text-align:center;
}

.blue{
    background:#60a5fa;
}

.green{
    background:#16a34a;
}

.gold{
    background:#d4a017;
}

.gray{
    background:#374151;
}

.result-box p{
    font-size:28px;
    font-weight:bold;
}


.compare-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-top:30px;
}

.compare-card{
    background:white;
    border-radius:24px;
    padding:24px;
    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

.compare-card h3{
    margin-top:0;
    margin-bottom:18px;
    font-size:24px;
}

.compare-card .big{
    font-size:42px;
    font-weight:bold;
    margin-bottom:20px;
}

.vm{
    border-top:6px solid #16a34a;
}

.dir{
    border-top:6px solid #0b1f4f;
}

.free{
    border-top:6px solid #9ca3af;
}

.ein{
    border-top:6px solid #7c3aed;
}

.compare-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    color:#374151;
}

.compare-divider{

    margin:22px 0;

    border:none;

    border-top:1px solid #e5e7eb;
}

.compare-info{

    margin-top:20px;
}

.compare-info-title{

    font-size:15px;

    font-weight:700;

    color:#0f172a;

    margin-bottom:8px;
}

.compare-info-text{

    color:#475569;

    line-height:1.55;

    white-space:pre-line;
}

.info-note{
    margin-top:30px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    padding:18px;
    border-radius:18px;
    color:#1e3a8a;
}

@media(max-width:900px){

    .sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #e5e7eb;
    }

    .content{
        padding:20px;
    }

    .compare-grid{
        grid-template-columns:1fr;
    }
}


.payout-grid{
    margin-top:30px;
}

.payout-grid .big{
    font-size:38px;
    font-weight:700;
    margin:20px 0;
}


.compare-card{
    transition:all .25s ease;
}

.compare-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.payout-grid .compare-card{
    background:linear-gradient(180deg,#ffffff,#f8fafc);
}

.payout-grid .big{
    color:#111827;
    font-size:46px;
    line-height:1.1;
}

.payout-grid h3{
    min-height:72px;
}




.portfolio-topbar{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:24px;
margin-bottom:28px;
flex-wrap:wrap;
}

.portfolio-open-button{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:white;
border:none;
padding:18px 28px;
border-radius:22px;
font-size:18px;
font-weight:700;
cursor:pointer;
box-shadow:0 10px 25px rgba(15,23,42,0.2);
}

.portfolio-shield{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#22c55e;

    font-size:32px;

}

.calculate-main-button{

    width:100%;

    border:none;

    cursor:pointer;

    min-height:96px;

    padding:22px;

    border-radius:24px;

    display:flex;

    align-items:center;

    background:
    linear-gradient(
        135deg,
        #0f9f44 0%,
        #16c04f 100%
    );

    color:white;

    box-shadow:
        0 12px 28px rgba(22,163,74,.25);

    transition:.25s;

}

.calculate-main-button:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 36px rgba(22,163,74,.35);

}

.calc-main-line{

    font-size:24px;
    font-weight:800;

}

.calc-sub-line{

    font-size:17px;
    font-weight:500;

}

.calculate-main-button:disabled{

    background:
    linear-gradient(
        135deg,
        #9fd8b0 0%,
        #89cf9f 100%
    );

    cursor:not-allowed;

    box-shadow:none;

}

.calc-left{

    display:flex;

    align-items:center;

    gap:16px;

    width:100%;

    text-align:left;

}

.calc-icon{

    width:54px;
    height:54px;

    border-radius:50%;

    background:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex-shrink:0;

    color:#16c04f;

}

.calc-title{

    font-size:18px;

    font-weight:700;

    color:white;

    line-height:1.2;

}

.calc-subtitle{

    margin-top:4px;

    font-size:14px;

    font-weight:400;

    color:rgba(255,255,255,.85);

}
.selected-portfolio{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:18px;
max-width:900px;
}

.portfolio-chip{
background:#ffffff;
border:1px solid #0f9f44;
display:flex;
align-items:center;
gap:8px;

color:#0f9f44;
padding:10px 16px;
border-radius:999px;
font-size:14px;
font-weight:700;
}

.etf-modal{
display:none;
position:fixed;
inset:0;
background:rgba(15,23,42,0.7);
backdrop-filter:blur(6px);
z-index:99999;
padding:40px;
}

.etf-modal-content{
background:white;
border-radius:32px;
max-width:1200px;
margin:auto;
height:90vh;
display:flex;
flex-direction:column;
overflow:hidden;
}

.etf-modal-header{
display:flex;
justify-content:space-between;
align-items:flex-start;
padding:30px;
border-bottom:1px solid #e5e7eb;
}

.etf-modal-header h2{
margin:0;
font-size:32px;
}

.etf-modal-header p{
margin-top:10px;
color:#64748b;
}

.close-modal{

    border:none;

    background:none;

    cursor:pointer;

    font-size:36px;

    color:#64748b;

    flex-shrink:0;

    margin-left:20px;

    align-self:flex-start;

}

.etf-search-wrapper{
padding:24px;
border-bottom:1px solid #f1f5f9;
}

.etf-search{
width:100%;
padding:18px 22px;
border-radius:20px;
border:1px solid #dbe2ea;
font-size:16px;
}

.etf-list{
padding:24px;
overflow-y:auto;
display:flex;
flex-direction:column;
gap:14px;
}

.etf-row{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
background:#f8fafc;
border-radius:24px;
gap:20px;
}

.etf-name{
font-size:18px;
font-weight:700;
margin-bottom:6px;
}

.etf-wkn{
color:#64748b;
font-size:14px;
}

.etf-right{
display:flex;
align-items:center;
gap:14px;
}

.anteil-input{
width:90px;
padding:12px;
border-radius:14px;
border:1px solid #dbe2ea;
text-align:center;
}

.add-etf-button{
background:#0b1f4f;
color:white;
border:none;
padding:12px 18px;
border-radius:14px;
font-weight:700;
cursor:pointer;
}

@media(max-width:900px){

.etf-modal{
padding:12px;
}

.etf-row{
flex-direction:column;
align-items:flex-start;
}

.etf-right{
width:100%;
}

.portfolio-topbar{
flex-direction:column;
}

}






.sidebar{
display:flex;
flex-direction:column;
gap:18px;
}

.portfolio-topbar{
order:1;
margin-bottom:10px;
}

.calculate-main-button{
width:100%;
margin-top:10px;
}

.sonderzahlungen-block{
border-top:1px solid #e5e7eb;
padding-top:20px;
margin-top:10px;
}

.sonder-toggle{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px;

    margin-top:18px;

    border-radius:22px;

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        #07122f 0%,
        #0b1f4f 100%
    );

    color:white;

    min-height:75px;

    box-shadow:
        0 12px 28px rgba(7,18,47,.22);

    transition:.25s;

}

.sonder-toggle:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 36px rgba(7,18,47,.35);

}

.sonder-plus{

    color:#8b5cf6;

    font-size:28px;

    font-weight:700;

    margin-right:10px;

}

.sonder-content{
display:none;
margin-top:12px;
}
#portfolioCard{
background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
}
.portfolio-open-button{
font-size:20px;
padding:20px 28px;
}



<style id="v5-ui-system">
.sidebar{
 background:#fff;
 border-radius:28px;
 box-shadow:0 12px 40px rgba(15,23,42,.08);
 padding:32px;
}
.form-group{
 margin-bottom:20px;
}
.form-group label{
 font-size:15px;
 font-weight:800;
 color:#0f172a;
 margin-bottom:10px;
}
input[type="number"]{
 border-radius:18px;
 border:1px solid #dbe2ea;
 min-height:62px;
 font-size:18px;
}
.sonder-toggle{
 background:linear-gradient(135deg,#07122f,#0b1f4f)!important;
 border-radius:18px!important;
 font-weight:700!important;
}
.portfolio-open-button{
 background:linear-gradient(135deg,#07122f,#0b1f4f)!important;
 border-radius:22px!important;
 padding:22px!important;
 text-align:left;
}
.portfolio-open-button:before{
 content:"◔  ";
}
#portfolioCard{
 background:#fbfffc!important;
 border:1px solid #0f9f44!important;
 border-radius:22px!important;
 padding:22px!important;
}
#portfolioCount,#portfolioAllocation,#portfolioState{
 font-size:16px;
 font-weight:700;
 margin-top:10px;
}
.calculate-main-button{
 background:linear-gradient(135deg,#16a34a,#16c04f)!important;
 border-radius:22px!important;
 padding:22px!important;
 font-size:22px!important;
 font-weight:800!important;
}


.allocation-info{

    text-align:right;

    padding:0 24px 12px 24px;

    font-size:13px;

    font-weight:700;

    color:#64748b;

}

.rr-input{

    display:flex;
    align-items:center;

    height:74px;

    background:#ffffff;

    border:1px solid #dfe5ef;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        0 2px 10px rgba(15,23,42,.04);

}

select.rr-input-field{

    border:none;
    background:transparent;
    appearance:none;
    cursor:pointer;

}

.rr-icon{

    width:56px;
    height:56px;

    margin-left:8px;

    border-radius:14px;

    background:white;

    color:#0b1f4f;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;

}

.rr-icon-money{

    background:#f5f3ff;

    color:#8b5cf6;

}

.rr-icon-tax{

    background:#f5f3ff;

    color:#8b5cf6;

    font-weight:700;

}

.rr-input-field{

    flex:1;

    border:none !important;

    background:transparent;

    font-size:18px;

    font-weight:500;

    padding-left:16px;

    outline:none;

    min-height:auto !important;

}

.rr-arrows{

    width:44px;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    color:#475569;

    font-size:12px;

    gap:2px;

    margin-right:10px;

}

.rr-arrows span{

    line-height:1;
    cursor:pointer;

}

.gender-label{

    display:flex;
    align-items:center;
    gap:8px;

}

.info-icon{

    position:relative;

    color:#16c04f;

    cursor:pointer;

    font-size:15px;

}

.info-tooltip{

    position:absolute;

    left:24px;
    top:-10px;

    width:320px;

    background:#0f172a;

    color:white;

    padding:12px 14px;

    border-radius:12px;

    font-size:13px;

    font-weight:400;

    line-height:1.45;

    opacity:0;

    visibility:hidden;

    transition:.2s;

    z-index:9999;

    box-shadow:
        0 10px 25px rgba(15,23,42,.25);

}

.info-icon:hover .info-tooltip{

    opacity:1;

    visibility:visible;

}

.rr-etf-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px;

    margin-top:18px;

    border-radius:22px;

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        #07122f 0%,
        #0b1f4f 100%
    );

    color:white;

    min-height:75px;

    box-shadow:
        0 12px 28px rgba(7,18,47,.22);

    transition:.25s;

}

.rr-etf-card:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 36px rgba(7,18,47,.35);

}

.rr-etf-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.rr-etf-icon{

    width:54px;

    height:54px;

    border-radius:50%;

    background:white;

    color:#0b1f4f;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex-shrink:0;

}

.rr-etf-title{

    font-size:18px;

    font-weight:700;

    color:white;

}

.rr-etf-subtitle{

    margin-top:4px;

    font-size:14px;

    color:rgba(255,255,255,.85);

}

.rr-etf-arrow{

    font-size:20px;

    color:white;

}


/* =========================================
   DASHBOARD V2
========================================= */

.v2-section{

    margin-top:32px;

}

.v2-grid-4{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:20px;

}

.v2-grid-3{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px,1fr)
        );

    gap:24px;

}

.v2-card{

    background:white;

    border-radius:28px;

    padding:28px;

    box-shadow:
        0 8px 24px
        rgba(
            15,
            23,
            42,
            .06
        );
}

.v2-card h2{

    margin-top:0;

    margin-bottom:24px;

    color:#0f172a;
}

.v2-kpi{

    text-align:center;

    color:white;

    border-radius:24px;

    padding:28px;
}

.v2-kpi h3{

    margin:0 0 12px 0;

    font-size:18px;
}

.v2-kpi-value{

    font-size:34px;

    font-weight:800;
}

.v2-blue{

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );
}

.v2-green{

    background:
        linear-gradient(
            135deg,
            #15803d,
            #22c55e
        );
}

.v2-gold{

    background:
        linear-gradient(
            135deg,
            #b8860b,
            #d4a017
        );
}

.v2-dark{

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );
}

.v2-comparison{

    background:white;

    border-radius:26px;

    padding:30px;

    box-shadow:
        0 8px 24px
        rgba(
            15,
            23,
            42,
            .06
        );
}

.v2-comparison h3{

    margin-top:0;

    font-size:24px;
}

.v2-big{

    font-size:42px;

    font-weight:800;

    margin:20px 0;
}

.v2-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:14px;

    color:#475569;
}

.v2-placeholder{

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2f7
        );

    border:2px dashed #cbd5e1;

    border-radius:24px;

    padding:40px;

    text-align:center;

    color:#64748b;

    font-size:18px;

    font-weight:600;
}

#portfolioChart{

    width:100% !important;

    height:420px !important;
}

.chart-placeholder{
    background:#f8fafc;
    border:1px solid #cbd5e1;
    border-radius:24px;
    padding:35px;
    color:#334155;
    line-height:1.7;
}
.chart-placeholder h2{margin-top:0;color:#0f172a;}
.chart-placeholder p{margin-bottom:14px;}


/* ======================================================
   DASHBOARD V3
====================================================== */

.chart-summary{

    background:transparent;

    padding:0;

    margin:0;

}

.chart-summary-title{

    font-size:15px;

    font-weight:700;

    color:#64748b;

}

.chart-summary-value{

    font-size:42px;

    font-weight:800;

    color:#0f172a;

    margin-top:6px;

}


.alternative-card{

    margin-top:32px;

    background:#ffffff;

    border-radius:28px;

    padding:30px;

    box-shadow:
        0 12px 30px rgba(15,23,42,.06);

}

.alternative-header{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:30px;

}

.alternative-header i{

    width:64px;

    height:64px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    background:#eef4ff;

    color:#2563eb;

    font-size:28px;

}

.alternative-header h2{

    margin:0;

    font-size:28px;

    color:#0f172a;

}

.alternative-header p{

    margin:6px 0 0;

    color:#64748b;

    font-size:15px;

}

.alternative-list{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.alternative-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:24px;

    padding:30px 24px;

    border-radius:20px;

    border:1px solid #edf2f7;

    transition:.25s;

    cursor:default;

}

.alternative-row:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 24px rgba(15,23,42,.08);

    border-color:#dbeafe;

}

.alternative-row.active{

    transform:translateY(-3px);

    box-shadow:
        0 16px 36px rgba(15,23,42,.15);

    border-width:2px;

}

.kpi-card.active{

    transform:translateY(-3px);

    box-shadow:
        0 16px 36px rgba(15,23,42,.15);

}

.kpi-card[data-dataset="eingezahlt"].active{

    border-top:6px solid #2563eb;

    background:#f4f8ff;

}

.kpi-card[data-dataset="etf"].active{

    border-top:6px solid #16a34a;

    background:#f3fff5;

}

.kpi-card[data-dataset="gewinn"].active{

    border-top:6px solid #d4a017;

    background:#fffbea;

}

.alternative-row[data-dataset="immobilien"].active{

    border-color:#2563eb;

    background:#f4f8ff;

}

.alternative-row[data-dataset="gold"].active{

    border-color:#d4a017;

    background:#fff9e8;

}

.alternative-row[data-dataset="tagesgeld"].active{

    border-color:#06b6d4;

    background:#eefcff;

}

.alternative-row[data-dataset="festgeld"].active{

    border-color:#7c3aed;

    background:#f7f2ff;

}

.alternative-row[data-dataset="kopfkissen"].active{

    border-color:#94a3b8;

    background:#f8fafc;

}

.alternative-row[data-dataset="direkt"].active{

    border-color:#0b1f4f;

    background:#eef3ff;

}

.alternative-row[data-dataset="versicherung"].active{

    border-color:#16a34a;

    background:#effdf4;

}

.alternative-left{

    display:flex;

    align-items:center;

    gap:18px;

}

.alternative-title{

    font-size:19px;

    font-weight:700;

    color:#0f172a;

}

.alternative-title i{

    margin-right:8px;

    width:22px;

}

.alternative-sub{

    margin-top:6px;

    color:#64748b;

    font-size:14px;

}

.alternative-values{

    display:flex;

    gap:50px;

}

.alternative-values div{

    text-align:right;

    min-width:120px;

}

.alternative-values strong{

    display:block;

    font-size:24px;

    color:#111827;

    margin-bottom:6px;

}

.alternative-values span{

    font-size:13px;

    color:#64748b;

}


.alternative-links{

    margin-top:14px;

    padding-top:12px;

    border-top:1px solid #e5e7eb;

    display:flex;

    flex-wrap:wrap;

    gap:18px;

}

.alternative-links a{

    color:#64748b;

    font-size:13px;

    font-weight:600;

    text-decoration:none;

    transition:.2s;

}

.alternative-links a:hover{

    color:#0b1f4f;

    text-decoration:underline;

}


.legend-color{

    width:18px;

    height:18px;

    border-radius:50%;

    display:block;

}

.legend-direkt{
    background:#0b1f4f;
}

.legend-versicherung{
    background:#16c04f;
}

.legend-immo{
    background:#ea580c;
}

.legend-gold{
    background:#d4a017;
}

.legend-tagesgeld{
    background:#06b6d4;
}

.legend-festgeld{
    background:#8b5cf6;
}

.legend-kopfkissen{
    background:#dc2626;
}



@media(max-width:900px){

.alternative-row{

    flex-direction:column;

    align-items:flex-start;

}

.alternative-values{

    width:100%;

    justify-content:space-between;

    gap:10px;

}

.alternative-values div{

    min-width:auto;

    text-align:left;

}

}


/* =====================================
   Consent Dialog
===================================== */

#consentOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

#consentModal{

    width:min(900px,92vw);

    max-height:90vh;

    overflow-y:auto;

    background:#ffffff;

    border-radius:18px;

    padding:35px;

    box-shadow:0 25px 60px rgba(0,0,0,.35);

}

#consentModal h2{

    color:#14532d;

    margin-bottom:20px;

}

#consentModal h3{

    margin-top:28px;

    color:#14532d;

}

#consentModal p{

    line-height:1.65;

}

#consentModal ul{

    margin-left:22px;

    line-height:1.7;

}

#consentFooter{

    margin-top:30px;

    border-top:1px solid #ddd;

    padding-top:20px;

}

#consentButtons{

    display:flex;

    gap:15px;

    margin-top:25px;

}

#btnConsent{

    background:#16a34a;

    color:white;

    border:none;

    border-radius:8px;

    padding:14px 30px;

    cursor:pointer;

    font-size:16px;

}

#btnConsent:disabled{

    background:#bcbcbc;

    cursor:not-allowed;

}

#btnLeave{

    background:#ef4444;

    color:white;

    border:none;

    border-radius:8px;

    padding:14px 30px;

    cursor:pointer;

}

.rechnung-zeile{
    display:grid;
    grid-template-columns: 320px 1fr 1fr;
    align-items:center;
    gap:20px;
}

.rechnung-zeile span{
    text-align:left;
}

.rechnung-wert{
    text-align:right;
}

.rechnung-kopf{
    font-weight:700;
}

#consentSmall{

    margin-top:20px;

    font-size:.88rem;

    color:#666;
}


.sidebar-footer{

    margin-top:18px;

    text-align:center;

}

.sidebar-footer a{

    color:#64748b;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    margin:0 8px;

    transition:.2s;

}

.sidebar-footer a:hover{

    color:#14532d;

    text-decoration:underline;

}

/*
=====================================

Modal für die Porfolioentwicklung Berech
Open Berechnung: Versicherung
===================================
*/


.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:30px;

    padding:32px 40px;

    border-bottom:1px solid #e5e7eb;

    background:#ffffff;

}

.modal-header h2{
    margin:0;
    font-size:34px;
    font-weight:800;
    color:#0b1f4f;
}

.modal-header > div{

    flex:1;

    min-width:0;

}

.modal-header p{
    margin-top:8px;
    color:#64748b;
    font-size:16px;
}

.modal-header h2{
    margin:0;
    font-size:34px;
    font-weight:800;
    color:#0b1f4f;
}

.modal-header p{
    margin-top:8px;
    color:#64748b;
    font-size:16px;
}

.modal-table-wrapper{
    padding:28px;
}

.modal-table-card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(15,23,42,.08);
}

thead th{

    background:#0b1f4f;

    color:white;

    padding:18px 14px;

    font-size:14px;

    font-weight:700;

    text-align:center;

    line-height:1.35;

    white-space:normal;

    position:sticky;

    top:0;

    z-index:5;

}

tbody tr:nth-child(even){
    background:#f8fafc;
}

tbody tr:nth-child(odd){
    background:white;
}

tbody tr:hover{

    background:#edf7ff;

}

tbody td{

    padding:11px 14px;

    font-size:15px;

    border-bottom:1px solid #eef2f7;

}

td.year{

    font-weight:700;

    color:#0b1f4f;

}

.modal-content{

    width:96%;

    max-width:1700px;

}

td.numeric{

    text-align:right;

    font-variant-numeric:tabular-nums;

    white-space:nowrap;

}


.berechnung-info{

    padding:30px 40px 20px;

    background:#fff;

}

.berechnung-info h3{

    margin:0;

    font-size:24px;

    font-weight:800;

    color:#0b1f4f;

}

.berechnung-trenner{

    width:90px;

    height:4px;

    background:#16c04f;

    border-radius:10px;

    margin:18px 0 24px;

}

.berechnung-info p{

    margin:0 0 16px;

    font-size:16px;

    line-height:1.8;

    color:#475569;

    max-width:900px;

}

#berechnungTabelle td{
    text-align:right;
    font-variant-numeric:tabular-nums;
}

#berechnungTabelle td:first-child{
    text-align:left;
    font-weight:700;
}



#berechnungTabelle th,
#berechnungTabelle td{

    padding:12px 16px;

}

#berechnungTabelle thead th{

    text-align:center;

}

/* Jahr */

.berechnung-tabelle th:nth-child(1),
.berechnung-tabelle td:nth-child(1){
    width:70px;
}

/* Anfangskapital */

.berechnung-tabelle th:nth-child(2),
.berechnung-tabelle td:nth-child(2){
    width:250px;
}

/* Einzahlung */

.berechnung-tabelle th:nth-child(3),
.berechnung-tabelle td:nth-child(3){
    width:200px;
}

/* Sonderzahlung */

.berechnung-tabelle th:nth-child(4),
.berechnung-tabelle td:nth-child(4){
    width:200px;
}

/* Rendite */

.berechnung-tabelle th:nth-child(5),
.berechnung-tabelle td:nth-child(5){
    width:150px;
}

/* Dividenden */

.berechnung-tabelle th:nth-child(6),
.berechnung-tabelle td:nth-child(6){
    width:150px;
}

/* Abschlusskosten */

.berechnung-tabelle th:nth-child(7),
.berechnung-tabelle td:nth-child(7){
    width:150px;
}

/* Verwaltungskosten */

.berechnung-tabelle th:nth-child(8),
.berechnung-tabelle td:nth-child(8){
    width:150px;
}

/* ETF-Kosten */

.berechnung-tabelle th:nth-child(9),
.berechnung-tabelle td:nth-child(9){
    width:150px;
}

/* Gesamte Steuern */

.berechnung-tabelle th:nth-child(10),
.berechnung-tabelle td:nth-child(10){
    width:150px;
}

/* Endkapital */

.berechnung-tabelle th:nth-child(11),
.berechnung-tabelle td:nth-child(11){
    width:250px;
}

/* Steuer-Spalten */

.berechnung-tabelle th:nth-child(n+12),
.berechnung-tabelle td:nth-child(n+12){
    width:200px;
}


.rechnung-card{

    margin:35px;

    background:#fff;

}


.rechnung-zeile strong{

    font-size:22px;

    font-weight:700;

    font-variant-numeric:tabular-nums;

}

.abzug{

    color:#dc2626;

}

.ergebnis{

    color:#0b1f4f;

    font-weight:700;

}

.rechnung-endbetrag{

    margin-top:35px;

    padding:28px;

    border-radius:18px;

    background:#0b1f4f;

    color:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.rechnung-endbetrag strong{

    font-size:42px;

}

/* =====================================================
   Kapitalvergleich Modal V2
===================================================== */

.kapitalvergleich-card{

    margin:35px;

    background:#ffffff;

    border-radius:24px;

    padding:30px 36px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.06);

}


/* =====================================
   Tabellenkopf
===================================== */

.kapitalvergleich-header{

    display:grid;

    grid-template-columns:340px 1fr 1fr;

    gap:30px;

    padding-bottom:18px;

    border-bottom:2px solid #edf2f7;

    margin-bottom:10px;

}

.vergleich-spalte{

    text-align:right;

    font-size:16px;

    font-weight:700;

    color:#0b1f4f;

}


/* =====================================
   Tabellenzeilen
===================================== */

.vergleich-row{

    display:grid;

    grid-template-columns:340px 1fr 1fr;

    gap:30px;

    align-items:center;

    padding:18px 0;

}

.vergleich-label{

    font-size:16px;

    font-weight:600;

    color:#475569;

}

.vergleich-value{

    text-align:right;

    font-size:18px;

    font-weight:700;

    color:#0f172a;

    font-variant-numeric:tabular-nums;

}

.vergleich-divider{

    height:1px;

    background:#edf2f7;

    margin:10px 0;

}


/* =====================================
   Auszahlungsbetrag
===================================== */

.auszahlung-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:24px;

    margin:35px;

}

.auszahlung-card{

    background:#ffffff;

    border-radius:24px;

    padding:28px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.06);

    text-align:center;

}

.auszahlung-titel{

    font-size:18px;

    font-weight:700;

    color:#0b1f4f;

}

.auszahlung-label{

    margin-top:14px;

    font-size:14px;

    color:#64748b;

}

.auszahlung-betrag{

    margin-top:18px;

    font-size:36px;

    font-weight:800;

    color:#0b1f4f;

    font-variant-numeric:tabular-nums;

}


/* =====================================
   Steuerinformationen
===================================== */

.steuer-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:24px;

    margin:35px;

}

.steuer-card{

    background:#ffffff;

    border-radius:24px;

    padding:28px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.06);

}

.steuer-card h3{

    margin:0 0 24px;

    font-size:20px;

    font-weight:700;

    color:#0b1f4f;

}

.steuer-block{

    margin-bottom:26px;

}

.steuer-block:last-child{

    margin-bottom:0;

}

.steuer-ueberschrift{

    margin-bottom:10px;

    font-size:14px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.05em;

    color:#64748b;

}

.steuer-text{

    line-height:1.7;

    font-size:15px;

    color:#334155;

    white-space:pre-line;

}


/* =====================================
   Responsive
===================================== */

@media (max-width:900px){

    .kapitalvergleich-card{

        margin:20px;

        padding:22px;

    }

    .kapitalvergleich-header{

        display:none;

    }

    .vergleich-row{

        grid-template-columns:1fr;

        gap:10px;

        padding:18px 0;

    }

    .vergleich-label{

        font-weight:700;

        color:#0b1f4f;

    }

    .vergleich-value{

        text-align:left;

    }

    .auszahlung-grid{

        grid-template-columns:1fr;

        margin:20px;

    }

    .steuer-grid{

        grid-template-columns:1fr;

        margin:20px;

    }

}

/* =====================================
   Vorteil
===================================== */

.vorteil-card{

    display:flex;

    align-items:center;

    gap:28px;

    margin:35px;

    padding:30px;

background:linear-gradient(
    135deg,
    #16c04f,
    #13ad47
);

    color:#fff;

    border-radius:24px;

    box-shadow:
        0 12px 32px rgba(11,31,79,.18);

}

.vorteil-icon{

    width:74px;

    height:74px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:36px;

    flex-shrink:0;

}

.vorteil-content{

    flex:1;

}

.vorteil-label{

    font-size:15px;

    color:rgba(255,255,255,.75);

    margin-bottom:10px;

}

.vorteil-betrag{

    font-size:42px;

    font-weight:800;

    line-height:1;

    margin-bottom:12px;

}

.vorteil-gewinner{

    display:inline-flex;

    align-items:center;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.12);

    font-size:15px;

    font-weight:700;

}

.steuerhinweis-card{

    margin:35px;

    margin-top:0;

    background:#fff8e8;

    border-left:6px solid #f59e0b;

    border-radius:18px;

    padding:24px;

}

.steuerhinweis-title{

    font-size:17px;

    font-weight:700;

    color:#92400e;

    margin-bottom:12px;

}

.steuerhinweis-text{

    line-height:1.7;

    color:#6b4d11;

}

/* =====================================================
   Verrentungsmodal
===================================================== */

.rentenvergleich-card{

    margin:35px;

    background:#ffffff;

    border-radius:24px;

    padding:30px 36px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.06);

}


/* =====================================
   Jahresrente unter Monatsrente
===================================== */

.auszahlung-jahr{

    margin-top:22px;

    padding-top:18px;

    border-top:1px solid #edf2f7;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:15px;

    color:#64748b;

}

.auszahlung-jahr strong{

    font-size:18px;

    font-weight:700;

    color:#0b1f4f;

}


/* =====================================
   Statistikkarten
===================================== */

.renten-statistik{

    margin-top:35px;

}

.renten-statistik .steuer-card{

    text-align:center;

}

.renten-statistik .steuer-card h3{

    margin-bottom:18px;

}

.renten-statistik .auszahlung-betrag{

    margin-top:0;

    font-size:32px;

}


/* =====================================
   Responsive
===================================== */

@media (max-width:900px){

    .rentenvergleich-card{

        margin:20px;

        padding:22px;

    }

    .auszahlung-jahr{

        flex-direction:column;

        gap:8px;

        text-align:center;

    }

}

.vm-actions{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:18px;

    margin:24px 0 30px;

}

.vm-action{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:22px 10px;

    text-align:center;

    text-decoration:none;

    color:#0f172a;

    transition:.25s;

    box-shadow:0 6px 20px rgba(15,23,42,.06);

}

.vm-action:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(15,23,42,.12);

    border-color:#16a34a;

}

.vm-action i{

    display:block;

    font-size:28px;

    color:#16a34a;

    margin-bottom:12px;

}

.vm-action span{

    font-size:15px;

    font-weight:700;

}

.alternative-action{

    margin-left:auto;
    margin-right:26px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

}

.alt-action-btn{

    width:50px;
    height:50px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;

    border:2px solid #e5e7eb;

    color:#16a34a;

    text-decoration:none;

    box-shadow:0 6px 18px rgba(15,23,42,.08);

    transition:.25s;

}

.alt-action-btn:hover{

    background:#16a34a;

    color:#fff;

    border-color:#16a34a;

    transform:translateY(-3px);

    box-shadow:0 12px 24px rgba(15,23,42,.15);

}

.alt-action-btn i{

    font-size:20px;

}


.content-section{

    padding:0;

    background:transparent;

    border:none;

    box-shadow:none;




}

/* ===========================
   Dashboard Karten
=========================== */

.headline-card{

    background:#fff;

    border-radius:24px;

    padding:28px 34px;

    margin-bottom:20px;

    box-shadow:0 8px 25px rgba(15,23,42,.08);

}


.summary-card{

    background:#fff;

    border-radius:24px;

    padding:24px 34px;

    margin-bottom:20px;

    box-shadow:0 8px 25px rgba(15,23,42,.08);

}

.chart-card{

    background:#fff;

    border-radius:24px;

    padding:25px;

    box-shadow:0 8px 25px rgba(15,23,42,.08);

    margin-bottom:35px;

    position:relative;

}

.headline-card h1{

    margin:0;

    font-size:34px;

    line-height:1.25;

    font-weight:700;

    color:#0b1f4f;

}