/* Einfaches, sauberes Grid-Layout für die Download-Karten */

.downloads-toolbar{
    display:flex;
    gap:0.5rem;
    margin:1rem 0;
    align-items:center;
}
.downloads-toolbar input[type=search]{
    flex:1;
    padding:0.5rem;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:0.95rem;
}
.downloads-toolbar select{
    padding:0.45rem 0.6rem;
    border:1px solid #ccc;
    border-radius:6px;
    background:#fff;
}

/* Grid */
.downloads-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:1rem;
    margin-top:0.5rem;
}

/* Card */
.download-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:0.9rem;
    border:1px solid #e0e0e0;
    border-radius:10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform .12s ease, box-shadow .12s ease;
    min-height:110px;
}
.download-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.download-info h4{
    margin:0 0 0.4rem 0;
    font-size:1rem;
    word-break: break-word;
}
.download-info .meta{
    margin:0;
    color:#666;
    font-size:0.85rem;
}

/* Actions */
.download-actions{
    display:flex;
    gap:0.5rem;
    margin-top:0.75rem;
}
.btn{
    display:inline-block;
    padding:0.45rem 0.7rem;
    border-radius:6px;
    text-decoration:none;
    background:#1d6fff;
    color:#fff;
    font-weight:600;
    font-size:0.9rem;
}
.btn.secondary{
    background:#f0f0f0;
    color:#222;
    border:1px solid #ddd;
}

/* Responsive tweaks */
@media (max-width:480px){
    .downloads-toolbar{ flex-direction:column; align-items:stretch; }
    .download-actions{ flex-direction:column; }
}