/* =================================================================
   UMZUGS-KOSTENKALKULATOR V2 - GARANTIERTE DASHBOARD-FARBEN
   ================================================================= */

/* Container */
.umzugs-calculator-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#umzugs-calculator {
    background: transparent !important;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* =================================================================
   STEP SYSTEM
   ================================================================= */

.ukc-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.ukc-step.active {
    display: block;
}

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

/* Stepper */
.ukc-stepper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.ukc-stepper__item {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ukc-stepper__item.active {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #000000;
    border-color: #FFC107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    transform: scale(1.1);
}

.ukc-stepper__item.completed {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #000000;
    border-color: #FFC107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.ukc-stepper__item.completed::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
    font-weight: 900;
}

/* =================================================================
   FORM ELEMENTS  
   ================================================================= */

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

.ukc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ukc-form-group input,
.ukc-form-group select,
.ukc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Spezielle Dropdown-Optimierung */
.ukc-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    min-height: 48px;
}

.ukc-form-group input:focus,
.ukc-form-group select:focus,
.ukc-form-group textarea:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

/* Mobile optimized inputs */
@media (max-width: 768px) {
    .ukc-form-group input,
    .ukc-form-group select,
    .ukc-form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .ukc-form-group input,
    .ukc-form-group select,
    .ukc-form-group textarea {
        font-size: 13px;
        padding: 8px 10px;
        min-height: 40px;
    }
}

/* =================================================================
   FURNITURE SELECTION
   ================================================================= */

.ukc-furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ukc-furniture-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.ukc-furniture-item:hover {
    border-color: #FFC107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.ukc-furniture-item.selected {
    border-color: #FFC107;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
    transform: translateY(-1px);
}

/* Möbel Icons */
.ukc-furniture-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.ukc-furniture-item h4 {
    margin: 8px 0 5px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.ukc-furniture-time {
    color: #666;
    font-size: 14px;
    display: none;
}

/* Standard-Icon für alle Möbel (wird zuerst definiert) */
.ukc-furniture-icon::before {
    content: "📦";
    display: block;
}

/* Icon-Mappings für verschiedene Möbelstücke */
.ukc-furniture-item[data-furniture-type*="sofa"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="couch"] .ukc-furniture-icon::before { 
    content: "🛋️"; 
}

.ukc-furniture-item[data-furniture-type*="schrank"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="wardrobe"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="kleiderschrank"] .ukc-furniture-icon::before { 
    content: "🗄️"; 
}

.ukc-furniture-item[data-furniture-type*="stuhl"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="chair"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="stühle"] .ukc-furniture-icon::before { 
    content: "🪑"; 
}

.ukc-furniture-item[data-furniture-type*="tisch"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="table"] .ukc-furniture-icon::before { 
    content: "🪑"; 
}

.ukc-furniture-item[data-furniture-type*="bett"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="bed"] .ukc-furniture-icon::before { 
    content: "🛏️"; 
}

.ukc-furniture-item[data-furniture-type*="kühl"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="fridge"] .ukc-furniture-icon::before { 
    content: "🧊"; 
}

.ukc-furniture-item[data-furniture-type*="wasch"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="washing"] .ukc-furniture-icon::before { 
    content: "🌊"; 
}

.ukc-furniture-item[data-furniture-type*="fernseh"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="tv"] .ukc-furniture-icon::before { 
    content: "📺"; 
}

.ukc-furniture-item[data-furniture-type*="regal"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="shelf"] .ukc-furniture-icon::before { 
    content: "📚"; 
}

.ukc-furniture-item[data-furniture-type*="karton"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="box"] .ukc-furniture-icon::before,
.ukc-furniture-item[data-furniture-type*="kiste"] .ukc-furniture-icon::before { 
    content: "📦"; 
}

/* Mobile furniture grid */
@media (max-width: 768px) {
    .ukc-furniture-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .ukc-stepper {
        gap: 10px;
    }
    
    .ukc-stepper__item {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ukc-furniture-grid {
        grid-template-columns: 1fr;
    }
    
    .ukc-stepper {
        gap: 8px;
    }
    
    .ukc-stepper__item {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* =================================================================
   BUTTONS - DEFAULT COLORS (WILL BE OVERRIDDEN BY DASHBOARD)
   ================================================================= */

.ukc-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    line-height: 1;
    margin: 5px;
    outline: none;
}

/* Primary buttons (will be overridden by dashboard) */
.ukc-btn-primary,
.ukc-next-btn {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #000000;
    border: none;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.ukc-btn-primary:hover,
.ukc-next-btn:hover {
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
    border-radius: 8px !important;
}

/* Secondary buttons (will be overridden by dashboard) */
.ukc-btn-secondary,
.ukc-prev-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #FFC107;
    border-radius: 8px !important;
}

.ukc-btn-secondary:hover,
.ukc-prev-btn:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
    border-radius: 8px !important;
}

/* Button responsiveness */
@media (max-width: 768px) {
    .ukc-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 100px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .ukc-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
        border-radius: 8px;
    }
}

/* =================================================================
   NAVIGATION
   ================================================================= */

.ukc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.ukc-navigation .ukc-btn:only-child {
    margin-left: auto;
}

@media (max-width: 480px) {
    .ukc-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .ukc-navigation .ukc-btn {
        width: 100%;
        max-width: 300px;
        border-radius: 8px;
    }
}

/* =================================================================
   SUMMARY SECTION
   ================================================================= */

.ukc-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ukc-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.ukc-summary-item {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.ukc-summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    color: #000000;
}

/* Spezielle Styles für Kosten in der Zusammenfassung */
.ukc-summary-cost,
.ukc-summary .ukc-summary-item span:last-child {
    color: #000000 !important;
    font-weight: 600;
}

.ukc-total-cost {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    border: 2px solid #FFC107;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

/* =================================================================
   PROGRESS BAR
   ================================================================= */

.ukc-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ukc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFC107 0%, #FFD54F 100%);
    transition: width 0.4s ease;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

/* =================================================================
   LOADING STATE
   ================================================================= */

.ukc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ukc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* =================================================================
   CHECKBOX STYLING
   ================================================================= */

.ukc-form-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.ukc-form-group input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =================================================================
   UTILITIES
   ================================================================= */

.ukc-hidden {
    display: none !important;
}

.ukc-text-center {
    text-align: center;
}

.ukc-mb-20 {
    margin-bottom: 20px;
}

.ukc-mt-20 {
    margin-top: 20px;
}

/* Error messages */
.ukc-error {
    background: #ffeaea;
    border: 1px solid #ff6b6b;
    color: #d63031;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

/* Success messages */
.ukc-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

/* Webhook status messages */
.ukc-webhook-status {
    font-size: 0.9em;
    margin: 8px 0 0 0;
    padding: 6px 10px;
    border-radius: 4px;
}

.ukc-webhook-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ukc-webhook-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ukc-webhook-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* =================================================================
   DYNAMIC HEIGHT CONTAINER
   ================================================================= */

.ukc-calculator-container {
    min-height: 400px;
    transition: height 0.3s ease;
    overflow: hidden;
}