/* HWT Blog Teaser
 * Styles für Elementor Widget "HWT Blog Teaser"
 */

.hwt-bt {
    --hwt-bt-text: #2D313C;
    --hwt-bt-box: #F7F7F5;
    --hwt-bt-link: rgba(26, 34, 51, 0.5); /* #1A2233 @ 50% */
    --hwt-bt-padding: 2.5rem;
    --hwt-bt-gap: 2.5rem;

    color: var(--hwt-bt-text);
}

.hwt-bt__list {
    display: flex;
    flex-direction: column;
    gap: var(--hwt-bt-gap);
}


/* Widget immer volle Breite (innerhalb des Elementor-Containers) */
.hwt-bt,
.hwt-bt__list {
    width: 100%;
    max-width: none;
}

/* Box immer volle Breite */
.hwt-bt__item {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Falls Theme/Elementor das Widget-Container-Element begrenzt */
.elementor-widget-container .hwt-bt {
    width: 100%;
    max-width: none;
}

/* komplette Box anklickbar */
.hwt-bt__item {
    display: grid;
    grid-template-columns: 60.75% 39.25%;
    align-items: stretch;
    gap: 0;
    width: 100%;

    background: var(--hwt-bt-box);
    text-decoration: none;
    color: inherit;
    border-radius: 0;
}
.hwt-bt__item h3 {
    margin-top: 0 !important;
}

.hwt-bt__item:focus,
.hwt-bt__item:focus-visible {
    outline: 2px solid rgba(45, 49, 60, 0.35);
    outline-offset: 2px;
}

.hwt-bt__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: var(--hwt-bt-padding);
}



.hwt-bt__excerpt {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    color: var(--hwt-bt-text);
    max-width: 80%;
}
.hwt-bt__title {
    max-width: 80%;
}
.hwt-bt__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding-right: 1.5rem;
}
.hwt-bt__item:hover .hwt-bt__link {
    opacity: 1;
}
.hwt-bt__item:hover .hwt-bt__link::after  {
    transform: translate(146%,-47%) !important;
}
.hwt-bt__item:hover .hwt-bt__link,
.hwt-bt__item:focus .hwt-bt__link {
    color: rgba(26, 34, 51, 0.75);
}

/* Bild rechts */
.hwt-bt__media {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
}

.hwt-bt__media {
    width: 100%;
    min-height: 320px; 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hwt-bt__image {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* Button Bereich */
.hwt-bt__actions {
    margin-top: var(--hwt-bt-gap);
    display: flex;
    flex-direction: column;
 
    gap: 0.75rem;
}

.hwt-bt__btn {
    appearance: none;

    background: transparent;
    color: var(--hwt-bt-text);
    text-decoration: underline;
    border: none;
    font-size: 1.063rem;

    cursor: pointer;
}

.hwt-bt__btn:hover {
    border-color: rgba(45, 49, 60, 0.45);
}

.hwt-bt__btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.hwt-bt__status {
    font-size: 0.95rem;
    opacity: 0.85;
}

.hwt-bt__empty {
    background: var(--hwt-bt-box);
    padding: var(--hwt-bt-padding);
}

/* Responsive: mobil untereinander – Bild zuerst, dann Text */
@media (max-width: 900px) {
    .hwt-bt__item {
        grid-template-columns: 1fr;
    }


    .hwt-bt__media {
        order: 1;
    }

    .hwt-bt__content {
        order: 2;
        padding-right: 0;
        margin-top: 1.25rem;
    }


    .hwt-bt__media {
        min-height: 240px;
    }
}