/* ================================================================
   Nahost Ticker – Frontend Styles  v1.3.0
   ================================================================ */

/* ----------------------------------------------------------------
   Basis-Reset für beide Ticker-Varianten
   ---------------------------------------------------------------- */
.nahost-ticker {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.3;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.nahost-ticker *,
.nahost-ticker *::before,
.nahost-ticker *::after {
    box-sizing: border-box;
}

.nahost-ticker a {
    text-decoration: none;
    color: inherit;
}

.nahost-ticker a:hover {
    text-decoration: underline;
    opacity: .85;
}

.nahost-ticker--empty {
    padding: 8px 14px;
    font-size: 13px;
    opacity: .6;
}

/* ================================================================
   HORIZONTALES LAUFBAND  (.nahost-ticker--h)
   ================================================================ */
.nahost-ticker--h {
    display: flex;
    align-items: stretch;
    height: 50px;
    max-height: 50px;
    white-space: nowrap;
}

/* Label-Badge links */
.nahost-ticker--h .nt-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    flex-shrink: 0;
    z-index: 2;
}

/* Sichtbares Scrollfenster */
.nahost-ticker--h .nt-h-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Der animierte Track – enthält Inhalt doppelt für nahtlosen Loop */
.nahost-ticker--h .nt-h-track {
    display: inline-flex;
    align-items: center;
    will-change: transform;
    /* Startanimation – Dauer wird per JS gesetzt */
    animation: nt-scroll-h linear infinite;
    animation-play-state: running;
}

.nahost-ticker--h:hover .nt-h-track {
    animation-play-state: paused;
}

@keyframes nt-scroll-h {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Einzelner Artikel-Link */
.nahost-ticker--h .nt-h-item {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 0 8px;
    white-space: nowrap;
}

.nahost-ticker--h .nt-h-item a {
    display: inline-block;
}

/* Trennsymbol */
.nahost-ticker--h .nt-h-sep {
    font-size: 9px;
    opacity: .45;
    padding: 0 4px;
    flex-shrink: 0;
}

/* ================================================================
   VERTIKALER KARTEN-TICKER  (.nahost-ticker--v)
   ================================================================ */
.nahost-ticker--v {
    width: 400px;
    max-width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

/* Label oben */
.nahost-ticker--v .nt-v-label {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    flex-shrink: 0;
    z-index: 2;
}

/* Sichtbares Scrollfenster */
.nahost-ticker--v .nt-v-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Animierter Track */
.nahost-ticker--v .nt-v-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: nt-scroll-v linear infinite;
    animation-play-state: running;
}

.nahost-ticker--v:hover .nt-v-track {
    animation-play-state: paused;
}

@keyframes nt-scroll-v {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* Einzelne Karte */
.nahost-ticker--v .nt-v-card {
    flex-shrink: 0;
    height: 80px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nahost-ticker--v .nt-v-card-link {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
    color: inherit;
    text-decoration: none;
    transition: opacity .2s;
}

.nahost-ticker--v .nt-v-card-link:hover {
    opacity: .8;
    text-decoration: none;
}

/* Bild-Box (linke Seite) */
.nahost-ticker--v .nt-v-img {
    width: 100px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nahost-ticker--v .nt-v-img--placeholder {
    background-color: rgba(255,255,255,.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: 40px;
    background-position: center;
}

/* Text-Box (rechte Seite) */
.nahost-ticker--v .nt-v-card-body {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.nahost-ticker--v .nt-v-date {
    font-size: 10px;
    opacity: .55;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
}

.nahost-ticker--v .nt-v-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   Responsive: Laufband auf kleinen Screens
   ================================================================ */
@media (max-width: 480px) {
    .nahost-ticker--h .nt-label {
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: .8px;
    }
    .nahost-ticker--h .nt-h-item {
        font-size: 12px;
    }
}

/* ================================================================
   WERBETICKER  (.nahost-ticker--wt)
   Höhe fix 300 px – Breite wird per inline-Style + Media Query gesetzt
   ================================================================ */
.nahost-ticker--wt {
    /* width wird durch #nt-wt-{id} inline-Style gesetzt (Desktop/Mobile) */
    height: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* ── Header ── */
.nahost-ticker--wt .nt-wt-header {
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.nahost-ticker--wt .nt-wt-dot {
    font-size: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.nahost-ticker--wt .nt-wt-site {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nahost-ticker--wt .nt-wt-sep {
    color: #ffffff;
    font-size: 13px;
    font-weight: 300;
    flex-shrink: 0;
    opacity: .7;
    margin: 0 2px;
}

.nahost-ticker--wt .nt-wt-section {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Scrollbereich ── */
.nahost-ticker--wt .nt-wt-track-wrap {
    flex: 1;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

/* Animierter Track */
.nahost-ticker--wt .nt-wt-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: nt-scroll-v linear infinite;
    animation-play-state: running;
}

.nahost-ticker--wt:hover .nt-wt-track {
    animation-play-state: paused;
}

/* ── Einzelne Karte ── */
.nahost-ticker--wt .nt-wt-card {
    display: flex;
    align-items: stretch;
    height: 56px;
    flex-shrink: 0;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: relative;
}

/* Linker Farbstreifen */
.nahost-ticker--wt .nt-wt-bar {
    width: 3px;
    flex-shrink: 0;
    align-self: stretch;
}

/* Karten-Link (Bild + Text) */
.nahost-ticker--wt .nt-wt-card-link {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.nahost-ticker--wt .nt-wt-card-link:hover {
    background: #f9f9f9;
    text-decoration: none;
}

/* Bild links */
.nahost-ticker--wt .nt-wt-img {
    width: 72px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nahost-ticker--wt .nt-wt-img--placeholder {
    background-color: #f0f0f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: 28px;
    background-position: center;
}

/* Textbereich rechts */
.nahost-ticker--wt .nt-wt-card-body {
    flex: 1;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

/* Kategorie / Ländername */
.nahost-ticker--wt .nt-wt-cat {
    font-size: 10px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artikeltitel */
.nahost-ticker--wt .nt-wt-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer ── */
.nahost-ticker--wt .nt-wt-footer {
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.nahost-ticker--wt .nt-wt-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: opacity .2s;
}

.nahost-ticker--wt .nt-wt-footer-link:hover {
    opacity: .8;
    text-decoration: none;
}

.nahost-ticker--wt .nt-wt-arrow {
    font-size: 11px;
    flex-shrink: 0;
}

.nahost-ticker--wt .nt-wt-footer-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
