/* Landing page */
.hero-banner {
    border-bottom: 3px solid #C94C19;
}

.stat-card {
    border-top: 3px solid #C94C19;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #C94C19;
    line-height: 1.1;
}

.stat-card .stat-unit {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.about-section {
    background: #FDFAF6;
    border-top: 1px solid #dee2e6;
}

/* =============================================
   Landing page redesign
   ============================================= */

.legu-hr {
    border: none;
    border-top: 3px solid var(--legu-cream-alt);
    margin: 0;
    opacity: 1;
}

/* --- Full bleed: negate container-fluid gutter --- */
.legu-full-bleed {
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5);
}

/* --- Hero --- */
.legu-hero {
    background: #F8F3EB;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.legu-hero__eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--legu-orange);
    margin-bottom: 0.6rem;
}

.legu-hero__title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 0.95;
    color: var(--legu-ink);
    margin-bottom: 1rem;
}

.legu-hero__tagline {
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--legu-ink);
    margin-bottom: 0.75rem;
}

.legu-hero__desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: #555;
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.legu-hero__img-wrap {
    height: 100%;
    min-height: 380px;
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
    border-left: 4px solid var(--legu-orange);
}

.legu-hero__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .legu-hero__img-wrap {
        display: none;
    }

    .legu-hero {
        padding: 3rem 0 2.5rem;
    }
}

/* --- Stats band --- */
.legu-stats {
    background: var(--legu-forest);
    padding: 3rem 0;
}

.legu-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width: 767px) {
    .legu-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.legu-stats__item {
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    animation: statReveal 0.5s ease both;
}

.legu-stats__item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(201, 76, 25, 0.35);
}

