/* Download-Karte ([teil1_download]) — ruhig, hochwertig, im Blog-Raster; Farben aus den Blog-Tokens */
.t1-download {
    --dl-ink: #0f172a; --dl-muted: #5b6472; --dl-line: rgba(15, 23, 42, 0.09);
    margin: 1.75rem 0;
    padding: 1.6rem 1.7rem 1.5rem;
    border: 1px solid var(--dl-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -28px rgba(15, 23, 42, 0.28);
}
.t1-download__head { display: flex; align-items: center; gap: 0.95rem; }
.t1-download__icon {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dl-ink); color: #fff;
}
.t1-download__text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.t1-download__kicker { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dl-muted); }
.t1-download__name { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.012em; color: var(--dl-ink); line-height: 1.25; }
.t1-download__badge {
    flex: 0 0 auto; align-self: flex-start; padding: 0.3rem 0.65rem; border-radius: 999px;
    background: #f1f5f9; color: #334155; font-size: 0.78rem; font-weight: 650; white-space: nowrap;
}
.t1-download__meta { font-size: 0.86rem; color: var(--dl-muted); }
.t1-download__desc { margin: 1rem 0 0; font-size: 0.97rem; line-height: 1.55; color: #334155; }
.t1-download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 1.15rem; }
.t1-download__button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.82rem 1.4rem;
    border-radius: 999px; background: var(--dl-ink); color: #fff !important;
    font-weight: 600; font-size: 0.98rem; text-decoration: none !important; white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease;
}
.t1-download__button small { font-weight: 500; opacity: 0.72; font-size: 0.84em; }
.t1-download__button:hover { background: #1e293b; transform: translateY(-1px); }
.t1-download__button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.t1-download__req { font-size: 0.86rem; color: var(--dl-muted); }
.single-content .t1-download__link, .t1-download__link { font-size: 0.9rem; font-weight: 600; color: #334155 !important; text-decoration: underline !important; text-decoration-color: rgba(51, 65, 85, 0.35) !important; text-underline-offset: 3px; }
.single-content .t1-download__link:hover, .t1-download__link:hover { text-decoration-color: currentColor !important; }

/* Sichtbare Zusicherungen: vier kurze Sätze mit Häkchen — der eigentliche Vertrauensanker */
.t1-download__trust {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.4rem;
    margin: 1.15rem 0 0; padding: 0; list-style: none;
}
.single-content .t1-download__trust li, .t1-download__trust li { margin: 0; list-style: none; position: relative; padding-left: 1.55rem; font-size: 0.9rem; line-height: 1.45; color: #1e293b; }
.single-content .t1-download__trust li::before, .t1-download__trust li::before { border: 0; transform: none;
    content: ''; position: absolute; left: 0; top: 0.2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 0.62rem no-repeat;
}
.single-content .t1-download__trust a, .t1-download__trust a { color: inherit; text-decoration: underline; text-decoration-color: rgba(30, 41, 59, 0.35); text-underline-offset: 3px; }

/* Eingeklappte Belege: Hash, Dateiliste, Lizenz, Changelog — im DOM für Suchmaschinen, sichtbar nur auf Wunsch */
.t1-download__details { margin-top: 1.15rem; border-top: 1px solid var(--dl-line); }
.t1-download__details > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 0 0.2rem; font-size: 0.88rem; font-weight: 600; color: var(--dl-muted);
}
.t1-download__details > summary::-webkit-details-marker { display: none; }
.t1-download__details > summary::before {
    content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg); transition: transform .15s; margin: 0 0.2rem 0 0.15rem;
}
.t1-download__details[open] > summary::before { transform: rotate(45deg); }
.t1-download__details > summary:hover { color: var(--dl-ink); }
.t1-download__facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.4rem;
    margin: 0.7rem 0 0;
}
.t1-download__facts > div { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.t1-download__facts dt { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dl-muted); }
.t1-download__facts dd { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #1e293b; overflow-wrap: anywhere; }
.single-content .t1-download__facts dd a, .t1-download__facts dd a { color: #1e293b; text-decoration: underline; text-decoration-color: rgba(30, 41, 59, 0.35); text-underline-offset: 3px; }
.t1-download__facts dd code { font-size: 0.82rem; padding: 0.05rem 0.35rem; border-radius: 5px; background: #f1f5f9; color: #0f172a; }
.t1-download__sha { grid-column: 1 / -1; }
.t1-download__sha dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.t1-download__sha code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.01em; word-break: break-all; }
.t1-download__copy {
    padding: 0.2rem 0.6rem; border: 1px solid var(--dl-line); border-radius: 999px; background: #fff;
    font: inherit; font-size: 0.78rem; font-weight: 600; color: #334155; cursor: pointer;
}
.t1-download__copy:hover { border-color: #94a3b8; }
.t1-download__copy.is-done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.t1-download__note { margin: 1rem 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--dl-muted); }

/* Kompakte Leiste (Wiederholung im Plugin-Abschnitt) */
.t1-download--compact { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border-radius: 14px; }
.t1-download--compact .t1-download__icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
.t1-download--compact .t1-download__name { font-size: 1rem; }
.t1-download--compact .t1-download__button { margin-left: auto; padding: 0.7rem 1.15rem; font-size: 0.92rem; }

@media (max-width: 640px) {
    .t1-download { padding: 1.2rem 1.1rem; }
    .t1-download__badge { display: none; } /* Version steht mobil in den Details; die Kopfzeile bleibt ruhig */
    .t1-download__kicker { font-size: 0.7rem; }
    .t1-download__button { width: 100%; justify-content: center; }
    .t1-download__facts, .t1-download__trust { grid-template-columns: 1fr; }
    .t1-download--compact { flex-wrap: wrap; }
    .t1-download--compact .t1-download__button { margin-left: 0; }
}
