.headline-container {
    margin-top: 8rem;
    display: flex;
    width: 100%;
    justify-content: flex-start;
}
.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    column-gap: 1.4rem;
    row-gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.posts-list li {
    height: 100%;
}
.posts-list a {
    background: var(--color-neutral);
    display: block;
    height: 100%;
    text-decoration: none;
    border: var(--border) solid var(--color);
}
.posts-list .green a {
    background: var(--color-green);
}
.posts-list .red a {
    background: var(--color-red);
}
.posts-list .lilac a {
    background: var(--color-lilac);
}

.textbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    padding: 1rem;
}
.textbox .button {
    margin-top: 3rem;
    transition: 0.2s ease-out all;
}
.textbox > span:last-child {
    margin-top: auto;
}
a:focus .textbox .button {
    color: var(--color-background);
    background: var(--color);
}
h2 {
    margin-bottom: 1rem;
}
.imagebox {
    display: block;
    width: 100%;
    height: 200px;
}
.textbox {
    height: calc(100% - 200px);
}
.posts-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    line-height: 0;
}
@media screen and (min-width: 360px) { 
    .imagebox {
        height: 250px;
    }
    .textbox {
        height: calc(100% - 250px);
    }
}
@media screen and (min-width: 700px) { 
    .imagebox {
        height: 290px;
    }
    .textbox {
        height: calc(100% - 290px);
    }
}
@media screen and (min-width: 900px) { 
    .headline-container {
        margin-top: 10rem;
    }
    .posts-list{
        grid-template-columns: 1fr 1fr;
    }
    .textbox {
        padding: 1rem;
    }
    .textbox {
        padding: 1.4rem;
    }
    .posts-list a:hover {
        box-shadow: 3px 3px 0px var(--color);
    }
    .posts-list a:hover .button {
        color: var(--color-background);
        background: var(--color);
    }
    .imagebox {
        height: 310px;
    }
    .textbox {
        height: calc(100% - 310px);
    }
}
@media screen and (min-width: 1600px) { 
    .headline-container {
        margin-top: 12rem;
    }
    .posts-list{
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 1920px) { 
    .imagebox {
        height: 340px;
    }
    .textbox {
        height: calc(100% - 340px);
    }

}

.pagination {
    display: flex;
    justify-content: space-between;
    margin: 3rem auto 0;
    max-width: 300px;
}
.pagination span {
    opacity: 0.5;
}
.pagination svg {
    width: 64px;
    height: auto;
}
.pagination > *:first-child{
    transform: rotate(180deg);
}
.pagination a:hover {
    transform: translateX(5px);
}
.pagination a:first-child:hover {
    transform: translateX(-5px) rotate(180deg);
}

.headline-container {
    display: flex;
    flex-direction: column;
}
.filter {
    display: block;
    align-self: flex-start;
    margin-top: 2rem;
    box-sizing: border-box;
}
.filter a {
    display: inline-block;
    padding: 0.4rem 0.4rem 0.4rem;
    border: var(--border) solid var(--color);
    background: var(--color-background);
    box-shadow: none;
    outline: none;
    border-radius: 0;
    text-align: center;
    margin: 0;
    text-decoration: none;
}
.filter a:hover,
.filter a:focus {
    border-color: var(--color);
    background: var(--color);
    color: var(--color-background);
}
.filter a:nth-child(2) {
   transform: translateX(calc(var(--border) * -1))
}
.filter a:nth-child(3) {
    transform: translateX(calc(var(--border) * -2))
}
.filter a.active {
    border-color: var(--color);
    background: var(--color);
    color: var(--color-background);
}
@media screen and (min-width: 700px) { 
    .filter a {
        padding: 0.4rem 1rem;
        text-transform: uppercase !important;
    }
    .headline-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .filter {
        margin-top: 0;
        align-self: center;
    }
    .pagination svg {
        width: 80px;
    }
}

@media screen and (min-width: 900px) { 
    .filter a {
        padding: 0.8rem 1rem 0.8rem;
    }
}
@media screen and (min-width: 1200px) { 
    .filter a {
        padding: 1rem 1rem 1rem;
    }
}


.col-2 .button {
    text-decoration: none;
    margin-top: 3rem;
}
.col-2 .button:hover {
    background-color: var(--color);
    color: var(--color-background)
}
.col-2 {
    border-top: var(--border) solid var(--color);
    padding-top: 3rem;
}
@media screen and (min-width: 1024px) {
    .col-2 {
        padding-top: 4rem;
    } 
}
@media screen and (min-width: 1200px) {
    .col-2 {
        padding-top: 5rem;
    } 
}

