/* News Sections */
.news-grid-section {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
}

.news-grid-section .views-exposed-form {
    display: none;
}

.news-grid-section.news-grid-section-2col > .news-grid-section-col {
    box-sizing: border-box;
    width: 50%;
    box-sizing: border-box;
}

.news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 > .news-grid-section-col:first-child {
    width: 33.3333%;
}

.news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 > .news-grid-section-col:last-child {
    width: 66.6666%;
}

.news-grid-section.news-grid-section-2col.news-grid-section-layout-2-1 > .news-grid-section-col:first-child {
    width: 66.6666%;
}

.news-grid-section.news-grid-section-2col.news-grid-section-layout-2-1 > .news-grid-section-col:last-child {
    width: 33.3333%;
}

.news-grid-section > .news-grid-section-col-ads,
.news-grid-section.news-grid-section-ads-fullwidth {
    background: rgba(220,220,220,0.4);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    position: relative;
}

.news-grid-section.news-grid-section-ads-fullwidth {
    flex-direction: row;
    width: calc(100% + 100px);
    margin-left: -50px;
    padding: 30px;
}

.sticky-box {
  position: sticky;
  top: 100px;
}

.news-grid-section-col-ads .sticky-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.label-ads {
    font-size: 12px;
    text-transform: uppercase;
    position: absolute;
    top: -25px;
    right: 0;
    opacity: 0.6;
    letter-spacing: 0.2px;
}


.news-block-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-block-3x2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.news-block-4x1,
.news-block-4x2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 .label-ads {
    right: initial;
    left: 0;
}


/* Default Grid - TEMP */

.views-element-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
    gap: 40px; /* Abstand zwischen den Spalten und Zeilen */
}

.news-grid .contextual {
    position: absolute;
}

.news-grid .views-row,
.news-grid-section .views-row {
    background: white;
    box-sizing: border-box;
    padding: var(--padding-inner);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    hyphens: auto;
    word-wrap: break-word;
    transition: 0.5s;
}

.news-grid .views-row:hover,
.news-grid-section .views-row:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.news-grid .views-row .views-field-field-news-image,
.news-grid-section .views-row .views-field-field-news-image {
    width: calc(100% + (2 * var(--padding-inner)));
    margin: calc(-1 * var(--padding-inner));
    margin-bottom: var(--padding-inner);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 35/24;
    box-sizing: border-box;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.4);  */
}

.news-grid .views-row .views-field-field-news-image img,
.news-grid-section .views-row .views-field-field-news-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 35/24;
    object-fit: cover;
    transition: 0.5s;
}

.news-grid .views-row:hover .views-field-field-news-image img,
.news-grid-section .views-row:hover .views-field-field-news-image img {
    transform: scale(1.05);
}

.news-grid .views-row .views-field-created,
.news-grid-section .views-row .views-field-created {
    margin-bottom: 10px;
}

.news-grid .views-row .views-field-nothing .meta-wrap,
.news-grid-section .views-row .views-field-nothing .meta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: calc(2 * var(--padding-inner));
    font-size: 14px;
    margin-top: 15px;
}

.news-grid .views-row .views-field-nothing .meta-wrap .meta-wrap-created,
.news-grid-section .views-row .views-field-nothing .meta-wrap .meta-wrap-created {
    color: #595959;
}

.news-grid .views-row .views-field-nothing .meta-wrap .meta-wrap-product,
.news-grid .views-row .views-field-nothing .meta-wrap .meta-wrap-region,
.news-grid-section .views-row .views-field-nothing .meta-wrap .meta-wrap-product,
.news-grid-section .views-row .views-field-nothing .meta-wrap .meta-wrap-region {
    /* color: var(--color-primary); */
    /* font-weight: 600; */
    /* text-transform: uppercase; */
    color: #595959;
}

.news-grid .views-row .views-field-nothing .meta-wrap ul,
.news-grid-section .views-row .views-field-nothing .meta-wrap ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 5px;
}

