.order-section {
    padding: 140px 0 100px;
    background: var(--bg-light);
    min-height: calc(100vh - 120px);
}

.order-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.order-container h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.order-container h1 i {
    color: var(--accent);
    margin-right: 12px;
}

.order-container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.order-form {
    margin-top: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.success-message {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 24px;
}

.success-message h1 {
    color: var(--primary);
    margin-bottom: 16px;
}

.order-number {
    font-size: 1.25rem;
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
}

.detail-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.detail-item span {
    color: var(--text);
    line-height: 1.6;
}

/* Status Header mit Animationen */
.status-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.status-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.status-icon {
    font-size: 64px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    animation: iconPulse 2s ease-in-out infinite;
}

.status-icon.pending {
    color: #f59e0b;
    animation: iconPulse 1.5s ease-in-out infinite;
}

.status-icon.in_transit {
    color: #3b82f6;
    animation: iconPulse 1s ease-in-out infinite, iconMove 3s ease-in-out infinite;
}

.status-icon.delivered {
    color: #10b981;
    animation: iconBounce 0.6s ease-in-out;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-icon.pending + .pulse-ring {
    border-color: #f59e0b;
    animation: pulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-icon.in_transit + .pulse-ring {
    border-color: #3b82f6;
    animation: pulseRing 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.status-badge-large {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.status-badge-large.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-large.in_transit {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge-large.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
    animation: blink 1.5s ease-in-out infinite;
}

.status-badge-large.pending .status-dot {
    background: #f59e0b;
}

.status-badge-large.in_transit .status-dot {
    background: #3b82f6;
    animation: blink 1s ease-in-out infinite;
}

.status-badge-large.delivered .status-dot {
    background: #10b981;
    animation: none;
}

.timeline-title {
    margin-top: 40px;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-title i {
    color: var(--accent);
}

.tracking-timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 24px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e5e7eb 0%, #e5e7eb 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item.completed {
    opacity: 1;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 4px solid var(--white);
    z-index: 2;
    transition: all 0.3s ease;
}

.marker-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-item.completed .marker-inner {
    background: white;
    width: 10px;
    height: 10px;
}

.timeline-item.active .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.2);
    animation: markerPulse 2s ease-in-out infinite;
}

.timeline-item.active .marker-inner {
    background: white;
    width: 12px;
    height: 12px;
    animation: innerPulse 1.5s ease-in-out infinite;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: markerPulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-line {
    position: absolute;
    left: -22px;
    top: 32px;
    width: 3px;
    height: calc(100% + 8px);
    background: #e5e7eb;
    z-index: 1;
}

.timeline-line.completed {
    background: linear-gradient(to bottom, #10b981 0%, #10b981 100%);
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-item.completed .timeline-content {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.timeline-item.active .timeline-content {
    border-left-color: var(--accent);
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    animation: contentGlow 2s ease-in-out infinite;
}

.timeline-status {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-status i {
    font-size: 0.9rem;
}

.timeline-item.active .timeline-status {
    color: var(--accent);
}

.timeline-location {
    color: var(--text-light);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animationen */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes iconMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-10px); }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.2);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(217, 119, 6, 0);
    }
}

@keyframes markerPulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes innerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes contentGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
    }
}

/* Detail Grid Styles */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.detail-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item strong i {
    margin-right: 8px;
    color: var(--accent);
}

.detail-item span {
    color: var(--text);
    line-height: 1.6;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .status-icon {
        font-size: 48px;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    .status-title {
        font-size: 1.4rem;
    }
    
    .tracking-timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 20px;
        height: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.error-message {
    text-align: center;
    padding: 32px;
    background: #fee2e2;
    border-radius: 6px;
    color: #991b1b;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .order-container {
        padding: 32px 24px;
        margin: 0 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

