/* Inspirations-Feed im Pinterest-Stil. Unabhängig vom Theme: Farben und Schriften aus Theme-Variablen mit Rückfall. */

.hw-feed {
    --hw-gap: 16px;
    --hw-radius: 16px;
    --hw-ink: #111;
    --hw-muted: #5f5f5f;
    --hw-soft: #efefef;
    --hw-save: var(--bs-primary, #e60023);
    --hw-save-hover: var(--pg-red-dark, #ad081b);
    --hw-display: var(--pg-display, var(--bs-font-sans-serif, system-ui, sans-serif));
    --hw-poster: var(--pg-head, "Barlow Semi Condensed", "Arial Narrow", var(--hw-display));
    --hw-pad: 16px;
    --hw-row-gap: 24px;
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 var(--hw-pad) 56px;
    color: var(--hw-ink);
}

/* Handy: enger wie in der Pinterest-App */
@media (max-width: 575.98px) {
    .hw-feed {
        --hw-gap: 8px;
        --hw-pad: 8px;
        --hw-row-gap: 14px;
    }
}

/* Thema der Woche als erste Kachel; Farben je Thema, Rückfall dunkel */
.hw-pin--intro {
    container-type: inline-size;
}

.hw-pin__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 118cqi;
    padding: 9cqi 8cqi;
    border-radius: var(--hw-radius);
    background: var(--hw-intro-bg, #1d1d1f);
    color: var(--hw-intro-ink, #fff);
}

.hw-pin__eyebrow {
    margin: 0 0 3cqi;
    color: var(--hw-intro-accent, currentColor);
    font-size: clamp(10px, 4.2cqi, 13px);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hw-pin__headline {
    margin: 0 0 4cqi;
    color: inherit;
    font-family: var(--hw-display);
    font-size: clamp(22px, 12cqi, 38px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.01em;
}

.hw-pin__lead {
    margin: 0;
    font-size: clamp(12px, 5.2cqi, 16px);
    font-weight: 500;
    line-height: 1.4;
}

/* Themen-Reiter wie in der Pinterest-App: Text, aktiver Reiter unterstrichen */
.hw-feed__tabs {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    gap: 22px;
    justify-content: center;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--hw-pad)) 8px;
    padding: 18px max(var(--hw-pad), 12px) 10px;
    background: var(--bs-body-bg, #fff);
    scrollbar-width: none;
}

.hw-feed__tabs::-webkit-scrollbar {
    display: none;
}

.hw-feed__tab {
    flex: 0 0 auto;
    position: relative;
    padding: 4px 0 8px;
    color: var(--hw-ink);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.hw-feed__tab:hover {
    color: var(--hw-ink);
    text-decoration: none;
}

.hw-feed__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--hw-ink);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.hw-feed__tab.is-active::after,
.hw-feed__tab:hover::after {
    transform: scaleX(1);
}

.hw-feed__tab:hover:not(.is-active)::after {
    background: #cfcfcf;
}

@media (max-width: 767.98px) {
    .hw-feed__tabs {
        justify-content: flex-start;
        gap: 18px;
    }
}

/* Viele Reiter: am Desktop zwei Zeilen, damit alle sichtbar sind; am Handy bleibt Sale beim Wischen rechts stehen */
@media (min-width: 768px) {
    .hw-feed__tabs {
        flex-wrap: wrap;
        gap: 6px 22px;
        overflow: visible;
    }
}

.hw-feed__tab--best,
.hw-feed__tab--best:hover {
    color: var(--hw-save);
}

.hw-feed__tab--best::after {
    background: var(--hw-save);
}

.hw-feed__tab--sale {
    padding: 4px 14px;
    border-radius: 18px;
    background: var(--hw-save);
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
}

.hw-feed__tab--sale:hover,
.hw-feed__tab--sale.is-active {
    background: var(--hw-save-hover);
    color: #fff;
}

.hw-feed__tab--sale::after {
    display: none;
}

@media (max-width: 767.98px) {
    .hw-feed__tab--sale {
        position: sticky;
        right: 0;
        margin-left: auto;
        box-shadow: -12px 0 12px var(--bs-body-bg, #fff), 14px 0 0 var(--bs-body-bg, #fff);
    }
}

.hw-feed__hint {
    max-width: 620px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: var(--hw-radius);
    background: var(--hw-soft);
    text-align: center;
    font-size: 14px;
}

.hw-feed__hint-text {
    margin: 0;
}

.hw-feed__hint-button {
    margin-left: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 20px;
    background: var(--hw-ink);
    color: #fff;
    font-weight: 600;
}

/* Raster: ohne Skript CSS-Spalten, mit Skript Spalten nach kürzester Höhe */
.hw-feed__grid {
    columns: 2 220px;
    column-gap: var(--hw-gap);
}

.hw-feed__grid > .hw-pin {
    break-inside: avoid;
    margin-bottom: var(--hw-row-gap);
}

.hw-feed__grid.is-masonry {
    display: flex;
    align-items: flex-start;
    gap: var(--hw-gap);
    columns: auto;
}

.hw-feed__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--hw-row-gap);
}

.hw-feed__col > .hw-pin {
    margin: 0;
}

.hw-feed__grid.is-loading {
    opacity: .4;
    transition: opacity .15s;
}

/* Pin */
.hw-pin {
    position: relative;
    animation: hw-pin-in .35s ease both;
}

@keyframes hw-pin-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hw-pin__media {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1 / var(--hw-ratio, 1.5);
    overflow: hidden;
    border-radius: var(--hw-radius);
    background: var(--hw-soft);
}

.hw-pin__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.hw-pin__img,
.hw-pin__link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-pin__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}

.hw-pin__media:hover .hw-pin__scrim {
    opacity: 1;
}

/* Überschrift der Posterbilder: als Text gesetzt, nicht von der Bild-KI gemalt; Verlauf dahinter für helle Farbflächen */
.hw-pin__overlay-scrim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.hw-pin__overlay {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 7%;
    color: #fff;
    font-family: var(--hw-poster);
    font-size: 26px;
    font-size: 12.5cqi;
    font-weight: 700;
    line-height: .92;
    letter-spacing: .005em;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .55);
    pointer-events: none;
}

.hw-pin__save,
.hw-save-button {
    border: 0;
    border-radius: 24px;
    background: var(--hw-save);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    transition: background-color .15s ease, opacity .15s ease;
}

.hw-pin__save {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 12px 16px;
    font-size: 15px;
    opacity: 0;
}

.hw-pin__media:hover .hw-pin__save,
.hw-pin__save:focus-visible {
    opacity: 1;
}

.hw-pin__save:hover,
.hw-save-button:hover {
    background: var(--hw-save-hover);
}

.hw-pin__save.is-saved,
.hw-save-button.is-saved {
    background: var(--hw-ink);
}

/* Unten auf dem Bild: Feature-Chips in der Kontrastfarbe der Stilkarte, Artikelname, Preis */
.hw-pin__caption-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, 0));
    pointer-events: none;
}

