/* =========================================================
   Hermann Works
   Artikelbilder
   ========================================================= */


/* ---------------------------------------------------------
   Artikeldetail – Kopfbereich
   --------------------------------------------------------- */

.article-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
}

.article-heading-copy {
    min-width: 0;
}

.article-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
}


/* ---------------------------------------------------------
   Hauptbild im Artikeldetail
   --------------------------------------------------------- */

.article-hero-image,
.article-hero-placeholder {
    width: 140px;
    height: 105px;
    min-width: 140px;
    max-width: 140px;

    flex: 0 0 140px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;
    overflow: hidden;

    box-shadow: var(--shadow);
}

.article-hero-image {
    display: block;
    text-decoration: none;
}

.article-hero-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain;
    object-position: center;

    margin: 0;
    padding: 0;
}

.article-hero-placeholder {
    display: grid;
    place-items: center;

    background: var(--hw-light-blue);
    color: var(--hw-navy);

    font-size: 12px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Artikelliste – Thumbnail
   --------------------------------------------------------- */

.article-table .image-column {
    width: 58px;
    min-width: 58px;

    padding-right: 6px;
}

.article-list-thumb,
.article-list-placeholder {
    width: 48px;
    height: 48px;

    min-width: 48px;
    max-width: 48px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #ffffff;
    overflow: hidden;
}

.article-list-thumb {
    display: block;

    width: 48px !important;
    height: 48px !important;

    object-fit: cover;
    object-position: center;
}

.article-list-placeholder {
    display: grid;
    place-items: center;

    background: var(--hw-light-blue);
    color: var(--hw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}


/* ---------------------------------------------------------
   Dateien-Tab – Bildvorschau
   --------------------------------------------------------- */

.article-file-preview {
    display: block;

    width: 88px;
    height: 88px;

    min-width: 88px;
    max-width: 88px;

    flex: 0 0 88px;

    border: 1px solid var(--border);
    border-radius: 8px;

    overflow: hidden;
    background: #ffffff;

    text-decoration: none;
}

.article-file-preview img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: cover;
    object-position: center;
}


/* ---------------------------------------------------------
   Datei-Karten mit Bild
   --------------------------------------------------------- */

.detail-card:has(.article-file-preview) > div:first-child {
    display: flex;
    align-items: flex-start;

    gap: 14px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .article-page-header {
        grid-template-columns: 1fr;
    }

    .article-header-actions {
        justify-content: flex-start;
    }
}


@media (max-width: 760px) {

    .article-header-actions {
        width: 100%;

        display: flex;
        flex-wrap: wrap;

        justify-content: space-between;
        align-items: flex-start;
    }

    .article-hero-image,
    .article-hero-placeholder {
        width: 120px;
        height: 90px;

        min-width: 120px;
        max-width: 120px;

        flex-basis: 120px;
    }

    .article-file-preview {
        width: 72px;
        height: 72px;

        min-width: 72px;
        max-width: 72px;

        flex-basis: 72px;
    }
}


@media (max-width: 480px) {

    .article-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-hero-image,
    .article-hero-placeholder {
        width: 110px;
        height: 82px;

        min-width: 110px;
        max-width: 110px;

        flex-basis: 110px;
    }

    .article-list-thumb,
    .article-list-placeholder {
        width: 42px;
        height: 42px;

        min-width: 42px;
        max-width: 42px;
    }
}