.legu-stats__value {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.legu-stats__value--muted {
    color: rgba(255, 255, 255, 0.3);
}

.legu-stats__unit {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

.legu-stats__label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

@keyframes statReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.legu-stats__item:nth-child(2) {
    animation-delay: 0.1s;
}

.legu-stats__item:nth-child(3) {
    animation-delay: 0.2s;
}

.legu-stats__item:nth-child(4) {
    animation-delay: 0.3s;
}

/* --- Trends --- */
.legu-trends {
    background: #F8F3EB;
    padding: 3.5rem 0;
}

.legu-trends__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.legu-trend-card {
    border-left: 3px solid var(--legu-orange);
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.legu-trend-card__name {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 0.35rem;
}

.legu-trend-card .text-success,
.legu-trend-card .text-danger {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
}

.legu-trend-card .text-secondary {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0;
}

/* --- Charts --- */
.legu-charts {
    background: #F8F3EB;
    padding: 3.5rem 0;
}


/* --- About --- */
.legu-about {
    background: var(--legu-forest);
    padding: 4rem 0 5rem;
}

.legu-about p,
.legu-about dd {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}

.legu-about__disclaimer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.legu-about dt a {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-decoration: none;
}

.legu-about dt a:hover {
    color: #fff;
    text-decoration: underline;
}

.legu-about dd {
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.legu-about-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legu-about-links li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legu-about-links li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--legu-orange);
}

.legu-about-links a {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    flex: 1;
}

.legu-about-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.legu-about-links .legu-ext-icon {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.legu-about-links li:has(+ .legu-about-subitem) {
    border-bottom-color: transparent;
}

.legu-about-links .legu-about-subitem {
    padding-left: 1.25rem;
    font-size: 0.82rem;
    border-bottom-color: transparent;
}

.legu-about-links .legu-about-subitem::before {
    background: transparent !important;
    border: 1px solid rgba(201, 76, 25, 0.4);
}

.legu-about-subitem__tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    margin-left: auto;
    white-space: nowrap;
}

/* --- Hero slider --- */
.legu-hero__media {
    position: relative;
    overflow: visible;
}

.legu-hero__media::before {
    content: "";
    position: absolute;
    z-index: 20;
    top: -2rem;
    left: 0;
    right: 0;
    bottom: -2rem;
    pointer-events: none;
    background: var(--legu-orange);
    clip-path: polygon(calc(8.6% - 2px) 0%,
            calc(8.6% + 2px) 0%,
            calc(-0.6% + 2px) 100%,
            calc(-0.6% - 2px) 100%);
}

.legu-hero__slider {
    position: relative;
    width: 100%;
    flex: 1 1 100%;
    height: 420px;
    min-height: 380px;
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
    border-left: none;
}

.legu-hero__slider::before {
    content: none;
}

.legu-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: legu-slideshow 20s infinite;
}

.legu-hero__slide:nth-child(1) {
    animation-name: legu-slideshow-first;
    animation-delay: 0s;
}

.legu-hero__slide:nth-child(2) {
    animation-delay: 5s;
}

.legu-hero__slide:nth-child(3) {
    animation-delay: 10s;
}

.legu-hero__slide:nth-child(4) {
    animation-delay: 15s;
}

@keyframes legu-slideshow-first {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes legu-slideshow {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legu-hero__slide {
        animation: none;
    }

    .legu-hero__slide:nth-child(1) {
        opacity: 1;
    }
}

/* --- Aggregate stats (dark band) --- */
.legu-agg {
    background: var(--legu-forest);
    padding: 2.5rem 0;
}

.legu-agg__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (max-width: 575px) {
    .legu-agg__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.legu-agg__item {
    padding: 1.25rem 1.5rem;
    text-align: center;
    position: relative;
}

.legu-agg__item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(201, 76, 25, 0.3);
}

.legu-agg__value {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.legu-agg__value--muted {
    color: rgba(255, 255, 255, 0.25);
}

.legu-agg__unit {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
}

.legu-agg__trend {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.legu-agg__label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.legu-agg__trend--up {
    color: #81c784;
}

.legu-agg__trend--down {
    color: #e57373;
}

.legu-agg__trend--flat {
    color: #ffb74d;
}

/* --- Market table (light section) --- */
.legu-market {
    background: #F8F3EB;
    padding: 2.5rem 0;
}

.legu-mt {
    display: grid;
    grid-template-columns: minmax(120px, auto) repeat(4, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.legu-market__note {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    color: #999;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.legu-mt-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legu-mt {
    min-width: 480px;
}

.legu-mt__corner,
.legu-mt__col-head {
    padding: 0.6rem 0.75rem;
    background: var(--legu-forest);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-align: center;
    border-right: 1px solid rgba(201, 76, 25, 0.25);
}

.legu-mt__corner {
    text-align: left;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-end;
}

.legu-mt__row-head {
    padding: 0.65rem 0.75rem;
    background: rgba(30, 43, 30, 0.05);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #444;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legu-mt__row-head small {
    font-weight: 300;
    color: #888;
    font-size: 0.68rem;
    margin-top: 0.1rem;
}

.legu-mt__cell {
    padding: 0.6rem 0.5rem;
    text-align: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    color: var(--legu-ink);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.1;
}

.legu-mt__cell--empty {
    color: rgba(0, 0, 0, 0.2);
}

.legu-mt__trend {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1;
    margin-top: 0.1rem;
}

.legu-mt__trend--up {
    color: #388e3c;
}

.legu-mt__trend--down {
    color: #c62828;
}

.legu-mt__trend--flat {
    color: #e65100;
}

.legu-mt__toggle-row {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.5rem;
    background: rgba(30, 43, 30, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.legu-mt__toggle-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--legu-orange);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
}

.legu-mt__toggle-btn:hover {
    color: var(--legu-orange-lt);
}

/* --- Prediction teaser card --- */
.legu-prognose-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1.5rem;
    border-left: 4px solid var(--legu-orange);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.legu-prognose-card__title {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.legu-prognose-card__subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.legu-prognose-card__items {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.legu-prognose-card__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.legu-prognose-card__price {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.1rem;
    color: var(--legu-orange-lt);
}

.legu-prognose-card__link {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--legu-orange-lt);
    text-decoration: none;
    display: inline-block;
}

.legu-prognose-card__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Chart cards --- */
.legu-chart-card {
    background: #fff;
    border-top: 3px solid var(--legu-orange);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    break-inside: avoid;
}

.legu-chart-card .legu-chart-card__source-link {
    position: relative;
    z-index: 1;
}

.legu-chart-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #F8F3EB;
}

.legu-chart-card__title {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--legu-ink);
    margin: 0;
}

.legu-chart-card__link {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--legu-orange);
    text-decoration: none;
    white-space: nowrap;
}

.legu-chart-card__link:hover {
    color: var(--legu-orange-lt);
    text-decoration: underline;
}

.legu-chart-card__body {
    overflow: hidden;
}

.legu-chart-card__footer {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    padding: 0.6rem 1rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: #F8F3EB;
}

/* Plot detail page: white card backgrounds */
body.legu-plot-detail .legu-chart-card__header { background: #F8F3EB; }
body.legu-plot-detail .legu-chart-card__footer { background: #F8F3EB; }

.legu-chart-card__info {
    padding: 0.6rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.93rem;
    color: #555;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.legu-chart-card .legu-stat-strip {
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legu-chart-card .js-plotly-plot,
.legu-chart-card .plotly-graph-div {
    width: 100% !important;
}

/* --- Datenstand subtitle in aggregate band --- */
.legu-agg__datenstand {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
}

/* --- Scrolling ticker banner --- */
.legu-ticker {
    background: var(--legu-forest);
    height: 44px;
    overflow: hidden;
    border-bottom: 2px solid var(--legu-orange);
    position: relative;
    margin-bottom: 1.5rem;
    transition: height 0.3s ease, margin-bottom 0.3s ease, border-bottom-width 0.3s ease;
}

.legu-ticker--minimized {
    height: 0;
    margin-bottom: 0;
    border-bottom-width: 0;
}

.legu-ticker::before,
.legu-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.legu-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--legu-forest), transparent);
}

.legu-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--legu-forest), transparent);
}

.legu-ticker__track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: legu-ticker-scroll 70s linear infinite;
}

