/* Kooaly News: Archiv + Detail */

.kooaly-news {
    --kooaly-news-max: 1200px;
    --kooaly-news-gap: 28px;
}

.kooaly-news__container {
    max-width: var(--kooaly-news-max);
    margin: 0 auto;
    padding: 18px 16px 34px;
}

.kooaly-news__breadcrumbs {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.kooaly-news__breadcrumbs a {
    color: #111;
    text-decoration: none;
}

.kooaly-news__breadcrumbs a:hover {
    text-decoration: underline;
}

.kooaly-news__breadcrumbs .separator {
    margin: 0 6px;
    color: #9ca3af;
}

.kooaly-news__header {
    margin: 0 0 26px;
}

.kooaly-news__title {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.15;
    color: #111;
}

.kooaly-news__intro {
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}

.kooaly-news__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--kooaly-news-gap);
    align-items: stretch;
}

.kooaly-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.kooaly-news-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

.kooaly-news-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.kooaly-news-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.kooaly-news-card__meta,
.kooaly-news-single__meta {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.kooaly-news-card__meta .dot,
.kooaly-news-single__meta .dot {
    margin: 0 7px;
    color: #9ca3af;
}

.kooaly-news-card__title {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.2;
}

.kooaly-news-card__title a {
    color: #111;
    text-decoration: none;
}

.kooaly-news-card__title a:hover {
    text-decoration: underline;
}

.kooaly-news-card__excerpt {
    margin: 0 0 18px;
    color: #374151;
    font-size: 17px;
    line-height: 1.6;
}

.kooaly-news-card__link,
.kooaly-news-related__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 4px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.kooaly-news-card__link {
    margin-top: auto;
    align-self: flex-end;
}

.kooaly-news-card__link:hover,
.kooaly-news-related__btn:hover {
    background: #1f2937;
    color: #fff;
}

.kooaly-news__pagination {
    margin-top: 28px;
}

.kooaly-news__pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111;
    text-decoration: none;
}

.kooaly-news__pagination .page-numbers.current {
    background: #111;
    border-color: #111;
    color: #fff;
}

.kooaly-news-single__title {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.12;
    color: #111;
}

.kooaly-news-single__figure {
    margin: 16px 0 24px;
}

.kooaly-news-single__figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.kooaly-news-single__content {
    color: #111827;
    font-size: 18px;
    line-height: 1.75;
}

.kooaly-news-single__content ol {
    padding-inline-start: 1.75em;
    margin-block-end: 1.35em;
}

.kooaly-news-single__content h2,
.kooaly-news-single__content h3,
.kooaly-news-single__content h4 {
    color: #111;
    margin-top: 1.6em;
}

.kooaly-news-single__content a {
    color: var(--rehub-main-color, #de1414);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
    text-decoration-color: currentColor;
    transition: color 0.18s ease, text-decoration-thickness 0.18s ease;
}

.kooaly-news-single__content a:hover,
.kooaly-news-single__content a:focus {
    color: #b91c1c;
    text-decoration-thickness: 2px;
}

.kooaly-news-related {
    margin-top: 35px;
    border-top: 1px solid #e5e7eb;
    padding-top: 45px;
}

.kooaly-news-related__title {
    margin: 0 0 25px;
    color: #111;
    font-size: clamp(24px, 3vw, 30px);
}

.kooaly-news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.kooaly-news-related__card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kooaly-news-related__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    max-height: 220px;
    margin: 6px 0 8px;
    overflow: hidden;
}

.kooaly-news-related__thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 220px !important;
    flex: 0 0 auto;
    display: block;
    border-radius: 0;
    margin: 0 auto;
    object-fit: contain;
}

.kooaly-news-related__card-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.kooaly-news-related__card-title a {
    color: #111;
    text-decoration: none;
}

.kooaly-news-related__card-title a:hover {
    text-decoration: underline;
}

.kooaly-news-related__price {
    margin: 4px 0 8px;
    color: #111;
    font-weight: 700;
    text-align: center;
}

.kooaly-news-related__price del {
    color: #6b7280;
    font-weight: 400;
    margin-right: 6px;
}

.kooaly-news-related__price .kooaly-price__star {
    font-size: 0.75em;
    line-height: 1;
    position: relative;
    top: -0.25em;
    margin-left: 2px;
    vertical-align: baseline;
}

.kooaly-news-related__price .kooaly-price__starlink {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
    line-height: 1;
}

.kooaly-news-related__actions {
    margin: 0 0 8px;
}

.kooaly-news-single__back {
    margin: 26px 0 0;
}

.kooaly-news-single__back a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.kooaly-news-single__back a:hover {
    text-decoration: underline;
}

.kooaly-news__empty {
    margin: 0;
    color: #4b5563;
}


.kooaly-news-related__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    border: 0;
}

.kooaly-news-related__btn--dark {
    background: #111 !important;
    color: #fff !important;
}

.kooaly-news-related__btn--dark:hover {
    background: #151515 !important;
    color: #fff !important;
}

.kooaly-news-related__btn--amazon {
    background: var(--kooaly-amazon-btn-bg, #ffb200) !important;
    color: var(--kooaly-amazon-btn-text, #111) !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.kooaly-news-related__btn--amazon:hover {
    background: var(--kooaly-amazon-btn-bg-hover, #ffb200) !important;
    color: var(--kooaly-amazon-btn-text, #111) !important;
    opacity: 0.96;
}

.kooaly-news-related__btn--dark:visited {
    color: #fff !important;
}

.kooaly-news-related__btn--amazon:visited {
    color: var(--kooaly-amazon-btn-text, #111) !important;
}

@media (max-width: 980px) {
    .kooaly-news__list {
        grid-template-columns: 1fr;
    }

    .kooaly-news-card {
        min-height: 0;
    }

    .kooaly-news-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .kooaly-news__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .kooaly-news-related__thumb {
        min-height: 180px;
        max-height: 180px;
    }

    .kooaly-news-related__thumb img {
        max-height: 180px !important;
    }

    .kooaly-news-related__grid {
        grid-template-columns: 1fr;
    }
}
