.heli-newsfeed-auto-mount {
    display: contents;
}

.heli-newsfeed {
    --hn-bg: #ffffff;
    --hn-border: #f2b05b;
    --hn-text: #102e67;
    --hn-accent: #ff7900;
    --hn-radius: 14px;
    width: 100%;
    min-width: 0;
    margin: 10px 0 14px;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--hn-text);
    background: var(--hn-bg);
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius);
    box-shadow: 0 5px 18px rgba(16, 46, 103, 0.06), inset 0 1px 0 rgba(255,255,255,.78);
    font-family: inherit;
    isolation: isolate;
}

.heli-newsfeed *,
.heli-newsfeed *::before,
.heli-newsfeed *::after {
    box-sizing: border-box;
}

.heli-newsfeed__header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 18px 8px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--hn-border) 46%, #dce5f1 54%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--hn-accent) 5%, #ffffff), #ffffff 42%);
}

.heli-newsfeed__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.heli-newsfeed__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #ff8b00, #ff6f00);
    box-shadow: 0 5px 14px rgba(255, 121, 0, .18);
}

.heli-newsfeed__icon svg {
    width: 28px;
    height: 28px;
}

.heli-newsfeed__heading-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heli-newsfeed__title-main {
    display: block;
    margin: 0;
    color: var(--hn-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.heli-newsfeed__subtitle {
    display: block;
    margin-top: 3px;
    color: #5d7398;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.heli-newsfeed__sources {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.heli-newsfeed__source-chip {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid #e5ebf2;
    background: #fff;
    color: var(--hn-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
    transition: opacity .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.heli-newsfeed__source-chip:hover,
.heli-newsfeed__source-chip:focus-visible {
    border-color: color-mix(in srgb, var(--hn-accent) 35%, #dce5ef);
    box-shadow: 0 2px 8px rgba(16, 46, 103, .07);
    outline: none;
}

.heli-newsfeed__source-chip.is-off,
.heli-newsfeed__source-chip[aria-pressed="false"] {
    opacity: .42;
    background: #f6f8fb;
    border-color: #e6eaf0;
}

.heli-newsfeed__source-chip.is-off .heli-newsfeed__source-dot,
.heli-newsfeed__source-chip[aria-pressed="false"] .heli-newsfeed__source-dot {
    filter: grayscale(1);
}

.heli-newsfeed__source-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 50%;
}

.heli-newsfeed__source-chip--orf .heli-newsfeed__source-dot {
    background: #df1930;
}

.heli-newsfeed__source-chip--orf-ooe .heli-newsfeed__source-dot {
    background: #b90f25;
}

.heli-newsfeed__source-chip--welt .heli-newsfeed__source-dot {
    background: #123d6b;
}

.heli-newsfeed__source-chip--tips-regional .heli-newsfeed__source-dot {
    background: #d71920;
}

.heli-newsfeed__refresh {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 0 2px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--hn-accent) 42%, #e1e8f1);
    border-radius: 999px;
    color: var(--hn-accent);
    background: color-mix(in srgb, var(--hn-accent) 4%, #ffffff);
    cursor: pointer;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.heli-newsfeed__refresh:hover,
.heli-newsfeed__refresh:focus-visible {
    background: color-mix(in srgb, var(--hn-accent) 8%, #ffffff);
    border-color: color-mix(in srgb, var(--hn-accent) 62%, #dbe4ef);
    outline: none;
}

.heli-newsfeed__refresh:disabled {
    cursor: wait;
    opacity: .64;
}

.heli-newsfeed__refresh-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.heli-newsfeed__refresh.is-refreshing .heli-newsfeed__refresh-icon {
    animation: heli-newsfeed-refresh-spin .8s linear infinite;
}

@keyframes heli-newsfeed-refresh-spin {
    to { transform: rotate(360deg); }
}

.heli-newsfeed__body {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 104px;
    background: #fff;
}

.heli-newsfeed__viewport {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    outline: none;
}

.heli-newsfeed__viewport::-webkit-scrollbar {
    display: none;
}

.heli-newsfeed__viewport:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hn-accent) 36%, transparent);
}

.heli-newsfeed__track {
    width: 100%;
    min-height: 104px;
    display: flex;
    align-items: stretch;
}

.heli-newsfeed__item {
    position: relative;
    flex: 0 0 calc(100% / 6);
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px 11px 18px;
    scroll-snap-align: start;
    color: var(--hn-text) !important;
    text-decoration: none !important;
    background: #fff;
    transition: background .15s ease, transform .15s ease;
}

.heli-newsfeed__item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #dce4ee;
}

.heli-newsfeed__item[hidden] {
    display: none !important;
}

.heli-newsfeed__item:hover,
.heli-newsfeed__item:focus-visible {
    background: #fbfcfe;
    color: var(--hn-text) !important;
}

.heli-newsfeed__item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--hn-accent) 50%, transparent);
    outline-offset: -2px;
}

