/**
 * Theme Name:     Sg Doelzschen
 * Author:         kinderDerZeit
 * Template:       hello-biz
 * Text Domain:	   sg-doelzschen
 * Description:    Child Theme abgeleitet vom Hello Biz Theme
 */


.custom-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.big-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.big-item-link {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.big-item-link:hover {
    color: #fff;
}
.big-item-link h3 {
    color: #fff;
}
.big-item-overlay {
    width: 100%;
    padding: 100px 24px 24px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,1));
    border-radius: 12px;
    z-index: 2;
    position: relative;
}
.big-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease; /* smooth hover animation */
    z-index: 1;
}
.big-item:hover .big-item-bg {
    transform: scale(1.08);
}

.big-item-meta .date {
    font-size: 14px;
    color: #fff;
    background: #145589;
    font-weight: bold;
    padding: 4px 20px 4px 8px;
    clip-path: polygon(0% 0%, 100% 1%, 90% 100%, 0% 100%);
}

.big-item-meta .title a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}
@media (min-width: 512px) {
    .small-item {
        grid-template-columns: 210px 1fr;
    }
}
.small-item:last-child {
    margin-bottom: 0;
}
.small-left {
    height: 100%;
}

.small-left a {
    display: block;
    height: 100%;
}

.small-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.small-right .date {
    font-size: 13px;
    background: #145589;
    font-weight: bold;
    padding: 4px 20px 4px 8px;
    color: white;
    clip-path: polygon(0% 0%, 100% 1%, 90% 100%, 0% 100%);
}

.small-right .title a {
    font-size: 18px;
    text-decoration: none;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.small-right .title a:hover {
    color: #145589;
}
.small-right .excerpt {
    font-size: 14px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .custom-news-grid {
        grid-template-columns: 1fr;
    }
    .big-item {
        aspect-ratio: 4 / 3;
    }
}

.beitrags-expert {
    font-size: 14px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.beitrags-date-item .elementor-post-info__item--type-date {
    font-size: 13px;
    background: #145589;
    font-weight: bold;
    padding: 4px 20px 4px 8px;
    color: white;
    clip-path: polygon(0% 0%, 100% 1%, 90% 100%, 0% 100%);
}

.item-style-blue-eck .elementor-heading-title {
    font-size: 13px;
    background: #145589;
    font-weight: bold;
    padding: 4px 16px 4px 16px;
    color: white;
    display: inline-block;
    clip-path: polygon(
            0 0,
            100% 0,
            calc(100% - 10px) 100%,
            0 100%
    );
}
.beitrags-image {
    aspect-ratio: 1 / 1 ;
}
.beitrags-image a{
    width: 100%;
    height: 100%;
}
.beitrags-image img {
    height: 100% !important;
}
.beitrags-titel .elementor-heading-title a{
    height: 52px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.elementor-item.has-submenu {
    cursor: pointer;
}
