.artikel_flipper .hover,
.artikel_flipper .click {
    display: none;
}

.artikel_flipper {
    position: relative;
    cursor: pointer;
    aspect-ratio: 661 / 839;
    perspective: 1000px; /* Fügt eine Perspektive hinzu, um den 3D-Effekt zu erzeugen */
}

.artikel_flipper .image,
.artikel_flipper .click {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s, opacity 0.6s;
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper .image {
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: rgba(0,0,0,.3);
    transform: rotateY(0deg);

    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 'text';
    justify-items: center;
    align-items: center;
    align-content: center; /* extra für Safari */
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper .click {
    background-color: var(--primaryColor);
    transform: rotateY(180deg);
    opacity: 0; /* Startet unsichtbar */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 'text';
    justify-items: center;
    align-items: center;
    align-content: center; /* extra für Safari */
}

/* hover / click */
.artikel_flipper:not(.active):hover .hover{
    position:relative;
    text-align: center;
}
.content_element:not(.artikel-iggywoo)  .artikel_flipper:not(.active):hover .hover,
.artikel_flipper.active .click {
    display: grid !important;
}

.artikel_flipper:not(.active):hover .hover article.text {
    background-color: rgba(255,255,255,.5);
    padding: var(--absatz_abstand);
}

.artikel_flipper article.text .headline {
    padding-bottom: 0;
}

.artikel_flipper:not(.active):hover .hover article.text .headline .h {
    color: black !important;
}

/* click */
.artikel_flipper.active .click {
    opacity: 1; /* Sichtbar, wenn aktiv */
}

.artikel_flipper .click article.text {
    background-color: var(--primaryColor);
    padding: var(--absatz_abstand);
    aspect-ratio: 661 / 839;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas: 'text';
    justify-items: center;
    align-items: center;
    align-content: center; /* extra für Safari */
}

.artikel_flipper .click article.text * {
    color: white !important;
}

/* click Effekt . Kachel wenden */
.content_element:not(.artikel-iggywoo) .artikel_flipper.active .image {
    transform: rotateY(-180deg);
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper.active .click {
    transform: rotateY(0deg);
}
.artikel_flipper .hover,
.artikel_flipper .click {
    display: none;
}

.artikel_flipper {
    position: relative;
    cursor: pointer;
    aspect-ratio: 661 / 839;
    perspective: 1000px; /* Fügt eine Perspektive hinzu, um den 3D-Effekt zu erzeugen */
}

.artikel_flipper .image,
.artikel_flipper .click {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s, opacity 0.6s;
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper .image {
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: rgba(0,0,0,.3);
    transform: rotateY(0deg);
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper .click {
    background-color: var(--primaryColor);
    transform: rotateY(180deg);
    opacity: 0; /* Startet unsichtbar */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 'text';
    justify-items: center;
    align-items: center;
    align-content: center; /* extra für Safari */
}


/* hover / click */
.content_element:not(.artikel-iggywoo) .artikel_flipper:not(.active):hover .hover,
.artikel_flipper.active .click {
    display: grid !important;
}

.artikel_flipper:not(.active):hover .hover article.text {
    background-color: rgba(255,255,255,.5);
    padding: var(--absatz_abstand);
}

.artikel_flipper:not(.active):hover .hover article.text .headline {
    padding-bottom: 0;
}

.artikel_flipper:not(.active):hover .hover article.text .headline .h {
    color: black !important;
}

/* click */
.artikel_flipper.active .click {
    opacity: 1; /* Sichtbar, wenn aktiv */
}

.artikel_flipper.active .click article.text {
    /*background-color: var(--primaryColor);*/
    /* Background color der Kacheln aendern Email von KS an HH Fr 21.02.2025 11:35 */
    background-color: var(--primaryColor);
    padding: var(--absatz_abstand);
    aspect-ratio: 661 / 839;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas: 'text';
    justify-items: center;
    align-items: center;
    align-content: center; /* extra für Safari */
    text-align: left !important;
}
.content_element.artikel-iggywoo .artikel_flipper .click article.text .headline{
    width:100%;
}

.artikel_flipper.active .click article.text * {
    color: white !important;
}

/* click Effekt . Kachel wenden */
.content_element:not(.artikel-iggywoo)  .artikel_flipper.active .image {
    transform: rotateY(-180deg);
}

.content_element:not(.artikel-iggywoo)  .artikel_flipper.active .click {
    transform: rotateY(0deg);
}
@media screen and (max-width:800px){
    .content_element:not(.artikel-iggywoo) .artikel_flipper{
        max-width:80vw;
        margin: 0 auto;
        margin-bottom:var(--absatz_abstand);
    }
    .content_element:not(.artikel-iggywoo) .artikel_flipper:last-of-type{
        margin-bottom:0px;
    }
}