.heli-newsfeed__item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.heli-newsfeed__item-source {
    min-width: 48px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
}

.heli-newsfeed__item-source--orf {
    color: #d71934;
    background: #fde8ec;
}

.heli-newsfeed__item-source--orf-ooe {
    min-width: 58px;
    color: #ad1025;
    background: #fbe8ec;
}

.heli-newsfeed__item-source--welt {
    color: #113f74;
    background: #e8f2ff;
}

.heli-newsfeed__item-source--tips-regional {
    min-width: 64px;
    color: #a20f16;
    background: #fff0f1;
}

.heli-newsfeed__time {
    overflow: hidden;
    color: #6f83a3;
    font-size: 9.5px;
    font-weight: 560;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.heli-newsfeed__item-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hn-text);
    font-size: 11.5px;
    font-weight: 590;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.heli-newsfeed__empty {
    min-height: 104px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #6d7f9d;
    font-size: 13px;
}

.heli-newsfeed__nav {
    position: relative;
    z-index: 3;
    flex: 0 0 62px;
    width: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.74), #fff 42%);
    cursor: pointer;
}

.heli-newsfeed__nav span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--hn-border) 65%, #e9edf3 35%);
    border-radius: 50%;
    color: var(--hn-accent);
    background: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.heli-newsfeed__nav:hover span,
.heli-newsfeed__nav:focus-visible span {
    background: color-mix(in srgb, var(--hn-accent) 6%, #fff);
    border-color: var(--hn-border);
    transform: translateX(1px);
}

.heli-newsfeed__nav:focus-visible {
    outline: none;
}

.heli-newsfeed__nav--prev {
    order: -1;
    background: linear-gradient(90deg, #fff 58%, rgba(255,255,255,.76));
}

.heli-newsfeed__nav--prev span {
    transform: translateX(-1px);
}

.heli-newsfeed__nav--prev:hover span,
.heli-newsfeed__nav--prev:focus-visible span {
    transform: translateX(-2px);
}

.heli-newsfeed__nav.is-disabled {
    visibility: hidden;
    pointer-events: none;
}


/* 2.1.0: In "Mein Bereich" wird die Karte innerhalb der linken Inhalts-Spalte
   unmittelbar vor "Mails & Kommunikation" eingesetzt. */
.heli-newsfeed[data-hn-placement="before-mails"] {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 14px;
}



/* Vorschau-Popup fuer RSS-Teaser. Wird per JavaScript an <body> angehaengt,
   damit es nicht vom horizontalen News-Viewport abgeschnitten wird. */
.heli-newsfeed-preview {
    position: fixed;
    z-index: 100000;
    width: max-content;
    min-width: 280px;
    max-width: 440px;
    padding: 12px 14px 13px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px) scale(.985);
    color: #17345f;
    background: rgba(255,255,255,.985);
    border: 1px solid #d7e0eb;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(29,53,87,.20);
    transition: opacity .12s ease, transform .12s ease;
    font-family: inherit;
}

.heli-newsfeed-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.heli-newsfeed-preview__meta {
    margin-bottom: 6px;
    color: #6f83a3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.heli-newsfeed-preview__text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.42;
}

.heli-newsfeed-preview::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: inherit;
    border-right: 1px solid #d7e0eb;
    border-bottom: 1px solid #d7e0eb;
    transform: rotate(45deg);
}

