* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1b5e20;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 30%, #f1f8e9 60%, #c8e6c9 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.plant-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
}

.plant-emoji {
    position: absolute;
    font-size: 4rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.plant-emoji:nth-child(1) { top: 2%; left: 5%; }
.plant-emoji:nth-child(2) { top: 8%; left: 15%; }
.plant-emoji:nth-child(3) { top: 4%; left: 25%; }
.plant-emoji:nth-child(4) { top: 12%; left: 35%; }
.plant-emoji:nth-child(5) { top: 6%; left: 45%; }
.plant-emoji:nth-child(6) { top: 10%; left: 55%; }
.plant-emoji:nth-child(7) { top: 3%; left: 65%; }
.plant-emoji:nth-child(8) { top: 9%; left: 75%; }
.plant-emoji:nth-child(9) { top: 7%; left: 85%; }
.plant-emoji:nth-child(10) { top: 11%; left: 95%; }

.plant-emoji:nth-child(11) { top: 20%; left: 8%; }
.plant-emoji:nth-child(12) { top: 25%; left: 18%; }
.plant-emoji:nth-child(13) { top: 22%; left: 28%; }
.plant-emoji:nth-child(14) { top: 28%; left: 38%; }
.plant-emoji:nth-child(15) { top: 24%; left: 48%; }
.plant-emoji:nth-child(16) { top: 26%; left: 58%; }
.plant-emoji:nth-child(17) { top: 21%; left: 68%; }
.plant-emoji:nth-child(18) { top: 27%; left: 78%; }
.plant-emoji:nth-child(19) { top: 23%; left: 88%; }
.plant-emoji:nth-child(20) { top: 29%; left: 98%; }

.plant-emoji:nth-child(21) { top: 38%; left: 3%; }
.plant-emoji:nth-child(22) { top: 42%; left: 13%; }
.plant-emoji:nth-child(23) { top: 40%; left: 23%; }
.plant-emoji:nth-child(24) { top: 44%; left: 33%; }
.plant-emoji:nth-child(25) { top: 36%; left: 43%; }
.plant-emoji:nth-child(26) { top: 46%; left: 53%; }
.plant-emoji:nth-child(27) { top: 39%; left: 63%; }
.plant-emoji:nth-child(28) { top: 43%; left: 73%; }
.plant-emoji:nth-child(29) { top: 41%; left: 83%; }
.plant-emoji:nth-child(30) { top: 45%; left: 93%; }

.plant-emoji:nth-child(31) { top: 55%; left: 7%; }
.plant-emoji:nth-child(32) { top: 58%; left: 17%; }
.plant-emoji:nth-child(33) { top: 52%; left: 27%; }
.plant-emoji:nth-child(34) { top: 59%; left: 37%; }
.plant-emoji:nth-child(35) { top: 56%; left: 47%; }
.plant-emoji:nth-child(36) { top: 54%; left: 57%; }
.plant-emoji:nth-child(37) { top: 57%; left: 67%; }
.plant-emoji:nth-child(38) { top: 53%; left: 77%; }
.plant-emoji:nth-child(39) { top: 51%; left: 87%; }
.plant-emoji:nth-child(40) { top: 60%; left: 97%; }

.plant-emoji:nth-child(41) { top: 70%; left: 5%; }
.plant-emoji:nth-child(42) { top: 74%; left: 15%; }
.plant-emoji:nth-child(43) { top: 72%; left: 25%; }
.plant-emoji:nth-child(44) { top: 76%; left: 35%; }
.plant-emoji:nth-child(45) { top: 68%; left: 45%; }
.plant-emoji:nth-child(46) { top: 78%; left: 55%; }
.plant-emoji:nth-child(47) { top: 71%; left: 65%; }
.plant-emoji:nth-child(48) { top: 75%; left: 75%; }
.plant-emoji:nth-child(49) { top: 73%; left: 85%; }
.plant-emoji:nth-child(50) { top: 77%; left: 95%; }

.plant-emoji:nth-child(51) { top: 85%; left: 8%; }
.plant-emoji:nth-child(52) { top: 88%; left: 18%; }
.plant-emoji:nth-child(53) { top: 86%; left: 28%; }
.plant-emoji:nth-child(54) { top: 90%; left: 38%; }
.plant-emoji:nth-child(55) { top: 84%; left: 48%; }
.plant-emoji:nth-child(56) { top: 92%; left: 58%; }
.plant-emoji:nth-child(57) { top: 87%; left: 68%; }
.plant-emoji:nth-child(58) { top: 89%; left: 78%; }
.plant-emoji:nth-child(59) { top: 83%; left: 88%; }
.plant-emoji:nth-child(60) { top: 91%; left: 98%; }

@keyframes nineties-float {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.1); }
    50% { transform: translateY(-25px) rotate(0deg) scale(1); }
    75% { transform: translateY(-15px) rotate(-5deg) scale(0.9); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: #1b5e20;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.progress-overview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 25px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 25px;
    transition: width 0.8s ease;
    width: 0%;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #1b5e20;
    font-size: 1.1rem;
}

