/* --- Layout & Theme --- */
body {
    background-color: #1a1a1d; /* Edles Dunkelgrau */
    color: #f4f7f6;
    overflow: hidden; /* Scrollbalken ausblenden */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Verstecke Scrollbars in allen Browsern (Sicherheitsnetz) */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

.weltwaerts-home {
    top: 30px;
    left: 30px;
    bottom: auto;
    z-index: 1000;
}

/* --- Phasen Container & Transitions --- */
.phase-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    padding: 100px 40px 40px;
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
}

.phase-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.98);
    z-index: 5;
}

/* --- PHASE 1: Rucksack --- */
.backpack-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
}

.backpack-icon {
    font-size: 12rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.backpack-icon.bump {
    transform: scale(1.15) rotate(-5deg);
}

.backpack-panel h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary-color, #005A9C); }
.backpack-panel p { font-size: 1.4rem; color: #aaa; margin-bottom: 20px; }
.count-text { font-weight: bold; color: #fff !important; }

.progress-bar {
    width: 80%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #27ae60;
    transition: width 0.4s ease;
}

.items-panel {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 0 0 60px;
    align-content: center;
}

.item-card {
    background: #2a2a2e;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #3a3a3e;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.item-card:active { transform: scale(0.96); }
.item-card.packed {
    background: rgba(39, 174, 96, 0.15);
    border-color: #27ae60;
    color: #27ae60;
    opacity: 0.6;
    pointer-events: none;
    transform: scale(0.95);
}

/* --- PHASE 2: Roadmap --- */
#phase2 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.roadmap-header { text-align: center; margin-bottom: 80px; }
.roadmap-header h2 { font-size: 3rem; color: var(--primary-color, #005A9C); margin-bottom: 10px; }
.roadmap-header p { font-size: 1.5rem; color: #aaa; }

.roadmap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Die Verbindungslinie */
.roadmap::before {
    content: '';
    position: absolute;
    top: 45px; /* Mittig hinter den Kreisen */
    left: 5%; right: 5%;
    height: 4px;
    background: #3a3a3e;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    width: 18%;
    text-align: center;
    cursor: pointer;
    outline: none; /* Für Kiosk-Tap ohne blaue Rahmen */
}

.circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #2a2a2e;
    border: 4px solid #1a1a1d;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 0 0 rgba(0, 90, 156, 0);
}

.step.active .circle {
    background: var(--primary-color, #005A9C);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(0, 90, 156, 0.6);
}

.step h3 { font-size: 1.4rem; margin-bottom: 10px; color: #ddd; transition: color 0.3s; }
.step.active h3 { color: #fff; }

.step-desc {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}
.step.active .step-desc { opacity: 1; transform: translateY(0); }

/* --- Globale Elemente (Buttons & Modal) --- */
.primary-btn {
    background-color: var(--primary-color, #005A9C);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.6rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s;
}
.primary-btn:active { transform: scale(0.95); }

.secondary-btn {
    background-color: transparent;
    color: #aaa;
    border: 2px solid #555;
    padding: 18px 40px;
    font-size: 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
.secondary-btn:hover { background-color: #333; color: #fff; border-color: #777; }
.secondary-btn:active { transform: scale(0.95); }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; transition: opacity 0.3s ease; }
.modal.hidden { opacity: 0; pointer-events: none; }

.modal-content {
    background: #2a2a2e;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 80%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.modal-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.modal-content p { font-size: 1.4rem; color: #ccc; margin-bottom: 40px; line-height: 1.5; }

/* --- Responsive Anpassungen für Smartphones --- */
@media (max-width: 768px) {
    .weltwaerts-home { top: 15px; left: 15px; width: 50px; height: 50px; font-size: 0.9rem; }
    
    .phase-container {
        flex-direction: column;
        padding: 80px 20px 20px;
        /* Wichtig: Auf kleinen Screens das Scrollen erlauben */
        overflow-y: auto;
        justify-content: flex-start;
    }

    /* Phase 1: Rucksack */
    .backpack-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0 0 20px 0;
        flex: 0 0 auto;
    }
    .backpack-icon { font-size: 6rem; margin-bottom: 10px; }
    .backpack-panel h2 { font-size: 1.8rem; }
    .backpack-panel p { font-size: 1rem; margin-bottom: 10px; }
    
    .items-panel {
        flex: 1 1 auto;
        padding: 20px 0 0 0;
        gap: 15px;
    }
    .item-card {
        padding: 20px 10px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    /* Phase 2: Roadmap (Wird zur vertikalen Timeline) */
    .roadmap-header { margin-bottom: 40px; }
    .roadmap-header h2 { font-size: 2rem; }
    .roadmap-header p { font-size: 1.1rem; }
    
    .roadmap {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }
    /* Horizontale Linie wird vertikal */
    .roadmap::before {
        top: 0; bottom: 0;
        left: 50%; right: auto;
        width: 4px; height: auto;
        transform: translateX(-50%);
    }
    .step { width: 100%; margin-bottom: 30px; }
    .circle { width: 60px; height: 60px; font-size: 1.5rem; margin: 0 auto 10px; }
    .step h3 { font-size: 1.2rem; }
    .step-desc { font-size: 1rem; }
    
    /* Modal & Buttons */
    .modal-content { padding: 30px 20px; width: 90%; }
    .modal-content h2 { font-size: 1.8rem; }
    .modal-content p { font-size: 1.1rem; margin-bottom: 25px; }
    .primary-btn { padding: 15px 30px; font-size: 1.2rem; }
    
    .action-footer {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .secondary-btn { padding: 15px 30px; font-size: 1.2rem; margin-left: 0 !important; width: 100%; }
    .primary-btn { width: 100%; }
}