figure.table {
    margin: 0;
}

.tiervermittlung_layout {

    .img-txt-header {
        background: #FCF2D4;
        h1 span {
            color: #fff;
            text-shadow: 0.125rem 0.125rem #E9945C;
        }
        h1 span:nth-child(2) {
            color: #E9945C;
            text-shadow: 0.125rem 0.125rem #fff;
        }

        .multicol {
            .col:nth-child(1) {
                display: none;
                .txt {
                    span {
                        padding: .625rem 1.5625rem;
                        text-align: center;
                        display: inline-block;
                        border-radius: .1875rem;
                        line-height: 1;
                        letter-spacing: var(--ls-large);
                        text-transform: uppercase;
                        background: var(--black);
                        color: #fff;
                        margin: 0.125rem;
                        font-size: 0.75rem;
                    }
                }
            }
        }

        @media screen and (min-width: 480px) {
            .multicol {
                .col:nth-child(1) {
                    .txt {
                        span {
                            min-width: 12.5rem;
                            font-size: 0.875rem;
                        }
                    }
                }
            }
        }
        @media screen and (min-width: 960px) {
            .multicol {
                margin-bottom: -4.6875rem;
                .col:nth-child(1) {
                    display: block;
                    margin-top: -100px;
                    .txt {
                        position: absolute;
                        right: 0;
                        bottom: 20vh;
                        span {
                            &.two {
                                margin-left: 15px;
                            }
                        }
                    }
                }
            }
        }
        @media screen and (min-width: 1280px) {
            .multicol {
                .col:nth-child(1) {
                    margin-top: -150px;
                    .txt {
                        span {
                            min-width: 225px;
                            font-size: 1rem;
                        }
                    }
                }
            }
        }
        @media screen and (min-width: 1600px) {
            .multicol {
                .col:nth-child(1) {
                    margin-top: -200px;
                    .txt {
                        span {
                            font-size: 1.125rem;
                            padding: .625rem 2.5rem;
                        }
                    }
                }
            }
        }
    }

    .filter-nav {

        .flt-mbl {
            position: relative;
            border: 1px solid #D1D1D1;
            border-radius: 0.1875rem;
            margin: 1.5625rem 0;
            width: 100%;
            max-width: 21.25rem;
            background: #fff;
            box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
            .head {
                padding: 10px 10px 10px 1.5625rem;
                position: relative;
                cursor: pointer;
                .txt {
                    font-weight: 700;
                }

                .icon {
                    font-weight: 700;
                    position: absolute;
                    top: 0;
                    right: 0;
                    height: 100%;
                    width: 44px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 1.5625rem;
                    transform: rotate(90deg);
                }
                &.open {
                    .icon {
                        transform: rotate(-90deg);
                    }
                }
            }

            .body {
                display: none;
                padding: 1.25rem;
                ul {
                    margin: 0;
                    padding: 0;
                    li {
                        display: block;
                        margin: 0 0 10px 0;
                        &:last-child {
                            margin: 0;
                        }
                        a {
                            display: inline-block;
                            padding: 0 0 10px 40px;
                            position: relative;
                            font-weight: 700;
                            text-decoration: none;
                            &::before {
                                content: '';
                                width: 25px;
                                height: 25px;
                                position: absolute;
                                top: 0;
                                left: 0;
                                background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/pfotenabdruck.svg') no-repeat center/80% auto;
                                filter: grayscale(1);
                                transition: all 0.3s;
                            }
                            &.current {
                                &::before {
                                    filter: grayscale(0);
                                }
                            }
                            &:hover {
                                &::before {
                                    transform: scale(1.5);
                                }
                            }
                        }
                    }
                }
            }
            @media screen and (min-width: 960px) {
                display: none;
            }
        }


        .flt-dsk {
            display: none;
            padding: 1.5625rem 0 0 0;
            margin: 0 0 1.5625rem 0;
            li {
                display: inline-block;
                padding: 0;
                margin: 0 50px 1.25rem 0;
                a {
                    display: inline-block;
                    padding: 0 0 10px 0;
                    position: relative;
                    font-weight: 700;
                    text-decoration: none;
                    &::before {
                        content: '';
                        width: 0;
                        height: .3125rem;
                        bottom: -.3125rem;
                        left: 0;
                        position: absolute;
                        background: var(--black);
                        transition: width 0.3s;
                    }
                    &:hover {
                        &::before {
                            width: 100%;
                        }
                    }
                    &.current {
                        &::before {
                            width: 100%;
                        }
                    }
                }
            }
            @media screen and (min-width: 960px) {
                display: block;
            }
        }
    }
}