.hw-pin__caption {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.hw-pin__features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hw-pin__features li {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--hw-accent, var(--hw-save));
    color: var(--hw-accent-ink, #fff);
    font-family: var(--hw-poster);
    font-size: 13px;
    font-size: clamp(11px, 5.4cqi, 16px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hw-pin__product {
    color: #fff;
    font-family: var(--hw-display);
    font-size: 15px;
    font-size: clamp(13px, 6.4cqi, 22px);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 12px rgba(0, 0, 0, .45);
}

/* Angebots-Pins: neutraler heller Hintergrund, Name und Highlights groß oben in dunkler Schrift, Preis unten */
.hw-pin--offer .hw-pin__caption-scrim {
    display: none;
}

.hw-pin--offer .hw-pin__caption {
    top: 6%;
    bottom: 5%;
    gap: 8px;
}

.hw-pin--offer .hw-pin__product {
    order: -1;
    color: #111;
    font-size: clamp(16px, 8.2cqi, 30px);
    line-height: 1.05;
    text-shadow: none;
}

.hw-pin--offer .hw-pin__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.hw-pin--offer .hw-pin__features li {
    padding: 5px 10px;
    font-size: clamp(13px, 6.6cqi, 24px);
    box-shadow: none;
}

.hw-pin--offer .hw-pin__features li::before {
    content: "✓ ";
}

.hw-pin--offer .hw-pin__buy {
    margin-top: auto;
}

.hw-pin--offer .hw-pin__shop {
    padding: 7px 14px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: clamp(14px, 7cqi, 26px);
    font-weight: 800;
    box-shadow: none;
}

.hw-pin--offer .hw-pin__shop:hover {
    color: #fff;
}

/* Artikel-Pins der automatischen Auswahlen: Artikelbild auf einheitlich neutralem Grau, weiße Bildflächen verschmelzen damit */
.hw-pin--product .hw-pin__media {
    background: #e9e9eb;
}

.hw-pin--product .hw-pin__img,
.hw-pin--product .hw-pin__link img {
    position: absolute;
    top: 5%;
    left: 9%;
    width: 82%;
    height: 50%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hw-pin--product .hw-pin__caption {
    gap: 5px;
}

.hw-pin--product .hw-pin__features li {
    background: #1d1d1f;
    color: #fff;
    font-size: clamp(10px, 4.6cqi, 14px);
    box-shadow: none;
}

.hw-pin--product .hw-pin__product {
    display: -webkit-box;
    overflow: hidden;
    color: #111;
    font-size: clamp(12px, 5.4cqi, 18px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hw-pin--product .hw-pin__shop {
    gap: 8px;
    margin-top: 2px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #111;
    font-size: clamp(15px, 7cqi, 24px);
    font-weight: 800;
    box-shadow: none;
}

.hw-pin--product .hw-pin__shop s {
    color: #6b6f76;
    font-size: .68em;
    font-weight: 600;
}

.hw-pin--product .hw-pin__shop s + span {
    color: var(--hw-save);
}

.hw-pin--product .hw-reference-price {
    color: #6b6f76;
    font-size: .55em;
    opacity: 1;
}

/* Ribbon „Das beste aus …“: hängt am linken Rand der Kachel und sagt, warum der Artikel hier steht */
.hw-pin__ribbon {
    margin: 0 0 2px -6cqi;
    padding: 5px 18px 5px 6cqi;
    background: #ffc83d;
    color: #111;
    font-family: var(--hw-poster);
    font-size: clamp(11px, 5cqi, 15px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .02em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}

.hw-pin__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 14px;
    background: #1d1d1f;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.hw-pin__badge--sale {
    background: var(--hw-save);
}

/* Schmale Kacheln (Handy): höchstens zwei Chips, Angebote kompakter, damit der Artikel sichtbar bleibt */
@container (max-width: 220px) {
    .hw-pin__features li:nth-child(n + 3) {
        display: none;
    }

    .hw-pin--offer .hw-pin__product {
        font-size: 15px;
    }

    .hw-pin--offer .hw-pin__features li {
        padding: 3px 7px;
        font-size: 11px;
        white-space: nowrap;
    }
}

/* Lange Teaser (aktuelle Pins) kleiner, damit sie den Artikel nicht verdecken */
.hw-pin__overlay--long {
    font-size: 22px;
    font-size: 10cqi;
}

.hw-pin__shop {
    pointer-events: auto;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    color: var(--hw-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.hw-pin__shop:hover {
    color: var(--hw-ink);
    text-decoration: none;
}

/* Preis mit Pflichtangaben: Grundpreis in der Preisblase, Energieeffizienzklasse des Themes gleich daneben */
.hw-pin__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    pointer-events: auto;
}

.hw-pin__buy .hw-pin__shop {
    margin-top: 0;
}

.hw-reference-price {
    font-size: .8em;
    font-weight: 500;
    opacity: .8;
}

/* Schmale Kacheln: Preis und Energiepfeil bleiben in einer Zeile */
@container (max-width: 220px) {
    .hw-pin__buy {
        gap: 4px;
    }

    .hw-pin__buy .pg-eek-img {
        height: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .hw-pin__shop {
        padding: 4px 8px;
        font-size: 12px;
    }

    .hw-pin__caption {
        gap: 4px;
    }

    .hw-pin__meta {
        padding-top: 6px;
    }

    .hw-pin__title {
        font-size: 13px;
    }
}

.hw-pin__meta {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 2px 0 6px;
}

.hw-pin__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--hw-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.hw-pin__title:hover {
    color: var(--hw-ink);
    text-decoration: none;
}

.hw-pin__menu {
    position: relative;
    flex: 0 0 auto;
}

.hw-pin__more,
.hw-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hw-ink);
}

.hw-pin__more {
    width: 32px;
    height: 32px;
}

.hw-pin__more:hover,
.hw-icon-button:hover {
    background: var(--hw-soft);
}

/* Einsatzbilder: nur das Bild, „Merken“ und Menü erscheinen erst beim Darüberfahren */
.hw-pin--scene .hw-pin__meta {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 0;
    opacity: 0;
    transition: opacity .15s ease;
}

.hw-pin--scene:hover .hw-pin__meta,
.hw-pin--scene .hw-pin__meta:focus-within {
    opacity: 1;
}

.hw-pin--scene .hw-pin__more,
.hw-pin--scene .hw-pin__more:hover {
    background: #fff;
}

.hw-pin__popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 8;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
}

.hw-pin__popover button,
.hw-pin__popover a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--hw-ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.hw-pin__popover button:hover,
.hw-pin__popover a:hover {
    background: var(--hw-soft);
    color: var(--hw-ink);
}

.hw-pin.is-hidden {
    display: none;
}

/* Nachladen */
.hw-feed__loader {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 28px 0;
}

.hw-feed__loader span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bdbdbd;
    animation: hw-dot 1s infinite ease-in-out;
}

.hw-feed__loader span:nth-child(2) { animation-delay: .15s; }
.hw-feed__loader span:nth-child(3) { animation-delay: .3s; }

@keyframes hw-dot {
    0%, 80%, 100% { transform: scale(.6); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Großansicht im Dialog */
.hw-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--bs-body-bg, #fff);
    color: var(--hw-ink);
    overscroll-behavior: contain;
}

.hw-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.hw-dialog[open] {
    display: block;
    overflow-y: auto;
}

.hw-dialog__close {
    position: sticky;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 12px 0 -56px 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--hw-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.hw-dialog__close:hover {
    background: var(--hw-soft);
}

.hw-dialog__body {
    padding: 0 0 40px;
}

.hw-dialog__body.is-loading {
    min-height: 60vh;
    opacity: .4;
}

/* Wie die Pin-Seite bei Pinterest: ganze Fläche weiß, der Pin als Karte in der Mitte */
@media (min-width: 768px) {
    .hw-dialog__body {
        padding: 24px 32px 40px;
    }
}

.hw-closeup__card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: #fff;
}

@media (min-width: 768px) {
    .hw-closeup__card {
        grid-template-columns: minmax(0, 508px) minmax(0, 1fr);
        max-width: 1016px;
        margin: 0 auto;
        border-radius: 32px;
        box-shadow: 0 1px 20px rgba(0, 0, 0, .1);
    }
}

.hw-closeup__media {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1 / var(--hw-ratio, 1.5);
    background: #111;
}

@media (min-width: 768px) {
    .hw-closeup__media {
        border-radius: 32px 0 0 32px;
        overflow: hidden;
    }
}

.hw-closeup__img,
.hw-closeup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-closeup__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 28px;
}

@media (min-width: 768px) {
    .hw-closeup__body {
        padding: 28px 32px 32px;
    }
}

.hw-closeup__bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hw-closeup__spacer {
    flex: 1 1 auto;
}

.hw-icon-button {
    width: 44px;
    height: 44px;
}

.hw-save-button {
    padding: 14px 20px;
    font-size: 16px;
}

.hw-closeup__title {
    margin: 4px 0 0;
    font-family: var(--hw-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.15;
}

.hw-closeup__description {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.hw-closeup__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
}

.hw-closeup__tags a {
    color: var(--hw-ink);
    font-weight: 600;
    text-decoration: none;
}

.hw-closeup__tags a:hover {
    text-decoration: underline;
}

.hw-closeup__subtitle {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.hw-closeup__products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hw-shop-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f5f5f5;
}

.hw-shop-item__image {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.hw-shop-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hw-shop-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hw-shop-item__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hw-ink);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hw-shop-item__name:hover {
    color: var(--hw-ink);
    text-decoration: underline;
}

.hw-shop-item__price {
    font-size: 18px;
    font-weight: 800;
}

.hw-shop-item__info .hw-reference-price {
    color: var(--hw-muted);
    font-size: 13px;
    opacity: 1;
}

.hw-shop-item__energy {
    grid-column: 1 / -1;
}

.hw-shop-item__energy > * {
    margin: 0;
}

.hw-shop-item__delivery {
    grid-column: 1 / -1;
    color: var(--hw-muted);
    font-size: 13px;
}

/* Eigene Lieferanzeigen von Themes nutzen die ganze Breite */
.hw-shop-item__delivery > * {
    max-width: none;
}

.hw-shop-item__button {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 24px;
    font-weight: 700;
}

.hw-closeup__note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 6px 0 0;
    color: var(--hw-muted);
    font-size: 12px;
    line-height: 1.4;
}

.hw-ai-badge {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.hw-closeup__more {
    margin: 36px 0 16px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.hw-dialog .hw-feed__grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--hw-pad);
}

@media (min-width: 768px) {
    .hw-dialog .hw-feed__grid {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-pin,
    .hw-feed__loader span {
        animation: none;
    }
}

/* „inkl. MwSt. zzgl. Versand“ unter dem Preis, öffnet die Seite Versand und Zahlung im eigenen Dialog (tax-info.html.twig) */
.hw-tax-info {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hw-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.hw-tax-info > span {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hw-tax-info:hover {
    color: var(--hw-ink);
}

/* In den Pins eigene Zeile unter Preis und Energiepfeil; auf Bildmotiven als helle Blase wie der Preis */
.hw-pin__buy .hw-tax-info {
    flex-basis: 100%;
    font-size: clamp(10px, 4.4cqi, 13px);
}

.hw-pin:not(.hw-pin--product) .hw-pin__buy .hw-tax-info > span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    color: var(--hw-ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.hw-pin--product .hw-pin__buy .hw-tax-info {
    color: #6b6f76;
}

.hw-shop-item__info .hw-tax-info {
    margin-top: 2px;
}

/* Dialog Versand und Zahlung: Karte in der Mitte, liegt auch über der Großansicht */
.hw-info-dialog {
    width: min(720px, calc(100% - 24px));
    max-height: calc(100% - 48px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--bs-body-bg, #fff);
    color: var(--hw-ink);
    overscroll-behavior: contain;
}

.hw-info-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.hw-info-dialog[open] {
    display: block;
    overflow-y: auto;
}

.hw-info-dialog__close {
    position: sticky;
    top: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 10px 10px -50px auto;
    border: 0;
    border-radius: 50%;
    background: var(--hw-soft, #f1f1f1);
    color: var(--hw-ink);
    cursor: pointer;
}

.hw-info-dialog__body {
    padding: 20px 24px 24px;
}

.hw-info-dialog__body.is-loading {
    min-height: 200px;
    opacity: .4;
}

.hw-info-dialog__body .cms-section .boxed,
.hw-info-dialog__body .cms-block-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