.heli-newsfeed-preview[data-placement="above"]::after {
    bottom: -6px;
}

.heli-newsfeed-preview[data-placement="below"]::after {
    top: -6px;
    transform: rotate(225deg);
}

@media (max-width: 1500px) {
    .heli-newsfeed__item {
        flex-basis: 25%;
    }
}

@media (max-width: 1050px) {
    .heli-newsfeed__item {
        flex-basis: calc(100% / 3);
    }

    .heli-newsfeed__header {
        padding-right: 14px;
    }
}

@media (max-width: 760px) {
    .heli-newsfeed {
        margin-top: 8px;
        margin-bottom: 12px;
        border-radius: min(var(--hn-radius), 13px);
    }

    .heli-newsfeed__header {
        min-height: 62px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding: 7px 10px 7px 10px;
    }

    .heli-newsfeed__heading {
        gap: 10px;
    }

    .heli-newsfeed__icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 10px;
    }

    .heli-newsfeed__icon svg {
        width: 24px;
        height: 24px;
    }

    .heli-newsfeed__title-main {
        font-size: 17px;
    }

    .heli-newsfeed__subtitle {
        max-width: 360px;
        font-size: 10.5px;
    }

    .heli-newsfeed__source-chip,
    .heli-newsfeed__refresh {
        height: 30px;
        padding-inline: 10px;
        gap: 6px;
        font-size: 10px;
    }

    .heli-newsfeed__refresh-icon {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .heli-newsfeed__source-dot {
        width: 9px;
        height: 9px;
    }

    .heli-newsfeed__item {
        flex-basis: 50%;
    }

    .heli-newsfeed__nav {
        flex-basis: 48px;
        width: 48px;
    }

    .heli-newsfeed__nav span {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}

@media (max-width: 520px) {
    .heli-newsfeed__header {
        align-items: flex-start;
    }

    .heli-newsfeed__subtitle {
        max-width: 230px;
    }

    .heli-newsfeed__sources {
        gap: 5px;
        padding-top: 7px;
    }

    .heli-newsfeed__source-chip {
        width: 30px;
        padding: 0;
        font-size: 0;
    }

    .heli-newsfeed__source-chip .heli-newsfeed__source-dot {
        width: 10px;
        height: 10px;
    }

    .heli-newsfeed__refresh {
        width: 32px;
        padding: 0;
        font-size: 0;
    }

    .heli-newsfeed__item {
        flex-basis: 100%;
        padding-inline: 16px;
    }

    .heli-newsfeed__item-title {
        font-size: 13px;
    }

    .heli-newsfeed__nav {
        flex-basis: 44px;
        width: 44px;
    }
}

/* Exakter Einbau in die aktuelle Heli-Startseite. */
body.hsp-startseite .hsp-hero + .heli-newsfeed,
body.hsp-startseite .heli-newsfeed {
    flex: 1 1 100%;
    max-width: 100%;
}

body.hsp-startseite .hsp-hero + .heli-newsfeed {
    margin-top: 10px;
    margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .heli-newsfeed__viewport {
        scroll-behavior: auto;
    }

    .heli-newsfeed__item,
    .heli-newsfeed__nav span,
    .heli-newsfeed__source-chip,
    .heli-newsfeed__refresh {
        transition: none;
    }

    .heli-newsfeed__refresh.is-refreshing .heli-newsfeed__refresh-icon {
        animation: none;
    }
}
