/**
 * TwoPixels Delivery Date - Frontend CSS
 * Version: 1.1.0
 *
 * Verwendet TwoPixels CSS-Variablen fuer einheitliches Design.
 */

:root {
    --tp-primary: #4ecdc4;
    --tp-primary-dark: #3db5ad;
    --tp-dark: #1e3a5f;
    --tp-success: #28a745;
    --tp-warning: #ffc107;
    --tp-radius-sm: 4px;
    --tp-radius-md: 8px;
    --tp-transition-fast: 150ms ease;
}

/* Delivery Date Box */
.tp-delivery {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid var(--tp-success);
    border-radius: var(--tp-radius-md);
    margin: 15px 0;
    transition: all var(--tp-transition-fast);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.tp-delivery:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Icon */
.tp-delivery-icon {
    font-size: 20px;
    color: var(--tp-success);
    flex-shrink: 0;
}

/* Text */
.tp-delivery-text {
    color: #2e7d32;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* Datum hervorheben */
.tp-delivery-date {
    color: var(--tp-success);
    font-weight: 700;
}

/* Nicht auf Lager Variante */
.tp-delivery--nostock {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: var(--tp-warning);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.tp-delivery--nostock:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.tp-delivery--nostock .tp-delivery-icon {
    color: #f57c00;
}

.tp-delivery--nostock .tp-delivery-text {
    color: #e65100;
}

/* Animation beim Laden */
@keyframes tp-delivery-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-delivery {
    animation: tp-delivery-fadeIn 0.3s ease-out;
}

/* Mobile Optimierung */
@media (max-width: 640px) {
    .tp-delivery {
        padding: 12px 14px;
        gap: 10px;
        margin: 12px 0;
    }

    .tp-delivery-icon {
        font-size: 18px;
    }

    .tp-delivery-text {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .tp-delivery {
        padding: 10px 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .tp-delivery-icon {
        font-size: 24px;
    }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .tp-delivery {
        animation: none;
        transition: none;
    }

    .tp-delivery:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tp-delivery {
        background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        border-color: #4caf50;
    }

    .tp-delivery-text {
        color: #fff;
    }

    .tp-delivery-icon {
        color: #a5d6a7;
    }

    .tp-delivery--nostock {
        background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
        border-color: #ffb74d;
    }

    .tp-delivery--nostock .tp-delivery-text {
        color: #fff;
    }

    .tp-delivery--nostock .tp-delivery-icon {
        color: #ffe0b2;
    }
}
