.c4mulo5-stock-indicator { padding: 60px 0; }

.c4mulo5-stock-indicator::before,
.c4mulo5-stock-indicator::after,
.c4m5-stock-list::before,
.c4m5-stock-list::after,
.c4m5-stock-item::before,
.c4m5-stock-item::after {
    display: none !important;
    content: none !important;
}

.c4mulo5-stock-indicator .c4m5-stock-headline {
    margin: 0 0 8px;
    color: #1d2327;
    font-weight: 700;
}
.c4mulo5-stock-indicator .c4m5-stock-subheadline {
    margin: 0 0 32px;
    color: #6b7280;
}

/* Layout: Liste */
.c4mulo5-stock-indicator.c4m5-stock-layout-list .c4m5-stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

/* Layout: Grid */
.c4mulo5-stock-indicator.c4m5-stock-layout-grid .c4m5-stock-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Layout: Kompakt (horizontal inline) */
.c4mulo5-stock-indicator.c4m5-stock-layout-compact .c4m5-stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.c4mulo5-stock-indicator.c4m5-stock-layout-compact .c4m5-stock-item {
    flex: 0 0 auto;
}

/* Item */
.c4m5-stock-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
    color: inherit;
}
.c4m5-stock-item:hover {
    transform: translateY(-2px);
    border-color: #c8a84b;
}

.c4m5-stock-item__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.c4m5-stock-item__info {
    flex: 1;
    min-width: 0;
}

.c4m5-stock-item__name {
    font-weight: 600;
    color: #1d2327;
    font-size: 0.95rem;
    margin: 0 0 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c4m5-stock-item__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.c4m5-stock-item__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* Ampel-Farben */
.c4m5-stock-status-green   .c4m5-stock-item__dot { background: #10b981; }
.c4m5-stock-status-yellow  .c4m5-stock-item__dot { background: #f59e0b; }
.c4m5-stock-status-red     .c4m5-stock-item__dot { background: #dc2626; }
.c4m5-stock-status-blue    .c4m5-stock-item__dot { background: #1a5490; }
.c4m5-stock-status-gray    .c4m5-stock-item__dot { background: #9ca3af; }

.c4m5-stock-status-green   .c4m5-stock-item__status { color: #0f766e; }
.c4m5-stock-status-yellow  .c4m5-stock-item__status { color: #b45309; }
.c4m5-stock-status-red     .c4m5-stock-item__status { color: #dc2626; }
.c4m5-stock-status-blue    .c4m5-stock-item__status { color: #1a5490; }
.c4m5-stock-status-gray    .c4m5-stock-item__status { color: #6b7280; }

/* Pulse-Animation für „wenige Stück" */
.c4m5-stock-status-yellow .c4m5-stock-item__dot {
    animation: c4m5-stock-pulse 2s ease-in-out infinite;
}
@keyframes c4m5-stock-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.05); }
}
@media (prefers-reduced-motion: reduce) {
    .c4m5-stock-status-yellow .c4m5-stock-item__dot { animation: none; }
}

/* Mengen-Bar */
.c4m5-stock-item__bar {
    width: 100%;
    height: 6px;
    background: #f5f7fa;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.c4m5-stock-item__bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}
.c4m5-stock-status-green   .c4m5-stock-item__bar-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.c4m5-stock-status-yellow  .c4m5-stock-item__bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.c4m5-stock-status-red     .c4m5-stock-item__bar-fill { background: #dc2626; }
.c4m5-stock-status-blue    .c4m5-stock-item__bar-fill { background: #1a5490; }

.c4m5-stock-item__qty {
    font-size: 0.78rem;
    color: #6b7280;
    margin-left: 4px;
    font-weight: 400;
}

/* Empty / Loading */
.c4m5-stock-empty,
.c4m5-stock-loading {
    text-align: center;
    padding: 30px 20px;
    background: #f5f7fa;
    border: 1px dashed #c8a84b;
    border-radius: 8px;
    color: #50575e;
}

@media (max-width: 480px) {
    .c4m5-stock-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    .c4m5-stock-item__img {
        width: 40px;
        height: 40px;
    }
}
