.mc4-dlm-shell,
.mc4-dlm-shell *{box-sizing:border-box}

.mc4-dlm-shell{
    --mc4-blue:#009fe3;
    --mc4-blue-dark:#087faf;
    --mc4-text:#12283c;
    --mc4-muted:#66798b;
    --mc4-line:#d9e8f2;
    width:100%;
    max-width:1380px;
    margin:0 auto;
    padding:34px;
    color:var(--mc4-text);
    background:#eef5f9;
    border:1px solid #e0edf5;
    border-radius:28px;
    font-family:inherit;
    line-height:1.45;
}

.mc4-dlm-hero{
    margin:0 0 26px;
    padding:6px 2px 0;
}

.mc4-dlm-hero h2{
    margin:0 0 10px;
    color:#10263a;
    font-size:clamp(38px,4.5vw,62px);
    line-height:1.04;
    font-weight:800;
    letter-spacing:-.03em;
}

.mc4-dlm-hero p{
    max-width:900px;
    margin:0;
    color:#64788d;
    font-size:17px;
    line-height:1.5;
}

.edm-download-cards{
    display:grid;
    gap:18px;
    margin:0;
}

.edm-columns-1{grid-template-columns:1fr}
.edm-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.edm-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.edm-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.mc4-dlm-shell .edm-card{
    min-width:0;
    padding:22px;
    color:var(--mc4-text);
    background:#fff !important;
    border:1px solid var(--mc4-line);
    border-radius:18px !important;
    box-shadow:0 10px 30px rgba(24,69,98,.07);
    transition:transform .2s,box-shadow .2s,border-color .2s;
}

.mc4-dlm-shell .edm-card:hover{
    transform:translateY(-2px);
    border-color:#b9ddeb;
    box-shadow:0 16px 36px rgba(24,69,98,.11);
}

.edm-card-content{
    display:flex;
    flex-direction:column;
    height:100%;
    gap:20px;
}

.edm-card-header{
    display:flex;
    align-items:flex-start;
    gap:16px;
}

.edm-icon-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 58px;
    width:58px !important;
    height:58px !important;
    padding:11px;
    overflow:hidden;
    color:var(--mc4-dlm-icon-color,#009fe3);
    background:var(--mc4-dlm-icon-bg,#eef8fd) !important;
    border:1px solid rgba(0,159,227,.12);
    border-radius:14px;
    box-shadow:none;
}

.edm-icon-wrapper i{
    font-size:26px;
    line-height:1;
}

.mc4-dlm-program-image,
.edm-custom-image{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:6px;
}

.edm-card-title{
    flex:1;
    min-width:0;
    padding-top:2px;
}

.edm-card-title h3{
    margin:0;
    color:#10263a;
    font-size:21px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:-.015em;
}

.edm-description{
    margin:7px 0 0;
    color:var(--mc4-muted);
    font-size:13px;
    line-height:1.5;
    opacity:1;
}

.edm-downloads{
    display:flex;
    flex-direction:column;
    gap:9px;
    margin-top:auto;
}

.mc4-dlm-shell .edm-download-link{
    display:grid;
    grid-template-columns:28px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:10px 13px;
    color:#173149 !important;
    background:#f8fbfd !important;
    border:1px solid #dceaf2 !important;
    border-radius:11px !important;
    text-decoration:none !important;
    font-size:13px;
    font-weight:750;
    box-shadow:none;
    transition:background .18s,border-color .18s,color .18s,transform .18s;
}

.mc4-dlm-shell a.edm-download-link:hover{
    color:var(--mc4-blue-dark) !important;
    background:#eef9fe !important;
    border-color:#9ed6ee !important;
    transform:translateX(2px);
}

.edm-platform-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    color:var(--mc4-blue-dark);
    font-size:18px;
}

.edm-platform-name{min-width:0}
.edm-download-arrow{
    color:var(--mc4-blue);
    font-size:18px;
    line-height:1;
}

