.tams-abverkauf-angebot-list.row {
    margin: 0;
}

/* ================== GRID / TILE ================== */

.tile-angebot .inner {
    position: relative;
    overflow: hidden;

    /* Fallback: ohne aspect-ratio verhält sich das Element normal */
    width: 100%;

    /* Moderne Browser */
    aspect-ratio: 1 / 1;

    background-repeat: no-repeat;      /* Fallback, falls Bild noch direkt auf .inner hängt */
    background-size: cover;
    background-position: center;
    border: 0;

    -webkit-transition: -webkit-transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
}

/* Hintergrundbild in eigenem Layer, damit wir nur das Bild grau machen können */
.tile-angebot .inner-bg {
    position: absolute;
    /* Fallback für Browser ohne inset */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Kurzschreibweise für moderne Browser */
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    -webkit-transition: -webkit-transform 0.2s ease-in-out, -webkit-filter 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.tile-angebot a {
    display: block;
    color: inherit;
}

.tile-angebot a:hover {
    text-decoration: none !important;
}

/* Standard-Hover: leicht vergrößern */
.tile-angebot a:hover .inner {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

/* ================== TITLE ================== */

.tile-angebot .angebot-title {
    background-color: rgb(128, 128, 127);
    color: #fff;

    /* Fallback für Browser ohne fit-content */
    display: inline-block;
    width: -moz-fit-content;
    width: fit-content;

    font-weight: bold;
    padding: 5px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.tile-angebot a:hover .angebot-title {
    background-color: #bb2821;
}

/* ================== PREIS-BAND ================== */

.tile-angebot .angebot-price {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 30%;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    /* alte Flex-Syntax */
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;

    -webkit-box-align: end;
    -ms-flex-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;

    background: #bb2821;
    color: #fff;
    font-weight: bold;
    text-align: center;

    -webkit-clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);

    padding: 0 10px 0 0;
    font-size: 2rem;
    z-index: 2; /* über dem Bild */
}

.tile-angebot a:hover .angebot-price {
    background: rgb(128, 128, 127);
}

/* ================== VERKAUFT-OVERLAY ================== */

.angebot-sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    /* zentrieren + drehen */
    -webkit-transform: translate(-50%, -50%) rotate(-10deg);
    transform: translate(-50%, -50%) rotate(-10deg);
    -webkit-transform-origin: center;
    transform-origin: center;
    /*background: rgba(220, 53, 69, 0.95);*/ /* kräftiges Rot, bleibt farbig */
    background: rgba(128, 128, 127, 1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 3;
    text-align: center;
}

/* ================== STATE: VERKAUFT ================== */
/* Bild grau, Hover deaktiviert, Box & Preis bleiben farbig */

.tile-angebot.is-sold .inner-bg {
    -webkit-filter: grayscale(100%) brightness(0.75);
    filter: grayscale(100%) brightness(0.75);
}

/* Preisband ebenfalls in Greyscale bei verkauften Angeboten */
.tile-angebot.is-sold .angebot-price {
    -webkit-filter: grayscale(100%) brightness(0.9);
    filter: grayscale(100%) brightness(0.9);
}

/* Hover-Zoom für verkaufte Kacheln abschalten */
.tile-angebot.is-sold a:hover .inner {
    -webkit-transform: none !important;
    transform: none !important;
}

/* Preis-Farbe bei Hover nicht wechseln, wenn verkauft */
.tile-angebot.is-sold a:hover .angebot-price {
    background: #bb2821;
}

/* Optional: Titel-Hover ebenfalls neutralisieren bei verkauft */
.tile-angebot.is-sold a:hover .angebot-title {
    background-color: rgb(128, 128, 127);
}

/* ================== SINGLE-ANGEBOT BILD ================== */

.single-angebot-img-wrap {
    position: relative;
    overflow: hidden;
}

.single-angebot-img-wrap img.single-angebot-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Bild ausgrauen, wenn verkauft */
.single-angebot-img-wrap.is-sold img.single-angebot-img {
    -webkit-filter: grayscale(100%) brightness(0.75);
    filter: grayscale(100%) brightness(0.75);
}

/* ================== SINGLE-ANGEBOT PREIS ================== */

.angebot-price-single-wrap {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;

    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.angebot-price-single {
    position: relative;
    width: 100%;
    color: rgb(128, 128, 127);
    font-size: 3rem;
    font-weight: bold;
    padding: 0;
}

.angebot-price-single:after {
    content: '';
    background: linear-gradient(to right, #bb2821, transparent, transparent);
    position: absolute;
    width: 100%;
    height: 15px;
    margin-left: 10px;
    bottom: 25px;
}

.angebot-sales-locations-single-wrap {
    margin-top: 1.25rem;
}

.angebot-sales-locations-single-title {
    color: rgb(128, 128, 127);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.angebot-sales-locations-single-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgb(128, 128, 127);
}

.angebot-sales-locations-single-list li {
    margin-bottom: 0.35rem;
}

/* ================== NAV-BUTTON GELB ================== */

#menu_nav_primary.navbar-nav li.menu-item.uppercase {
    background-color: #bb2821;
}

#menu_nav_primary.navbar-nav li.menu-item.uppercase a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-style: italic;
    color: #fff !important;
    /*padding: 0 5px;*/
}

#menu_nav_primary.navbar-nav li.menu-item.uppercase:hover {
    background-color: rgb(128, 128, 127);
}

/* ================== SINGLE ANGEBOT ================== */

.single-angebot .row-s-ang-content {
    padding: 1rem;
}

.single-angebot #cont_hero {
    background-image: none !important;
    height: 50vh;
    background-color: #fff;
}

.single-angebot .row_hero {
    padding: 100px 0 0 0;
}

.single-angebot .row.row_hero .container {
    background-color: #fff;
    padding: 15px;
}

/* ================== BREAKPOINTS ================== */

@media (min-width: 576px) {
    .tile-angebot .angebot-price {
        height: 15%;
    }
}

@media (min-width: 768px) {
    .single-angebot .row-s-ang-content {
        padding: 0;
    }
    .tile-angebot .angebot-price {
        font-size: 1.3rem;
    }
}

@media (min-width: 992px) {
    .tile-angebot .angebot-price {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .tile-angebot .angebot-price {
        font-size: 1.3rem;
    }
}

@media (min-width: 1366px) {
    .tile-angebot .angebot-price {
        font-size: 2rem;
        height: 25%;
    }
}

@media (min-width: 1440px) {
    .tile-angebot .angebot-price {
        height: 20%;
    }
}

@media (min-width: 1600px) {
    .tile-angebot .angebot-price {
        height: 15%;
    }
}
