.accordion {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.accordion-register {
    display: flex;
    position: sticky;
    top: 0;
    width: 100%;
}

.accordion-register > a:not(a.kachel) {
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
    /* transition: background-color 0.3s ease; */
}

.accordion-register-hl {
    font-size: 24px;
    font-weight: 600;
    transition: background-color 0.3s ease, flex-grow 0.3s ease;
}

.accordion-register-hl.active {
    background-color: #ddd;
    flex-grow: 1;
}

.accordion-content {
    display: flex;
    width: 100%;
    overflow: hidden; 
    gap: 1rem;
    background-color: var(--white);
}

.accordion-item {
    flex: 0 1 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}
.accordion-item.transition-out {
    max-height: 0;
    opacity: 0;
}


.accordion-item.active {
    flex: 1;
    max-height: none;
    opacity: 1;
    overflow: visible;

    box-shadow: 2px 2px 10px var(--black-10),
    -2px -2px 10px var(--black-10);
padding: 70px 5%;
}

.accordion-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 100px auto 50px;
}
.accordion-desc {
    min-width: 100%;
    margin-bottom: 50px;
    font-size: 20px;
    font-weight: 600;
    padding: 1.5rem 2rem;
    color: var(--black);
    background-color: var(--white);
    box-shadow: 1px 1px 3px var(--dark-grey);
}
.accordion-imgs {
    width: 100%;
    gap: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.accordion-imgs img {
    width: clamp(280px, 40vw, 600px);
    height: auto;
}
.innovations-page .img-container-mid {
    width: 70vw;
}
.innovations-page .img-container-sm {
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 2rem;
    width: 100%;
}
.innovations-page .img-container-sm img {
    height: 100px;
    width: auto;
}
.innovations-page .text-container-end {
    width: 80vw;
    max-width: 100%;
    gap: 100px;
    flex-direction: row-reverse;
    align-self: flex-end;
}


.swep_twixter {
    background-image:
    var(--gradient-kachel),
    url(../img/innovations/Swep_und_Twixter.jpg);
}
.above_the_floor {
    background-image:
    var(--gradient-kachel),
    url(../img/innovations/Above_the_floor.jpg);
}
.ansprueche {
    background-image:
    var(--gradient-kachel),
    url(../img/innovations/Hoechste_Ansprueche.jpg);
}

.swep_twixter,
.above_the_floor,
.ansprueche {
    background-size: 100%;
    transition: background-size .3s ease-in-out;
    background-position: center center;
}
.swep_twixter:hover,
.above_the_floor:hover,
.ansprueche:hover {
    background-size: 110%;
}


.tiles{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    
}
.tiles a {
    flex: 1; 
    min-width: calc(50% - 1rem); 
    height: 400px;
    display: block;
}


.tile{
    width: 100%; 
    height: 100%; 
    position: relative;
    overflow: hidden;
}
.tile img{
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.tile:before{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

.tile-title{
    position: absolute;
    text-decoration: none;
    bottom: 1rem;
    left: 1rem;
    color: white;
    margin:0;
}



@media screen and (max-width: 1000px) {


    .tiles{
        flex-direction: column;
        
    }

    .tiles a, .tile, .tile:before{
       height: 350px;   
    }
  


    
    .accordion-block {
        flex-direction: row;
        align-items: normal;
        justify-content: space-between;
        gap: 30px;
        

    }
    p.accordion-desc {
        min-width: 40%;
        min-height: 100%;
        flex: 1;
        margin-bottom: 0;
    }
    .accordion-imgs {
        flex-direction: column;
        align-items: flex-end;
    }
}
@media screen and (max-width: 768px) {
    .innovations-page .intro .img-container {
        min-width: 280px;
        /* max-width: 300px !important; */
    }
    .innovations-page .text-container-end {
        flex-direction: column-reverse;
    }
    .innovations-page .img-container-sm {
        width: 100%;
        align-items: center;
        gap: 1rem;
    }
    .innovations-page .img-container-sm img[src*="ERGO"] {
        width: 20vw;
        height: auto;
    }
    .innovations-page .img-container-sm img[src*="ergo"] {
        width: 60vw;
        height: auto;
    }
    .innovations-page .kacheln a {
        height: 120px;
        width: 280px;
        background-position: bottom;
    }
    .innovations-page .kachel {
        height: 40px;
        width: 280px;
        padding-top: 0;
    }
    .innovations-page .kachel .text-box {
        top: 0;
        bottom: 1rem;
    }
    .accordion-block {
        flex-direction: column;
        align-items: normal;
        justify-content: space-between;
        gap: 30px;
    }
    p.accordion-desc {
        min-width: 100%;
    }
    .accordion-imgs {
        flex-direction: column;
        width: 100%;
    }
    .accordion-imgs img {
        flex-direction: column;
        width: 100%;
    }
}