.legu-ticker__track:hover {
    animation-play-state: paused;
}

@keyframes legu-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .legu-ticker__track {
        animation: none;
    }
}

.legu-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.legu-ticker__item:hover {
    opacity: 0.75;
}

.legu-ticker__label {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.legu-ticker__date {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    color: var(--legu-orange);
}

.legu-ticker__value {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.05rem;
    color: var(--legu-orange-lt);
    line-height: 1;
}

.legu-ticker__arrow--up {
    color: #81c784;
    font-size: 0.72rem;
}

.legu-ticker__arrow--down {
    color: #e57373;
    font-size: 0.72rem;
}

.legu-ticker__pill {
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--legu-orange);
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
}

.legu-ticker__sep {
    color: rgba(201, 76, 25, 0.35);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.legu-ticker__badge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 10;
    background: var(--legu-orange);
    color: #fff;
    font-family: 'Bebas Neue', cursive;
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    padding: 0 1rem;
    white-space: nowrap;
}

.legu-ticker__controls {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to right, transparent, var(--legu-forest) 35%);
    padding: 0 0.5rem 0 2.5rem;
    gap: 0.1rem;
}

.legu-ticker__btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.78rem;
    font-family: 'Jost', sans-serif;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.15s;
}

.legu-ticker__btn:hover {
    color: var(--legu-orange-lt);
}

.legu-ticker__pill--price {
    background: transparent;
    border: 1px solid rgba(201, 76, 25, 0.6);
    color: var(--legu-orange-lt);
}

.legu-ticker__pill--seed {
    background: rgba(56, 142, 60, 0.75);
}

.legu-ticker__value--seed {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Regional price teaser strip --- */
.legu-region-teaser {
    background: var(--legu-forest);
}

.legu-region-teaser>.container-xl {
    max-width: 100%;
    padding-inline: 2.5rem;
}

.legu-region-teaser__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.legu-region-teaser__col {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem 0 0;
    min-width: 0;
}

.legu-region-teaser__col+.legu-region-teaser__col {
    padding: 0 0 0 2rem;
}

.legu-region-teaser__text {
    flex: 1;
    border-left: 3px solid var(--legu-orange);
    padding-left: 1.5rem;
}

.legu-region-teaser__heading {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.legu-region-teaser__desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 0;
}

.legu-region-teaser__map {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.legu-region-teaser__map--europa {
    flex: 0 0 360px;
}


.legu-map-credit {
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0.25rem 0 0;
    text-align: center;
}

.legu-map-credit a {
    color: rgba(255, 255, 255, 0.35);
}

.legu-europe-svg {
    display: block;
    width: 100%;
    height: auto;
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 0.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.legu-europe-svg path {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1399px) {
    .legu-region-teaser__map {
        display: none;
    }

    .legu-region-teaser__col {
        padding: 0;
    }

    .legu-region-teaser__col + .legu-region-teaser__col {
        padding: 0 0 0 2rem;
    }

    .legu-region-teaser__text {
        flex: 1 1 auto;
        width: 100%;
    }

    .legu-region-teaser__desc {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .legu-region-teaser__cols {
        grid-template-columns: 1fr;
    }

    .legu-region-teaser__col+.legu-region-teaser__col {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1.5rem;
        padding: 1.5rem 0 0 0;
    }

    .legu-region-teaser__map {
        display: none;
    }

    .legu-region-teaser__desc {
        max-width: none;
    }
}


@keyframes germany-dot-life {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }

    20% {
        opacity: 1;
        transform: scale(1.5);
    }

    65% {
        opacity: 0.9;
        transform: scale(1.0);
    }

    100% {
        opacity: 0;
        transform: scale(0.7);
    }
}

.germany-dot {
    animation: germany-dot-life 2.2s ease-out forwards;
    transform-box: fill-box;
    transform-origin: center;
}

/* --- Legume scoreboard --- */
.legu-scoreboard {
    background: #F8F3EB;
    padding: 2.5rem 0;
}

.legu-sb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .legu-sb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .legu-sb-grid {
        grid-template-columns: 1fr;
    }
}

.legu-sb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 3px solid var(--legu-orange);
    border-radius: 0 0 4px 4px;
    padding: 1.1rem 1.1rem 0.9rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-top-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.legu-sb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    border-top-color: var(--legu-orange-lt);
    color: inherit;
}

.legu-sb-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.legu-sb-card__name {
    font-family: 'Bebas Neue';
    font-size: 1.45rem;
    color: var(--legu-ink);
    line-height: 1;
}

.legu-sb-card__bio {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(201, 76, 25, 0.1);
    color: var(--legu-orange);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    white-space: nowrap;
}

.legu-sb-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.legu-sb-card__metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #F8F3EB;
    padding: 0.45rem 0.25rem;
    border-radius: 3px;
}

