animal-grid {
    display: flex;
    flex-direction: column;
    background: #FFF;
    max-width: 800px;
    padding-left: calc((100% - 800px) / 2);
    padding-right: calc((100% - 800px) / 2);
    padding-top: 88px;
    padding-bottom: 82px;
}

animal-grid>h2 {
    color: #702A2A;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.64px;
    margin-top: 0;
    margin-bottom: 32px;
}

animal-grid>p {
    color: #6E4A4A;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    margin-top: 0;
    margin-bottom: 48px;
}

animal-grid>a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 64px;
    border: 1px solid #702A2A;
    padding: 16px;
    color: #702A2A;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
    text-decoration: none;
}

animal-grid>a:hover {
    background-color: #702A2A;
    color: #FAFAFA;
}

animal-grid>div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

animal-grid .dog {
    width: calc((100% - 80px) / 3);
    text-decoration: none;
}

animal-grid .dog .image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: #FAFAFA;
    margin-bottom: 16px;
}

animal-grid .dog .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

animal-grid .dog .image-container img[error] {
    transform: translateY(17px);
}

animal-grid .dog .image-container button {
    display: none;
    padding: 8px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    position: absolute;
    right: 8px;
    bottom: 8px;
    border: unset;
    outline: unset;
}

animal-grid .dog .image-container button[status="care"],
animal-grid .dog .image-container button[status="search"] {
    display: inline-flex;
    background: #D47772;
}

animal-grid .dog .image-container button[status="adopted"] {
    display: inline-flex;
    background: #367e4c;
}

animal-grid .dog .image-container button::after {
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 124%;
}

animal-grid .dog .image-container button[status="care"]::after {
    content: "Auf Pflege";
}

animal-grid .dog .image-container button[status="search"]::after {
    content: "Suchend";
}

animal-grid .dog .image-container button[status="adopted"]::after {
    content: "Vermittelt";
}

animal-grid .dog h3 {
    color: #702A2A;
    font-size: 20px;
    font-weight: 700;
    line-height: 115%;
    margin-top: 0;
    margin-bottom: 8px;
}

animal-grid .dog p {
    color: #6E4A4A;
    font-size: 14px;
    line-height: 124%;
    margin-top: 0;
    margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
    animal-grid {
        width: 664px;
        padding-left: calc((100% - 664px) / 2);
        padding-right: calc((100% - 664px) / 2);
        padding-bottom: 40px;
    }

    animal-grid>h3 {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 0.56px;
    }

    animal-grid>p {
        font-size: 20px;
        line-height: 32px;
        letter-spacing: 0.2px;
    }

    animal-grid>a {
        font-size: 24px;
        line-height: 32px;
    }

    animal-grid .dog {
        width: calc((100% - 80px) / 3);
    }
}

@media screen and (max-width: 800px) {
    animal-grid {
        width: 500px;
        padding-left: calc((100% - 500px) / 2);
        padding-right: calc((100% - 500px) / 2);
    }

    animal-grid .dog {
        width: calc((100% - 48px) / 2);
    }

    animal-grid .dog:nth-child(n + 9) {
        display: none;
    }
}

@media screen and (max-width: 720px) {
    animal-grid {
        width: calc(100% - 32px);
        padding: 24px 16px;
    }
}

@media screen and (max-width: 375px) {
    animal-grid {
        width: calc(100% - 32px);
        padding: 32px 16px;
    }

    animal-grid>h3 {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.4px;
        margin-bottom: 16px;
    }

    animal-grid>p {
        font-size: 16px;
        line-height: 32px;
        letter-spacing: 0.16px;
        margin-bottom: 24px;
    }

    animal-grid>a {
        font-size: 16px;
        line-height: 32px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 40px;
    }

    animal-grid .dog {
        width: 100%;
    }
}