/* ==========================================================================
   Downloads Block / Shortcode
   ========================================================================== */

.downloads-section {
    padding: 48px 0;
    border-radius: 8px;
}

.downloads-section--blau {
    background-color: var(--color-primary, #1c2f5e);
    color: #fff;
}

.downloads-section--weiss {
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #eaeaea;
}

.downloads-section--grau-hellblau {
    background-color: rgba(255, 255, 255, 0.2);
    color: #111111;
}

.downloads-section__title {
    margin-bottom: 24px;
    text-align: center;
    margin-top: 0;
}

.downloads-section--blau .downloads-section__title {
    color: #fff;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.downloads-section--weiss .download-item,
.downloads-section--grau-hellblau .download-item {
    background: rgba(0, 0, 0, 0.04);
}

.download-item__badge {
    /* Feste Breite + min-height (statt aspect-ratio) sorgt dafür, dass die
       Box quadratisch ist, solange die Zeile (Titel/Untertitel) nicht mehr
       Höhe braucht; align-items:stretch (vom Grid geerbt) lässt sie bei
       zweizeiligen Titeln automatisch mit der Zeile mitwachsen – sie wird
       dann höher statt breiter (Hochformat statt überbreitem Quadrat). */
    width: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1c2f5e;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    text-align: center;
}

.download-item__badge--pdf { color: #d93025; }
.download-item__badge--doc,
.download-item__badge--docx { color: #1a73e8; }
.download-item__badge--xls,
.download-item__badge--xlsx { color: #188038; }
.download-item__badge--ppt,
.download-item__badge--pptx { color: #d24726; }
.download-item__badge--zip { color: #6a737b; }

.download-item__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px 20px;
}

.download-item__title {
    font-weight: 600;
}

.download-item__subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
}

.download-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.download-item__size {
    font-size: 0.85rem;
    opacity: 0.75;
    white-space: nowrap;
}

.download-item__button {
    background: #fff;
    color: #1c2f5e;
    font-weight: 600;
    padding: 10px 32px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.download-item__button:hover,
.download-item__button:focus-visible {
    background: #1c2f5e;
    color: #fff;
    transform: translateY(-1px);
}