.news-grid .views-row .views-field-nothing .meta-wrap ul li,
.news-grid-section .views-row .views-field-nothing .meta-wrap ul li {
    word-break: none;
    padding: 3px 10px;
    border: 1px solid #595959;
    border-radius: 1000px;
}
    
.news-grid .views-row .views-field-view-node,
.news-grid-section .views-row .views-field-view-node {
    position: absolute;
    bottom: var(--padding-inner);
    right: var(--padding-inner);
    width: 50px;
    height: 26px;
}

.news-grid .views-row .views-field-view-node a,
.news-grid-section .views-row .views-field-view-node a {
    display: block;
    width: 100%;
    height: 100%;
    background: url('../images/arrow-right-blue.svg') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;;
}




/* News Detail Page */

.node--type-news {
    /* padding: 100px 0; */
    padding: 30px 0 100px 0;
}

.news-meta {
    margin: 0 auto var(--padding-inner) auto;
    text-align: center;
    max-width: 920px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.news-meta .node-share {
    display: flex;
    gap: 10px;
}

.news-meta .node-share a {
    width: 25px;
    height: 25px;
    overflow: hidden;
    text-indent: -9999px;
}

.news-meta .node-share a.node-share-link {
    background: url('../images/icon-social-media-link.svg') no-repeat center center;
    background-size: 25px auto;
}
.news-meta .node-share a.node-share-linkedin {
    background: url('../images/icon-social-media-linkedin.svg') no-repeat center center;
    background-size: 25px auto;
}
.news-meta .node-share a.node-share-facebook {
    background: url('../images/icon-social-media-facebook.svg') no-repeat center center;
    background-size: 25px auto;
}
.news-meta .node-share a.node-share-x {
    background: url('../images/icon-social-media-x.svg') no-repeat center center;
    background-size: 23px auto;
}

.node--type-news h1 {
    max-width: 920px;
    text-align: center;
    margin: 0 auto var(--padding-inner) auto;
}
.node--type-news .news-intro {
    max-width: 920px;
    text-align: center;
    margin: 0 auto calc(3 * var(--padding-inner)) auto;
    font-weight: 600;
    font-size: 20px;
}

.node--type-news .news-image {
    background: white;
    max-width: 920px;
    text-align: center;
    margin: 0 auto calc(2 * var(--padding-inner)) auto;
    position: relative;
    border-radius: var(--border-radius);
}

.node--type-news .news-image img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    displaY: block;
    z-index: 1;
}

.node--type-news .news-image .swiper {
    overflow: visible !important;
    margin-bottom: 100px;
}

.node--type-news .news-image .swiper-pagination {
    bottom: calc(3 * var(--padding-inner));
    bottom: -40px;
}

.node--type-news .news-image .swiper-pagination .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    border-radius: 100px;
    opacity: 0.3;
    background: var(--color-primary);
    transition: 0.15s;
}

.node--type-news .news-image .swiper-pagination .swiper-pagination-bullet-active {
    width: 45px;
    background: var(--color-primary);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    width: 45px !important;
    height: 45px !important;
    background: white;
    border-radius: 100px;
}

.swiper-button-prev {
    background: white url('../images/swiper-arrow-left-blue.svg') no-repeat center center;
    background-size: 24px auto;
}

.swiper-button-next {
    background: white url('../images/swiper-arrow-right-blue.svg') no-repeat center center;
    background-size: 24px auto;
}



.swiper-button-next {
    right: 20px !important;
    width: 85px !important;
    height: 85px !important;
    background: white url('../images/arrow-right-blue.svg') no-repeat center center;
    background-size: 44px auto;
}

.swiper-button-prev {
    left: 20px !important;
    width: 85px !important;
    height: 85px !important;
    background: white url('../images/arrow-left-blue.svg') no-repeat center center;
    background-size: 44px auto;
}

.swiper-button-prev {
    left: -22.5px !important;
}

.swiper-button-next {
    right: -22.5px !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: initial;
    display: none;
}

.swiper-button-disabled {
    display: none !important;
}

