/* ============================================================
   Downloads-Bibliothek — Phase 0.25
   Embedding-Helper (`ti_downloads_render`) + Frontend-Seite /downloads.
   ============================================================ */

.ti-downloads-heading {
    text-align: center;
    margin: 0 0 30px;
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--color-heading, #2c3e54);
}

.ti-downloads-kategorie {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-heading, #2c3e54);
    border-bottom: 2px solid var(--color-primary, #1AB69D);
    padding-bottom: 10px;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ti-downloads-kategorie i {
    color: var(--color-primary, #1AB69D);
}

/* --- Grid mit Cards --- */
.ti-downloads-grid { margin-bottom: 30px; }

.ti-download-card {
    background: #fff;
    border: 1px solid #e5ebf4;
    border-radius: 10px;
    padding: 24px 22px 22px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ti-download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(29, 78, 154, 0.10);
    border-color: var(--color-primary, #1AB69D);
}
.ti-download-card.is-featured {
    border-color: rgba(217, 166, 35, 0.5);
    background: linear-gradient(180deg, #fffaeb 0%, #ffffff 60%);
}
.ti-download-card.is-featured::before {
    content: '⭐';
    position: absolute;
    top: 12px; right: 14px;
    font-size: 18px;
}

.ti-download-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: rgba(26, 182, 157, 0.10);
    color: var(--color-primary, #1AB69D);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}
.ti-download-cover {
    margin: -24px -22px 14px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
}
.ti-download-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.ti-download-titel {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-heading, #2c3e54);
    margin: 0 0 8px;
    line-height: 1.3;
}
.ti-download-beschreibung {
    font-size: 14px;
    color: var(--color-body, #5d666f);
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.ti-download-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--color-primary, #1AB69D);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
    transition: background-color .15s, transform .15s;
}
.ti-download-button:hover {
    background: #14a087;
    color: #fff;
    transform: translateY(-1px);
}
.ti-download-button .ti-download-size {
    font-weight: 400;
    opacity: .85;
    font-size: 12px;
}

/* --- Kompakte Liste --- */
.ti-downloads-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.ti-downloads-compact li {
    padding: 10px 0;
    border-bottom: 1px solid #e5ebf4;
}
.ti-downloads-compact li:last-child { border-bottom: none; }
.ti-downloads-compact a {
    color: var(--color-heading, #2c3e54);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.ti-downloads-compact a:hover {
    color: var(--color-primary, #1AB69D);
    text-decoration: underline;
}
.ti-downloads-compact a i { color: var(--color-primary, #1AB69D); }

.ti-downloads-empty {
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e5ebf4;
    border-radius: 6px;
}
