/* Order Process Ablauf - 6-Schritte (Brennstoffhandel) und 5-Schritte (Container) */

.order-process-ablauf .ablauf-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.order-process-ablauf .ablauf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* 6-Schritte: 1→2→3 oben, 6←5←4 unten */
.order-process-ablauf .ablauf-step:nth-child(1) { grid-column: 1; grid-row: 1; }
.order-process-ablauf .ablauf-step:nth-child(2) { grid-column: 2; grid-row: 1; }
.order-process-ablauf .ablauf-step:nth-child(3) { grid-column: 3; grid-row: 1; }
.order-process-ablauf .ablauf-step:nth-child(4) { grid-column: 3; grid-row: 2; }
.order-process-ablauf .ablauf-step:nth-child(5) { grid-column: 2; grid-row: 2; }
.order-process-ablauf .ablauf-step:nth-child(6) { grid-column: 1; grid-row: 2; }

/* Website-Farben: Icons & Buttons (primary-color) */
.order-process-ablauf .ablauf-icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.order-process-ablauf .ablauf-text {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    max-width: 220px;
}

.order-process-ablauf .ablauf-arrow {
    position: absolute;
    color: #9e9e9e;
    font-size: 1.25rem;
    font-weight: 300;
    pointer-events: none;
}

.order-process-ablauf .ablauf-step:nth-child(1) .ablauf-arrow { right: -2rem; top: 50%; transform: translateY(-50%); }
.order-process-ablauf .ablauf-step:nth-child(2) .ablauf-arrow { right: -2rem; top: 50%; transform: translateY(-50%); }
.order-process-ablauf .ablauf-step:nth-child(3) .ablauf-arrow { bottom: -2rem; left: 50%; transform: translateX(-50%) rotate(90deg); }
.order-process-ablauf .ablauf-step:nth-child(4) .ablauf-arrow { left: -2rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
.order-process-ablauf .ablauf-step:nth-child(5) .ablauf-arrow { left: -2rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
.order-process-ablauf .ablauf-step:nth-child(6) .ablauf-arrow { top: -1.5rem; left: 50%; right: auto; transform: translateX(-50%) rotate(-90deg); }

/* 5-Schritte Container: 1→2→3 oben, 3↓4→5 unten */
.order-process-ablauf-container .ablauf-step:nth-child(1) { grid-column: 1; grid-row: 1; }
.order-process-ablauf-container .ablauf-step:nth-child(2) { grid-column: 2; grid-row: 1; }
.order-process-ablauf-container .ablauf-step:nth-child(3) { grid-column: 3; grid-row: 1; }
.order-process-ablauf-container .ablauf-step:nth-child(4) { grid-column: 1; grid-row: 2; }
.order-process-ablauf-container .ablauf-step:nth-child(5) { grid-column: 2; grid-row: 2; }

.order-process-ablauf-container .ablauf-step:nth-child(1) .ablauf-arrow { right: -2rem; top: 50%; transform: translateY(-50%); }
.order-process-ablauf-container .ablauf-step:nth-child(2) .ablauf-arrow { right: -2rem; top: 50%; transform: translateY(-50%); }
.order-process-ablauf-container .ablauf-step:nth-child(3) .ablauf-arrow { bottom: -2rem; left: 50%; right: auto; transform: translateX(-50%) rotate(90deg); }
.order-process-ablauf-container .ablauf-step:nth-child(4) .ablauf-arrow { left: auto; right: -2rem; top: 50%; transform: translateY(-50%); }
.order-process-ablauf-container .ablauf-step:nth-child(5) .ablauf-arrow { display: none; }

@media (max-width: 768px) {
    .order-process-ablauf .ablauf-flow {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
    .order-process-ablauf .ablauf-step:nth-child(1),
    .order-process-ablauf .ablauf-step:nth-child(2),
    .order-process-ablauf .ablauf-step:nth-child(3),
    .order-process-ablauf .ablauf-step:nth-child(4),
    .order-process-ablauf .ablauf-step:nth-child(5),
    .order-process-ablauf .ablauf-step:nth-child(6) {
        grid-column: 1;
        grid-row: auto;
    }
    .order-process-ablauf-container .ablauf-flow {
        grid-template-rows: repeat(5, auto);
    }
    .order-process-ablauf .ablauf-arrow {
        display: none !important;
    }
}