.node--type-news .contains-caption {
    margin-bottom: 70px;
}

.node--type-news .news-image .source {
    position: absolute;
    bottom: 15px;
    right: -5px;
    transform: rotate(90deg);
    transform-origin: right bottom;
    font-size: 14px;
    font-weight: 400;
    color: #555555;
}
.node--type-news .news-image .caption {
    width: 100%;
    text-align: center;
    font-size: 16px;
    position: relative;
    bottom: 0;
    left: 0;
    font-weight: 600;
    background: white;
    border-radius: var(--border-radius);
    padding: 10px 10px 10px 10px;
    z-index: 0;
    box-sizing: border-box;
}

.node--type-news .news-body {
    font-size: 18px;
    max-width: 920px;
    margin: 0 auto calc(1 * var(--padding-inner)) auto;
}

.node--type-news .news-paragraphs {
    font-size: 18px;
    max-width: 920px;
    margin: 0 auto calc(2 * var(--padding-inner)) auto;
}

.node--type-news .news-paragraphs > .paragraph {
    width: 100%;
    max-width: 100%;
}

.node--type-news .news-grid-section.news-grid-section-ads-fullwidth {
    max-width: 1300px;
    margin: 0 auto 60px auto;
}

.node--type-news .news-body-banner-outerwrap {
    display: flex;
    max-width: 920px;
    margin: 0 auto;
}

.node--type-news .news-grid-section-col {
    float: right;
    margin: 0 0 0px 80px;
}

.node--type-news .news-body-abbinder {
    display: flex;
    justify-content: center;
}

@media (max-width: 880px) {
    .news-grid-section {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .news-grid-section.news-grid-section-2col > .news-grid-section-col,
    .news-grid-section.news-grid-section-ads-fullwidth,
    .news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 > .news-grid-section-col:first-child,
    .news-grid-section.news-grid-section-2col.news-grid-section-layout-2-1 > .news-grid-section-col:last-child {
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-right: -10px;
        padding: 10px;
    }

    .news-grid-section.news-grid-section-2col > .news-grid-section-col, .news-grid-section.news-grid-section-ads-fullwidth, .news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 > .news-grid-section-col:first-child {
        order: 2;
    }

    .news-grid-section.news-grid-section-2col.news-grid-section-layout-1-2 > .news-grid-section-col:last-child,
    .news-grid-section.news-grid-section-2col.news-grid-section-layout-2-1 > .news-grid-section-col:first-child {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .news-block-2x2 {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0px;
    }

    .news-block-3x2 {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0px;
    }

    .news-block-4x1 {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0px;
    }

    .news-block-4x2 {
        gap: 15px;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 0px;
    }

    .news-block-4x2 h3 {
        font-size: 16px;
    }

    .news-block-4x2 .views-field-body,
    .news-block-4x2 .views-field-meta,
    .news-block-4x2 .meta-wrap {
        display: none;
    }
    
    .news-grid .views-row .views-field-view-node, .news-grid-section .views-row .views-field-view-node {
        width: 40px;
        height: 40px;
        bottom: 10px;
    }

    .label-ads {
        right: 10px;
        left: inherit;
        font-size: 12px;
    }

    /* News Detail Page */

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-meta time {
        width: 100%;
    }

    .news-meta .node-share {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .node--type-news .news-intro {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .node--type-news .news-grid-section.news-grid-section-ads-fullwidth {
        margin-bottom: 20px;
        margin-left: -10px;
        margin-right: -10px;
    }

    .node--type-news .news-image {
        width: calc(100% - 20px);
        margin: 0 0 30px 0;
    }

    .node--type-news .news-image .swiper {
        margin-bottom: 60px;
    }

    .node--type-news .news-body-banner-outerwrap {
        flex-direction: column;
    }

    .node--type-news .news-grid-section-col {
        margin: 0 0 30px 0;
        background: rgba(220,220,220,0.4);
        padding: 10px;
        box-sizing: border-box;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 45px !important;
        height: 45px !important;
        background-size: 27px auto;
    }
}