.legu-sb-card__mval {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.35rem;
    color: var(--legu-ink);
    line-height: 1;
}

.legu-sb-card__mval--empty {
    color: rgba(0, 0, 0, 0.2);
}

.legu-sb-card__mlabel {
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
    line-height: 1.2;
}

.legu-sb-card__trend {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    margin-top: 0.1rem;
    line-height: 1;
}

.legu-sb-card__trend--up {
    color: #388e3c;
}

.legu-sb-card__trend--down {
    color: #c62828;
}

.legu-sb-card__trend--flat {
    color: #e65100;
}

.legu-sb-card__pred {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: #666;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.legu-sb-card__pred strong {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.05rem;
    color: var(--legu-orange);
    font-weight: normal;
}

.legu-sb-card__cta {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--legu-orange);
    text-align: right;
    margin-top: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.15s;
}

.legu-sb-card:hover .legu-sb-card__cta {
    color: var(--legu-orange-lt);
}

/* --- Legume detail page --- */
.legu-detail-header {
    background: #F8F3EB;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 2rem;
}

.legu-detail-nav-row {
    padding: 0.35rem 0;
}

.legu-detail-nav-link {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--legu-ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 20px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legu-detail-nav-link:hover {
    background: var(--legu-orange);
    border-color: var(--legu-orange);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(201, 76, 25, 0.25);
}

.legu-detail-nav-link--overview {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #F8F3EB;
    color: #666;
}

.legu-detail-nav-link--overview:hover {
    background: var(--legu-orange);
    border-color: var(--legu-orange);
    color: #fff;
}

.legu-detail-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--legu-ink);
    line-height: 1;
}

.legu-detail-price-pill {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.legu-detail-price {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--legu-ink);
    line-height: 1;
}

.legu-detail-price small {
    font-size: 0.75rem;
    color: #888;
}

.legu-detail-trend {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.legu-detail-trend--up {
    color: #388e3c;
}

.legu-detail-trend--down {
    color: #c62828;
}

.legu-detail-trend--flat {
    color: #e65100;
}

.legu-detail-date {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    color: #999;
}

.legu-detail-body {
    background: #fff;
    min-height: 400px;
}


.legu-detail-tab-content {
    padding-top: 1.5rem;
}

.legu-detail-chart-section {
    margin-bottom: 2.5rem;
    width: 100%;
}

.legu-detail-chart-section .js-plotly-plot,
.legu-detail-chart-section .plotly-graph-div {
    width: 100% !important;
}

.legu-detail-chart-title {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--legu-ink);
    margin-bottom: 0.75rem;
}

.legu-detail-empty {
    padding: 2rem 0;
    font-style: italic;
}


.legu-bio-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.legu-bio-stat {
    background: rgba(201, 76, 25, 0.07);
    border-left: 3px solid var(--legu-orange);
    padding: 0.6rem 1rem;
    border-radius: 0 3px 3px 0;
    display: flex;
    flex-direction: column;
}

.legu-bio-stat__label {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.legu-bio-stat__value {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: var(--legu-orange);
    line-height: 1.1;
}

/* Section overline / heading modifiers moved to base.css */
.legu-about-dt--light {
    color: rgba(255, 255, 255, 0.9);
}
/* Referenzmärkte card on home page */

.legu-futures-card__teaser {
    pointer-events: none;
    overflow: hidden;
    padding: 0;
    user-select: none;
}

.legu-futures-card__tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.6rem 1rem 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.legu-futures-card__tickers span {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #888;
    background: #f0f0f0;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* Home: clickable chart cards — white header, lift + shadow on hover */
.legu-charts .legu-chart-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.legu-charts .legu-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.legu-charts .legu-chart-card__header {
    background: #fff;
}

.legu-chart-card__trend-badge {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.legu-chart-card__trend-badge--up {
    background: rgba(34, 139, 34, 0.10);
    color: #1a7c1a;
}

.legu-chart-card__trend-badge--down {
    background: rgba(201, 76, 25, 0.10);
    color: var(--legu-orange);
}

.legu-chart-card__header-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    flex-shrink: 0;
}

.legu-chart-card__cta {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--legu-orange);
    text-align: right;
    padding: 0.5rem 1rem 0.65rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.15s;
}

.legu-charts .legu-chart-card:hover .legu-chart-card__cta {
    color: var(--legu-orange-lt);
}
