/* Pflanzenkurs: dieselbe kompakte Karten-Sprache wie Wetter, Events und Fortschritt. */
.portal-market-ticker {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 50px minmax(150px, 1fr);
    gap: 9px;
    align-items: center;
    flex: 1 1 265px;
    min-width: 265px;
    max-width: 350px;
    min-height: 66px;
    overflow: hidden;
    padding: 7px 10px 7px 7px;
    border: 1px solid rgba(101, 139, 72, .30);
    border-radius: 17px;
    background: rgba(255, 252, 241, .94);
    box-shadow: 0 7px 18px rgba(54, 91, 51, .11);
    color: #254a39;
    text-decoration: none;
    backdrop-filter: blur(10px);
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-market-ticker:hover {
    transform: translateY(-2px);
    border-color: rgba(83, 129, 61, .52);
    box-shadow: 0 11px 22px rgba(54, 91, 51, .17);
}

.portal-market-ticker-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5e58b, #d7a74f);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 3px 7px rgba(91, 67, 28, .12);
    font-size: 24px;
}

.portal-market-ticker-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 1px rgba(54, 71, 31, .18));
}

.portal-market-ticker i {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 1px;
    padding-right: 52px;
    font-style: normal;
}

.portal-market-ticker small {
    overflow: hidden;
    color: #78866d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .075em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-market-ticker b {
    overflow: hidden;
    color: #294a39;
    font-size: 13px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-market-ticker strong {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    color: #4e8a49;
    font-size: 10px;
    line-height: 1.1;
}

.portal-market-ticker strong em {
    color: #315f3b;
    font-size: 12px;
    font-style: normal;
}

.portal-market-ticker strong u {
    overflow: hidden;
    color: #78866d;
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Die Kurve ist ein leises Markt-Detail und kein zweites, konkurrierendes Layout. */
.portal-market-ticker svg {
    position: absolute;
    z-index: 0;
    right: 7px;
    bottom: 6px;
    width: 74px;
    height: 31px;
    opacity: .42;
    pointer-events: none;
}

.portal-market-ticker svg path { fill: rgba(89, 152, 80, .13); }

.portal-market-ticker svg polyline {
    fill: none;
    stroke: #579351;
    stroke-width: 2.1;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-market-ticker.is-down { border-color: rgba(181, 109, 79, .33); }
.portal-market-ticker.is-down strong,
.portal-market-ticker.is-down strong em { color: #aa573f; }
.portal-market-ticker.is-down .portal-market-ticker-icon { background: linear-gradient(145deg, #f5d18d, #cf8a62); }
.portal-market-ticker.is-down svg path { fill: rgba(188, 89, 65, .12); }
.portal-market-ticker.is-down svg polyline { stroke: #be6047; }

.portal-market-ticker.is-steady .portal-market-ticker-icon { background: linear-gradient(145deg, #e7edca, #adc28e); }
.portal-market-ticker.is-steady strong,
.portal-market-ticker.is-steady strong em { color: #657963; }
.portal-market-ticker.is-steady svg path { fill: rgba(111, 126, 99, .11); }
.portal-market-ticker.is-steady svg polyline { stroke: #77876e; }

.portal-market-ticker.is-changing > * { animation: portal-market-ticker-in .42s ease both; }

@keyframes portal-market-ticker-in {
    from { opacity: .20; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.portal-market-ticker-empty-row { justify-content: flex-start; }
.portal-market-ticker.is-empty { max-width: 350px; border-color: rgba(116, 139, 103, .28); }
.portal-market-ticker.is-empty svg { opacity: .18; }

@media (max-width: 720px) {
    .portal-market-ticker {
        grid-template-columns: 50px minmax(0, 1fr);
        min-width: 0;
        max-width: none;
        flex-basis: 100%;
    }

    .portal-market-ticker i { padding-right: 58px; }
}