.news {
    .liste-tiere {
        position: relative;
        overflow: hidden;
        padding: 3.125rem 0;
        width: 100%;
        left: -1.5625rem;
        width: calc(100% + 3.125rem);
        .box {
            width: 100%;
            margin: 0 0 3.125rem 0;
            padding: 0 1.5625rem;
            position: relative;
            .image {
                width: 100%;
                height: 21.875rem;
                position: relative;
                padding: 1.125rem;
                box-shadow: 0.3125rem 0.3125rem 0.3125rem rgba(0,0,0,0.25);
                border-radius: 0.1875rem;
                max-width: 23.75rem;
                margin: 0 auto;

                .frame {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    border: 1.25rem solid #F2F4C3;
                    z-index: 3;
                    border-radius: 0.1875rem;
                    pointer-events: none;
                    outline: 1px solid #D1D1D1;
                }

                .slider-tiles {
                    width: 100%;
                    height: 25rem;
                    max-width: 100%;
                    max-height: 100%;
                    .swiper-slide {
                        padding: 0;
                        width: 100%;
                        height: 100%;
                        border: none;
                        border-radius: 0;
                        img {
                            object-fit: cover;
                            width: 100%;
                            height: 100%;
                            border-radius: 0.1875rem;
                            image-rendering: optimizeQuality;
                        }
                    }
                    .swiper-button-prev {
                        width: 1.5625rem;
                        height: 1.5625rem;
                        border-radius: .125rem;
                        background: rgba(255,255,255,0.5) url("/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/arrow-l.svg") center/.625rem auto no-repeat;
                        left: 0.625rem;
                        &::after {
                            content: none;
                        }
                        &:hover {
                            background-color: var(--green1);
                        }
                    }
                    .swiper-button-next {
                        width: 1.5625rem;
                        height: 1.5625rem;
                        border-radius: .125rem;
                        background:  rgba(255,255,255,0.5) url("/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/arrow-r.svg") center/.625rem auto no-repeat;
                        right: 0.625rem;
                        &::after {
                            content: none;
                        }
                        &:hover {
                            background-color: var(--green1);
                        }
                    }
                    .swiper-pagination-bullet {
                        background: rgba(0,0,0,0.5);
                        opacity: 1;
                    }
                    .swiper-pagination-bullet-active {
                        background: #fff;
                    }
                }
                &.no-image {
                    padding: 100px;
                    img {
                       object-fit: contain;
                        width: 100%;
                        height: 100%; 
                    }
                }
            }
            .cnt {
                padding: 1.25rem 1.5625rem;
                font-size: 0.875rem;
                display: flex;
                flex-direction: column;
                height: calc(100% - 21.875rem);
                h3 {
                    font-family: 'Courier Prime';
                    font-weight: 700;
                    font-size: 1.5625rem;
                    text-transform: none;
                    margin: 0 0 1.25rem 0;
                    letter-spacing: var(--ls-small);
                }
                .teaser {
                    
                    margin: 0;
                    table {
                        tr {
                            td {
                                vertical-align: top;
                                padding: 0;
                                display: block;
                                &:nth-child(1) {
                                    padding-right: 0.625rem;
                                }
                            }
                        }
                    }
                }
                .news-text-wrap {
                    margin: 1.25rem 0 0 0;
                }
                .button-group {
                    margin-top: auto;
                    padding: 1.25rem 0 0 0;
                    a {
                        display: block;
                        font-size: 1rem;
                        margin: 0;
                        &.phone {
                            
                        }
                        &.more {
                            margin: 0.625rem 0 0 0;
                        }
                        &.green {
                            &::before {
                                content: none;
                            }
                        }
                        &.red {
                            &::before {
                                content: none;
                            }
                            background: linear-gradient(to bottom, #E9945C, #CE590C);
                            color: #fff;
                        }
                    }
                }
            }

            &:nth-child(1) {
                .image {
                    transform: rotate(4deg);
                    backface-visibility: hidden;
                    .frame {
                        &::before {
                            content: '';
                            position: absolute;
                            z-index: 2;
                            width: 6.625rem;
                            height: 2.1875rem;
                            background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                            top: -0.9375rem;
                            left: -3.75rem;
                            transform: rotate(-30deg);
                        }
                    }
                }
            }

            &:nth-child(4) {
                .image {
                    transform: rotate(-2deg);
                    backface-visibility: hidden;
                    .frame {
                        &::before {
                            content: '';
                            position: absolute;
                            z-index: 2;
                            width: 6.625rem;
                            height: 2.1875rem;
                            background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                            top: -0.9375rem;
                            left: -3.75rem;
                            transform: rotate(-30deg);
                        }
                    }
                    @media screen and (min-width: 1280px) {
                        transform: rotate(4deg);
                    }
                }
            }

            &:nth-child(2), &:nth-child(5) {
                .image {
                    transform: rotate(-4deg);
                    top: -1.25rem;
                    .frame {
                        &::before {
                            content: '';
                            position: absolute;
                            z-index: 2;
                            width: 6.625rem;
                            height: 2.1875rem;
                            background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                            top: -1.25rem;
                            left: 50%;
                            margin-left: -3.125rem;
                            transform: rotate(17deg);
                        }
                        &::after {
                            content: '';
                            position: absolute;
                            z-index: 2;
                            width: 6.625rem;
                            height: 2.1875rem;
                            background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                            bottom: -2.1875rem;
                            right: -2.5rem;
                            transform: rotate(-16deg);
                        }
                    }
                }
            }
            &:nth-child(3), &:nth-child(6) {
                .image {
                    transform: rotate(3deg);
                    .frame {
                        &::before {
                            content: '';
                            position: absolute;
                            z-index: 2;
                            width: 6.625rem;
                            height: 2.1875rem;
                            background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                            top: -0.9375rem;
                            right: -3.125rem;
                            transform: rotate(30deg);
                        }
                    }
                }
            }
        }
    }

    @media screen and (min-width: 640px) {
        .liste-tiere {
            width: calc(100% + 50px);
            .box {
                width: calc(100%/2);
                margin: 0 0 50px 0;
            }
        }
    }

    @media screen and (min-width: 960px) {
        .liste-tiere {
            padding-right: 6.25rem;
            .box {
                .cnt {
                    max-width: 400px;
                    margin: 0 auto;
                    .teaser {
                        table {
                            tr {
                                td {
                                    display: table-cell;
                                }
                                td:nth-child(1) {
                                    width: 10rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    @media screen and (min-width: 1280px) {
        .liste-tiere {
            padding-right: 0;
            .box {
                width: calc(100%/3);
                .cnt {
                    padding: 1.875rem 0 1.25rem 0;
                    max-width: 100%;
                }
            }
        }
    }

    @media screen and (min-width: 1600px) {
        .liste-tiere {
            .box {
                width: calc(100%/3);
                margin: 0 0 50px 0;
                .image {
                    height: 25rem;
                    max-width: 100%;
                }
                .cnt {
                    height: calc(100% - 25rem);
                }
            }
        }
    }
}

.news {
    &.news-single {
        padding: 25px 0 0 0;
        .top {
            width: 100%;
            margin: 0 0 50px 0;
            .lft {
                width: 100%;
                max-width: 400px;
                margin: 0 auto;
                position: relative;
                padding: 20px 0 0 0;
                transform: rotate(-2deg);
                &::before {
                    content: '';
                    position: absolute;
                    z-index: 2;
                    width: 6.625rem;
                    height: 2.1875rem;
                    background: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/Klebestreifen.svg') no-repeat center/contain;
                    left: -30px;
                    top: 20px;
                    transform: rotate(-30deg);
                 }
                .slider-tiles {
                    width: 100%;
                    height: 400px;
                    max-width: 100%;
                    max-height: 100%;
                    border-radius: 0.1875rem;
                    padding: 1rem;
                    border: 1px solid #D1D1D1;
                    box-shadow: 5px 5px 5px rgba(0,0,0,0.25);
                    .frame {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        border: 20px solid #fff;
                        border-bottom-width: 60px;
                        z-index: 3;
                        border-radius: 0.1875rem;
                        pointer-events: none;
                    }
                    .swiper-slide {
                        padding: 0;
                        width: 100%;
                        height: 100%;
                        border: none;
                        border-radius: 0;
                        border-radius: 0.1875rem;
                        img {
                            object-fit: cover;
                            width: 100%;
                            height: 100%;
                        }
                    }
                    .swiper-button-prev {
                        width: 1.5625rem;
                        height: 1.5625rem;
                        border-radius: .125rem;
                        background: rgba(255,255,255,0.5) url("/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/arrow-l.svg") center/.625rem auto no-repeat;
                        left: 25px;
                        &::after {
                            content: none;
                        }
                        &:hover {
                            background-color: var(--green1);
                        }
                    }
                    .swiper-button-next {
                        width: 1.5625rem;
                        height: 1.5625rem;
                        border-radius: .125rem;
                        background:  rgba(255,255,255,0.5) url("/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/arrow-r.svg") center/.625rem auto no-repeat;
                        right: 25px;
                        &::after {
                            content: none;
                        }
                        &:hover {
                            background-color: var(--green1);
                        }
                    }
                    .swiper-pagination-bullet {
                        background: rgba(0,0,0,0.25);
                        opacity: 1;
                    }
                    .swiper-pagination-bullet-active {
                        background: var(--green1);
                    }
                }

            }
            .rght {
                width: 100%;
                padding: 50px 0 0 0;
                h1 {
                    font-size: 50px;
                }
                .teaser {
                    margin: 0 0 25px 0;
                    font-size: 0.875rem;
                    table {
                        tr {
                            td {
                                vertical-align: top;
                                padding: 0;
                                display: block;
                            }
                        }
                    }
                }
                .news-text-wrap {
                    font-size: 0.875rem;
                    margin: 0;
                }
            }
        }
        .bottom {
            width: 100%;
        }
        .news-backlink-wrap {
            text-align: right;
        }

        @media screen and (min-width: 768px) {
            .top {
                margin: 0 0 50px 0;
                .lft {
                    width: 50%;
                }
                .rght {
                    width: 50%;
                    padding: 0 0 0 25px;
                }
            }
        }

        @media screen and (min-width: 960px) {
            .top {
                margin: 0 0 50px 0;
                .lft {
                    width: 40%;
                }
                .rght {
                    width: 60%;
                    padding: 0 0 0 50px;
                    .teaser {
                    font-size: 1rem;
                    table {
                        tr {
                            td {
                                display: table-cell;
                                &:nth-child(1) {
                                    padding-right: 25px;
                                }
                            }
                        }
                    }
                }
                .news-text-wrap {
                    font-size: 1rem;
                }
            }
        }
    }

    @media screen and (min-width: 1600px) {
        .top {
                .lft {
                    max-width: 31.25rem;
                    .slider-tiles {
                        height: 31.25rem;
                    }
                }
                .rght {
                }
            }
        }
    }
}

.news {
    .slider-erfolgsgeschichten {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        position: relative;
        border: 1px solid #000;
        .swiper-slide {
            border-radius: 0;
            border: none;
            padding: 0;
            .image {
                width: calc(100%/3 - 20px);
                height: 350px;
                &.no-image {
                    padding: 40px;
                    img {
                        object-fit: contain;
                    }
                }
            }
            .cnt {
                width: 68%;
                padding: 20px 20px 20px 26px;
            }
        }
        .swiper-button-prev {
                        background: none;
                    }
                    .swiper-button-next {
                        background: none;
                    }
    }

}

.erfolgsgeschichten-teaser {
    background: #FBF0D0;
    padding: 4.6875rem 0;
    position: relative;
    width: 100%;

    h2 span {
        color: #fff;
        text-shadow: 0.125rem 0.125rem #E9945C;
    }

    h3 {
        color: #E9945C;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.9375rem 0;
    }

    .btn.red {
        background: linear-gradient(to bottom, #E9945C, #CE590C);
        color: #fff;
    }

    .multicol .col:nth-child(2) {
        display: none;
    }

    .bubble .txt {
        top: 3.75rem;
        right: 0;
        width: 12.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        span {
            min-width: auto;
        }
    }

    @media screen and (min-width: 960px) {
        .multicol .col:nth-child(2) {
            display: block;
        }
    }

    @media screen and (min-width: 1280px) {
        padding: 6.25rem 0;

        .multicol .col:nth-child(1) {
            width: calc(100% - 31.875rem);
            padding-right: 3.125rem;
        }

        .multicol .col:nth-child(2) {
            width: 31.875rem;
            padding-right: 4.6875rem;
        }

        .bubble .txt {
            width: 15.9375rem;
            right: -6.25rem;
        }
    }

    @media screen and (min-width: 1600px) {
        .bubble .txt {
            right: -6.25rem;
        }

        .multicol .col:nth-child(2) {
            padding-right: 0;
        }
    }

}

.erfolgsgeschichten_layout {

    .img-txt-header {
        background: #E0ECFA;
        margin-bottom: 1.5625rem;
        h1 span {
            color: #E0ECFA;
            text-shadow: 0.125rem 0.125rem #6D96CE;
        }
        h1 span:nth-child(2) {
            color: #6D96CE;
            text-shadow: 0.125rem 0.125rem #C4DAF5;
        }

        &.stripes .back {
            background-image: url('/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/bg-stripes-blue.svg');
        }

        .multicol {
            .col:nth-child(2) {
                display: none;
            }
        }
        @media screen and (min-width: 960px) {

            h1 span:nth-child(1) {
                margin-bottom: 1.5625rem;
            }

            h2 {
                margin: -6.25rem 0 0 0;
            }

            .multicol {
                margin-bottom: -4.6875rem;
                .col:nth-child(2) {
                    display: block;
                    margin-top: -6.25rem;
                }
            }
        }

        @media screen and (min-width: 1024px) {
            h2 {
                margin: -7.5rem 0 0 0;
            }
        }

        @media screen and (min-width: 1280px) {
            .multicol {
                .col:nth-child(1) {
                    margin-top: -3.125rem;
                }
                .col:nth-child(2) {
                    margin-top: -9.375rem;
                    .txt {
                        span {
                            min-width: 14.0625rem;
                            font-size: 1rem;
                        }
                    }
                }
            }
        }
        @media screen and (min-width: 1600px) {
            .multicol {
                .col:nth-child(2) {
                    margin-top: -12.5rem;
                    .txt {
                        span {
                            font-size: 1.125rem;
                            padding: 0.625rem 2.5rem;
                        }
                    }
                }
            }
        }

        @media screen and (min-width: 1920px) {
            h2 {
                margin: -8.75rem 0 0 0;
            }
        }
    }

    #c15 h2 span {
        color: #EEC51E;
    }
}

.vermittlung-teaser {
    background: #E0ECFA;
    padding: 4.6875rem 0;
    position: relative;
    width: 100%;
    text-align: center;

    h2 span {
        color: #6D96CE;
        text-shadow: 0.125rem 0.125rem #fff;
    }

    .multicol .col:nth-child(2) {
        display: none;
    }

    .bubble .txt {
        top: 3.75rem;
        right: 0;
        width: 12.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        span {
            min-width: auto;
        }
    }

     @media screen and (min-width: 800px) {
        .frog {
            width: 150px;
            height: 165px;
            background: url("/tiervermittlung/typo3conf/ext/tierheim_pflanzwirbach/Resources/Public/Images/frosch.webp") bottom center no-repeat;
            position: absolute;
            left: 0;
            top: 3.75rem;
            z-index: 1;
            transform: rotate(90deg);
        }
    }

    @media screen and (min-width: 960px) {
        .multicol .col:nth-child(2) {
            display: block;
        }
    }

    @media screen and (min-width: 1280px) {
        padding: 6.25rem 0;

        .multicol .col:nth-child(1) {
            width: calc(100% - 31.875rem);
            padding-right: 3.125rem;
        }

        .multicol .col:nth-child(2) {
            width: 31.875rem;
            padding-right: 4.6875rem;
        }

        .bubble .txt {
            width: 15.9375rem;
            right: -6.25rem;
        }
    }

    @media screen and (min-width: 1600px) {
        .bubble .txt {
            right: -6.25rem;
        }

        .multicol .col:nth-child(2) {
            padding-right: 0;
        }
    }

}

/*** Pagination ***/

.f3-widget-paginator {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    font-size: 1.5625rem;
    flex-wrap: wrap;
    li {
        display: inline-block;
        margin: 0 0.125rem;

        &.current {
            font-weight: 700;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        a {
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            border-radius: 0.1875rem;
            &:hover {
                background: #ECF6C2;
            }
        }

        &.previous, &.next {
            font-size: 1.5625rem;
        }
    }
}