.edm-no-link{
    opacity:.58;
    cursor:default;
}

.mc4-dlm-empty{
    padding:40px 24px;
    color:var(--mc4-muted);
    background:#fff;
    border:1px solid var(--mc4-line);
    border-radius:18px;
    text-align:center;
}

@media(max-width:1100px){
    .edm-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}
    .edm-columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
    .mc4-dlm-shell{padding:20px;border-radius:20px}
    .mc4-dlm-hero h2{font-size:clamp(32px,9vw,46px)}
    .mc4-dlm-hero p{font-size:16px}
    .edm-columns-2,
    .edm-columns-3,
    .edm-columns-4{grid-template-columns:1fr}
}

@media(max-width:480px){
    .mc4-dlm-shell{padding:16px}
    .mc4-dlm-shell .edm-card{padding:18px}
    .edm-icon-wrapper{flex-basis:52px;width:52px !important;height:52px !important}
}


/* 2.4.0: mehrere Download-Bereiche mit einem Shortcode */
.mc4-dlm-area-stack{display:grid;gap:70px;width:100%;}
.mc4-dlm-area-stack .mc4-dlm-shell{margin:0 auto;}
@media(max-width:760px){.mc4-dlm-area-stack{gap:34px;}}

/* 2.6.0 – Auto / Light / Dark */
.mc4-dlm-shell.mc4-dlm-theme-light,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="light"]{
    color-scheme:light;
}

.mc4-dlm-shell.mc4-dlm-theme-dark,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"]{
    --mc4-blue:#6DC8F2;
    --mc4-blue-dark:#6DC8F2;
    --mc4-text:#ffffff;
    --mc4-muted:rgba(255,255,255,.66);
    --mc4-line:rgba(109,200,242,.18);
    color-scheme:dark;
    color:#fff;
    background:#031522;
    border-color:rgba(109,200,242,.18);
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .mc4-dlm-hero h2,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .mc4-dlm-hero h2{
    color:#fff;
}

.mc4-dlm-shell.mc4-dlm-theme-dark .mc4-dlm-hero p,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .mc4-dlm-hero p{
    color:rgba(255,255,255,.68);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-card,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-card{
    color:#fff;
    background:#082233 !important;
    border-color:rgba(109,200,242,.18);
    box-shadow:0 16px 40px rgba(0,0,0,.22);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-card:hover,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-card:hover{
    border-color:rgba(109,200,242,.42);
    box-shadow:0 20px 48px rgba(0,0,0,.30),0 0 26px rgba(109,200,242,.06);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-card-title h3,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-card-title h3{
    color:#fff;
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-description,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-description{
    color:rgba(255,255,255,.62);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-icon-wrapper,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-icon-wrapper{
    border-color:rgba(109,200,242,.22);
    box-shadow:inset 0 0 0 999px rgba(3,21,34,.20);
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-download-link,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-download-link{
    color:#eef9ff !important;
    background:#061c2b !important;
    border-color:rgba(109,200,242,.16) !important;
}

.mc4-dlm-shell.mc4-dlm-theme-dark a.edm-download-link:hover,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] a.edm-download-link:hover{
    color:#fff !important;
    background:#0a2a3e !important;
    border-color:#6DC8F2 !important;
}

.mc4-dlm-shell.mc4-dlm-theme-dark .edm-platform-icon,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-platform-icon,
.mc4-dlm-shell.mc4-dlm-theme-dark .edm-download-arrow,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .edm-download-arrow{
    color:#6DC8F2;
}

.mc4-dlm-shell.mc4-dlm-theme-dark .mc4-dlm-empty,
.mc4-dlm-shell.mc4-dlm-theme-auto[data-resolved-theme="dark"] .mc4-dlm-empty{
    color:rgba(255,255,255,.66);
    background:#082233;
    border-color:rgba(109,200,242,.18);
}
