/* ============================================
   CRITICAL FIX für Mobile
   ============================================ */

/* WICHTIG: Diese Regeln MÜSSEN ganz oben stehen */
.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 70px !important;
    background: white;
}

.carousel-track {
    display: flex !important;
    transition: transform 0.3s ease;
    gap: 10px;
    min-height: 70px !important;
}

.carousel-item {
    /* Desktop Default */
    min-width: calc(33.333% - 7px);
    padding: 15px 10px;
    background: #f5f5f5 !important;
    border: 2px solid #ddd !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    color: #333 !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.carousel-item:hover {
    background: #e8e8e8;
    border-color: #0066cc;
    transform: scale(1.02);
}

.carousel-item.active {
    background: #0066cc !important;
    color: white !important;
    border-color: #0066cc;
    font-weight: bold;
    transform: scale(1.05);
}

/* ============================================
   NORMALE KARUSSELL STYLES
   ============================================ */

.team-selection {
    margin: 30px 0;
    text-align: center;
}

.team-selection label {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    background: #0066cc;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover {
    background: #0052a3;
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

#decisionButtons {
    margin-top: 20px;
}

#decisionButtons button {
    padding: 12px 30px;
    font-size: 1.1em;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#decisionButtons button:first-child {
    background: #28a745;
    color: white;
}

#decisionButtons button:first-child:hover {
    background: #218838;
}

#decisionButtons button:last-child {
    background: #dc3545;
    color: white;
}

#decisionButtons button:last-child:hover {
    background: #c82333;
}

/* ============================================
   MOBILE OPTIMIERUNG
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .carousel-item {
        min-width: calc(50% - 5px) !important;
        font-size: 0.85em;
        padding: 12px 8px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .team-selection label {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .carousel-container {
        gap: 8px;
    }
    
    .carousel-wrapper {
        overflow: hidden !important;
    }
    
    .carousel-track {
        gap: 0 !important;
    }
    
    .carousel-item {
        min-width: 100% !important;
        width: 100% !important;
        font-size: 1em;
        padding: 20px 15px !important;
        margin: 0;
        line-height: 1.4;
        min-height: 60px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    #decisionButtons {
        margin-top: 25px;
    }
    
    #decisionButtons button {
        padding: 15px 20px;
        font-size: 1em;
        margin: 8px 5px;
        display: inline-block;
        width: calc(50% - 15px);
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 360px) {
    .carousel-container {
        gap: 5px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-item {
        font-size: 0.95em;
        padding: 18px 12px !important;
    }
    
    #decisionButtons button {
        width: calc(100% - 10px);
        margin: 5px;
    }
}

/* Touch-Optimierung */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .carousel-item {
        min-height: 60px;
    }
}

/* ============================================
   ARGUMENTS SECTIONS
   ============================================ */

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Arguments Section */
.arguments-section {
    display: none;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.arguments-section.visible {
    display: block;
}

.arguments-section h2 {
    margin-top: 0;
    color: #333;
}

.switch-view-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.switch-view-btn:hover {
    background: #0052a3;
}

.argument-item {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.argument-item h3 {
    margin-top: 0;
    color: #0066cc;
}