.packages-container {
    display: grid;
    gap: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
}


.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tracking-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    transform: rotate(15deg);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    border: 2px solid #fff;
    z-index: 10;
    animation: wowBadge 2s ease-in-out infinite;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.delayed-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    transform: rotate(-15deg);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    border: 2px solid #fff;
    z-index: 10;
    animation: delayedBadge 2s ease-in-out infinite;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes delayedBadge {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
    }
    50% { 
        transform: rotate(-15deg) scale(1.1);
    }
}

@keyframes wowBadge {
    0%, 100% { 
        transform: rotate(15deg) scale(1);
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    }
    50% { 
        transform: rotate(15deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
    }
}

.delivery-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.delivery-today {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    animation: deliveryPulse 1.5s ease-in-out infinite;
}

.delivery-tomorrow {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.delivery-soon {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
}

.delivery-later {
    background: rgba(117, 117, 117, 0.15);
    color: #555;
    border: 1px solid rgba(117, 117, 117, 0.3);
}

.delivery-overdue {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

@keyframes deliveryPulse {
    0%, 100% { 
        background: linear-gradient(135deg, #4CAF50, #8BC34A);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #66BB6A, #AED581);
        transform: scale(1.05);
    }
}


.package-details-container {
    padding-top: 20px;
}

.package-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b5e20;
}

.stage-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stage-geplant {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
}

.stage-organisiert {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.stage-verpackt {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
}

.stage-versendet {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.stage-angekommen {
    background: linear-gradient(135deg, #E91E63, #F06292);
    color: white;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 25px 0;
    padding: 0 10px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.process-step.active {
    opacity: 1;
}

.process-step.current {
    transform: scale(1.1);
}

.step-emoji {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
}

.info-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.info-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #1b5e20;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.info-bubble:hover {
    transform: translateY(-2px);
}

.clickable-bubble {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.clickable-bubble:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #2E7D32;
    transform: translateY(-2px);
}

.clickable-bubble::after {
    content: " 🔗";
    font-size: 0.7em;
    opacity: 0.6;
}

.info-bubble.placeholder {
    background: rgba(200, 200, 200, 0.15);
    border-color: rgba(180, 180, 180, 0.3);
    color: #999;
    font-style: italic;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.info-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.tracking-updates {
    margin-top: 20px;
}

.tracking-updates h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.update-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-left: 3px solid #4CAF50;
    padding-left: 15px;
    margin-bottom: 10px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 0 8px 8px 0;
}

.update-time {
    min-width: 120px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.update-details {
    flex: 1;
}

.update-status {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.update-location {
    color: #777;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #1b5e20;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes popIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes popOut {
    0% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
}

@keyframes heartFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(255, 20, 147, 0.5); 
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 20, 147, 0.6); 
    }
}

.personal-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 2px solid rgba(86, 171, 47, 0.3);
}

.personal-message p {
    font-size: 1.2rem;
    color: #1b5e20;
    font-style: italic;
    line-height: 1.6;
}

.love-note {
    background: rgba(86, 171, 47, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #56ab2f;
    font-style: italic;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #1b5e20;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

footer:hover {
    transform: scale(1.02);
}

footer p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #2e7d32;
}

.stage-explanation {
    font-size: 0.85rem;
    color: #666;
    background: rgba(240, 248, 255, 0.6);
    border: 1px solid rgba(200, 230, 255, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0 0 0;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.package-note {
    font-size: 0.9rem;
    color: #4a4a4a;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(255, 250, 235, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0 0 0;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.15);
    position: relative;
    font-style: italic;
}

.package-note::before {
    content: "🦭";
    position: absolute;
    top: -8px;
    left: 12px;
    background: inherit;
    padding: 0 6px;
    font-size: 1.2em;
    border-radius: 50%;
}


@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-left {
        width: 100%;
    }
    
    .badge-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .delivery-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: fit-content;
    }
    
    .stage-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: fit-content;
    }
    
    .tracking-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: linear-gradient(45deg, #ff4444, #ff6666);
        color: white;
        font-size: 0.6rem;
        font-weight: 900;
        padding: 4px 8px;
        border-radius: 15px;
        transform: rotate(15deg);
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
        border: 2px solid #fff;
        z-index: 10;
        animation: wowBadge 2s ease-in-out infinite;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .delayed-badge {
        position: absolute;
        top: -8px;
        left: -8px;
        background: linear-gradient(45deg, #9c27b0, #ba68c8);
        color: white;
        font-size: 0.6rem;
        font-weight: 900;
        padding: 4px 8px;
        border-radius: 15px;
        transform: rotate(-15deg);
        box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
        border: 2px solid #fff;
        z-index: 10;
        animation: delayedBadge 2s ease-in-out infinite;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .process-timeline {
        display: flex;
        justify-content: space-between;
        gap: 5px;
        padding: 10px 5px 15px 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .process-step {
        flex: 1;
        min-width: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .step-emoji {
        font-size: 1.2rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .info-bubbles {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .info-bubble {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: auto;
        text-align: center;
        white-space: nowrap;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .update-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .update-time {
        min-width: auto;
        font-size: 0.85rem;
    }
}

/* Login, Popup & Loading Screens */
.login-overlay, .loading-overlay, .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height für mobile Browser */
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 30%, #f1f8e9 60%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto; /* Ermöglicht Scrollen bei Bedarf */
    padding: 20px; /* Verhindert Kollision mit Bildschirmrand */
    box-sizing: border-box;
}

/* Sims-Style Popup */
.popup-container {
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
    border: 3px solid #4a90e2;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.8);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: popupBounce 0.4s ease-out;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.popup-icon {
    font-size: 2.5rem;
    animation: popupIconPulse 2s ease-in-out infinite;
}

.popup-header h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.popup-content {
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
}

.popup-content em {
    color: #2c5aa0;
    font-style: italic;
    font-weight: 600;
}

.popup-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    min-height: 44px; /* Mindestgröße für Touch-Targets */
    min-width: 120px;
    touch-action: manipulation; /* Verbessert Touch-Verhalten */
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

@keyframes popupBounce {
    0% { 
        opacity: 0; 
        transform: scale(0.5) translateY(-50px); 
    }
    70% { 
        opacity: 1; 
        transform: scale(1.05) translateY(0); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes popupIconPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-header h1 {
    font-size: 2.5rem;
    color: #1b5e20;
    margin-bottom: 10px;
}

.login-header p {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#name-input {
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #c8e6c9;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

#name-input:focus {
    border-color: #4caf50;
}

#login-btn {
    padding: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#login-btn:hover {
    transform: translateY(-2px);
}

.name-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.name-bubble {
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.name-bubble.filled {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #c8e6c9;
    color: #2e7d32;
}

.clear-letter {
    color: #1b5e20;
    font-weight: bold;
}

.censored-part {
    filter: blur(3px);
    opacity: 0.4;
    color: #666;
    user-select: none;
    text-shadow: 0 0 4px rgba(102, 102, 102, 0.8);
}

.name-bubble.input-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4caf50;
    color: #1b5e20;
    outline: none;
    transition: all 0.3s ease;
    min-width: 60px;
}

.name-bubble.input-bubble:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    transform: scale(1.05);
}

.login-error {
    color: #d32f2f;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    border: 1px solid #ffcdd2;
}

.loading-content {
    text-align: center;
    color: #1b5e20;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(76, 175, 80, 0.3);
    border-top: 6px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

#loading-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-emoji {
    font-size: 3rem;
    transition: all 0.3s ease;
}

/* Emoji Animationen */
.spin-animation {
    animation: emojiSpin 1s linear infinite;
}

.bounce-animation {
    animation: emojiBounce 0.8s ease-in-out infinite;
}

.pulse-animation {
    animation: emojiPulse 1.2s ease-in-out infinite;
}

.shake-animation {
    animation: emojiShake 0.6s ease-in-out infinite;
}

.grow-animation {
    animation: emojiGrow 1s ease-in-out infinite;
}

.sparkle-animation {
    animation: emojiSparkle 1.5s ease-in-out infinite;
}

.move-animation {
    animation: emojiMove 2s ease-in-out infinite;
}

.rainbow-animation {
    animation: emojiRainbow 2s ease-in-out infinite;
}

@keyframes emojiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes emojiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes emojiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes emojiShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

@keyframes emojiGrow {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes emojiSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.2) rotate(90deg); opacity: 0.8; }
    50% { transform: scale(0.9) rotate(180deg); opacity: 1; }
    75% { transform: scale(1.3) rotate(270deg); opacity: 0.7; }
}

@keyframes emojiMove {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(20px); }
    50% { transform: translateX(-10px); }
    75% { transform: translateX(15px); }
}

@keyframes emojiRainbow {
    0% { filter: hue-rotate(0deg) brightness(1); }
    25% { filter: hue-rotate(90deg) brightness(1.2); }
    50% { filter: hue-rotate(180deg) brightness(1.1); }
    75% { filter: hue-rotate(270deg) brightness(1.3); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .name-bubbles {
        gap: 8px;
    }
    
    .name-bubble {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .name-bubble.input-bubble {
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .package-card {
        padding: 15px;
    }
    
    .progress-overview {
        padding: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .popup-container {
        margin: 10px;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
        padding: 20px;
    }
    
    .popup-button {
        padding: 15px 25px;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        margin-top: 10px;
    }
    
    .login-overlay, .loading-overlay, .popup-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .package-name {
        font-size: 1.2rem;
    }
    
    .delivery-badge,
    .stage-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .tracking-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .delayed-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .process-timeline {
        margin: 15px 0 20px 0;
        padding: 0 0 5px 0;
        gap: 3px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .process-step {
        min-width: 50px;
        flex-shrink: 0;
    }
    
    .step-emoji {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .info-bubble {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .name-bubbles {
        gap: 5px;
    }
    
    .name-bubble {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    .name-bubble.input-bubble {
        min-width: 40px;
    }
}